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 2f8639484f0..98270635c1e 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 @@ -101,21 +100,43 @@ 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()) { 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(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: { - 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( + 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: @@ -133,14 +154,14 @@ 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; + + if (0 != reply.types().size()) { - ReturnCode_t register_result = RETCODE_OK; for (xtypes::TypeIdentifierTypeObjectPair pair : reply.types()) { xtypes::TypeIdentifierPair type_ids; @@ -150,7 +171,7 @@ void TypeLookupReplyListener::check_get_types_reply( { // If any of the types is not registered, log error EPROSIMA_LOG_WARNING(TYPELOOKUP_SERVICE_REPLY_LISTENER, - "Error registering remote type"); + "Error registering remote type."); register_result = RETCODE_ERROR; } } @@ -159,7 +180,8 @@ void TypeLookupReplyListener::check_get_types_reply( { // 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); + 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 @@ -173,17 +195,18 @@ void TypeLookupReplyListener::check_get_types_reply( { xtypes::TypeObject type_object; fastdds::rtps::RTPSDomainImpl::get_instance()->type_object_registry_observer().get_type_object( - requests_it->second.type_id(), 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(). + 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); + typelookup_manager_->notify_callbacks(RETCODE_OK, type_id); } catch (const std::exception& exception) { @@ -192,25 +215,25 @@ void TypeLookupReplyListener::check_get_types_reply( } } } - - // Remove the processed SampleIdentity from the outstanding requests - typelookup_manager_->remove_async_get_type_request(request_id); } + 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; + } + + // 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; @@ -234,18 +257,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 { @@ -260,7 +283,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 6a5c800f3aa..705464e8a73 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, + "Received request with no type identifiers."); + } + // Iterate through requested type_ids for (const xtypes::TypeIdentifier& type_id : request.type_ids()) { @@ -280,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 @@ -313,17 +319,26 @@ 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; } } } + 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) { // 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) @@ -378,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/src/cpp/fastdds/xtypes/type_representation/TypeObjectRegistry.cpp b/src/cpp/fastdds/xtypes/type_representation/TypeObjectRegistry.cpp index cd674a3fc70..c51ef8eb1ce 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 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(); + 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: 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/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/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 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-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_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-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 new file mode 100644 index 00000000000..bb4b68d0c8e --- /dev/null +++ b/test/dds/xtypes/BaseCases/Case0.json @@ -0,0 +1,25 @@ +{ + "test_cases": [ + { + "TestCase": "Case_0", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "TypeNoTypeObject" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + } + ] +} diff --git a/test/dds/xtypes/BaseCases/Case1.json b/test/dds/xtypes/BaseCases/Case1.json new file mode 100644 index 00000000000..3ba0966a406 --- /dev/null +++ b/test/dds/xtypes/BaseCases/Case1.json @@ -0,0 +1,27 @@ +{ + "test_cases": [ + { + "TestCase": "Case_1", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "Type1" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "Type1" + ] + } + ] + } + ] +} diff --git a/test/dds/xtypes/BaseCases/Case10.json b/test/dds/xtypes/BaseCases/Case10.json new file mode 100644 index 00000000000..577d663a0d8 --- /dev/null +++ b/test/dds/xtypes/BaseCases/Case10.json @@ -0,0 +1,37 @@ +{ + "test_cases": [ + { + "TestCase": "Case_10", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "2", + "known_types": [ + "Type2" + ] + }, + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "2", + "known_types": [ + "Type1" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "4", + "known_types": [ + "Type1", + "Type2" + ] + } + ] + } + ] +} diff --git a/test/dds/xtypes/BaseCases/Case2.json b/test/dds/xtypes/BaseCases/Case2.json new file mode 100644 index 00000000000..0efeba1dfb5 --- /dev/null +++ b/test/dds/xtypes/BaseCases/Case2.json @@ -0,0 +1,25 @@ +{ + "test_cases": [ + { + "TestCase": "Case_2", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "Type1" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + } + ] +} diff --git a/test/dds/xtypes/BaseCases/Case3.json b/test/dds/xtypes/BaseCases/Case3.json new file mode 100644 index 00000000000..f3f9938b981 --- /dev/null +++ b/test/dds/xtypes/BaseCases/Case3.json @@ -0,0 +1,27 @@ +{ + "test_cases": [ + { + "TestCase": "Case_3", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "2", + "known_types": [ + "Type1" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "2", + "known_types": [ + "Type2" + ] + } + ] + } + ] +} diff --git a/test/dds/xtypes/BaseCases/Case4.json b/test/dds/xtypes/BaseCases/Case4.json new file mode 100644 index 00000000000..c175d74bb20 --- /dev/null +++ b/test/dds/xtypes/BaseCases/Case4.json @@ -0,0 +1,29 @@ +{ + "test_cases": [ + { + "TestCase": "Case_4", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "3", + "known_types": [ + "Type1", + "Type2" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "3", + "known_types": [ + "Type1", + "Type3" + ] + } + ] + } + ] +} diff --git a/test/dds/xtypes/BaseCases/Case5.json b/test/dds/xtypes/BaseCases/Case5.json new file mode 100644 index 00000000000..c2875b268be --- /dev/null +++ b/test/dds/xtypes/BaseCases/Case5.json @@ -0,0 +1,29 @@ +{ + "test_cases": [ + { + "TestCase": "Case_5", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "2", + "known_types": [ + "Type1", + "Type2" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "2", + "known_types": [ + "Type1", + "Type2" + ] + } + ] + } + ] +} diff --git a/test/dds/xtypes/BaseCases/Case6.json b/test/dds/xtypes/BaseCases/Case6.json new file mode 100644 index 00000000000..9480b63f55d --- /dev/null +++ b/test/dds/xtypes/BaseCases/Case6.json @@ -0,0 +1,25 @@ +{ + "test_cases": [ + { + "TestCase": "Case_6", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "TypeDep" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + } + ] +} diff --git a/test/dds/xtypes/BaseCases/Case7.json b/test/dds/xtypes/BaseCases/Case7.json new file mode 100644 index 00000000000..95f491e9943 --- /dev/null +++ b/test/dds/xtypes/BaseCases/Case7.json @@ -0,0 +1,25 @@ +{ + "test_cases": [ + { + "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": [] + } + ] + } + ] +} diff --git a/test/dds/xtypes/BaseCases/Case8.json b/test/dds/xtypes/BaseCases/Case8.json new file mode 100644 index 00000000000..169eee85e89 --- /dev/null +++ b/test/dds/xtypes/BaseCases/Case8.json @@ -0,0 +1,125 @@ +{ + "test_cases": [ + { + "TestCase": "Case_8", + "participants": [ + { + "kind": "publisher", + "samples": "3", + "timeout": "30", + "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": "30", + "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 new file mode 100644 index 00000000000..21670723d71 --- /dev/null +++ b/test/dds/xtypes/BaseCases/Case9.json @@ -0,0 +1,32 @@ +{ + "test_cases": [ + { + "TestCase": "Case_9", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + }, + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "2", + "known_types": [ + "Type2" + ] + } + ] + } + ] +} diff --git a/test/dds/xtypes/BaseCasesIDLs/XtypesTestsType1.hpp b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsType1.hpp new file mode 100644 index 00000000000..09bb76b36a5 --- /dev/null +++ b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsType1.hpp @@ -0,0 +1,190 @@ +// 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 +#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_content = x.m_content; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type1 that will be copied. + */ + eProsima_user_DllExport Type1( + Type1&& x) noexcept + { + m_content = std::move(x.m_content); + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type1 that will be copied. + */ + eProsima_user_DllExport Type1& operator =( + const Type1& x) + { + + m_content = x.m_content; + + 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_content = std::move(x.m_content); + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type1 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type1& x) const + { + return (m_content == x.m_content); + } + + /*! + * @brief Comparison operator. + * @param x Type1 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type1& x) const + { + return !(*this == x); + } + + /*! + * @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 content( + std::string&& _content) + { + m_content = std::move(_content); + } + + /*! + * @brief This function returns a constant reference to member content + * @return Constant reference to member content + */ + eProsima_user_DllExport const std::string& content() const + { + 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: + + std::string m_content; + +}; + +#endif // _FAST_DDS_GENERATED_XTYPESTESTSTYPE1_HPP_ + + diff --git a/test/dds/xtypes/BaseCasesIDLs/XtypesTestsType1.idl b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsType1.idl new file mode 100644 index 00000000000..8d54f1638aa --- /dev/null +++ b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsType1.idl @@ -0,0 +1,22 @@ +// 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/XtypesTestsType1CdrAux.hpp b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsType1CdrAux.hpp new file mode 100644 index 00000000000..53a7d086dda --- /dev/null +++ b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsType1CdrAux.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 XtypesTestsType1CdrAux.hpp + * This source file contains some definitions of CDR related functions. + * + * This file was generated by the tool fastddsgen. + */ + +#ifndef FAST_DDS_GENERATED__XTYPESTESTSTYPE1CDRAUX_HPP +#define FAST_DDS_GENERATED__XTYPESTESTSTYPE1CDRAUX_HPP + +#include "XtypesTestsType1.hpp" + +constexpr uint32_t Type1_max_cdr_typesize {264UL}; +constexpr uint32_t Type1_max_key_cdr_typesize {0UL}; + + +namespace eprosima { +namespace fastcdr { + +class Cdr; +class CdrSizeCalculator; + +eProsima_user_DllExport void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type1& data); + + +} // namespace fastcdr +} // namespace eprosima + +#endif // FAST_DDS_GENERATED__XTYPESTESTSTYPE1CDRAUX_HPP + diff --git a/test/dds-types-test/relative_path_includeCdrAux.ipp b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsType1CdrAux.ipp similarity index 83% rename from test/dds-types-test/relative_path_includeCdrAux.ipp rename to test/dds/xtypes/BaseCasesIDLs/XtypesTestsType1CdrAux.ipp index 19dcc4baad6..9468a84b58f 100644 --- a/test/dds-types-test/relative_path_includeCdrAux.ipp +++ b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsType1CdrAux.ipp @@ -13,16 +13,16 @@ // limitations under the License. /*! - * @file relative_path_includeCdrAux.ipp + * @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__RELATIVE_PATH_INCLUDECDRAUX_IPP -#define FAST_DDS_GENERATED__RELATIVE_PATH_INCLUDECDRAUX_IPP +#ifndef FAST_DDS_GENERATED__XTYPESTESTSTYPE1CDRAUX_IPP +#define FAST_DDS_GENERATED__XTYPESTESTSTYPE1CDRAUX_IPP -#include "relative_path_includeCdrAux.hpp" +#include "XtypesTestsType1CdrAux.hpp" #include #include @@ -37,7 +37,7 @@ namespace fastcdr { template<> eProsima_user_DllExport size_t calculate_serialized_size( eprosima::fastcdr::CdrSizeCalculator& calculator, - const RelativePathIncludeStruct& data, + const Type1& data, size_t& current_alignment) { static_cast(data); @@ -51,7 +51,7 @@ eProsima_user_DllExport size_t calculate_serialized_size( calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.value(), current_alignment); + data.content(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -62,7 +62,7 @@ eProsima_user_DllExport size_t calculate_serialized_size( template<> eProsima_user_DllExport void serialize( eprosima::fastcdr::Cdr& scdr, - const RelativePathIncludeStruct& data) + const Type1& data) { eprosima::fastcdr::Cdr::state current_state(scdr); scdr.begin_serialize_type(current_state, @@ -71,7 +71,7 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR); scdr - << eprosima::fastcdr::MemberId(0) << data.value() + << eprosima::fastcdr::MemberId(0) << data.content() ; scdr.end_serialize_type(current_state); } @@ -79,7 +79,7 @@ eProsima_user_DllExport void serialize( template<> eProsima_user_DllExport void deserialize( eprosima::fastcdr::Cdr& cdr, - RelativePathIncludeStruct& data) + Type1& data) { cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : @@ -90,7 +90,7 @@ eProsima_user_DllExport void deserialize( switch (mid.id) { case 0: - dcdr >> data.value(); + dcdr >> data.content(); break; default: @@ -103,12 +103,12 @@ eProsima_user_DllExport void deserialize( void serialize_key( eprosima::fastcdr::Cdr& scdr, - const RelativePathIncludeStruct& data) + const Type1& data) { static_cast(scdr); static_cast(data); - scdr << data.value(); + scdr << data.content(); } @@ -117,5 +117,5 @@ void serialize_key( } // namespace fastcdr } // namespace eprosima -#endif // FAST_DDS_GENERATED__RELATIVE_PATH_INCLUDECDRAUX_IPP +#endif // FAST_DDS_GENERATED__XTYPESTESTSTYPE1CDRAUX_IPP diff --git a/test/dds-types-test/relative_path_includePubSubTypes.cxx b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsType1PubSubTypes.cxx similarity index 74% rename from test/dds-types-test/relative_path_includePubSubTypes.cxx rename to test/dds/xtypes/BaseCasesIDLs/XtypesTestsType1PubSubTypes.cxx index 5ba34503087..c7eeed3634d 100644 --- a/test/dds-types-test/relative_path_includePubSubTypes.cxx +++ b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsType1PubSubTypes.cxx @@ -13,37 +13,37 @@ // limitations under the License. /*! - * @file relative_path_includePubSubTypes.cpp + * @file XtypesTestsType1PubSubTypes.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 "XtypesTestsType1PubSubTypes.hpp" #include #include -#include "relative_path_includeCdrAux.hpp" -#include "relative_path_includeTypeObjectSupport.hpp" +#include "XtypesTestsType1CdrAux.hpp" +#include "XtypesTestsType1TypeObjectSupport.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() +Type1PubSubType::Type1PubSubType() { - set_name("RelativePathIncludeStruct"); - uint32_t type_size = RelativePathIncludeStruct_max_cdr_typesize; + 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 */ 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; + 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); } -RelativePathIncludeStructPubSubType::~RelativePathIncludeStructPubSubType() +Type1PubSubType::~Type1PubSubType() { if (key_buffer_ != nullptr) { @@ -51,12 +51,12 @@ RelativePathIncludeStructPubSubType::~RelativePathIncludeStructPubSubType() } } -bool RelativePathIncludeStructPubSubType::serialize( +bool Type1PubSubType::serialize( const void* const data, SerializedPayload_t& payload, DataRepresentationId_t data_representation) { - const RelativePathIncludeStruct* 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); @@ -87,14 +87,14 @@ bool RelativePathIncludeStructPubSubType::serialize( return true; } -bool RelativePathIncludeStructPubSubType::deserialize( +bool Type1PubSubType::deserialize( SerializedPayload_t& payload, void* data) { try { // Convert DATA to pointer of your type - RelativePathIncludeStruct* 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); @@ -117,7 +117,7 @@ bool RelativePathIncludeStructPubSubType::deserialize( return true; } -uint32_t RelativePathIncludeStructPubSubType::calculate_serialized_size( +uint32_t Type1PubSubType::calculate_serialized_size( const void* const data, DataRepresentationId_t data_representation) { @@ -128,7 +128,7 @@ uint32_t RelativePathIncludeStructPubSubType::calculate_serialized_size( eprosima::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*/) @@ -137,18 +137,18 @@ uint32_t RelativePathIncludeStructPubSubType::calculate_serialized_size( } } -void* RelativePathIncludeStructPubSubType::create_data() +void* Type1PubSubType::create_data() { - return reinterpret_cast(new RelativePathIncludeStruct()); + return reinterpret_cast(new Type1()); } -void RelativePathIncludeStructPubSubType::delete_data( +void Type1PubSubType::delete_data( void* data) { - delete(reinterpret_cast(data)); + delete(reinterpret_cast(data)); } -bool RelativePathIncludeStructPubSubType::compute_key( +bool Type1PubSubType::compute_key( SerializedPayload_t& payload, InstanceHandle_t& handle, bool force_md5) @@ -158,7 +158,7 @@ bool RelativePathIncludeStructPubSubType::compute_key( return false; } - RelativePathIncludeStruct data; + Type1 data; if (deserialize(payload, static_cast(&data))) { return compute_key(static_cast(&data), handle, force_md5); @@ -167,7 +167,7 @@ bool RelativePathIncludeStructPubSubType::compute_key( return false; } -bool RelativePathIncludeStructPubSubType::compute_key( +bool Type1PubSubType::compute_key( const void* const data, InstanceHandle_t& handle, bool force_md5) @@ -177,17 +177,17 @@ bool RelativePathIncludeStructPubSubType::compute_key( return false; } - const RelativePathIncludeStruct* p_type = static_cast(data); + const Type1* p_type = static_cast(data); // Object that manages the raw buffer. eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(key_buffer_), - RelativePathIncludeStruct_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::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) + if (force_md5 || Type1_max_key_cdr_typesize > 16) { md5_.init(); md5_.update(key_buffer_, static_cast(ser.get_serialized_data_length())); @@ -207,11 +207,11 @@ bool RelativePathIncludeStructPubSubType::compute_key( return true; } -void RelativePathIncludeStructPubSubType::register_type_object_representation() +void Type1PubSubType::register_type_object_representation() { - register_RelativePathIncludeStruct_type_identifier(type_identifiers_); + register_Type1_type_identifier(type_identifiers_); } // Include auxiliary functions like for serializing/deserializing. -#include "relative_path_includeCdrAux.ipp" +#include "XtypesTestsType1CdrAux.ipp" diff --git a/test/dds-types-test/relative_path_includePubSubTypes.hpp b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsType1PubSubTypes.hpp similarity index 77% rename from test/dds-types-test/relative_path_includePubSubTypes.hpp rename to test/dds/xtypes/BaseCasesIDLs/XtypesTestsType1PubSubTypes.hpp index 95a3d1eeffd..44d7b1ffa61 100644 --- a/test/dds-types-test/relative_path_includePubSubTypes.hpp +++ b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsType1PubSubTypes.hpp @@ -13,15 +13,15 @@ // limitations under the License. /*! - * @file relative_path_includePubSubTypes.hpp + * @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__RELATIVE_PATH_INCLUDE_PUBSUBTYPES_HPP -#define FAST_DDS_GENERATED__RELATIVE_PATH_INCLUDE_PUBSUBTYPES_HPP +#ifndef FAST_DDS_GENERATED__XTYPESTESTSTYPE1_PUBSUBTYPES_HPP +#define FAST_DDS_GENERATED__XTYPESTESTSTYPE1_PUBSUBTYPES_HPP #include #include @@ -29,29 +29,28 @@ #include #include -#include "relative_path_include.hpp" +#include "XtypesTestsType1.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. + Generated XtypesTestsType1 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 + * @brief This class represents the TopicDataType of the type Type1 defined by the user in the IDL file. + * @ingroup XtypesTestsType1 */ -class RelativePathIncludeStructPubSubType : public eprosima::fastdds::dds::TopicDataType +class Type1PubSubType : public eprosima::fastdds::dds::TopicDataType { public: - typedef RelativePathIncludeStruct type; + typedef Type1 type; - eProsima_user_DllExport RelativePathIncludeStructPubSubType(); + eProsima_user_DllExport Type1PubSubType(); - eProsima_user_DllExport ~RelativePathIncludeStructPubSubType() override; + eProsima_user_DllExport ~Type1PubSubType() override; eProsima_user_DllExport bool serialize( const void* const data, @@ -87,7 +86,7 @@ class RelativePathIncludeStructPubSubType : public eprosima::fastdds::dds::Topic #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 @@ -120,5 +119,5 @@ class RelativePathIncludeStructPubSubType : public eprosima::fastdds::dds::Topic }; -#endif // FAST_DDS_GENERATED__RELATIVE_PATH_INCLUDE_PUBSUBTYPES_HPP +#endif // FAST_DDS_GENERATED__XTYPESTESTSTYPE1_PUBSUBTYPES_HPP diff --git a/test/dds/xtypes/BaseCasesIDLs/XtypesTestsType1TypeObjectSupport.cxx b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsType1TypeObjectSupport.cxx new file mode 100644 index 00000000000..dd35edea396 --- /dev/null +++ b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsType1TypeObjectSupport.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 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; + +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Type1_type_identifier( + TypeIdentifierPair& type_ids_Type1) +{ + + 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::APPENDABLE, + false, false); + 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; + { + 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_Type1.reset(); + 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 == + 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."); + } + } +} + diff --git a/test/dds-types-test/relative_path_includeTypeObjectSupport.hpp b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsType1TypeObjectSupport.hpp similarity index 78% rename from test/dds-types-test/relative_path_includeTypeObjectSupport.hpp rename to test/dds/xtypes/BaseCasesIDLs/XtypesTestsType1TypeObjectSupport.hpp index 54e6717d575..c74be920545 100644 --- a/test/dds-types-test/relative_path_includeTypeObjectSupport.hpp +++ b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsType1TypeObjectSupport.hpp @@ -13,18 +13,17 @@ // limitations under the License. /*! - * @file relative_path_includeTypeObjectSupport.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__RELATIVE_PATH_INCLUDE_TYPE_OBJECT_SUPPORT_HPP -#define FAST_DDS_GENERATED__RELATIVE_PATH_INCLUDE_TYPE_OBJECT_SUPPORT_HPP +#ifndef FAST_DDS_GENERATED__XTYPESTESTSTYPE1_TYPE_OBJECT_SUPPORT_HPP +#define FAST_DDS_GENERATED__XTYPESTESTSTYPE1_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 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. @@ -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_Type1_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__XTYPESTESTSTYPE1_TYPE_OBJECT_SUPPORT_HPP diff --git a/test/dds/xtypes/BaseCasesIDLs/XtypesTestsType2.hpp b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsType2.hpp new file mode 100644 index 00000000000..9ff4b471155 --- /dev/null +++ b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsType2.hpp @@ -0,0 +1,190 @@ +// 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 +#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_content = x.m_content; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type2 that will be copied. + */ + eProsima_user_DllExport Type2( + Type2&& x) noexcept + { + m_content = std::move(x.m_content); + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type2 that will be copied. + */ + eProsima_user_DllExport Type2& operator =( + const Type2& x) + { + + m_content = x.m_content; + + 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_content = std::move(x.m_content); + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type2 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type2& x) const + { + return (m_content == x.m_content); + } + + /*! + * @brief Comparison operator. + * @param x Type2 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type2& x) const + { + return !(*this == x); + } + + /*! + * @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 content( + std::string&& _content) + { + m_content = std::move(_content); + } + + /*! + * @brief This function returns a constant reference to member content + * @return Constant reference to member content + */ + eProsima_user_DllExport const std::string& content() const + { + 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: + + std::string m_content; + +}; + +#endif // _FAST_DDS_GENERATED_XTYPESTESTSTYPE2_HPP_ + + diff --git a/test/dds/xtypes/BaseCasesIDLs/XtypesTestsType2.idl b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsType2.idl new file mode 100644 index 00000000000..7320b281b86 --- /dev/null +++ b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsType2.idl @@ -0,0 +1,22 @@ +// 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/XtypesTestsType2CdrAux.hpp b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsType2CdrAux.hpp new file mode 100644 index 00000000000..dd1045f5efd --- /dev/null +++ b/test/dds/xtypes/BaseCasesIDLs/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 {264UL}; +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/BaseCasesIDLs/XtypesTestsType2CdrAux.ipp b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsType2CdrAux.ipp new file mode 100644 index 00000000000..fe5f109efc9 --- /dev/null +++ b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsType2CdrAux.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 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.content(), 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.content() +; + 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.content(); + 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); + scdr << data.content(); + +} + + + +} // namespace fastcdr +} // namespace eprosima + +#endif // FAST_DDS_GENERATED__XTYPESTESTSTYPE2CDRAUX_IPP + diff --git a/test/dds/xtypes/BaseCasesIDLs/XtypesTestsType2PubSubTypes.cxx b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsType2PubSubTypes.cxx new file mode 100644 index 00000000000..38ee039fee1 --- /dev/null +++ b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsType2PubSubTypes.cxx @@ -0,0 +1,217 @@ +// 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.hpp" + +#include +#include + +#include "XtypesTestsType2CdrAux.hpp" +#include "XtypesTestsType2TypeObjectSupport.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; + +Type2PubSubType::Type2PubSubType() +{ + 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 */ + 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 (key_buffer_ != nullptr) + { + free(key_buffer_); + } +} + +bool Type2PubSubType::serialize( + const void* const data, + SerializedPayload_t& payload, + DataRepresentationId_t data_representation) +{ + const 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; + 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 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); + + // 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 Type2PubSubType::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* Type2PubSubType::create_data() +{ + return reinterpret_cast(new Type2()); +} + +void Type2PubSubType::delete_data( + void* data) +{ + delete(reinterpret_cast(data)); +} + +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 (!is_compute_key_provided) + { + return false; + } + + const Type2* p_type = static_cast(data); + + // Object that manages the raw buffer. + 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::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); + eprosima::fastcdr::serialize_key(ser, *p_type); + if (force_md5 || Type2_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 Type2PubSubType::register_type_object_representation() +{ + register_Type2_type_identifier(type_identifiers_); +} + + +// Include auxiliary functions like for serializing/deserializing. +#include "XtypesTestsType2CdrAux.ipp" diff --git a/test/dds/xtypes/BaseCasesIDLs/XtypesTestsType2PubSubTypes.hpp b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsType2PubSubTypes.hpp new file mode 100644 index 00000000000..aa237c6169e --- /dev/null +++ b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsType2PubSubTypes.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 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_HPP +#define FAST_DDS_GENERATED__XTYPESTESTSTYPE2_PUBSUBTYPES_HPP + +#include +#include +#include +#include +#include + +#include "XtypesTestsType2.hpp" + + +#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 // FASTDDS_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( + 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 false; + } + +#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__XTYPESTESTSTYPE2_PUBSUBTYPES_HPP + diff --git a/test/dds/xtypes/BaseCasesIDLs/XtypesTestsType2TypeObjectSupport.cxx b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsType2TypeObjectSupport.cxx new file mode 100644 index 00000000000..d36febd7f2b --- /dev/null +++ b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsType2TypeObjectSupport.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 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; + +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Type2_type_identifier( + TypeIdentifierPair& type_ids_Type2) +{ + + 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::APPENDABLE, + false, false); + 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; + { + 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_Type2.reset(); + 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 == + 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."); + } + } +} + diff --git a/test/dds/xtypes/BaseCasesIDLs/XtypesTestsType2TypeObjectSupport.hpp b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsType2TypeObjectSupport.hpp new file mode 100644 index 00000000000..6031604482c --- /dev/null +++ b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsType2TypeObjectSupport.hpp @@ -0,0 +1,56 @@ +// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima). +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! + * @file 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 + +#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 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. + * + * @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::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); + + +#endif // DOXYGEN_SHOULD_SKIP_THIS_PUBLIC + +#endif // FAST_DDS_GENERATED__XTYPESTESTSTYPE2_TYPE_OBJECT_SUPPORT_HPP diff --git a/test/dds/xtypes/BaseCasesIDLs/XtypesTestsType3.hpp b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsType3.hpp new file mode 100644 index 00000000000..d2342c0561f --- /dev/null +++ b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsType3.hpp @@ -0,0 +1,190 @@ +// 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 +#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_content = x.m_content; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type3 that will be copied. + */ + eProsima_user_DllExport Type3( + Type3&& x) noexcept + { + m_content = std::move(x.m_content); + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type3 that will be copied. + */ + eProsima_user_DllExport Type3& operator =( + const Type3& x) + { + + m_content = x.m_content; + + 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_content = std::move(x.m_content); + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type3 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type3& x) const + { + return (m_content == x.m_content); + } + + /*! + * @brief Comparison operator. + * @param x Type3 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type3& x) const + { + return !(*this == x); + } + + /*! + * @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 content( + std::string&& _content) + { + m_content = std::move(_content); + } + + /*! + * @brief This function returns a constant reference to member content + * @return Constant reference to member content + */ + eProsima_user_DllExport const std::string& content() const + { + 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: + + std::string m_content; + +}; + +#endif // _FAST_DDS_GENERATED_XTYPESTESTSTYPE3_HPP_ + + diff --git a/test/dds/xtypes/BaseCasesIDLs/XtypesTestsType3.idl b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsType3.idl new file mode 100644 index 00000000000..f5fff5b37b8 --- /dev/null +++ b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsType3.idl @@ -0,0 +1,22 @@ +// 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; +}; \ No newline at end of file diff --git a/test/dds/xtypes/BaseCasesIDLs/XtypesTestsType3CdrAux.hpp b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsType3CdrAux.hpp new file mode 100644 index 00000000000..f3bd2c90fb6 --- /dev/null +++ b/test/dds/xtypes/BaseCasesIDLs/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 {264UL}; +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/BaseCasesIDLs/XtypesTestsType3CdrAux.ipp b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsType3CdrAux.ipp new file mode 100644 index 00000000000..11cc8c4e73b --- /dev/null +++ b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsType3CdrAux.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 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.content(), 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.content() +; + 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.content(); + 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); + scdr << data.content(); + +} + + + +} // namespace fastcdr +} // namespace eprosima + +#endif // FAST_DDS_GENERATED__XTYPESTESTSTYPE3CDRAUX_IPP + diff --git a/test/dds/xtypes/BaseCasesIDLs/XtypesTestsType3PubSubTypes.cxx b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsType3PubSubTypes.cxx new file mode 100644 index 00000000000..d4f28dbe82e --- /dev/null +++ b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsType3PubSubTypes.cxx @@ -0,0 +1,217 @@ +// 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.hpp" + +#include +#include + +#include "XtypesTestsType3CdrAux.hpp" +#include "XtypesTestsType3TypeObjectSupport.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; + +Type3PubSubType::Type3PubSubType() +{ + 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 */ + 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 (key_buffer_ != nullptr) + { + free(key_buffer_); + } +} + +bool Type3PubSubType::serialize( + const void* const data, + SerializedPayload_t& payload, + DataRepresentationId_t data_representation) +{ + const 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; + 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 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); + + // 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 Type3PubSubType::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* Type3PubSubType::create_data() +{ + return reinterpret_cast(new Type3()); +} + +void Type3PubSubType::delete_data( + void* data) +{ + delete(reinterpret_cast(data)); +} + +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 (!is_compute_key_provided) + { + return false; + } + + const Type3* p_type = static_cast(data); + + // Object that manages the raw buffer. + 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::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); + eprosima::fastcdr::serialize_key(ser, *p_type); + if (force_md5 || Type3_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 Type3PubSubType::register_type_object_representation() +{ + register_Type3_type_identifier(type_identifiers_); +} + + +// Include auxiliary functions like for serializing/deserializing. +#include "XtypesTestsType3CdrAux.ipp" diff --git a/test/dds/xtypes/BaseCasesIDLs/XtypesTestsType3PubSubTypes.hpp b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsType3PubSubTypes.hpp new file mode 100644 index 00000000000..3dcf702541c --- /dev/null +++ b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsType3PubSubTypes.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 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_HPP +#define FAST_DDS_GENERATED__XTYPESTESTSTYPE3_PUBSUBTYPES_HPP + +#include +#include +#include +#include +#include + +#include "XtypesTestsType3.hpp" + + +#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 // FASTDDS_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( + 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 false; + } + +#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__XTYPESTESTSTYPE3_PUBSUBTYPES_HPP + diff --git a/test/dds/xtypes/BaseCasesIDLs/XtypesTestsType3TypeObjectSupport.cxx b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsType3TypeObjectSupport.cxx new file mode 100644 index 00000000000..987042f8a82 --- /dev/null +++ b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsType3TypeObjectSupport.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 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; + +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Type3_type_identifier( + TypeIdentifierPair& type_ids_Type3) +{ + + 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::APPENDABLE, + false, false); + 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; + { + 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_Type3.reset(); + 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 == + 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."); + } + } +} + diff --git a/test/dds/xtypes/BaseCasesIDLs/XtypesTestsType3TypeObjectSupport.hpp b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsType3TypeObjectSupport.hpp new file mode 100644 index 00000000000..63f1ef9cb09 --- /dev/null +++ b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsType3TypeObjectSupport.hpp @@ -0,0 +1,56 @@ +// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima). +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! + * @file 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 + +#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 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. + * + * @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::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); + + +#endif // DOXYGEN_SHOULD_SKIP_THIS_PUBLIC + +#endif // FAST_DDS_GENERATED__XTYPESTESTSTYPE3_TYPE_OBJECT_SUPPORT_HPP diff --git a/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeBig.hpp b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeBig.hpp new file mode 100644 index 00000000000..5dd5dc78dfc --- /dev/null +++ b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeBig.hpp @@ -0,0 +1,17794 @@ +// 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 +#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 Type4 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type4 +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Type4() + { + } + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Type4() + { + } + + /*! + * @brief Copy constructor. + * @param x Reference to the object Type4 that will be copied. + */ + eProsima_user_DllExport Type4( + const Type4& x) + { + m_content = x.m_content; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type4 that will be copied. + */ + eProsima_user_DllExport Type4( + Type4&& x) noexcept + { + m_content = std::move(x.m_content); + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type4 that will be copied. + */ + eProsima_user_DllExport Type4& operator =( + const Type4& x) + { + + m_content = x.m_content; + + 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_content = std::move(x.m_content); + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type4 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type4& x) const + { + return (m_content == x.m_content); + } + + /*! + * @brief Comparison operator. + * @param x Type4 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type4& x) const + { + return !(*this == x); + } + + /*! + * @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 content( + std::string&& _content) + { + m_content = std::move(_content); + } + + /*! + * @brief This function returns a constant reference to member content + * @return Constant reference to member content + */ + eProsima_user_DllExport const std::string& content() const + { + 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: + + std::string m_content; + +}; +/*! + * @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_content = x.m_content; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type5 that will be copied. + */ + eProsima_user_DllExport Type5( + Type5&& x) noexcept + { + m_content = std::move(x.m_content); + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type5 that will be copied. + */ + eProsima_user_DllExport Type5& operator =( + const Type5& x) + { + + m_content = x.m_content; + + return *this; + } + + /*! + * @brief Move assignment. + * @param x Reference to the object Type5 that will be copied. + */ + eProsima_user_DllExport Type5& operator =( + Type5&& x) noexcept + { + + m_content = std::move(x.m_content); + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type5 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type5& x) const + { + return (m_content == x.m_content); + } + + /*! + * @brief Comparison operator. + * @param x Type5 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type5& x) const + { + return !(*this == x); + } + + /*! + * @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 content( + std::string&& _content) + { + m_content = std::move(_content); + } + + /*! + * @brief This function returns a constant reference to member content + * @return Constant reference to member content + */ + eProsima_user_DllExport const std::string& content() const + { + 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: + + std::string m_content; + +}; +/*! + * @brief This class represents the structure Type6 defined by the user in the IDL file. + * @ingroup XtypesTestsTypeBig + */ +class Type6 +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Type6() + { + } + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Type6() + { + } + + /*! + * @brief Copy constructor. + * @param x Reference to the object Type6 that will be copied. + */ + eProsima_user_DllExport Type6( + const Type6& x) + { + m_content = x.m_content; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type6 that will be copied. + */ + eProsima_user_DllExport Type6( + Type6&& x) noexcept + { + m_content = std::move(x.m_content); + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type6 that will be copied. + */ + eProsima_user_DllExport Type6& operator =( + const Type6& x) + { + + m_content = x.m_content; + + return *this; + } + + /*! + * @brief Move assignment. + * @param x Reference to the object Type6 that will be copied. + */ + eProsima_user_DllExport Type6& operator =( + Type6&& x) noexcept + { + + m_content = std::move(x.m_content); + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type6 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type6& x) const + { + return (m_content == x.m_content); + } + + /*! + * @brief Comparison operator. + * @param x Type6 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type6& x) const + { + return !(*this == x); + } + + /*! + * @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 content( + std::string&& _content) + { + m_content = std::move(_content); + } + + /*! + * @brief This function returns a constant reference to member content + * @return Constant reference to member content + */ + eProsima_user_DllExport const std::string& content() const + { + 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: + + std::string m_content; + +}; +/*! + * @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_content = x.m_content; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type7 that will be copied. + */ + eProsima_user_DllExport Type7( + Type7&& x) noexcept + { + m_content = std::move(x.m_content); + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type7 that will be copied. + */ + eProsima_user_DllExport Type7& operator =( + const Type7& x) + { + + m_content = x.m_content; + + 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_content = std::move(x.m_content); + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type7 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type7& x) const + { + return (m_content == x.m_content); + } + + /*! + * @brief Comparison operator. + * @param x Type7 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type7& x) const + { + return !(*this == x); + } + + /*! + * @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 content( + std::string&& _content) + { + m_content = std::move(_content); + } + + /*! + * @brief This function returns a constant reference to member content + * @return Constant reference to member content + */ + eProsima_user_DllExport const std::string& content() const + { + 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: + + std::string m_content; + +}; +/*! + * @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_content = x.m_content; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type8 that will be copied. + */ + eProsima_user_DllExport Type8( + Type8&& x) noexcept + { + m_content = std::move(x.m_content); + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type8 that will be copied. + */ + eProsima_user_DllExport Type8& operator =( + const Type8& x) + { + + m_content = x.m_content; + + 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_content = std::move(x.m_content); + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type8 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type8& x) const + { + return (m_content == x.m_content); + } + + /*! + * @brief Comparison operator. + * @param x Type8 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type8& x) const + { + return !(*this == x); + } + + /*! + * @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 content( + std::string&& _content) + { + m_content = std::move(_content); + } + + /*! + * @brief This function returns a constant reference to member content + * @return Constant reference to member content + */ + eProsima_user_DllExport const std::string& content() const + { + 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: + + std::string m_content; + +}; +/*! + * @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_content = x.m_content; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type9 that will be copied. + */ + eProsima_user_DllExport Type9( + Type9&& x) noexcept + { + m_content = std::move(x.m_content); + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type9 that will be copied. + */ + eProsima_user_DllExport Type9& operator =( + const Type9& x) + { + + m_content = x.m_content; + + 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_content = std::move(x.m_content); + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type9 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type9& x) const + { + return (m_content == x.m_content); + } + + /*! + * @brief Comparison operator. + * @param x Type9 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type9& x) const + { + return !(*this == x); + } + + /*! + * @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 content( + std::string&& _content) + { + m_content = std::move(_content); + } + + /*! + * @brief This function returns a constant reference to member content + * @return Constant reference to member content + */ + eProsima_user_DllExport const std::string& content() const + { + 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: + + std::string m_content; + +}; +/*! + * @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_content = x.m_content; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type10 that will be copied. + */ + eProsima_user_DllExport Type10( + Type10&& x) noexcept + { + m_content = std::move(x.m_content); + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type10 that will be copied. + */ + eProsima_user_DllExport Type10& operator =( + const Type10& x) + { + + m_content = x.m_content; + + 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_content = std::move(x.m_content); + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type10 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type10& x) const + { + return (m_content == x.m_content); + } + + /*! + * @brief Comparison operator. + * @param x Type10 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type10& x) const + { + return !(*this == x); + } + + /*! + * @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 content( + std::string&& _content) + { + m_content = std::move(_content); + } + + /*! + * @brief This function returns a constant reference to member content + * @return Constant reference to member content + */ + eProsima_user_DllExport const std::string& content() const + { + 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: + + std::string m_content; + +}; +/*! + * @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_content = x.m_content; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type11 that will be copied. + */ + eProsima_user_DllExport Type11( + Type11&& x) noexcept + { + m_content = std::move(x.m_content); + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type11 that will be copied. + */ + eProsima_user_DllExport Type11& operator =( + const Type11& x) + { + + m_content = x.m_content; + + 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_content = std::move(x.m_content); + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type11 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type11& x) const + { + return (m_content == x.m_content); + } + + /*! + * @brief Comparison operator. + * @param x Type11 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type11& x) const + { + return !(*this == x); + } + + /*! + * @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 content( + std::string&& _content) + { + m_content = std::move(_content); + } + + /*! + * @brief This function returns a constant reference to member content + * @return Constant reference to member content + */ + eProsima_user_DllExport const std::string& content() const + { + 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: + + std::string m_content; + +}; +/*! + * @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_content = x.m_content; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type12 that will be copied. + */ + eProsima_user_DllExport Type12( + Type12&& x) noexcept + { + m_content = std::move(x.m_content); + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type12 that will be copied. + */ + eProsima_user_DllExport Type12& operator =( + const Type12& x) + { + + m_content = x.m_content; + + 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_content = std::move(x.m_content); + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type12 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type12& x) const + { + return (m_content == x.m_content); + } + + /*! + * @brief Comparison operator. + * @param x Type12 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type12& x) const + { + return !(*this == x); + } + + /*! + * @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 content( + std::string&& _content) + { + m_content = std::move(_content); + } + + /*! + * @brief This function returns a constant reference to member content + * @return Constant reference to member content + */ + eProsima_user_DllExport const std::string& content() const + { + 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: + + std::string m_content; + +}; +/*! + * @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_content = x.m_content; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type13 that will be copied. + */ + eProsima_user_DllExport Type13( + Type13&& x) noexcept + { + m_content = std::move(x.m_content); + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type13 that will be copied. + */ + eProsima_user_DllExport Type13& operator =( + const Type13& x) + { + + m_content = x.m_content; + + 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_content = std::move(x.m_content); + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type13 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type13& x) const + { + return (m_content == x.m_content); + } + + /*! + * @brief Comparison operator. + * @param x Type13 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type13& x) const + { + return !(*this == x); + } + + /*! + * @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 content( + std::string&& _content) + { + m_content = std::move(_content); + } + + /*! + * @brief This function returns a constant reference to member content + * @return Constant reference to member content + */ + eProsima_user_DllExport const std::string& content() const + { + 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: + + std::string m_content; + +}; +/*! + * @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_content = x.m_content; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type14 that will be copied. + */ + eProsima_user_DllExport Type14( + Type14&& x) noexcept + { + m_content = std::move(x.m_content); + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type14 that will be copied. + */ + eProsima_user_DllExport Type14& operator =( + const Type14& x) + { + + m_content = x.m_content; + + 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_content = std::move(x.m_content); + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type14 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type14& x) const + { + return (m_content == x.m_content); + } + + /*! + * @brief Comparison operator. + * @param x Type14 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type14& x) const + { + return !(*this == x); + } + + /*! + * @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 content( + std::string&& _content) + { + m_content = std::move(_content); + } + + /*! + * @brief This function returns a constant reference to member content + * @return Constant reference to member content + */ + eProsima_user_DllExport const std::string& content() const + { + 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: + + std::string m_content; + +}; +/*! + * @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_content = x.m_content; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type15 that will be copied. + */ + eProsima_user_DllExport Type15( + Type15&& x) noexcept + { + m_content = std::move(x.m_content); + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type15 that will be copied. + */ + eProsima_user_DllExport Type15& operator =( + const Type15& x) + { + + m_content = x.m_content; + + 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_content = std::move(x.m_content); + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type15 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type15& x) const + { + return (m_content == x.m_content); + } + + /*! + * @brief Comparison operator. + * @param x Type15 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type15& x) const + { + return !(*this == x); + } + + /*! + * @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 content( + std::string&& _content) + { + m_content = std::move(_content); + } + + /*! + * @brief This function returns a constant reference to member content + * @return Constant reference to member content + */ + eProsima_user_DllExport const std::string& content() const + { + 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: + + std::string m_content; + +}; +/*! + * @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_content = x.m_content; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type16 that will be copied. + */ + eProsima_user_DllExport Type16( + Type16&& x) noexcept + { + m_content = std::move(x.m_content); + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type16 that will be copied. + */ + eProsima_user_DllExport Type16& operator =( + const Type16& x) + { + + m_content = x.m_content; + + 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_content = std::move(x.m_content); + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type16 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type16& x) const + { + return (m_content == x.m_content); + } + + /*! + * @brief Comparison operator. + * @param x Type16 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type16& x) const + { + return !(*this == x); + } + + /*! + * @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 content( + std::string&& _content) + { + m_content = std::move(_content); + } + + /*! + * @brief This function returns a constant reference to member content + * @return Constant reference to member content + */ + eProsima_user_DllExport const std::string& content() const + { + 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: + + std::string m_content; + +}; +/*! + * @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_content = x.m_content; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type17 that will be copied. + */ + eProsima_user_DllExport Type17( + Type17&& x) noexcept + { + m_content = std::move(x.m_content); + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type17 that will be copied. + */ + eProsima_user_DllExport Type17& operator =( + const Type17& x) + { + + m_content = x.m_content; + + 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_content = std::move(x.m_content); + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type17 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type17& x) const + { + return (m_content == x.m_content); + } + + /*! + * @brief Comparison operator. + * @param x Type17 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type17& x) const + { + return !(*this == x); + } + + /*! + * @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 content( + std::string&& _content) + { + m_content = std::move(_content); + } + + /*! + * @brief This function returns a constant reference to member content + * @return Constant reference to member content + */ + eProsima_user_DllExport const std::string& content() const + { + 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: + + std::string m_content; + +}; +/*! + * @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_content = x.m_content; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type18 that will be copied. + */ + eProsima_user_DllExport Type18( + Type18&& x) noexcept + { + m_content = std::move(x.m_content); + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type18 that will be copied. + */ + eProsima_user_DllExport Type18& operator =( + const Type18& x) + { + + m_content = x.m_content; + + 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_content = std::move(x.m_content); + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type18 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type18& x) const + { + return (m_content == x.m_content); + } + + /*! + * @brief Comparison operator. + * @param x Type18 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type18& x) const + { + return !(*this == x); + } + + /*! + * @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 content( + std::string&& _content) + { + m_content = std::move(_content); + } + + /*! + * @brief This function returns a constant reference to member content + * @return Constant reference to member content + */ + eProsima_user_DllExport const std::string& content() const + { + 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: + + std::string m_content; + +}; +/*! + * @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_content = x.m_content; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type19 that will be copied. + */ + eProsima_user_DllExport Type19( + Type19&& x) noexcept + { + m_content = std::move(x.m_content); + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type19 that will be copied. + */ + eProsima_user_DllExport Type19& operator =( + const Type19& x) + { + + m_content = x.m_content; + + 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_content = std::move(x.m_content); + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type19 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type19& x) const + { + return (m_content == x.m_content); + } + + /*! + * @brief Comparison operator. + * @param x Type19 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type19& x) const + { + return !(*this == x); + } + + /*! + * @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 content( + std::string&& _content) + { + m_content = std::move(_content); + } + + /*! + * @brief This function returns a constant reference to member content + * @return Constant reference to member content + */ + eProsima_user_DllExport const std::string& content() const + { + 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: + + std::string m_content; + +}; +/*! + * @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_content = x.m_content; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type20 that will be copied. + */ + eProsima_user_DllExport Type20( + Type20&& x) noexcept + { + m_content = std::move(x.m_content); + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type20 that will be copied. + */ + eProsima_user_DllExport Type20& operator =( + const Type20& x) + { + + m_content = x.m_content; + + 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_content = std::move(x.m_content); + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type20 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type20& x) const + { + return (m_content == x.m_content); + } + + /*! + * @brief Comparison operator. + * @param x Type20 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type20& x) const + { + return !(*this == x); + } + + /*! + * @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 content( + std::string&& _content) + { + m_content = std::move(_content); + } + + /*! + * @brief This function returns a constant reference to member content + * @return Constant reference to member content + */ + eProsima_user_DllExport const std::string& content() const + { + 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: + + std::string m_content; + +}; +/*! + * @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_content = x.m_content; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type21 that will be copied. + */ + eProsima_user_DllExport Type21( + Type21&& x) noexcept + { + m_content = std::move(x.m_content); + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type21 that will be copied. + */ + eProsima_user_DllExport Type21& operator =( + const Type21& x) + { + + m_content = x.m_content; + + 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_content = std::move(x.m_content); + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type21 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type21& x) const + { + return (m_content == x.m_content); + } + + /*! + * @brief Comparison operator. + * @param x Type21 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type21& x) const + { + return !(*this == x); + } + + /*! + * @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 content( + std::string&& _content) + { + m_content = std::move(_content); + } + + /*! + * @brief This function returns a constant reference to member content + * @return Constant reference to member content + */ + eProsima_user_DllExport const std::string& content() const + { + 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: + + std::string m_content; + +}; +/*! + * @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_content = x.m_content; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type22 that will be copied. + */ + eProsima_user_DllExport Type22( + Type22&& x) noexcept + { + m_content = std::move(x.m_content); + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type22 that will be copied. + */ + eProsima_user_DllExport Type22& operator =( + const Type22& x) + { + + m_content = x.m_content; + + 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_content = std::move(x.m_content); + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type22 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type22& x) const + { + return (m_content == x.m_content); + } + + /*! + * @brief Comparison operator. + * @param x Type22 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type22& x) const + { + return !(*this == x); + } + + /*! + * @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 content( + std::string&& _content) + { + m_content = std::move(_content); + } + + /*! + * @brief This function returns a constant reference to member content + * @return Constant reference to member content + */ + eProsima_user_DllExport const std::string& content() const + { + 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: + + std::string m_content; + +}; +/*! + * @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_content = x.m_content; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type23 that will be copied. + */ + eProsima_user_DllExport Type23( + Type23&& x) noexcept + { + m_content = std::move(x.m_content); + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type23 that will be copied. + */ + eProsima_user_DllExport Type23& operator =( + const Type23& x) + { + + m_content = x.m_content; + + 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_content = std::move(x.m_content); + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type23 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type23& x) const + { + return (m_content == x.m_content); + } + + /*! + * @brief Comparison operator. + * @param x Type23 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type23& x) const + { + return !(*this == x); + } + + /*! + * @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 content( + std::string&& _content) + { + m_content = std::move(_content); + } + + /*! + * @brief This function returns a constant reference to member content + * @return Constant reference to member content + */ + eProsima_user_DllExport const std::string& content() const + { + 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: + + std::string m_content; + +}; +/*! + * @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_content = x.m_content; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type24 that will be copied. + */ + eProsima_user_DllExport Type24( + Type24&& x) noexcept + { + m_content = std::move(x.m_content); + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type24 that will be copied. + */ + eProsima_user_DllExport Type24& operator =( + const Type24& x) + { + + m_content = x.m_content; + + 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_content = std::move(x.m_content); + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type24 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type24& x) const + { + return (m_content == x.m_content); + } + + /*! + * @brief Comparison operator. + * @param x Type24 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type24& x) const + { + return !(*this == x); + } + + /*! + * @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 content( + std::string&& _content) + { + m_content = std::move(_content); + } + + /*! + * @brief This function returns a constant reference to member content + * @return Constant reference to member content + */ + eProsima_user_DllExport const std::string& content() const + { + 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: + + std::string m_content; + +}; +/*! + * @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_content = x.m_content; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type25 that will be copied. + */ + eProsima_user_DllExport Type25( + Type25&& x) noexcept + { + m_content = std::move(x.m_content); + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type25 that will be copied. + */ + eProsima_user_DllExport Type25& operator =( + const Type25& x) + { + + m_content = x.m_content; + + 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_content = std::move(x.m_content); + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type25 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type25& x) const + { + return (m_content == x.m_content); + } + + /*! + * @brief Comparison operator. + * @param x Type25 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type25& x) const + { + return !(*this == x); + } + + /*! + * @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 content( + std::string&& _content) + { + m_content = std::move(_content); + } + + /*! + * @brief This function returns a constant reference to member content + * @return Constant reference to member content + */ + eProsima_user_DllExport const std::string& content() const + { + 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: + + std::string m_content; + +}; +/*! + * @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_content = x.m_content; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type26 that will be copied. + */ + eProsima_user_DllExport Type26( + Type26&& x) noexcept + { + m_content = std::move(x.m_content); + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type26 that will be copied. + */ + eProsima_user_DllExport Type26& operator =( + const Type26& x) + { + + m_content = x.m_content; + + 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_content = std::move(x.m_content); + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type26 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type26& x) const + { + return (m_content == x.m_content); + } + + /*! + * @brief Comparison operator. + * @param x Type26 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type26& x) const + { + return !(*this == x); + } + + /*! + * @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 content( + std::string&& _content) + { + m_content = std::move(_content); + } + + /*! + * @brief This function returns a constant reference to member content + * @return Constant reference to member content + */ + eProsima_user_DllExport const std::string& content() const + { + 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: + + std::string m_content; + +}; +/*! + * @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_content = x.m_content; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type27 that will be copied. + */ + eProsima_user_DllExport Type27( + Type27&& x) noexcept + { + m_content = std::move(x.m_content); + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type27 that will be copied. + */ + eProsima_user_DllExport Type27& operator =( + const Type27& x) + { + + m_content = x.m_content; + + 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_content = std::move(x.m_content); + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type27 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type27& x) const + { + return (m_content == x.m_content); + } + + /*! + * @brief Comparison operator. + * @param x Type27 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type27& x) const + { + return !(*this == x); + } + + /*! + * @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 content( + std::string&& _content) + { + m_content = std::move(_content); + } + + /*! + * @brief This function returns a constant reference to member content + * @return Constant reference to member content + */ + eProsima_user_DllExport const std::string& content() const + { + 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: + + std::string m_content; + +}; +/*! + * @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_content = x.m_content; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type28 that will be copied. + */ + eProsima_user_DllExport Type28( + Type28&& x) noexcept + { + m_content = std::move(x.m_content); + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type28 that will be copied. + */ + eProsima_user_DllExport Type28& operator =( + const Type28& x) + { + + m_content = x.m_content; + + 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_content = std::move(x.m_content); + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type28 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type28& x) const + { + return (m_content == x.m_content); + } + + /*! + * @brief Comparison operator. + * @param x Type28 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type28& x) const + { + return !(*this == x); + } + + /*! + * @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 content( + std::string&& _content) + { + m_content = std::move(_content); + } + + /*! + * @brief This function returns a constant reference to member content + * @return Constant reference to member content + */ + eProsima_user_DllExport const std::string& content() const + { + 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: + + std::string m_content; + +}; +/*! + * @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_content = x.m_content; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type29 that will be copied. + */ + eProsima_user_DllExport Type29( + Type29&& x) noexcept + { + m_content = std::move(x.m_content); + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type29 that will be copied. + */ + eProsima_user_DllExport Type29& operator =( + const Type29& x) + { + + m_content = x.m_content; + + 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_content = std::move(x.m_content); + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type29 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type29& x) const + { + return (m_content == x.m_content); + } + + /*! + * @brief Comparison operator. + * @param x Type29 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type29& x) const + { + return !(*this == x); + } + + /*! + * @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 content( + std::string&& _content) + { + m_content = std::move(_content); + } + + /*! + * @brief This function returns a constant reference to member content + * @return Constant reference to member content + */ + eProsima_user_DllExport const std::string& content() const + { + 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: + + std::string m_content; + +}; +/*! + * @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_content = x.m_content; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type30 that will be copied. + */ + eProsima_user_DllExport Type30( + Type30&& x) noexcept + { + m_content = std::move(x.m_content); + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type30 that will be copied. + */ + eProsima_user_DllExport Type30& operator =( + const Type30& x) + { + + m_content = x.m_content; + + 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_content = std::move(x.m_content); + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type30 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type30& x) const + { + return (m_content == x.m_content); + } + + /*! + * @brief Comparison operator. + * @param x Type30 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type30& x) const + { + return !(*this == x); + } + + /*! + * @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 content( + std::string&& _content) + { + m_content = std::move(_content); + } + + /*! + * @brief This function returns a constant reference to member content + * @return Constant reference to member content + */ + eProsima_user_DllExport const std::string& content() const + { + 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: + + std::string m_content; + +}; +/*! + * @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_content = x.m_content; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type31 that will be copied. + */ + eProsima_user_DllExport Type31( + Type31&& x) noexcept + { + m_content = std::move(x.m_content); + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type31 that will be copied. + */ + eProsima_user_DllExport Type31& operator =( + const Type31& x) + { + + m_content = x.m_content; + + 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_content = std::move(x.m_content); + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type31 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type31& x) const + { + return (m_content == x.m_content); + } + + /*! + * @brief Comparison operator. + * @param x Type31 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type31& x) const + { + return !(*this == x); + } + + /*! + * @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 content( + std::string&& _content) + { + m_content = std::move(_content); + } + + /*! + * @brief This function returns a constant reference to member content + * @return Constant reference to member content + */ + eProsima_user_DllExport const std::string& content() const + { + 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: + + std::string m_content; + +}; +/*! + * @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_content = x.m_content; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type32 that will be copied. + */ + eProsima_user_DllExport Type32( + Type32&& x) noexcept + { + m_content = std::move(x.m_content); + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type32 that will be copied. + */ + eProsima_user_DllExport Type32& operator =( + const Type32& x) + { + + m_content = x.m_content; + + 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_content = std::move(x.m_content); + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type32 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type32& x) const + { + return (m_content == x.m_content); + } + + /*! + * @brief Comparison operator. + * @param x Type32 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type32& x) const + { + return !(*this == x); + } + + /*! + * @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 content( + std::string&& _content) + { + m_content = std::move(_content); + } + + /*! + * @brief This function returns a constant reference to member content + * @return Constant reference to member content + */ + eProsima_user_DllExport const std::string& content() const + { + 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: + + std::string m_content; + +}; +/*! + * @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_content = x.m_content; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type33 that will be copied. + */ + eProsima_user_DllExport Type33( + Type33&& x) noexcept + { + m_content = std::move(x.m_content); + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type33 that will be copied. + */ + eProsima_user_DllExport Type33& operator =( + const Type33& x) + { + + m_content = x.m_content; + + 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_content = std::move(x.m_content); + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type33 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type33& x) const + { + return (m_content == x.m_content); + } + + /*! + * @brief Comparison operator. + * @param x Type33 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type33& x) const + { + return !(*this == x); + } + + /*! + * @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 content( + std::string&& _content) + { + m_content = std::move(_content); + } + + /*! + * @brief This function returns a constant reference to member content + * @return Constant reference to member content + */ + eProsima_user_DllExport const std::string& content() const + { + 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: + + std::string m_content; + +}; +/*! + * @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_content = x.m_content; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type34 that will be copied. + */ + eProsima_user_DllExport Type34( + Type34&& x) noexcept + { + m_content = std::move(x.m_content); + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type34 that will be copied. + */ + eProsima_user_DllExport Type34& operator =( + const Type34& x) + { + + m_content = x.m_content; + + 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_content = std::move(x.m_content); + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type34 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type34& x) const + { + return (m_content == x.m_content); + } + + /*! + * @brief Comparison operator. + * @param x Type34 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type34& x) const + { + return !(*this == x); + } + + /*! + * @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 content( + std::string&& _content) + { + m_content = std::move(_content); + } + + /*! + * @brief This function returns a constant reference to member content + * @return Constant reference to member content + */ + eProsima_user_DllExport const std::string& content() const + { + 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: + + std::string m_content; + +}; +/*! + * @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_content = x.m_content; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type35 that will be copied. + */ + eProsima_user_DllExport Type35( + Type35&& x) noexcept + { + m_content = std::move(x.m_content); + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type35 that will be copied. + */ + eProsima_user_DllExport Type35& operator =( + const Type35& x) + { + + m_content = x.m_content; + + 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_content = std::move(x.m_content); + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type35 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type35& x) const + { + return (m_content == x.m_content); + } + + /*! + * @brief Comparison operator. + * @param x Type35 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type35& x) const + { + return !(*this == x); + } + + /*! + * @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 content( + std::string&& _content) + { + m_content = std::move(_content); + } + + /*! + * @brief This function returns a constant reference to member content + * @return Constant reference to member content + */ + eProsima_user_DllExport const std::string& content() const + { + 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: + + std::string m_content; + +}; +/*! + * @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_content = x.m_content; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type36 that will be copied. + */ + eProsima_user_DllExport Type36( + Type36&& x) noexcept + { + m_content = std::move(x.m_content); + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type36 that will be copied. + */ + eProsima_user_DllExport Type36& operator =( + const Type36& x) + { + + m_content = x.m_content; + + 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_content = std::move(x.m_content); + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type36 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type36& x) const + { + return (m_content == x.m_content); + } + + /*! + * @brief Comparison operator. + * @param x Type36 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type36& x) const + { + return !(*this == x); + } + + /*! + * @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 content( + std::string&& _content) + { + m_content = std::move(_content); + } + + /*! + * @brief This function returns a constant reference to member content + * @return Constant reference to member content + */ + eProsima_user_DllExport const std::string& content() const + { + 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: + + std::string m_content; + +}; +/*! + * @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_content = x.m_content; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type37 that will be copied. + */ + eProsima_user_DllExport Type37( + Type37&& x) noexcept + { + m_content = std::move(x.m_content); + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type37 that will be copied. + */ + eProsima_user_DllExport Type37& operator =( + const Type37& x) + { + + m_content = x.m_content; + + 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_content = std::move(x.m_content); + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type37 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type37& x) const + { + return (m_content == x.m_content); + } + + /*! + * @brief Comparison operator. + * @param x Type37 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type37& x) const + { + return !(*this == x); + } + + /*! + * @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 content( + std::string&& _content) + { + m_content = std::move(_content); + } + + /*! + * @brief This function returns a constant reference to member content + * @return Constant reference to member content + */ + eProsima_user_DllExport const std::string& content() const + { + 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: + + std::string m_content; + +}; +/*! + * @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_content = x.m_content; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type38 that will be copied. + */ + eProsima_user_DllExport Type38( + Type38&& x) noexcept + { + m_content = std::move(x.m_content); + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type38 that will be copied. + */ + eProsima_user_DllExport Type38& operator =( + const Type38& x) + { + + m_content = x.m_content; + + 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_content = std::move(x.m_content); + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type38 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type38& x) const + { + return (m_content == x.m_content); + } + + /*! + * @brief Comparison operator. + * @param x Type38 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type38& x) const + { + return !(*this == x); + } + + /*! + * @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 content( + std::string&& _content) + { + m_content = std::move(_content); + } + + /*! + * @brief This function returns a constant reference to member content + * @return Constant reference to member content + */ + eProsima_user_DllExport const std::string& content() const + { + 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: + + std::string m_content; + +}; +/*! + * @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_content = x.m_content; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type39 that will be copied. + */ + eProsima_user_DllExport Type39( + Type39&& x) noexcept + { + m_content = std::move(x.m_content); + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type39 that will be copied. + */ + eProsima_user_DllExport Type39& operator =( + const Type39& x) + { + + m_content = x.m_content; + + 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_content = std::move(x.m_content); + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type39 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type39& x) const + { + return (m_content == x.m_content); + } + + /*! + * @brief Comparison operator. + * @param x Type39 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type39& x) const + { + return !(*this == x); + } + + /*! + * @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 content( + std::string&& _content) + { + m_content = std::move(_content); + } + + /*! + * @brief This function returns a constant reference to member content + * @return Constant reference to member content + */ + eProsima_user_DllExport const std::string& content() const + { + 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: + + std::string m_content; + +}; +/*! + * @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_content = x.m_content; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type40 that will be copied. + */ + eProsima_user_DllExport Type40( + Type40&& x) noexcept + { + m_content = std::move(x.m_content); + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type40 that will be copied. + */ + eProsima_user_DllExport Type40& operator =( + const Type40& x) + { + + m_content = x.m_content; + + 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_content = std::move(x.m_content); + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type40 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type40& x) const + { + return (m_content == x.m_content); + } + + /*! + * @brief Comparison operator. + * @param x Type40 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type40& x) const + { + return !(*this == x); + } + + /*! + * @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 content( + std::string&& _content) + { + m_content = std::move(_content); + } + + /*! + * @brief This function returns a constant reference to member content + * @return Constant reference to member content + */ + eProsima_user_DllExport const std::string& content() const + { + 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: + + std::string m_content; + +}; +/*! + * @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_content = x.m_content; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type41 that will be copied. + */ + eProsima_user_DllExport Type41( + Type41&& x) noexcept + { + m_content = std::move(x.m_content); + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type41 that will be copied. + */ + eProsima_user_DllExport Type41& operator =( + const Type41& x) + { + + m_content = x.m_content; + + 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_content = std::move(x.m_content); + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type41 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type41& x) const + { + return (m_content == x.m_content); + } + + /*! + * @brief Comparison operator. + * @param x Type41 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type41& x) const + { + return !(*this == x); + } + + /*! + * @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 content( + std::string&& _content) + { + m_content = std::move(_content); + } + + /*! + * @brief This function returns a constant reference to member content + * @return Constant reference to member content + */ + eProsima_user_DllExport const std::string& content() const + { + 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: + + std::string m_content; + +}; +/*! + * @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_content = x.m_content; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type42 that will be copied. + */ + eProsima_user_DllExport Type42( + Type42&& x) noexcept + { + m_content = std::move(x.m_content); + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type42 that will be copied. + */ + eProsima_user_DllExport Type42& operator =( + const Type42& x) + { + + m_content = x.m_content; + + 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_content = std::move(x.m_content); + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type42 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type42& x) const + { + return (m_content == x.m_content); + } + + /*! + * @brief Comparison operator. + * @param x Type42 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type42& x) const + { + return !(*this == x); + } + + /*! + * @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 content( + std::string&& _content) + { + m_content = std::move(_content); + } + + /*! + * @brief This function returns a constant reference to member content + * @return Constant reference to member content + */ + eProsima_user_DllExport const std::string& content() const + { + 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: + + std::string m_content; + +}; +/*! + * @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_content = x.m_content; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type43 that will be copied. + */ + eProsima_user_DllExport Type43( + Type43&& x) noexcept + { + m_content = std::move(x.m_content); + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type43 that will be copied. + */ + eProsima_user_DllExport Type43& operator =( + const Type43& x) + { + + m_content = x.m_content; + + 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_content = std::move(x.m_content); + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type43 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type43& x) const + { + return (m_content == x.m_content); + } + + /*! + * @brief Comparison operator. + * @param x Type43 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type43& x) const + { + return !(*this == x); + } + + /*! + * @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 content( + std::string&& _content) + { + m_content = std::move(_content); + } + + /*! + * @brief This function returns a constant reference to member content + * @return Constant reference to member content + */ + eProsima_user_DllExport const std::string& content() const + { + 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: + + std::string m_content; + +}; +/*! + * @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_content = x.m_content; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type44 that will be copied. + */ + eProsima_user_DllExport Type44( + Type44&& x) noexcept + { + m_content = std::move(x.m_content); + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type44 that will be copied. + */ + eProsima_user_DllExport Type44& operator =( + const Type44& x) + { + + m_content = x.m_content; + + 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_content = std::move(x.m_content); + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type44 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type44& x) const + { + return (m_content == x.m_content); + } + + /*! + * @brief Comparison operator. + * @param x Type44 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type44& x) const + { + return !(*this == x); + } + + /*! + * @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 content( + std::string&& _content) + { + m_content = std::move(_content); + } + + /*! + * @brief This function returns a constant reference to member content + * @return Constant reference to member content + */ + eProsima_user_DllExport const std::string& content() const + { + 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: + + std::string m_content; + +}; +/*! + * @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_content = x.m_content; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type45 that will be copied. + */ + eProsima_user_DllExport Type45( + Type45&& x) noexcept + { + m_content = std::move(x.m_content); + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type45 that will be copied. + */ + eProsima_user_DllExport Type45& operator =( + const Type45& x) + { + + m_content = x.m_content; + + 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_content = std::move(x.m_content); + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type45 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type45& x) const + { + return (m_content == x.m_content); + } + + /*! + * @brief Comparison operator. + * @param x Type45 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type45& x) const + { + return !(*this == x); + } + + /*! + * @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 content( + std::string&& _content) + { + m_content = std::move(_content); + } + + /*! + * @brief This function returns a constant reference to member content + * @return Constant reference to member content + */ + eProsima_user_DllExport const std::string& content() const + { + 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: + + std::string m_content; + +}; +/*! + * @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_content = x.m_content; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type46 that will be copied. + */ + eProsima_user_DllExport Type46( + Type46&& x) noexcept + { + m_content = std::move(x.m_content); + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type46 that will be copied. + */ + eProsima_user_DllExport Type46& operator =( + const Type46& x) + { + + m_content = x.m_content; + + 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_content = std::move(x.m_content); + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type46 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type46& x) const + { + return (m_content == x.m_content); + } + + /*! + * @brief Comparison operator. + * @param x Type46 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type46& x) const + { + return !(*this == x); + } + + /*! + * @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 content( + std::string&& _content) + { + m_content = std::move(_content); + } + + /*! + * @brief This function returns a constant reference to member content + * @return Constant reference to member content + */ + eProsima_user_DllExport const std::string& content() const + { + 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: + + std::string m_content; + +}; +/*! + * @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_content = x.m_content; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type47 that will be copied. + */ + eProsima_user_DllExport Type47( + Type47&& x) noexcept + { + m_content = std::move(x.m_content); + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type47 that will be copied. + */ + eProsima_user_DllExport Type47& operator =( + const Type47& x) + { + + m_content = x.m_content; + + 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_content = std::move(x.m_content); + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type47 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type47& x) const + { + return (m_content == x.m_content); + } + + /*! + * @brief Comparison operator. + * @param x Type47 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type47& x) const + { + return !(*this == x); + } + + /*! + * @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 content( + std::string&& _content) + { + m_content = std::move(_content); + } + + /*! + * @brief This function returns a constant reference to member content + * @return Constant reference to member content + */ + eProsima_user_DllExport const std::string& content() const + { + 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: + + std::string m_content; + +}; +/*! + * @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_content = x.m_content; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type48 that will be copied. + */ + eProsima_user_DllExport Type48( + Type48&& x) noexcept + { + m_content = std::move(x.m_content); + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type48 that will be copied. + */ + eProsima_user_DllExport Type48& operator =( + const Type48& x) + { + + m_content = x.m_content; + + 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_content = std::move(x.m_content); + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type48 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type48& x) const + { + return (m_content == x.m_content); + } + + /*! + * @brief Comparison operator. + * @param x Type48 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type48& x) const + { + return !(*this == x); + } + + /*! + * @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 content( + std::string&& _content) + { + m_content = std::move(_content); + } + + /*! + * @brief This function returns a constant reference to member content + * @return Constant reference to member content + */ + eProsima_user_DllExport const std::string& content() const + { + 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: + + std::string m_content; + +}; +/*! + * @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_content = x.m_content; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type49 that will be copied. + */ + eProsima_user_DllExport Type49( + Type49&& x) noexcept + { + m_content = std::move(x.m_content); + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type49 that will be copied. + */ + eProsima_user_DllExport Type49& operator =( + const Type49& x) + { + + m_content = x.m_content; + + 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_content = std::move(x.m_content); + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type49 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type49& x) const + { + return (m_content == x.m_content); + } + + /*! + * @brief Comparison operator. + * @param x Type49 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type49& x) const + { + return !(*this == x); + } + + /*! + * @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 content( + std::string&& _content) + { + m_content = std::move(_content); + } + + /*! + * @brief This function returns a constant reference to member content + * @return Constant reference to member content + */ + eProsima_user_DllExport const std::string& content() const + { + 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: + + std::string m_content; + +}; +/*! + * @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_content = x.m_content; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type50 that will be copied. + */ + eProsima_user_DllExport Type50( + Type50&& x) noexcept + { + m_content = std::move(x.m_content); + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type50 that will be copied. + */ + eProsima_user_DllExport Type50& operator =( + const Type50& x) + { + + m_content = x.m_content; + + 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_content = std::move(x.m_content); + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type50 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type50& x) const + { + return (m_content == x.m_content); + } + + /*! + * @brief Comparison operator. + * @param x Type50 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type50& x) const + { + return !(*this == x); + } + + /*! + * @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 content( + std::string&& _content) + { + m_content = std::move(_content); + } + + /*! + * @brief This function returns a constant reference to member content + * @return Constant reference to member content + */ + eProsima_user_DllExport const std::string& content() const + { + 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: + + std::string m_content; + +}; +/*! + * @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_content = x.m_content; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type51 that will be copied. + */ + eProsima_user_DllExport Type51( + Type51&& x) noexcept + { + m_content = std::move(x.m_content); + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type51 that will be copied. + */ + eProsima_user_DllExport Type51& operator =( + const Type51& x) + { + + m_content = x.m_content; + + 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_content = std::move(x.m_content); + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type51 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type51& x) const + { + return (m_content == x.m_content); + } + + /*! + * @brief Comparison operator. + * @param x Type51 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type51& x) const + { + return !(*this == x); + } + + /*! + * @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 content( + std::string&& _content) + { + m_content = std::move(_content); + } + + /*! + * @brief This function returns a constant reference to member content + * @return Constant reference to member content + */ + eProsima_user_DllExport const std::string& content() const + { + 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: + + std::string m_content; + +}; +/*! + * @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_content = x.m_content; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type52 that will be copied. + */ + eProsima_user_DllExport Type52( + Type52&& x) noexcept + { + m_content = std::move(x.m_content); + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type52 that will be copied. + */ + eProsima_user_DllExport Type52& operator =( + const Type52& x) + { + + m_content = x.m_content; + + 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_content = std::move(x.m_content); + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type52 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type52& x) const + { + return (m_content == x.m_content); + } + + /*! + * @brief Comparison operator. + * @param x Type52 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type52& x) const + { + return !(*this == x); + } + + /*! + * @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 content( + std::string&& _content) + { + m_content = std::move(_content); + } + + /*! + * @brief This function returns a constant reference to member content + * @return Constant reference to member content + */ + eProsima_user_DllExport const std::string& content() const + { + 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: + + std::string m_content; + +}; +/*! + * @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_content = x.m_content; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type53 that will be copied. + */ + eProsima_user_DllExport Type53( + Type53&& x) noexcept + { + m_content = std::move(x.m_content); + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type53 that will be copied. + */ + eProsima_user_DllExport Type53& operator =( + const Type53& x) + { + + m_content = x.m_content; + + 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_content = std::move(x.m_content); + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type53 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type53& x) const + { + return (m_content == x.m_content); + } + + /*! + * @brief Comparison operator. + * @param x Type53 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type53& x) const + { + return !(*this == x); + } + + /*! + * @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 content( + std::string&& _content) + { + m_content = std::move(_content); + } + + /*! + * @brief This function returns a constant reference to member content + * @return Constant reference to member content + */ + eProsima_user_DllExport const std::string& content() const + { + 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: + + std::string m_content; + +}; +/*! + * @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_content = x.m_content; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type54 that will be copied. + */ + eProsima_user_DllExport Type54( + Type54&& x) noexcept + { + m_content = std::move(x.m_content); + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type54 that will be copied. + */ + eProsima_user_DllExport Type54& operator =( + const Type54& x) + { + + m_content = x.m_content; + + 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_content = std::move(x.m_content); + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type54 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type54& x) const + { + return (m_content == x.m_content); + } + + /*! + * @brief Comparison operator. + * @param x Type54 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type54& x) const + { + return !(*this == x); + } + + /*! + * @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 content( + std::string&& _content) + { + m_content = std::move(_content); + } + + /*! + * @brief This function returns a constant reference to member content + * @return Constant reference to member content + */ + eProsima_user_DllExport const std::string& content() const + { + 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: + + std::string m_content; + +}; +/*! + * @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_content = x.m_content; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type55 that will be copied. + */ + eProsima_user_DllExport Type55( + Type55&& x) noexcept + { + m_content = std::move(x.m_content); + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type55 that will be copied. + */ + eProsima_user_DllExport Type55& operator =( + const Type55& x) + { + + m_content = x.m_content; + + 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_content = std::move(x.m_content); + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type55 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type55& x) const + { + return (m_content == x.m_content); + } + + /*! + * @brief Comparison operator. + * @param x Type55 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type55& x) const + { + return !(*this == x); + } + + /*! + * @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 content( + std::string&& _content) + { + m_content = std::move(_content); + } + + /*! + * @brief This function returns a constant reference to member content + * @return Constant reference to member content + */ + eProsima_user_DllExport const std::string& content() const + { + 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: + + std::string m_content; + +}; +/*! + * @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_content = x.m_content; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type56 that will be copied. + */ + eProsima_user_DllExport Type56( + Type56&& x) noexcept + { + m_content = std::move(x.m_content); + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type56 that will be copied. + */ + eProsima_user_DllExport Type56& operator =( + const Type56& x) + { + + m_content = x.m_content; + + 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_content = std::move(x.m_content); + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type56 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type56& x) const + { + return (m_content == x.m_content); + } + + /*! + * @brief Comparison operator. + * @param x Type56 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type56& x) const + { + return !(*this == x); + } + + /*! + * @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 content( + std::string&& _content) + { + m_content = std::move(_content); + } + + /*! + * @brief This function returns a constant reference to member content + * @return Constant reference to member content + */ + eProsima_user_DllExport const std::string& content() const + { + 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: + + std::string m_content; + +}; +/*! + * @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_content = x.m_content; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type57 that will be copied. + */ + eProsima_user_DllExport Type57( + Type57&& x) noexcept + { + m_content = std::move(x.m_content); + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type57 that will be copied. + */ + eProsima_user_DllExport Type57& operator =( + const Type57& x) + { + + m_content = x.m_content; + + 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_content = std::move(x.m_content); + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type57 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type57& x) const + { + return (m_content == x.m_content); + } + + /*! + * @brief Comparison operator. + * @param x Type57 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type57& x) const + { + return !(*this == x); + } + + /*! + * @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 content( + std::string&& _content) + { + m_content = std::move(_content); + } + + /*! + * @brief This function returns a constant reference to member content + * @return Constant reference to member content + */ + eProsima_user_DllExport const std::string& content() const + { + 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: + + std::string m_content; + +}; +/*! + * @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_content = x.m_content; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type58 that will be copied. + */ + eProsima_user_DllExport Type58( + Type58&& x) noexcept + { + m_content = std::move(x.m_content); + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type58 that will be copied. + */ + eProsima_user_DllExport Type58& operator =( + const Type58& x) + { + + m_content = x.m_content; + + 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_content = std::move(x.m_content); + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type58 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type58& x) const + { + return (m_content == x.m_content); + } + + /*! + * @brief Comparison operator. + * @param x Type58 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type58& x) const + { + return !(*this == x); + } + + /*! + * @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 content( + std::string&& _content) + { + m_content = std::move(_content); + } + + /*! + * @brief This function returns a constant reference to member content + * @return Constant reference to member content + */ + eProsima_user_DllExport const std::string& content() const + { + 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: + + std::string m_content; + +}; +/*! + * @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_content = x.m_content; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type59 that will be copied. + */ + eProsima_user_DllExport Type59( + Type59&& x) noexcept + { + m_content = std::move(x.m_content); + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type59 that will be copied. + */ + eProsima_user_DllExport Type59& operator =( + const Type59& x) + { + + m_content = x.m_content; + + 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_content = std::move(x.m_content); + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type59 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type59& x) const + { + return (m_content == x.m_content); + } + + /*! + * @brief Comparison operator. + * @param x Type59 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type59& x) const + { + return !(*this == x); + } + + /*! + * @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 content( + std::string&& _content) + { + m_content = std::move(_content); + } + + /*! + * @brief This function returns a constant reference to member content + * @return Constant reference to member content + */ + eProsima_user_DllExport const std::string& content() const + { + 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: + + std::string m_content; + +}; +/*! + * @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_content = x.m_content; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type60 that will be copied. + */ + eProsima_user_DllExport Type60( + Type60&& x) noexcept + { + m_content = std::move(x.m_content); + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type60 that will be copied. + */ + eProsima_user_DllExport Type60& operator =( + const Type60& x) + { + + m_content = x.m_content; + + 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_content = std::move(x.m_content); + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type60 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type60& x) const + { + return (m_content == x.m_content); + } + + /*! + * @brief Comparison operator. + * @param x Type60 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type60& x) const + { + return !(*this == x); + } + + /*! + * @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 content( + std::string&& _content) + { + m_content = std::move(_content); + } + + /*! + * @brief This function returns a constant reference to member content + * @return Constant reference to member content + */ + eProsima_user_DllExport const std::string& content() const + { + 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: + + std::string m_content; + +}; +/*! + * @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_content = x.m_content; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type61 that will be copied. + */ + eProsima_user_DllExport Type61( + Type61&& x) noexcept + { + m_content = std::move(x.m_content); + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type61 that will be copied. + */ + eProsima_user_DllExport Type61& operator =( + const Type61& x) + { + + m_content = x.m_content; + + 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_content = std::move(x.m_content); + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type61 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type61& x) const + { + return (m_content == x.m_content); + } + + /*! + * @brief Comparison operator. + * @param x Type61 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type61& x) const + { + return !(*this == x); + } + + /*! + * @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 content( + std::string&& _content) + { + m_content = std::move(_content); + } + + /*! + * @brief This function returns a constant reference to member content + * @return Constant reference to member content + */ + eProsima_user_DllExport const std::string& content() const + { + 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: + + std::string m_content; + +}; +/*! + * @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_content = x.m_content; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type62 that will be copied. + */ + eProsima_user_DllExport Type62( + Type62&& x) noexcept + { + m_content = std::move(x.m_content); + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type62 that will be copied. + */ + eProsima_user_DllExport Type62& operator =( + const Type62& x) + { + + m_content = x.m_content; + + 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_content = std::move(x.m_content); + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type62 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type62& x) const + { + return (m_content == x.m_content); + } + + /*! + * @brief Comparison operator. + * @param x Type62 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type62& x) const + { + return !(*this == x); + } + + /*! + * @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 content( + std::string&& _content) + { + m_content = std::move(_content); + } + + /*! + * @brief This function returns a constant reference to member content + * @return Constant reference to member content + */ + eProsima_user_DllExport const std::string& content() const + { + 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: + + std::string m_content; + +}; +/*! + * @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_content = x.m_content; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type63 that will be copied. + */ + eProsima_user_DllExport Type63( + Type63&& x) noexcept + { + m_content = std::move(x.m_content); + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type63 that will be copied. + */ + eProsima_user_DllExport Type63& operator =( + const Type63& x) + { + + m_content = x.m_content; + + 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_content = std::move(x.m_content); + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type63 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type63& x) const + { + return (m_content == x.m_content); + } + + /*! + * @brief Comparison operator. + * @param x Type63 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type63& x) const + { + return !(*this == x); + } + + /*! + * @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 content( + std::string&& _content) + { + m_content = std::move(_content); + } + + /*! + * @brief This function returns a constant reference to member content + * @return Constant reference to member content + */ + eProsima_user_DllExport const std::string& content() const + { + 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: + + std::string m_content; + +}; +/*! + * @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_content = x.m_content; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type64 that will be copied. + */ + eProsima_user_DllExport Type64( + Type64&& x) noexcept + { + m_content = std::move(x.m_content); + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type64 that will be copied. + */ + eProsima_user_DllExport Type64& operator =( + const Type64& x) + { + + m_content = x.m_content; + + 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_content = std::move(x.m_content); + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type64 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type64& x) const + { + return (m_content == x.m_content); + } + + /*! + * @brief Comparison operator. + * @param x Type64 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type64& x) const + { + return !(*this == x); + } + + /*! + * @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 content( + std::string&& _content) + { + m_content = std::move(_content); + } + + /*! + * @brief This function returns a constant reference to member content + * @return Constant reference to member content + */ + eProsima_user_DllExport const std::string& content() const + { + 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: + + std::string m_content; + +}; +/*! + * @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_content = x.m_content; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type65 that will be copied. + */ + eProsima_user_DllExport Type65( + Type65&& x) noexcept + { + m_content = std::move(x.m_content); + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type65 that will be copied. + */ + eProsima_user_DllExport Type65& operator =( + const Type65& x) + { + + m_content = x.m_content; + + 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_content = std::move(x.m_content); + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type65 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type65& x) const + { + return (m_content == x.m_content); + } + + /*! + * @brief Comparison operator. + * @param x Type65 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type65& x) const + { + return !(*this == x); + } + + /*! + * @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 content( + std::string&& _content) + { + m_content = std::move(_content); + } + + /*! + * @brief This function returns a constant reference to member content + * @return Constant reference to member content + */ + eProsima_user_DllExport const std::string& content() const + { + 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: + + std::string m_content; + +}; +/*! + * @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_content = x.m_content; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type66 that will be copied. + */ + eProsima_user_DllExport Type66( + Type66&& x) noexcept + { + m_content = std::move(x.m_content); + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type66 that will be copied. + */ + eProsima_user_DllExport Type66& operator =( + const Type66& x) + { + + m_content = x.m_content; + + 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_content = std::move(x.m_content); + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type66 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type66& x) const + { + return (m_content == x.m_content); + } + + /*! + * @brief Comparison operator. + * @param x Type66 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type66& x) const + { + return !(*this == x); + } + + /*! + * @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 content( + std::string&& _content) + { + m_content = std::move(_content); + } + + /*! + * @brief This function returns a constant reference to member content + * @return Constant reference to member content + */ + eProsima_user_DllExport const std::string& content() const + { + 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: + + std::string m_content; + +}; +/*! + * @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_content = x.m_content; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type67 that will be copied. + */ + eProsima_user_DllExport Type67( + Type67&& x) noexcept + { + m_content = std::move(x.m_content); + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type67 that will be copied. + */ + eProsima_user_DllExport Type67& operator =( + const Type67& x) + { + + m_content = x.m_content; + + 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_content = std::move(x.m_content); + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type67 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type67& x) const + { + return (m_content == x.m_content); + } + + /*! + * @brief Comparison operator. + * @param x Type67 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type67& x) const + { + return !(*this == x); + } + + /*! + * @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 content( + std::string&& _content) + { + m_content = std::move(_content); + } + + /*! + * @brief This function returns a constant reference to member content + * @return Constant reference to member content + */ + eProsima_user_DllExport const std::string& content() const + { + 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: + + std::string m_content; + +}; +/*! + * @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_content = x.m_content; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type68 that will be copied. + */ + eProsima_user_DllExport Type68( + Type68&& x) noexcept + { + m_content = std::move(x.m_content); + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type68 that will be copied. + */ + eProsima_user_DllExport Type68& operator =( + const Type68& x) + { + + m_content = x.m_content; + + 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_content = std::move(x.m_content); + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type68 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type68& x) const + { + return (m_content == x.m_content); + } + + /*! + * @brief Comparison operator. + * @param x Type68 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type68& x) const + { + return !(*this == x); + } + + /*! + * @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 content( + std::string&& _content) + { + m_content = std::move(_content); + } + + /*! + * @brief This function returns a constant reference to member content + * @return Constant reference to member content + */ + eProsima_user_DllExport const std::string& content() const + { + 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: + + std::string m_content; + +}; +/*! + * @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_content = x.m_content; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type69 that will be copied. + */ + eProsima_user_DllExport Type69( + Type69&& x) noexcept + { + m_content = std::move(x.m_content); + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type69 that will be copied. + */ + eProsima_user_DllExport Type69& operator =( + const Type69& x) + { + + m_content = x.m_content; + + 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_content = std::move(x.m_content); + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type69 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type69& x) const + { + return (m_content == x.m_content); + } + + /*! + * @brief Comparison operator. + * @param x Type69 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type69& x) const + { + return !(*this == x); + } + + /*! + * @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 content( + std::string&& _content) + { + m_content = std::move(_content); + } + + /*! + * @brief This function returns a constant reference to member content + * @return Constant reference to member content + */ + eProsima_user_DllExport const std::string& content() const + { + 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: + + std::string m_content; + +}; +/*! + * @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_content = x.m_content; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type70 that will be copied. + */ + eProsima_user_DllExport Type70( + Type70&& x) noexcept + { + m_content = std::move(x.m_content); + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type70 that will be copied. + */ + eProsima_user_DllExport Type70& operator =( + const Type70& x) + { + + m_content = x.m_content; + + 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_content = std::move(x.m_content); + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type70 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type70& x) const + { + return (m_content == x.m_content); + } + + /*! + * @brief Comparison operator. + * @param x Type70 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type70& x) const + { + return !(*this == x); + } + + /*! + * @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 content( + std::string&& _content) + { + m_content = std::move(_content); + } + + /*! + * @brief This function returns a constant reference to member content + * @return Constant reference to member content + */ + eProsima_user_DllExport const std::string& content() const + { + 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: + + std::string m_content; + +}; +/*! + * @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_content = x.m_content; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type71 that will be copied. + */ + eProsima_user_DllExport Type71( + Type71&& x) noexcept + { + m_content = std::move(x.m_content); + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type71 that will be copied. + */ + eProsima_user_DllExport Type71& operator =( + const Type71& x) + { + + m_content = x.m_content; + + 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_content = std::move(x.m_content); + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type71 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type71& x) const + { + return (m_content == x.m_content); + } + + /*! + * @brief Comparison operator. + * @param x Type71 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type71& x) const + { + return !(*this == x); + } + + /*! + * @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 content( + std::string&& _content) + { + m_content = std::move(_content); + } + + /*! + * @brief This function returns a constant reference to member content + * @return Constant reference to member content + */ + eProsima_user_DllExport const std::string& content() const + { + 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: + + std::string m_content; + +}; +/*! + * @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_content = x.m_content; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type72 that will be copied. + */ + eProsima_user_DllExport Type72( + Type72&& x) noexcept + { + m_content = std::move(x.m_content); + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type72 that will be copied. + */ + eProsima_user_DllExport Type72& operator =( + const Type72& x) + { + + m_content = x.m_content; + + 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_content = std::move(x.m_content); + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type72 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type72& x) const + { + return (m_content == x.m_content); + } + + /*! + * @brief Comparison operator. + * @param x Type72 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type72& x) const + { + return !(*this == x); + } + + /*! + * @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 content( + std::string&& _content) + { + m_content = std::move(_content); + } + + /*! + * @brief This function returns a constant reference to member content + * @return Constant reference to member content + */ + eProsima_user_DllExport const std::string& content() const + { + 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: + + std::string m_content; + +}; +/*! + * @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_content = x.m_content; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type73 that will be copied. + */ + eProsima_user_DllExport Type73( + Type73&& x) noexcept + { + m_content = std::move(x.m_content); + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type73 that will be copied. + */ + eProsima_user_DllExport Type73& operator =( + const Type73& x) + { + + m_content = x.m_content; + + 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_content = std::move(x.m_content); + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type73 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type73& x) const + { + return (m_content == x.m_content); + } + + /*! + * @brief Comparison operator. + * @param x Type73 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type73& x) const + { + return !(*this == x); + } + + /*! + * @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 content( + std::string&& _content) + { + m_content = std::move(_content); + } + + /*! + * @brief This function returns a constant reference to member content + * @return Constant reference to member content + */ + eProsima_user_DllExport const std::string& content() const + { + 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: + + std::string m_content; + +}; +/*! + * @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_content = x.m_content; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type74 that will be copied. + */ + eProsima_user_DllExport Type74( + Type74&& x) noexcept + { + m_content = std::move(x.m_content); + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type74 that will be copied. + */ + eProsima_user_DllExport Type74& operator =( + const Type74& x) + { + + m_content = x.m_content; + + 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_content = std::move(x.m_content); + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type74 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type74& x) const + { + return (m_content == x.m_content); + } + + /*! + * @brief Comparison operator. + * @param x Type74 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type74& x) const + { + return !(*this == x); + } + + /*! + * @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 content( + std::string&& _content) + { + m_content = std::move(_content); + } + + /*! + * @brief This function returns a constant reference to member content + * @return Constant reference to member content + */ + eProsima_user_DllExport const std::string& content() const + { + 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: + + std::string m_content; + +}; +/*! + * @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_content = x.m_content; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type75 that will be copied. + */ + eProsima_user_DllExport Type75( + Type75&& x) noexcept + { + m_content = std::move(x.m_content); + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type75 that will be copied. + */ + eProsima_user_DllExport Type75& operator =( + const Type75& x) + { + + m_content = x.m_content; + + 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_content = std::move(x.m_content); + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type75 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type75& x) const + { + return (m_content == x.m_content); + } + + /*! + * @brief Comparison operator. + * @param x Type75 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type75& x) const + { + return !(*this == x); + } + + /*! + * @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 content( + std::string&& _content) + { + m_content = std::move(_content); + } + + /*! + * @brief This function returns a constant reference to member content + * @return Constant reference to member content + */ + eProsima_user_DllExport const std::string& content() const + { + 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: + + std::string m_content; + +}; +/*! + * @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_content = x.m_content; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type76 that will be copied. + */ + eProsima_user_DllExport Type76( + Type76&& x) noexcept + { + m_content = std::move(x.m_content); + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type76 that will be copied. + */ + eProsima_user_DllExport Type76& operator =( + const Type76& x) + { + + m_content = x.m_content; + + 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_content = std::move(x.m_content); + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type76 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type76& x) const + { + return (m_content == x.m_content); + } + + /*! + * @brief Comparison operator. + * @param x Type76 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type76& x) const + { + return !(*this == x); + } + + /*! + * @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 content( + std::string&& _content) + { + m_content = std::move(_content); + } + + /*! + * @brief This function returns a constant reference to member content + * @return Constant reference to member content + */ + eProsima_user_DllExport const std::string& content() const + { + 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: + + std::string m_content; + +}; +/*! + * @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_content = x.m_content; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type77 that will be copied. + */ + eProsima_user_DllExport Type77( + Type77&& x) noexcept + { + m_content = std::move(x.m_content); + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type77 that will be copied. + */ + eProsima_user_DllExport Type77& operator =( + const Type77& x) + { + + m_content = x.m_content; + + 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_content = std::move(x.m_content); + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type77 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type77& x) const + { + return (m_content == x.m_content); + } + + /*! + * @brief Comparison operator. + * @param x Type77 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type77& x) const + { + return !(*this == x); + } + + /*! + * @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 content( + std::string&& _content) + { + m_content = std::move(_content); + } + + /*! + * @brief This function returns a constant reference to member content + * @return Constant reference to member content + */ + eProsima_user_DllExport const std::string& content() const + { + 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: + + std::string m_content; + +}; +/*! + * @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_content = x.m_content; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type78 that will be copied. + */ + eProsima_user_DllExport Type78( + Type78&& x) noexcept + { + m_content = std::move(x.m_content); + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type78 that will be copied. + */ + eProsima_user_DllExport Type78& operator =( + const Type78& x) + { + + m_content = x.m_content; + + 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_content = std::move(x.m_content); + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type78 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type78& x) const + { + return (m_content == x.m_content); + } + + /*! + * @brief Comparison operator. + * @param x Type78 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type78& x) const + { + return !(*this == x); + } + + /*! + * @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 content( + std::string&& _content) + { + m_content = std::move(_content); + } + + /*! + * @brief This function returns a constant reference to member content + * @return Constant reference to member content + */ + eProsima_user_DllExport const std::string& content() const + { + 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: + + std::string m_content; + +}; +/*! + * @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_content = x.m_content; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type79 that will be copied. + */ + eProsima_user_DllExport Type79( + Type79&& x) noexcept + { + m_content = std::move(x.m_content); + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type79 that will be copied. + */ + eProsima_user_DllExport Type79& operator =( + const Type79& x) + { + + m_content = x.m_content; + + 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_content = std::move(x.m_content); + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type79 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type79& x) const + { + return (m_content == x.m_content); + } + + /*! + * @brief Comparison operator. + * @param x Type79 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type79& x) const + { + return !(*this == x); + } + + /*! + * @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 content( + std::string&& _content) + { + m_content = std::move(_content); + } + + /*! + * @brief This function returns a constant reference to member content + * @return Constant reference to member content + */ + eProsima_user_DllExport const std::string& content() const + { + 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: + + std::string m_content; + +}; +/*! + * @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_content = x.m_content; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type80 that will be copied. + */ + eProsima_user_DllExport Type80( + Type80&& x) noexcept + { + m_content = std::move(x.m_content); + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type80 that will be copied. + */ + eProsima_user_DllExport Type80& operator =( + const Type80& x) + { + + m_content = x.m_content; + + 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_content = std::move(x.m_content); + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type80 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type80& x) const + { + return (m_content == x.m_content); + } + + /*! + * @brief Comparison operator. + * @param x Type80 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type80& x) const + { + return !(*this == x); + } + + /*! + * @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 content( + std::string&& _content) + { + m_content = std::move(_content); + } + + /*! + * @brief This function returns a constant reference to member content + * @return Constant reference to member content + */ + eProsima_user_DllExport const std::string& content() const + { + 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: + + std::string m_content; + +}; +/*! + * @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_content = x.m_content; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type81 that will be copied. + */ + eProsima_user_DllExport Type81( + Type81&& x) noexcept + { + m_content = std::move(x.m_content); + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type81 that will be copied. + */ + eProsima_user_DllExport Type81& operator =( + const Type81& x) + { + + m_content = x.m_content; + + 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_content = std::move(x.m_content); + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type81 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type81& x) const + { + return (m_content == x.m_content); + } + + /*! + * @brief Comparison operator. + * @param x Type81 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type81& x) const + { + return !(*this == x); + } + + /*! + * @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 content( + std::string&& _content) + { + m_content = std::move(_content); + } + + /*! + * @brief This function returns a constant reference to member content + * @return Constant reference to member content + */ + eProsima_user_DllExport const std::string& content() const + { + 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: + + std::string m_content; + +}; +/*! + * @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_content = x.m_content; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type82 that will be copied. + */ + eProsima_user_DllExport Type82( + Type82&& x) noexcept + { + m_content = std::move(x.m_content); + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type82 that will be copied. + */ + eProsima_user_DllExport Type82& operator =( + const Type82& x) + { + + m_content = x.m_content; + + 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_content = std::move(x.m_content); + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type82 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type82& x) const + { + return (m_content == x.m_content); + } + + /*! + * @brief Comparison operator. + * @param x Type82 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type82& x) const + { + return !(*this == x); + } + + /*! + * @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 content( + std::string&& _content) + { + m_content = std::move(_content); + } + + /*! + * @brief This function returns a constant reference to member content + * @return Constant reference to member content + */ + eProsima_user_DllExport const std::string& content() const + { + 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: + + std::string m_content; + +}; +/*! + * @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_content = x.m_content; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type83 that will be copied. + */ + eProsima_user_DllExport Type83( + Type83&& x) noexcept + { + m_content = std::move(x.m_content); + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type83 that will be copied. + */ + eProsima_user_DllExport Type83& operator =( + const Type83& x) + { + + m_content = x.m_content; + + 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_content = std::move(x.m_content); + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type83 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type83& x) const + { + return (m_content == x.m_content); + } + + /*! + * @brief Comparison operator. + * @param x Type83 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type83& x) const + { + return !(*this == x); + } + + /*! + * @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 content( + std::string&& _content) + { + m_content = std::move(_content); + } + + /*! + * @brief This function returns a constant reference to member content + * @return Constant reference to member content + */ + eProsima_user_DllExport const std::string& content() const + { + 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: + + std::string m_content; + +}; +/*! + * @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_content = x.m_content; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type84 that will be copied. + */ + eProsima_user_DllExport Type84( + Type84&& x) noexcept + { + m_content = std::move(x.m_content); + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type84 that will be copied. + */ + eProsima_user_DllExport Type84& operator =( + const Type84& x) + { + + m_content = x.m_content; + + 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_content = std::move(x.m_content); + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type84 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type84& x) const + { + return (m_content == x.m_content); + } + + /*! + * @brief Comparison operator. + * @param x Type84 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type84& x) const + { + return !(*this == x); + } + + /*! + * @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 content( + std::string&& _content) + { + m_content = std::move(_content); + } + + /*! + * @brief This function returns a constant reference to member content + * @return Constant reference to member content + */ + eProsima_user_DllExport const std::string& content() const + { + 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: + + std::string m_content; + +}; +/*! + * @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_content = x.m_content; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type85 that will be copied. + */ + eProsima_user_DllExport Type85( + Type85&& x) noexcept + { + m_content = std::move(x.m_content); + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type85 that will be copied. + */ + eProsima_user_DllExport Type85& operator =( + const Type85& x) + { + + m_content = x.m_content; + + 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_content = std::move(x.m_content); + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type85 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type85& x) const + { + return (m_content == x.m_content); + } + + /*! + * @brief Comparison operator. + * @param x Type85 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type85& x) const + { + return !(*this == x); + } + + /*! + * @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 content( + std::string&& _content) + { + m_content = std::move(_content); + } + + /*! + * @brief This function returns a constant reference to member content + * @return Constant reference to member content + */ + eProsima_user_DllExport const std::string& content() const + { + 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: + + std::string m_content; + +}; +/*! + * @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_content = x.m_content; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type86 that will be copied. + */ + eProsima_user_DllExport Type86( + Type86&& x) noexcept + { + m_content = std::move(x.m_content); + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type86 that will be copied. + */ + eProsima_user_DllExport Type86& operator =( + const Type86& x) + { + + m_content = x.m_content; + + 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_content = std::move(x.m_content); + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type86 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type86& x) const + { + return (m_content == x.m_content); + } + + /*! + * @brief Comparison operator. + * @param x Type86 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type86& x) const + { + return !(*this == x); + } + + /*! + * @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 content( + std::string&& _content) + { + m_content = std::move(_content); + } + + /*! + * @brief This function returns a constant reference to member content + * @return Constant reference to member content + */ + eProsima_user_DllExport const std::string& content() const + { + 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: + + std::string m_content; + +}; +/*! + * @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_content = x.m_content; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type87 that will be copied. + */ + eProsima_user_DllExport Type87( + Type87&& x) noexcept + { + m_content = std::move(x.m_content); + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type87 that will be copied. + */ + eProsima_user_DllExport Type87& operator =( + const Type87& x) + { + + m_content = x.m_content; + + 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_content = std::move(x.m_content); + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type87 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type87& x) const + { + return (m_content == x.m_content); + } + + /*! + * @brief Comparison operator. + * @param x Type87 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type87& x) const + { + return !(*this == x); + } + + /*! + * @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 content( + std::string&& _content) + { + m_content = std::move(_content); + } + + /*! + * @brief This function returns a constant reference to member content + * @return Constant reference to member content + */ + eProsima_user_DllExport const std::string& content() const + { + 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: + + std::string m_content; + +}; +/*! + * @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_content = x.m_content; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type88 that will be copied. + */ + eProsima_user_DllExport Type88( + Type88&& x) noexcept + { + m_content = std::move(x.m_content); + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type88 that will be copied. + */ + eProsima_user_DllExport Type88& operator =( + const Type88& x) + { + + m_content = x.m_content; + + 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_content = std::move(x.m_content); + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type88 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type88& x) const + { + return (m_content == x.m_content); + } + + /*! + * @brief Comparison operator. + * @param x Type88 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type88& x) const + { + return !(*this == x); + } + + /*! + * @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 content( + std::string&& _content) + { + m_content = std::move(_content); + } + + /*! + * @brief This function returns a constant reference to member content + * @return Constant reference to member content + */ + eProsima_user_DllExport const std::string& content() const + { + 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: + + std::string m_content; + +}; +/*! + * @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_content = x.m_content; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type89 that will be copied. + */ + eProsima_user_DllExport Type89( + Type89&& x) noexcept + { + m_content = std::move(x.m_content); + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type89 that will be copied. + */ + eProsima_user_DllExport Type89& operator =( + const Type89& x) + { + + m_content = x.m_content; + + 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_content = std::move(x.m_content); + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type89 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type89& x) const + { + return (m_content == x.m_content); + } + + /*! + * @brief Comparison operator. + * @param x Type89 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type89& x) const + { + return !(*this == x); + } + + /*! + * @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 content( + std::string&& _content) + { + m_content = std::move(_content); + } + + /*! + * @brief This function returns a constant reference to member content + * @return Constant reference to member content + */ + eProsima_user_DllExport const std::string& content() const + { + 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: + + std::string m_content; + +}; +/*! + * @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_content = x.m_content; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type90 that will be copied. + */ + eProsima_user_DllExport Type90( + Type90&& x) noexcept + { + m_content = std::move(x.m_content); + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type90 that will be copied. + */ + eProsima_user_DllExport Type90& operator =( + const Type90& x) + { + + m_content = x.m_content; + + 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_content = std::move(x.m_content); + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type90 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type90& x) const + { + return (m_content == x.m_content); + } + + /*! + * @brief Comparison operator. + * @param x Type90 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type90& x) const + { + return !(*this == x); + } + + /*! + * @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 content( + std::string&& _content) + { + m_content = std::move(_content); + } + + /*! + * @brief This function returns a constant reference to member content + * @return Constant reference to member content + */ + eProsima_user_DllExport const std::string& content() const + { + 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: + + std::string m_content; + +}; +/*! + * @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_content = x.m_content; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type91 that will be copied. + */ + eProsima_user_DllExport Type91( + Type91&& x) noexcept + { + m_content = std::move(x.m_content); + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type91 that will be copied. + */ + eProsima_user_DllExport Type91& operator =( + const Type91& x) + { + + m_content = x.m_content; + + 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_content = std::move(x.m_content); + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type91 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type91& x) const + { + return (m_content == x.m_content); + } + + /*! + * @brief Comparison operator. + * @param x Type91 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type91& x) const + { + return !(*this == x); + } + + /*! + * @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 content( + std::string&& _content) + { + m_content = std::move(_content); + } + + /*! + * @brief This function returns a constant reference to member content + * @return Constant reference to member content + */ + eProsima_user_DllExport const std::string& content() const + { + 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: + + std::string m_content; + +}; +/*! + * @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_content = x.m_content; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type92 that will be copied. + */ + eProsima_user_DllExport Type92( + Type92&& x) noexcept + { + m_content = std::move(x.m_content); + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type92 that will be copied. + */ + eProsima_user_DllExport Type92& operator =( + const Type92& x) + { + + m_content = x.m_content; + + 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_content = std::move(x.m_content); + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type92 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type92& x) const + { + return (m_content == x.m_content); + } + + /*! + * @brief Comparison operator. + * @param x Type92 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type92& x) const + { + return !(*this == x); + } + + /*! + * @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 content( + std::string&& _content) + { + m_content = std::move(_content); + } + + /*! + * @brief This function returns a constant reference to member content + * @return Constant reference to member content + */ + eProsima_user_DllExport const std::string& content() const + { + 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: + + std::string m_content; + +}; +/*! + * @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_content = x.m_content; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type93 that will be copied. + */ + eProsima_user_DllExport Type93( + Type93&& x) noexcept + { + m_content = std::move(x.m_content); + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type93 that will be copied. + */ + eProsima_user_DllExport Type93& operator =( + const Type93& x) + { + + m_content = x.m_content; + + 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_content = std::move(x.m_content); + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type93 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type93& x) const + { + return (m_content == x.m_content); + } + + /*! + * @brief Comparison operator. + * @param x Type93 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type93& x) const + { + return !(*this == x); + } + + /*! + * @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 content( + std::string&& _content) + { + m_content = std::move(_content); + } + + /*! + * @brief This function returns a constant reference to member content + * @return Constant reference to member content + */ + eProsima_user_DllExport const std::string& content() const + { + 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: + + std::string m_content; + +}; +/*! + * @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_content = x.m_content; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type94 that will be copied. + */ + eProsima_user_DllExport Type94( + Type94&& x) noexcept + { + m_content = std::move(x.m_content); + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type94 that will be copied. + */ + eProsima_user_DllExport Type94& operator =( + const Type94& x) + { + + m_content = x.m_content; + + 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_content = std::move(x.m_content); + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type94 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type94& x) const + { + return (m_content == x.m_content); + } + + /*! + * @brief Comparison operator. + * @param x Type94 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type94& x) const + { + return !(*this == x); + } + + /*! + * @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 content( + std::string&& _content) + { + m_content = std::move(_content); + } + + /*! + * @brief This function returns a constant reference to member content + * @return Constant reference to member content + */ + eProsima_user_DllExport const std::string& content() const + { + 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: + + std::string m_content; + +}; +/*! + * @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_content = x.m_content; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type95 that will be copied. + */ + eProsima_user_DllExport Type95( + Type95&& x) noexcept + { + m_content = std::move(x.m_content); + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type95 that will be copied. + */ + eProsima_user_DllExport Type95& operator =( + const Type95& x) + { + + m_content = x.m_content; + + 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_content = std::move(x.m_content); + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type95 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type95& x) const + { + return (m_content == x.m_content); + } + + /*! + * @brief Comparison operator. + * @param x Type95 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type95& x) const + { + return !(*this == x); + } + + /*! + * @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 content( + std::string&& _content) + { + m_content = std::move(_content); + } + + /*! + * @brief This function returns a constant reference to member content + * @return Constant reference to member content + */ + eProsima_user_DllExport const std::string& content() const + { + 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: + + std::string m_content; + +}; +/*! + * @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_content = x.m_content; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type96 that will be copied. + */ + eProsima_user_DllExport Type96( + Type96&& x) noexcept + { + m_content = std::move(x.m_content); + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type96 that will be copied. + */ + eProsima_user_DllExport Type96& operator =( + const Type96& x) + { + + m_content = x.m_content; + + 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_content = std::move(x.m_content); + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type96 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type96& x) const + { + return (m_content == x.m_content); + } + + /*! + * @brief Comparison operator. + * @param x Type96 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type96& x) const + { + return !(*this == x); + } + + /*! + * @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 content( + std::string&& _content) + { + m_content = std::move(_content); + } + + /*! + * @brief This function returns a constant reference to member content + * @return Constant reference to member content + */ + eProsima_user_DllExport const std::string& content() const + { + 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: + + std::string m_content; + +}; +/*! + * @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_content = x.m_content; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type97 that will be copied. + */ + eProsima_user_DllExport Type97( + Type97&& x) noexcept + { + m_content = std::move(x.m_content); + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type97 that will be copied. + */ + eProsima_user_DllExport Type97& operator =( + const Type97& x) + { + + m_content = x.m_content; + + 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_content = std::move(x.m_content); + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type97 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type97& x) const + { + return (m_content == x.m_content); + } + + /*! + * @brief Comparison operator. + * @param x Type97 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type97& x) const + { + return !(*this == x); + } + + /*! + * @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 content( + std::string&& _content) + { + m_content = std::move(_content); + } + + /*! + * @brief This function returns a constant reference to member content + * @return Constant reference to member content + */ + eProsima_user_DllExport const std::string& content() const + { + 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: + + std::string m_content; + +}; +/*! + * @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_content = x.m_content; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type98 that will be copied. + */ + eProsima_user_DllExport Type98( + Type98&& x) noexcept + { + m_content = std::move(x.m_content); + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type98 that will be copied. + */ + eProsima_user_DllExport Type98& operator =( + const Type98& x) + { + + m_content = x.m_content; + + 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_content = std::move(x.m_content); + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type98 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type98& x) const + { + return (m_content == x.m_content); + } + + /*! + * @brief Comparison operator. + * @param x Type98 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type98& x) const + { + return !(*this == x); + } + + /*! + * @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 content( + std::string&& _content) + { + m_content = std::move(_content); + } + + /*! + * @brief This function returns a constant reference to member content + * @return Constant reference to member content + */ + eProsima_user_DllExport const std::string& content() const + { + 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: + + std::string m_content; + +}; +/*! + * @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_content = x.m_content; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type99 that will be copied. + */ + eProsima_user_DllExport Type99( + Type99&& x) noexcept + { + m_content = std::move(x.m_content); + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type99 that will be copied. + */ + eProsima_user_DllExport Type99& operator =( + const Type99& x) + { + + m_content = x.m_content; + + 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_content = std::move(x.m_content); + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type99 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type99& x) const + { + return (m_content == x.m_content); + } + + /*! + * @brief Comparison operator. + * @param x Type99 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type99& x) const + { + return !(*this == x); + } + + /*! + * @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 content( + std::string&& _content) + { + m_content = std::move(_content); + } + + /*! + * @brief This function returns a constant reference to member content + * @return Constant reference to member content + */ + eProsima_user_DllExport const std::string& content() const + { + 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: + + std::string m_content; + +}; +/*! + * @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_content = x.m_content; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object Type100 that will be copied. + */ + eProsima_user_DllExport Type100( + Type100&& x) noexcept + { + m_content = std::move(x.m_content); + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object Type100 that will be copied. + */ + eProsima_user_DllExport Type100& operator =( + const Type100& x) + { + + m_content = x.m_content; + + 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_content = std::move(x.m_content); + return *this; + } + + /*! + * @brief Comparison operator. + * @param x Type100 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Type100& x) const + { + return (m_content == x.m_content); + } + + /*! + * @brief Comparison operator. + * @param x Type100 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Type100& x) const + { + return !(*this == x); + } + + /*! + * @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 content( + std::string&& _content) + { + m_content = std::move(_content); + } + + /*! + * @brief This function returns a constant reference to member content + * @return Constant reference to member content + */ + eProsima_user_DllExport const std::string& content() const + { + 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: + + std::string m_content; + +}; +/*! + * @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_content = x.m_content; + + 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_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); + 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_content = x.m_content; + + 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_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); + 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_content == x.m_content && + 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 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 content( + std::string&& _content) + { + m_content = std::move(_content); + } + + /*! + * @brief This function returns a constant reference to member content + * @return Constant reference to member content + */ + eProsima_user_DllExport const std::string& content() const + { + 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; + } + + + /*! + * @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: + + std::string m_content; + 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; + +}; + +#endif // _FAST_DDS_GENERATED_XTYPESTESTSTYPEBIG_HPP_ + + diff --git a/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeBig.idl b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeBig.idl new file mode 100644 index 00000000000..59d76e1be54 --- /dev/null +++ b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeBig.idl @@ -0,0 +1,516 @@ +// 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" + +struct Type4 +{ + string content; +}; +struct Type5 +{ + string content; +}; +struct Type6 +{ + string content; +}; +struct Type7 +{ + string content; +}; +struct Type8 +{ + string content; +}; +struct Type9 +{ + string content; +}; +struct Type10 +{ + string content; +}; +struct Type11 +{ + string content; +}; +struct Type12 +{ + string content; +}; +struct Type13 +{ + string content; +}; +struct Type14 +{ + string content; +}; +struct Type15 +{ + string content; +}; +struct Type16 +{ + string content; +}; +struct Type17 +{ + string content; +}; +struct Type18 +{ + string content; +}; +struct Type19 +{ + string content; +}; +struct Type20 +{ + string content; +}; +struct Type21 +{ + string content; +}; +struct Type22 +{ + string content; +}; +struct Type23 +{ + string content; +}; +struct Type24 +{ + string content; +}; +struct Type25 +{ + string content; +}; +struct Type26 +{ + string content; +}; +struct Type27 +{ + string content; +}; +struct Type28 +{ + string content; +}; +struct Type29 +{ + string content; +}; +struct Type30 +{ + string content; +}; +struct Type31 +{ + string content; +}; +struct Type32 +{ + string content; +}; +struct Type33 +{ + string content; +}; +struct Type34 +{ + string content; +}; +struct Type35 +{ + string content; +}; +struct Type36 +{ + string content; +}; +struct Type37 +{ + string content; +}; +struct Type38 +{ + string content; +}; +struct Type39 +{ + string content; +}; +struct Type40 +{ + string content; +}; +struct Type41 +{ + string content; +}; +struct Type42 +{ + string content; +}; +struct Type43 +{ + string content; +}; +struct Type44 +{ + string content; +}; +struct Type45 +{ + string content; +}; +struct Type46 +{ + string content; +}; +struct Type47 +{ + string content; +}; +struct Type48 +{ + string content; +}; +struct Type49 +{ + string content; +}; +struct Type50 +{ + string content; +}; +struct Type51 +{ + string content; +}; +struct Type52 +{ + string content; +}; +struct Type53 +{ + string content; +}; +struct Type54 +{ + string content; +}; +struct Type55 +{ + string content; +}; +struct Type56 +{ + string content; +}; +struct Type57 +{ + string content; +}; +struct Type58 +{ + string content; +}; +struct Type59 +{ + string content; +}; +struct Type60 +{ + string content; +}; +struct Type61 +{ + string content; +}; +struct Type62 +{ + string content; +}; +struct Type63 +{ + string content; +}; +struct Type64 +{ + string content; +}; +struct Type65 +{ + string content; +}; +struct Type66 +{ + string content; +}; +struct Type67 +{ + string content; +}; +struct Type68 +{ + string content; +}; +struct Type69 +{ + string content; +}; +struct Type70 +{ + string content; +}; +struct Type71 +{ + string content; +}; +struct Type72 +{ + string content; +}; +struct Type73 +{ + string content; +}; +struct Type74 +{ + string content; +}; +struct Type75 +{ + string content; +}; +struct Type76 +{ + string content; +}; +struct Type77 +{ + string content; +}; +struct Type78 +{ + string content; +}; +struct Type79 +{ + string content; +}; +struct Type80 +{ + string content; +}; +struct Type81 +{ + string content; +}; +struct Type82 +{ + string content; +}; +struct Type83 +{ + string content; +}; +struct Type84 +{ + string content; +}; +struct Type85 +{ + string content; +}; +struct Type86 +{ + string content; +}; +struct Type87 +{ + string content; +}; +struct Type88 +{ + string content; +}; +struct Type89 +{ + string content; +}; +struct Type90 +{ + string content; +}; +struct Type91 +{ + string content; +}; +struct Type92 +{ + string content; +}; +struct Type93 +{ + string content; +}; +struct Type94 +{ + string content; +}; +struct Type95 +{ + string content; +}; +struct Type96 +{ + string content; +}; +struct Type97 +{ + string content; +}; +struct Type98 +{ + string content; +}; +struct Type99 +{ + string content; +}; +struct Type100 +{ + string content; +}; + + +struct TypeBig +{ + string content; + 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/BaseCasesIDLs/XtypesTestsTypeBigCdrAux.hpp b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeBigCdrAux.hpp new file mode 100644 index 00000000000..53ff200c10a --- /dev/null +++ b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeBigCdrAux.hpp @@ -0,0 +1,728 @@ +// 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 Type30_max_cdr_typesize {264UL}; +constexpr uint32_t Type30_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type35_max_cdr_typesize {264UL}; +constexpr uint32_t Type35_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type36_max_cdr_typesize {264UL}; +constexpr uint32_t Type36_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type100_max_cdr_typesize {264UL}; +constexpr uint32_t Type100_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type37_max_cdr_typesize {264UL}; +constexpr uint32_t Type37_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type38_max_cdr_typesize {264UL}; +constexpr uint32_t Type38_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type31_max_cdr_typesize {264UL}; +constexpr uint32_t Type31_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type32_max_cdr_typesize {264UL}; +constexpr uint32_t Type32_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type33_max_cdr_typesize {264UL}; +constexpr uint32_t Type33_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type34_max_cdr_typesize {264UL}; +constexpr uint32_t Type34_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type28_max_cdr_typesize {264UL}; +constexpr uint32_t Type28_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type29_max_cdr_typesize {264UL}; +constexpr uint32_t Type29_max_key_cdr_typesize {0UL}; + +constexpr uint32_t TypeBig_max_cdr_typesize {26664UL}; +constexpr uint32_t TypeBig_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type24_max_cdr_typesize {264UL}; +constexpr uint32_t Type24_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type25_max_cdr_typesize {264UL}; +constexpr uint32_t Type25_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type26_max_cdr_typesize {264UL}; +constexpr uint32_t Type26_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type27_max_cdr_typesize {264UL}; +constexpr uint32_t Type27_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type20_max_cdr_typesize {264UL}; +constexpr uint32_t Type20_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type21_max_cdr_typesize {264UL}; +constexpr uint32_t Type21_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type22_max_cdr_typesize {264UL}; +constexpr uint32_t Type22_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type23_max_cdr_typesize {264UL}; +constexpr uint32_t Type23_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type17_max_cdr_typesize {264UL}; +constexpr uint32_t Type17_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type18_max_cdr_typesize {264UL}; +constexpr uint32_t Type18_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type19_max_cdr_typesize {264UL}; +constexpr uint32_t Type19_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type50_max_cdr_typesize {264UL}; +constexpr uint32_t Type50_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type51_max_cdr_typesize {264UL}; +constexpr uint32_t Type51_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type52_max_cdr_typesize {264UL}; +constexpr uint32_t Type52_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type57_max_cdr_typesize {264UL}; +constexpr uint32_t Type57_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type58_max_cdr_typesize {264UL}; +constexpr uint32_t Type58_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type59_max_cdr_typesize {264UL}; +constexpr uint32_t Type59_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type53_max_cdr_typesize {264UL}; +constexpr uint32_t Type53_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type54_max_cdr_typesize {264UL}; +constexpr uint32_t Type54_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type55_max_cdr_typesize {264UL}; +constexpr uint32_t Type55_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type56_max_cdr_typesize {264UL}; +constexpr uint32_t Type56_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type40_max_cdr_typesize {264UL}; +constexpr uint32_t Type40_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type41_max_cdr_typesize {264UL}; +constexpr uint32_t Type41_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type46_max_cdr_typesize {264UL}; +constexpr uint32_t Type46_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type47_max_cdr_typesize {264UL}; +constexpr uint32_t Type47_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type48_max_cdr_typesize {264UL}; +constexpr uint32_t Type48_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type49_max_cdr_typesize {264UL}; +constexpr uint32_t Type49_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type42_max_cdr_typesize {264UL}; +constexpr uint32_t Type42_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type43_max_cdr_typesize {264UL}; +constexpr uint32_t Type43_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type44_max_cdr_typesize {264UL}; +constexpr uint32_t Type44_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type45_max_cdr_typesize {264UL}; +constexpr uint32_t Type45_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type39_max_cdr_typesize {264UL}; +constexpr uint32_t Type39_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type71_max_cdr_typesize {264UL}; +constexpr uint32_t Type71_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type72_max_cdr_typesize {264UL}; +constexpr uint32_t Type72_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type73_max_cdr_typesize {264UL}; +constexpr uint32_t Type73_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type74_max_cdr_typesize {264UL}; +constexpr uint32_t Type74_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type70_max_cdr_typesize {264UL}; +constexpr uint32_t Type70_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type79_max_cdr_typesize {264UL}; +constexpr uint32_t Type79_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type75_max_cdr_typesize {264UL}; +constexpr uint32_t Type75_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type76_max_cdr_typesize {264UL}; +constexpr uint32_t Type76_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type77_max_cdr_typesize {264UL}; +constexpr uint32_t Type77_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type78_max_cdr_typesize {264UL}; +constexpr uint32_t Type78_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type60_max_cdr_typesize {264UL}; +constexpr uint32_t Type60_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type61_max_cdr_typesize {264UL}; +constexpr uint32_t Type61_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type62_max_cdr_typesize {264UL}; +constexpr uint32_t Type62_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type63_max_cdr_typesize {264UL}; +constexpr uint32_t Type63_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type68_max_cdr_typesize {264UL}; +constexpr uint32_t Type68_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type69_max_cdr_typesize {264UL}; +constexpr uint32_t Type69_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type64_max_cdr_typesize {264UL}; +constexpr uint32_t Type64_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type65_max_cdr_typesize {264UL}; +constexpr uint32_t Type65_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type66_max_cdr_typesize {264UL}; +constexpr uint32_t Type66_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type67_max_cdr_typesize {264UL}; +constexpr uint32_t Type67_max_key_cdr_typesize {0UL}; + + +constexpr uint32_t Type93_max_cdr_typesize {264UL}; +constexpr uint32_t Type93_max_key_cdr_typesize {0UL}; + + +constexpr uint32_t Type94_max_cdr_typesize {264UL}; +constexpr uint32_t Type94_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type4_max_cdr_typesize {264UL}; +constexpr uint32_t Type4_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type95_max_cdr_typesize {264UL}; +constexpr uint32_t Type95_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type5_max_cdr_typesize {264UL}; +constexpr uint32_t Type5_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type96_max_cdr_typesize {264UL}; +constexpr uint32_t Type96_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type6_max_cdr_typesize {264UL}; +constexpr uint32_t Type6_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type7_max_cdr_typesize {264UL}; +constexpr uint32_t Type7_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type90_max_cdr_typesize {264UL}; +constexpr uint32_t Type90_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type8_max_cdr_typesize {264UL}; +constexpr uint32_t Type8_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type91_max_cdr_typesize {264UL}; +constexpr uint32_t Type91_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type9_max_cdr_typesize {264UL}; +constexpr uint32_t Type9_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type92_max_cdr_typesize {264UL}; +constexpr uint32_t Type92_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type13_max_cdr_typesize {264UL}; +constexpr uint32_t Type13_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type14_max_cdr_typesize {264UL}; +constexpr uint32_t Type14_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type15_max_cdr_typesize {264UL}; +constexpr uint32_t Type15_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type16_max_cdr_typesize {264UL}; +constexpr uint32_t Type16_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type97_max_cdr_typesize {264UL}; +constexpr uint32_t Type97_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type10_max_cdr_typesize {264UL}; +constexpr uint32_t Type10_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type98_max_cdr_typesize {264UL}; +constexpr uint32_t Type98_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type11_max_cdr_typesize {264UL}; +constexpr uint32_t Type11_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type99_max_cdr_typesize {264UL}; +constexpr uint32_t Type99_max_key_cdr_typesize {0UL}; + + +constexpr uint32_t Type12_max_cdr_typesize {264UL}; +constexpr uint32_t Type12_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type82_max_cdr_typesize {264UL}; +constexpr uint32_t Type82_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type83_max_cdr_typesize {264UL}; +constexpr uint32_t Type83_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type84_max_cdr_typesize {264UL}; +constexpr uint32_t Type84_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type85_max_cdr_typesize {264UL}; +constexpr uint32_t Type85_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type80_max_cdr_typesize {264UL}; +constexpr uint32_t Type80_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type81_max_cdr_typesize {264UL}; +constexpr uint32_t Type81_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type86_max_cdr_typesize {264UL}; +constexpr uint32_t Type86_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type87_max_cdr_typesize {264UL}; +constexpr uint32_t Type87_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type88_max_cdr_typesize {264UL}; +constexpr uint32_t Type88_max_key_cdr_typesize {0UL}; + +constexpr uint32_t Type89_max_cdr_typesize {264UL}; +constexpr uint32_t Type89_max_key_cdr_typesize {0UL}; + + +namespace eprosima { +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); + + +} // namespace fastcdr +} // namespace eprosima + +#endif // FAST_DDS_GENERATED__XTYPESTESTSTYPEBIGCDRAUX_HPP + diff --git a/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeBigCdrAux.ipp b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeBigCdrAux.ipp new file mode 100644 index 00000000000..7e9925fdc18 --- /dev/null +++ b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeBigCdrAux.ipp @@ -0,0 +1,9184 @@ +// 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 Type4& 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.content(), 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.content() +; + 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.content(); + 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); + scdr << data.content(); + +} + + +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.content(), 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 Type5& 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.content() +; + scdr.end_serialize_type(current_state); +} + +template<> +eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr, + Type5& 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.content(); + break; + + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type5& data) +{ + + static_cast(scdr); + static_cast(data); + scdr << data.content(); + +} + + +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.content(), 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.content() +; + 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.content(); + break; + + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +void serialize_key( + eprosima::fastcdr::Cdr& scdr, + const Type6& data) +{ + + static_cast(scdr); + static_cast(data); + scdr << data.content(); + +} + + +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.content(), 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.content() +; + 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.content(); + 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); + scdr << data.content(); + +} + + +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.content(), 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.content() +; + 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.content(); + 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); + scdr << data.content(); + +} + + +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.content(), 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.content() +; + 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.content(); + 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); + scdr << data.content(); + +} + + +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.content(), 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.content() +; + 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.content(); + 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); + scdr << data.content(); + +} + + +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.content(), 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.content() +; + 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.content(); + 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); + scdr << data.content(); + +} + + +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.content(), 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.content() +; + 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.content(); + 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); + scdr << data.content(); + +} + + +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.content(), 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.content() +; + 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.content(); + 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); + scdr << data.content(); + +} + + +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.content(), 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.content() +; + 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.content(); + 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); + scdr << data.content(); + +} + + +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.content(), 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.content() +; + 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.content(); + 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); + scdr << data.content(); + +} + + +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.content(), 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.content() +; + 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.content(); + 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); + scdr << data.content(); + +} + + +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.content(), 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.content() +; + 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.content(); + 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); + scdr << data.content(); + +} + + +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.content(), 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.content() +; + 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.content(); + 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); + scdr << data.content(); + +} + + +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.content(), 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.content() +; + 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.content(); + 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); + scdr << data.content(); + +} + + +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.content(), 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.content() +; + 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.content(); + 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); + scdr << data.content(); + +} + + +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.content(), 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.content() +; + 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.content(); + 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); + scdr << data.content(); + +} + + +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.content(), 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.content() +; + 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.content(); + 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); + scdr << data.content(); + +} + + +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.content(), 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.content() +; + 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.content(); + 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); + scdr << data.content(); + +} + + +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.content(), 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.content() +; + 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.content(); + 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); + scdr << data.content(); + +} + + +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.content(), 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.content() +; + 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.content(); + 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); + scdr << data.content(); + +} + + +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.content(), 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.content() +; + 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.content(); + 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); + scdr << data.content(); + +} + + +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.content(), 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.content() +; + 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.content(); + 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); + scdr << data.content(); + +} + + +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.content(), 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.content() +; + 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.content(); + 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); + scdr << data.content(); + +} + + +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.content(), 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.content() +; + 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.content(); + 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); + scdr << data.content(); + +} + + +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.content(), 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.content() +; + 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.content(); + 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); + scdr << data.content(); + +} + + +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.content(), 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.content() +; + 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.content(); + 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); + scdr << data.content(); + +} + + +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.content(), 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.content() +; + 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.content(); + 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); + scdr << data.content(); + +} + + +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.content(), 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.content() +; + 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.content(); + 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); + scdr << data.content(); + +} + + +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.content(), 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.content() +; + 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.content(); + 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); + scdr << data.content(); + +} + + +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.content(), 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.content() +; + 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.content(); + 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); + scdr << data.content(); + +} + + +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.content(), 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.content() +; + 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.content(); + 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); + scdr << data.content(); + +} + + +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.content(), 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.content() +; + 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.content(); + 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); + scdr << data.content(); + +} + + +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.content(), 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.content() +; + 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.content(); + 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); + scdr << data.content(); + +} + + +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.content(), 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.content() +; + 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.content(); + 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); + scdr << data.content(); + +} + + +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.content(), 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.content() +; + 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.content(); + 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); + scdr << data.content(); + +} + + +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.content(), 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.content() +; + 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.content(); + 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); + scdr << data.content(); + +} + + +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.content(), 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.content() +; + 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.content(); + 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); + scdr << data.content(); + +} + + +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.content(), 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.content() +; + 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.content(); + 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); + scdr << data.content(); + +} + + +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.content(), 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.content() +; + 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.content(); + 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); + scdr << data.content(); + +} + + +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.content(), 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.content() +; + 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.content(); + 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); + scdr << data.content(); + +} + + +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.content(), 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.content() +; + 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.content(); + 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); + scdr << data.content(); + +} + + +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.content(), 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.content() +; + 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.content(); + 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); + scdr << data.content(); + +} + + +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.content(), 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.content() +; + 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.content(); + 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); + scdr << data.content(); + +} + + +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.content(), 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.content() +; + 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.content(); + 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); + scdr << data.content(); + +} + + +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.content(), 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.content() +; + 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.content(); + 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); + scdr << data.content(); + +} + + +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.content(), 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.content() +; + 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.content(); + 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); + scdr << data.content(); + +} + + +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.content(), 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.content() +; + 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.content(); + 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); + scdr << data.content(); + +} + + +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.content(), 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.content() +; + 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.content(); + 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); + scdr << data.content(); + +} + + +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.content(), 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.content() +; + 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.content(); + 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); + scdr << data.content(); + +} + + +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.content(), 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.content() +; + 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.content(); + 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); + scdr << data.content(); + +} + + +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.content(), 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.content() +; + 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.content(); + 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); + scdr << data.content(); + +} + + +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.content(), 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.content() +; + 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.content(); + 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); + scdr << data.content(); + +} + + +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.content(), 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.content() +; + 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.content(); + 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); + scdr << data.content(); + +} + + +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.content(), 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.content() +; + 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.content(); + 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); + scdr << data.content(); + +} + + +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.content(), 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.content() +; + 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.content(); + 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); + scdr << data.content(); + +} + + +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.content(), 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.content() +; + 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.content(); + 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); + scdr << data.content(); + +} + + +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.content(), 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.content() +; + 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.content(); + 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); + scdr << data.content(); + +} + + +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.content(), 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.content() +; + 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.content(); + 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); + scdr << data.content(); + +} + + +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.content(), 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.content() +; + 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.content(); + 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); + scdr << data.content(); + +} + + +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.content(), 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.content() +; + 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.content(); + 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); + scdr << data.content(); + +} + + +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.content(), 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.content() +; + 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.content(); + 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); + scdr << data.content(); + +} + + +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.content(), 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.content() +; + 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.content(); + 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); + scdr << data.content(); + +} + + +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.content(), 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.content() +; + 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.content(); + 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); + scdr << data.content(); + +} + + +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.content(), 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.content() +; + 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.content(); + 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); + scdr << data.content(); + +} + + +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.content(), 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.content() +; + 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.content(); + 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); + scdr << data.content(); + +} + + +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.content(), 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.content() +; + 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.content(); + 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); + scdr << data.content(); + +} + + +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.content(), 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.content() +; + 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.content(); + 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); + scdr << data.content(); + +} + + +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.content(), 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.content() +; + 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.content(); + 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); + scdr << data.content(); + +} + + +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.content(), 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.content() +; + 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.content(); + 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); + scdr << data.content(); + +} + + +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.content(), 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.content() +; + 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.content(); + 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); + scdr << data.content(); + +} + + +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.content(), 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.content() +; + 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.content(); + 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); + scdr << data.content(); + +} + + +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.content(), 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.content() +; + 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.content(); + 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); + scdr << data.content(); + +} + + +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.content(), 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.content() +; + 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.content(); + 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); + scdr << data.content(); + +} + + +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.content(), 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.content() +; + 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.content(); + 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); + scdr << data.content(); + +} + + +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.content(), 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.content() +; + 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.content(); + 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); + scdr << data.content(); + +} + + +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.content(), 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.content() +; + 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.content(); + 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); + scdr << data.content(); + +} + + +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.content(), 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.content() +; + 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.content(); + 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); + scdr << data.content(); + +} + + +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.content(), 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.content() +; + 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.content(); + 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); + scdr << data.content(); + +} + + +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.content(), 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.content() +; + 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.content(); + 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); + scdr << data.content(); + +} + + +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.content(), 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.content() +; + 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.content(); + 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); + scdr << data.content(); + +} + + +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.content(), 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.content() +; + 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.content(); + 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); + scdr << data.content(); + +} + + +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.content(), 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.content() +; + 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.content(); + 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); + scdr << data.content(); + +} + + +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.content(), 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.content() +; + 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.content(); + 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); + scdr << data.content(); + +} + + +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.content(), 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.content() +; + 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.content(); + 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); + scdr << data.content(); + +} + + +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.content(), 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.content() +; + 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.content(); + 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); + scdr << data.content(); + +} + + +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.content(), 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.content() +; + 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.content(); + 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); + scdr << data.content(); + +} + + +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.content(), 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.content() +; + 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.content(); + 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); + scdr << data.content(); + +} + + +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.content(), 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.content() +; + 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.content(); + 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); + scdr << data.content(); + +} + + +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.content(), 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.content() +; + 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.content(); + 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); + scdr << data.content(); + +} + + +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.content(), 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.content() +; + 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.content(); + 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); + scdr << data.content(); + +} + + +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.content(), 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.content() +; + 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.content(); + 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); + scdr << data.content(); + +} + + +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.content(), 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.content() +; + 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.content(); + 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); + scdr << data.content(); + +} + + +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.content(), 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.content() +; + 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.content(); + 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); + scdr << data.content(); + +} + + +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.content(), 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.content() +; + 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.content(); + 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); + scdr << data.content(); + +} + + +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.content(), 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.content() +; + 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.content(); + 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); + scdr << data.content(); + +} + + +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.content(), 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.content() + << 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.content(); + 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: + ret_value = false; + break; + } + return ret_value; + }); +} + +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.content(); + + 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()); + +} + + + +} // namespace fastcdr +} // namespace eprosima + +#endif // FAST_DDS_GENERATED__XTYPESTESTSTYPEBIGCDRAUX_IPP + diff --git a/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeBigPubSubTypes.cxx b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeBigPubSubTypes.cxx new file mode 100644 index 00000000000..56bd605601a --- /dev/null +++ b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeBigPubSubTypes.cxx @@ -0,0 +1,17774 @@ +// 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.hpp" + +#include +#include + +#include "XtypesTestsTypeBigCdrAux.hpp" +#include "XtypesTestsTypeBigTypeObjectSupport.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; + +Type4PubSubType::Type4PubSubType() +{ + 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 */ + 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 (key_buffer_ != nullptr) + { + free(key_buffer_); + } +} + +bool Type4PubSubType::serialize( + const void* const data, + SerializedPayload_t& payload, + DataRepresentationId_t data_representation) +{ + const 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; + 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 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); + + // 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 Type4PubSubType::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* Type4PubSubType::create_data() +{ + return reinterpret_cast(new Type4()); +} + +void Type4PubSubType::delete_data( + void* data) +{ + delete(reinterpret_cast(data)); +} + +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 (!is_compute_key_provided) + { + return false; + } + + const Type4* p_type = static_cast(data); + + // Object that manages the raw buffer. + 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::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); + eprosima::fastcdr::serialize_key(ser, *p_type); + if (force_md5 || Type4_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 Type4PubSubType::register_type_object_representation() +{ + register_Type4_type_identifier(type_identifiers_); +} + +Type5PubSubType::Type5PubSubType() +{ + 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 */ + 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 (key_buffer_ != nullptr) + { + free(key_buffer_); + } +} + +bool Type5PubSubType::serialize( + const void* const data, + SerializedPayload_t& payload, + DataRepresentationId_t data_representation) +{ + const 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; + 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 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); + + // 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 Type5PubSubType::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* Type5PubSubType::create_data() +{ + return reinterpret_cast(new Type5()); +} + +void Type5PubSubType::delete_data( + void* data) +{ + delete(reinterpret_cast(data)); +} + +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 (!is_compute_key_provided) + { + return false; + } + + const Type5* p_type = static_cast(data); + + // Object that manages the raw buffer. + 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::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); + eprosima::fastcdr::serialize_key(ser, *p_type); + if (force_md5 || Type5_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 Type5PubSubType::register_type_object_representation() +{ + register_Type5_type_identifier(type_identifiers_); +} + +Type6PubSubType::Type6PubSubType() +{ + 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 */ + 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 (key_buffer_ != nullptr) + { + free(key_buffer_); + } +} + +bool Type6PubSubType::serialize( + const void* const data, + SerializedPayload_t& payload, + DataRepresentationId_t data_representation) +{ + const 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; + 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 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); + + // 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 Type6PubSubType::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* Type6PubSubType::create_data() +{ + return reinterpret_cast(new Type6()); +} + +void Type6PubSubType::delete_data( + void* data) +{ + delete(reinterpret_cast(data)); +} + +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 (!is_compute_key_provided) + { + return false; + } + + const Type6* p_type = static_cast(data); + + // Object that manages the raw buffer. + 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::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); + eprosima::fastcdr::serialize_key(ser, *p_type); + if (force_md5 || Type6_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 Type6PubSubType::register_type_object_representation() +{ + register_Type6_type_identifier(type_identifiers_); +} + +Type7PubSubType::Type7PubSubType() +{ + 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 */ + 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 (key_buffer_ != nullptr) + { + free(key_buffer_); + } +} + +bool Type7PubSubType::serialize( + const void* const data, + SerializedPayload_t& payload, + DataRepresentationId_t data_representation) +{ + const 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; + 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 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); + + // 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 Type7PubSubType::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* Type7PubSubType::create_data() +{ + return reinterpret_cast(new Type7()); +} + +void Type7PubSubType::delete_data( + void* data) +{ + delete(reinterpret_cast(data)); +} + +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 (!is_compute_key_provided) + { + return false; + } + + const Type7* p_type = static_cast(data); + + // Object that manages the raw buffer. + 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::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); + eprosima::fastcdr::serialize_key(ser, *p_type); + if (force_md5 || Type7_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 Type7PubSubType::register_type_object_representation() +{ + register_Type7_type_identifier(type_identifiers_); +} + +Type8PubSubType::Type8PubSubType() +{ + 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 */ + 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 (key_buffer_ != nullptr) + { + free(key_buffer_); + } +} + +bool Type8PubSubType::serialize( + const void* const data, + SerializedPayload_t& payload, + DataRepresentationId_t data_representation) +{ + const 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; + 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 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); + + // 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 Type8PubSubType::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* Type8PubSubType::create_data() +{ + return reinterpret_cast(new Type8()); +} + +void Type8PubSubType::delete_data( + void* data) +{ + delete(reinterpret_cast(data)); +} + +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 (!is_compute_key_provided) + { + return false; + } + + const Type8* p_type = static_cast(data); + + // Object that manages the raw buffer. + 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::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); + eprosima::fastcdr::serialize_key(ser, *p_type); + if (force_md5 || Type8_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 Type8PubSubType::register_type_object_representation() +{ + register_Type8_type_identifier(type_identifiers_); +} + +Type9PubSubType::Type9PubSubType() +{ + 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 */ + 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 (key_buffer_ != nullptr) + { + free(key_buffer_); + } +} + +bool Type9PubSubType::serialize( + const void* const data, + SerializedPayload_t& payload, + DataRepresentationId_t data_representation) +{ + const 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; + 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 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); + + // 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 Type9PubSubType::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* Type9PubSubType::create_data() +{ + return reinterpret_cast(new Type9()); +} + +void Type9PubSubType::delete_data( + void* data) +{ + delete(reinterpret_cast(data)); +} + +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 (!is_compute_key_provided) + { + return false; + } + + const Type9* p_type = static_cast(data); + + // Object that manages the raw buffer. + 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::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); + eprosima::fastcdr::serialize_key(ser, *p_type); + if (force_md5 || Type9_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 Type9PubSubType::register_type_object_representation() +{ + register_Type9_type_identifier(type_identifiers_); +} + +Type10PubSubType::Type10PubSubType() +{ + 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 */ + 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 (key_buffer_ != nullptr) + { + free(key_buffer_); + } +} + +bool Type10PubSubType::serialize( + const void* const data, + SerializedPayload_t& payload, + DataRepresentationId_t data_representation) +{ + const 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; + 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 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); + + // 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 Type10PubSubType::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* Type10PubSubType::create_data() +{ + return reinterpret_cast(new Type10()); +} + +void Type10PubSubType::delete_data( + void* data) +{ + delete(reinterpret_cast(data)); +} + +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 (!is_compute_key_provided) + { + return false; + } + + const Type10* p_type = static_cast(data); + + // Object that manages the raw buffer. + 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::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); + eprosima::fastcdr::serialize_key(ser, *p_type); + if (force_md5 || Type10_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 Type10PubSubType::register_type_object_representation() +{ + register_Type10_type_identifier(type_identifiers_); +} + +Type11PubSubType::Type11PubSubType() +{ + 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 */ + 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 (key_buffer_ != nullptr) + { + free(key_buffer_); + } +} + +bool Type11PubSubType::serialize( + const void* const data, + SerializedPayload_t& payload, + DataRepresentationId_t data_representation) +{ + const 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; + 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 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); + + // 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 Type11PubSubType::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* Type11PubSubType::create_data() +{ + return reinterpret_cast(new Type11()); +} + +void Type11PubSubType::delete_data( + void* data) +{ + delete(reinterpret_cast(data)); +} + +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 (!is_compute_key_provided) + { + return false; + } + + const Type11* p_type = static_cast(data); + + // Object that manages the raw buffer. + 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::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); + eprosima::fastcdr::serialize_key(ser, *p_type); + if (force_md5 || Type11_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 Type11PubSubType::register_type_object_representation() +{ + register_Type11_type_identifier(type_identifiers_); +} + +Type12PubSubType::Type12PubSubType() +{ + 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 */ + 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 (key_buffer_ != nullptr) + { + free(key_buffer_); + } +} + +bool Type12PubSubType::serialize( + const void* const data, + SerializedPayload_t& payload, + DataRepresentationId_t data_representation) +{ + const 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; + 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 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); + + // 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 Type12PubSubType::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* Type12PubSubType::create_data() +{ + return reinterpret_cast(new Type12()); +} + +void Type12PubSubType::delete_data( + void* data) +{ + delete(reinterpret_cast(data)); +} + +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 (!is_compute_key_provided) + { + return false; + } + + const Type12* p_type = static_cast(data); + + // Object that manages the raw buffer. + 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::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); + eprosima::fastcdr::serialize_key(ser, *p_type); + if (force_md5 || Type12_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 Type12PubSubType::register_type_object_representation() +{ + register_Type12_type_identifier(type_identifiers_); +} + +Type13PubSubType::Type13PubSubType() +{ + 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 */ + 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 (key_buffer_ != nullptr) + { + free(key_buffer_); + } +} + +bool Type13PubSubType::serialize( + const void* const data, + SerializedPayload_t& payload, + DataRepresentationId_t data_representation) +{ + const 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; + 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 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); + + // 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 Type13PubSubType::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* Type13PubSubType::create_data() +{ + return reinterpret_cast(new Type13()); +} + +void Type13PubSubType::delete_data( + void* data) +{ + delete(reinterpret_cast(data)); +} + +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 (!is_compute_key_provided) + { + return false; + } + + const Type13* p_type = static_cast(data); + + // Object that manages the raw buffer. + 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::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); + eprosima::fastcdr::serialize_key(ser, *p_type); + if (force_md5 || Type13_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 Type13PubSubType::register_type_object_representation() +{ + register_Type13_type_identifier(type_identifiers_); +} + +Type14PubSubType::Type14PubSubType() +{ + 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 */ + 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 (key_buffer_ != nullptr) + { + free(key_buffer_); + } +} + +bool Type14PubSubType::serialize( + const void* const data, + SerializedPayload_t& payload, + DataRepresentationId_t data_representation) +{ + const 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; + 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 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); + + // 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 Type14PubSubType::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* Type14PubSubType::create_data() +{ + return reinterpret_cast(new Type14()); +} + +void Type14PubSubType::delete_data( + void* data) +{ + delete(reinterpret_cast(data)); +} + +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 (!is_compute_key_provided) + { + return false; + } + + const Type14* p_type = static_cast(data); + + // Object that manages the raw buffer. + 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::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); + eprosima::fastcdr::serialize_key(ser, *p_type); + if (force_md5 || Type14_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 Type14PubSubType::register_type_object_representation() +{ + register_Type14_type_identifier(type_identifiers_); +} + +Type15PubSubType::Type15PubSubType() +{ + 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 */ + 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 (key_buffer_ != nullptr) + { + free(key_buffer_); + } +} + +bool Type15PubSubType::serialize( + const void* const data, + SerializedPayload_t& payload, + DataRepresentationId_t data_representation) +{ + const 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; + 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 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); + + // 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 Type15PubSubType::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* Type15PubSubType::create_data() +{ + return reinterpret_cast(new Type15()); +} + +void Type15PubSubType::delete_data( + void* data) +{ + delete(reinterpret_cast(data)); +} + +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 (!is_compute_key_provided) + { + return false; + } + + const Type15* p_type = static_cast(data); + + // Object that manages the raw buffer. + 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::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); + eprosima::fastcdr::serialize_key(ser, *p_type); + if (force_md5 || Type15_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 Type15PubSubType::register_type_object_representation() +{ + register_Type15_type_identifier(type_identifiers_); +} + +Type16PubSubType::Type16PubSubType() +{ + 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 */ + 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 (key_buffer_ != nullptr) + { + free(key_buffer_); + } +} + +bool Type16PubSubType::serialize( + const void* const data, + SerializedPayload_t& payload, + DataRepresentationId_t data_representation) +{ + const 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; + 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 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); + + // 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 Type16PubSubType::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* Type16PubSubType::create_data() +{ + return reinterpret_cast(new Type16()); +} + +void Type16PubSubType::delete_data( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type16PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + Type16 data; + if (deserialize(payload, static_cast(&data))) + { + return compute_key(static_cast(&data), handle, force_md5); + } + + return false; +} + +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) + { + 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 Type16PubSubType::register_type_object_representation() +{ + register_Type16_type_identifier(type_identifiers_); +} + +Type17PubSubType::Type17PubSubType() +{ + 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 */ + 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 (key_buffer_ != nullptr) + { + free(key_buffer_); + } +} + +bool Type17PubSubType::serialize( + const void* const data, + SerializedPayload_t& payload, + DataRepresentationId_t data_representation) +{ + const 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; + 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 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); + + // 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 Type17PubSubType::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* Type17PubSubType::create_data() +{ + return reinterpret_cast(new Type17()); +} + +void Type17PubSubType::delete_data( + void* data) +{ + delete(reinterpret_cast(data)); +} + +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 (!is_compute_key_provided) + { + return false; + } + + const Type17* p_type = static_cast(data); + + // Object that manages the raw buffer. + 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::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); + eprosima::fastcdr::serialize_key(ser, *p_type); + if (force_md5 || Type17_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 Type17PubSubType::register_type_object_representation() +{ + register_Type17_type_identifier(type_identifiers_); +} + +Type18PubSubType::Type18PubSubType() +{ + 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 */ + 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 (key_buffer_ != nullptr) + { + free(key_buffer_); + } +} + +bool Type18PubSubType::serialize( + const void* const data, + SerializedPayload_t& payload, + DataRepresentationId_t data_representation) +{ + const 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; + 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 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); + + // 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 Type18PubSubType::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* Type18PubSubType::create_data() +{ + return reinterpret_cast(new Type18()); +} + +void Type18PubSubType::delete_data( + void* data) +{ + delete(reinterpret_cast(data)); +} + +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 (!is_compute_key_provided) + { + return false; + } + + const Type18* p_type = static_cast(data); + + // Object that manages the raw buffer. + 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::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); + eprosima::fastcdr::serialize_key(ser, *p_type); + if (force_md5 || Type18_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 Type18PubSubType::register_type_object_representation() +{ + register_Type18_type_identifier(type_identifiers_); +} + +Type19PubSubType::Type19PubSubType() +{ + 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 */ + 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 (key_buffer_ != nullptr) + { + free(key_buffer_); + } +} + +bool Type19PubSubType::serialize( + const void* const data, + SerializedPayload_t& payload, + DataRepresentationId_t data_representation) +{ + const 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; + 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 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); + + // 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 Type19PubSubType::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* Type19PubSubType::create_data() +{ + return reinterpret_cast(new Type19()); +} + +void Type19PubSubType::delete_data( + void* data) +{ + delete(reinterpret_cast(data)); +} + +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 (!is_compute_key_provided) + { + return false; + } + + const Type19* p_type = static_cast(data); + + // Object that manages the raw buffer. + 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::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); + eprosima::fastcdr::serialize_key(ser, *p_type); + if (force_md5 || Type19_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 Type19PubSubType::register_type_object_representation() +{ + register_Type19_type_identifier(type_identifiers_); +} + +Type20PubSubType::Type20PubSubType() +{ + 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 */ + 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 (key_buffer_ != nullptr) + { + free(key_buffer_); + } +} + +bool Type20PubSubType::serialize( + const void* const data, + SerializedPayload_t& payload, + DataRepresentationId_t data_representation) +{ + const 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; + 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 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); + + // 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 Type20PubSubType::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* Type20PubSubType::create_data() +{ + return reinterpret_cast(new Type20()); +} + +void Type20PubSubType::delete_data( + void* data) +{ + delete(reinterpret_cast(data)); +} + +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 (!is_compute_key_provided) + { + return false; + } + + const Type20* p_type = static_cast(data); + + // Object that manages the raw buffer. + 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::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); + eprosima::fastcdr::serialize_key(ser, *p_type); + if (force_md5 || Type20_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 Type20PubSubType::register_type_object_representation() +{ + register_Type20_type_identifier(type_identifiers_); +} + +Type21PubSubType::Type21PubSubType() +{ + 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 */ + 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 (key_buffer_ != nullptr) + { + free(key_buffer_); + } +} + +bool Type21PubSubType::serialize( + const void* const data, + SerializedPayload_t& payload, + DataRepresentationId_t data_representation) +{ + const 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; + 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 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); + + // 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 Type21PubSubType::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* Type21PubSubType::create_data() +{ + return reinterpret_cast(new Type21()); +} + +void Type21PubSubType::delete_data( + void* data) +{ + delete(reinterpret_cast(data)); +} + +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 (!is_compute_key_provided) + { + return false; + } + + const Type21* p_type = static_cast(data); + + // Object that manages the raw buffer. + 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::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); + eprosima::fastcdr::serialize_key(ser, *p_type); + if (force_md5 || Type21_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 Type21PubSubType::register_type_object_representation() +{ + register_Type21_type_identifier(type_identifiers_); +} + +Type22PubSubType::Type22PubSubType() +{ + 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 */ + 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 (key_buffer_ != nullptr) + { + free(key_buffer_); + } +} + +bool Type22PubSubType::serialize( + const void* const data, + SerializedPayload_t& payload, + DataRepresentationId_t data_representation) +{ + const 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; + 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 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); + + // 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 Type22PubSubType::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* Type22PubSubType::create_data() +{ + return reinterpret_cast(new Type22()); +} + +void Type22PubSubType::delete_data( + void* data) +{ + delete(reinterpret_cast(data)); +} + +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 (!is_compute_key_provided) + { + return false; + } + + const Type22* p_type = static_cast(data); + + // Object that manages the raw buffer. + 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::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); + eprosima::fastcdr::serialize_key(ser, *p_type); + if (force_md5 || Type22_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 Type22PubSubType::register_type_object_representation() +{ + register_Type22_type_identifier(type_identifiers_); +} + +Type23PubSubType::Type23PubSubType() +{ + 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 */ + 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 (key_buffer_ != nullptr) + { + free(key_buffer_); + } +} + +bool Type23PubSubType::serialize( + const void* const data, + SerializedPayload_t& payload, + DataRepresentationId_t data_representation) +{ + const 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; + 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 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); + + // 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 Type23PubSubType::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* Type23PubSubType::create_data() +{ + return reinterpret_cast(new Type23()); +} + +void Type23PubSubType::delete_data( + void* data) +{ + delete(reinterpret_cast(data)); +} + +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 (!is_compute_key_provided) + { + return false; + } + + const Type23* p_type = static_cast(data); + + // Object that manages the raw buffer. + 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::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); + eprosima::fastcdr::serialize_key(ser, *p_type); + if (force_md5 || Type23_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 Type23PubSubType::register_type_object_representation() +{ + register_Type23_type_identifier(type_identifiers_); +} + +Type24PubSubType::Type24PubSubType() +{ + 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 */ + 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 (key_buffer_ != nullptr) + { + free(key_buffer_); + } +} + +bool Type24PubSubType::serialize( + const void* const data, + SerializedPayload_t& payload, + DataRepresentationId_t data_representation) +{ + const 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; + 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 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); + + // 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 Type24PubSubType::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* Type24PubSubType::create_data() +{ + return reinterpret_cast(new Type24()); +} + +void Type24PubSubType::delete_data( + void* data) +{ + delete(reinterpret_cast(data)); +} + +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 (!is_compute_key_provided) + { + return false; + } + + const Type24* p_type = static_cast(data); + + // Object that manages the raw buffer. + 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::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); + eprosima::fastcdr::serialize_key(ser, *p_type); + if (force_md5 || Type24_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 Type24PubSubType::register_type_object_representation() +{ + register_Type24_type_identifier(type_identifiers_); +} + +Type25PubSubType::Type25PubSubType() +{ + 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 */ + 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 (key_buffer_ != nullptr) + { + free(key_buffer_); + } +} + +bool Type25PubSubType::serialize( + const void* const data, + SerializedPayload_t& payload, + DataRepresentationId_t data_representation) +{ + const 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; + 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 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); + + // 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 Type25PubSubType::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* Type25PubSubType::create_data() +{ + return reinterpret_cast(new Type25()); +} + +void Type25PubSubType::delete_data( + void* data) +{ + delete(reinterpret_cast(data)); +} + +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 (!is_compute_key_provided) + { + return false; + } + + const Type25* p_type = static_cast(data); + + // Object that manages the raw buffer. + 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::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); + eprosima::fastcdr::serialize_key(ser, *p_type); + if (force_md5 || Type25_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 Type25PubSubType::register_type_object_representation() +{ + register_Type25_type_identifier(type_identifiers_); +} + +Type26PubSubType::Type26PubSubType() +{ + 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 */ + 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 (key_buffer_ != nullptr) + { + free(key_buffer_); + } +} + +bool Type26PubSubType::serialize( + const void* const data, + SerializedPayload_t& payload, + DataRepresentationId_t data_representation) +{ + const 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; + 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 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); + + // 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 Type26PubSubType::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* Type26PubSubType::create_data() +{ + return reinterpret_cast(new Type26()); +} + +void Type26PubSubType::delete_data( + void* data) +{ + delete(reinterpret_cast(data)); +} + +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 (!is_compute_key_provided) + { + return false; + } + + const Type26* p_type = static_cast(data); + + // Object that manages the raw buffer. + 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::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); + eprosima::fastcdr::serialize_key(ser, *p_type); + if (force_md5 || Type26_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 Type26PubSubType::register_type_object_representation() +{ + register_Type26_type_identifier(type_identifiers_); +} + +Type27PubSubType::Type27PubSubType() +{ + 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 */ + 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 (key_buffer_ != nullptr) + { + free(key_buffer_); + } +} + +bool Type27PubSubType::serialize( + const void* const data, + SerializedPayload_t& payload, + DataRepresentationId_t data_representation) +{ + const 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; + 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 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); + + // 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 Type27PubSubType::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* Type27PubSubType::create_data() +{ + return reinterpret_cast(new Type27()); +} + +void Type27PubSubType::delete_data( + void* data) +{ + delete(reinterpret_cast(data)); +} + +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 (!is_compute_key_provided) + { + return false; + } + + const Type27* p_type = static_cast(data); + + // Object that manages the raw buffer. + 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::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); + eprosima::fastcdr::serialize_key(ser, *p_type); + if (force_md5 || Type27_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 Type27PubSubType::register_type_object_representation() +{ + register_Type27_type_identifier(type_identifiers_); +} + +Type28PubSubType::Type28PubSubType() +{ + 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 */ + 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 (key_buffer_ != nullptr) + { + free(key_buffer_); + } +} + +bool Type28PubSubType::serialize( + const void* const data, + SerializedPayload_t& payload, + DataRepresentationId_t data_representation) +{ + const 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; + 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 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); + + // 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 Type28PubSubType::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* Type28PubSubType::create_data() +{ + return reinterpret_cast(new Type28()); +} + +void Type28PubSubType::delete_data( + void* data) +{ + delete(reinterpret_cast(data)); +} + +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 (!is_compute_key_provided) + { + return false; + } + + const Type28* p_type = static_cast(data); + + // Object that manages the raw buffer. + 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::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); + eprosima::fastcdr::serialize_key(ser, *p_type); + if (force_md5 || Type28_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 Type28PubSubType::register_type_object_representation() +{ + register_Type28_type_identifier(type_identifiers_); +} + +Type29PubSubType::Type29PubSubType() +{ + 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 */ + 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 (key_buffer_ != nullptr) + { + free(key_buffer_); + } +} + +bool Type29PubSubType::serialize( + const void* const data, + SerializedPayload_t& payload, + DataRepresentationId_t data_representation) +{ + const 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; + 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 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); + + // 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 Type29PubSubType::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* Type29PubSubType::create_data() +{ + return reinterpret_cast(new Type29()); +} + +void Type29PubSubType::delete_data( + void* data) +{ + delete(reinterpret_cast(data)); +} + +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 (!is_compute_key_provided) + { + return false; + } + + const Type29* p_type = static_cast(data); + + // Object that manages the raw buffer. + 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::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); + eprosima::fastcdr::serialize_key(ser, *p_type); + if (force_md5 || Type29_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 Type29PubSubType::register_type_object_representation() +{ + register_Type29_type_identifier(type_identifiers_); +} + +Type30PubSubType::Type30PubSubType() +{ + 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 */ + 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 (key_buffer_ != nullptr) + { + free(key_buffer_); + } +} + +bool Type30PubSubType::serialize( + const void* const data, + SerializedPayload_t& payload, + DataRepresentationId_t data_representation) +{ + const 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; + 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 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); + + // 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 Type30PubSubType::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* Type30PubSubType::create_data() +{ + return reinterpret_cast(new Type30()); +} + +void Type30PubSubType::delete_data( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type30PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + 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(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::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); + eprosima::fastcdr::serialize_key(ser, *p_type); + if (force_md5 || Type30_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 Type30PubSubType::register_type_object_representation() +{ + register_Type30_type_identifier(type_identifiers_); +} + +Type31PubSubType::Type31PubSubType() +{ + 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 */ + 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 (key_buffer_ != nullptr) + { + free(key_buffer_); + } +} + +bool Type31PubSubType::serialize( + const void* const data, + SerializedPayload_t& payload, + DataRepresentationId_t data_representation) +{ + const 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; + 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 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); + + // 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 Type31PubSubType::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* Type31PubSubType::create_data() +{ + return reinterpret_cast(new Type31()); +} + +void Type31PubSubType::delete_data( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type31PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + 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(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::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); + eprosima::fastcdr::serialize_key(ser, *p_type); + if (force_md5 || Type31_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 Type31PubSubType::register_type_object_representation() +{ + register_Type31_type_identifier(type_identifiers_); +} + +Type32PubSubType::Type32PubSubType() +{ + 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 */ + 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 (key_buffer_ != nullptr) + { + free(key_buffer_); + } +} + +bool Type32PubSubType::serialize( + const void* const data, + SerializedPayload_t& payload, + DataRepresentationId_t data_representation) +{ + const 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; + 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 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); + + // 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 Type32PubSubType::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* Type32PubSubType::create_data() +{ + return reinterpret_cast(new Type32()); +} + +void Type32PubSubType::delete_data( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type32PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + 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(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::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); + eprosima::fastcdr::serialize_key(ser, *p_type); + if (force_md5 || Type32_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 Type32PubSubType::register_type_object_representation() +{ + register_Type32_type_identifier(type_identifiers_); +} + +Type33PubSubType::Type33PubSubType() +{ + 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 */ + 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 (key_buffer_ != nullptr) + { + free(key_buffer_); + } +} + +bool Type33PubSubType::serialize( + const void* const data, + SerializedPayload_t& payload, + DataRepresentationId_t data_representation) +{ + const 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; + 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 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); + + // 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 Type33PubSubType::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* Type33PubSubType::create_data() +{ + return reinterpret_cast(new Type33()); +} + +void Type33PubSubType::delete_data( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type33PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + 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(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::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); + eprosima::fastcdr::serialize_key(ser, *p_type); + if (force_md5 || Type33_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 Type33PubSubType::register_type_object_representation() +{ + register_Type33_type_identifier(type_identifiers_); +} + +Type34PubSubType::Type34PubSubType() +{ + 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 */ + 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 (key_buffer_ != nullptr) + { + free(key_buffer_); + } +} + +bool Type34PubSubType::serialize( + const void* const data, + SerializedPayload_t& payload, + DataRepresentationId_t data_representation) +{ + const 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; + 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 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); + + // 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 Type34PubSubType::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* Type34PubSubType::create_data() +{ + return reinterpret_cast(new Type34()); +} + +void Type34PubSubType::delete_data( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type34PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + 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(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::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); + eprosima::fastcdr::serialize_key(ser, *p_type); + if (force_md5 || Type34_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 Type34PubSubType::register_type_object_representation() +{ + register_Type34_type_identifier(type_identifiers_); +} + +Type35PubSubType::Type35PubSubType() +{ + 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 */ + 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 (key_buffer_ != nullptr) + { + free(key_buffer_); + } +} + +bool Type35PubSubType::serialize( + const void* const data, + SerializedPayload_t& payload, + DataRepresentationId_t data_representation) +{ + const 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; + 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 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); + + // 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 Type35PubSubType::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* Type35PubSubType::create_data() +{ + return reinterpret_cast(new Type35()); +} + +void Type35PubSubType::delete_data( + void* data) +{ + delete(reinterpret_cast(data)); +} + +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 (!is_compute_key_provided) + { + return false; + } + + const Type35* p_type = static_cast(data); + + // Object that manages the raw buffer. + 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::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); + eprosima::fastcdr::serialize_key(ser, *p_type); + if (force_md5 || Type35_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 Type35PubSubType::register_type_object_representation() +{ + register_Type35_type_identifier(type_identifiers_); +} + +Type36PubSubType::Type36PubSubType() +{ + 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 */ + 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 (key_buffer_ != nullptr) + { + free(key_buffer_); + } +} + +bool Type36PubSubType::serialize( + const void* const data, + SerializedPayload_t& payload, + DataRepresentationId_t data_representation) +{ + const 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; + 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 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); + + // 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 Type36PubSubType::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* Type36PubSubType::create_data() +{ + return reinterpret_cast(new Type36()); +} + +void Type36PubSubType::delete_data( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type36PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + 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(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::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); + eprosima::fastcdr::serialize_key(ser, *p_type); + if (force_md5 || Type36_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 Type36PubSubType::register_type_object_representation() +{ + register_Type36_type_identifier(type_identifiers_); +} + +Type37PubSubType::Type37PubSubType() +{ + 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 */ + 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 (key_buffer_ != nullptr) + { + free(key_buffer_); + } +} + +bool Type37PubSubType::serialize( + const void* const data, + SerializedPayload_t& payload, + DataRepresentationId_t data_representation) +{ + const 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; + 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 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); + + // 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 Type37PubSubType::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* Type37PubSubType::create_data() +{ + return reinterpret_cast(new Type37()); +} + +void Type37PubSubType::delete_data( + void* data) +{ + delete(reinterpret_cast(data)); +} + +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 (!is_compute_key_provided) + { + return false; + } + + const Type37* p_type = static_cast(data); + + // Object that manages the raw buffer. + 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::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); + eprosima::fastcdr::serialize_key(ser, *p_type); + if (force_md5 || Type37_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 Type37PubSubType::register_type_object_representation() +{ + register_Type37_type_identifier(type_identifiers_); +} + +Type38PubSubType::Type38PubSubType() +{ + 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 */ + 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 (key_buffer_ != nullptr) + { + free(key_buffer_); + } +} + +bool Type38PubSubType::serialize( + const void* const data, + SerializedPayload_t& payload, + DataRepresentationId_t data_representation) +{ + const 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; + 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 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); + + // 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 Type38PubSubType::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* Type38PubSubType::create_data() +{ + return reinterpret_cast(new Type38()); +} + +void Type38PubSubType::delete_data( + void* data) +{ + delete(reinterpret_cast(data)); +} + +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 (!is_compute_key_provided) + { + return false; + } + + const Type38* p_type = static_cast(data); + + // Object that manages the raw buffer. + 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::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); + eprosima::fastcdr::serialize_key(ser, *p_type); + if (force_md5 || Type38_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 Type38PubSubType::register_type_object_representation() +{ + register_Type38_type_identifier(type_identifiers_); +} + +Type39PubSubType::Type39PubSubType() +{ + 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 */ + 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 (key_buffer_ != nullptr) + { + free(key_buffer_); + } +} + +bool Type39PubSubType::serialize( + const void* const data, + SerializedPayload_t& payload, + DataRepresentationId_t data_representation) +{ + const 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; + 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 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); + + // 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 Type39PubSubType::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* Type39PubSubType::create_data() +{ + return reinterpret_cast(new Type39()); +} + +void Type39PubSubType::delete_data( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type39PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + 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(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::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); + eprosima::fastcdr::serialize_key(ser, *p_type); + if (force_md5 || Type39_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 Type39PubSubType::register_type_object_representation() +{ + register_Type39_type_identifier(type_identifiers_); +} + +Type40PubSubType::Type40PubSubType() +{ + 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 */ + 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 (key_buffer_ != nullptr) + { + free(key_buffer_); + } +} + +bool Type40PubSubType::serialize( + const void* const data, + SerializedPayload_t& payload, + DataRepresentationId_t data_representation) +{ + const 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; + 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 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); + + // 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 Type40PubSubType::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* Type40PubSubType::create_data() +{ + return reinterpret_cast(new Type40()); +} + +void Type40PubSubType::delete_data( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type40PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + 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(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::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); + eprosima::fastcdr::serialize_key(ser, *p_type); + if (force_md5 || Type40_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 Type40PubSubType::register_type_object_representation() +{ + register_Type40_type_identifier(type_identifiers_); +} + +Type41PubSubType::Type41PubSubType() +{ + 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 */ + 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 (key_buffer_ != nullptr) + { + free(key_buffer_); + } +} + +bool Type41PubSubType::serialize( + const void* const data, + SerializedPayload_t& payload, + DataRepresentationId_t data_representation) +{ + const 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; + 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 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); + + // 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 Type41PubSubType::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* Type41PubSubType::create_data() +{ + return reinterpret_cast(new Type41()); +} + +void Type41PubSubType::delete_data( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type41PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + 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(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::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); + eprosima::fastcdr::serialize_key(ser, *p_type); + if (force_md5 || Type41_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 Type41PubSubType::register_type_object_representation() +{ + register_Type41_type_identifier(type_identifiers_); +} + +Type42PubSubType::Type42PubSubType() +{ + 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 */ + 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 (key_buffer_ != nullptr) + { + free(key_buffer_); + } +} + +bool Type42PubSubType::serialize( + const void* const data, + SerializedPayload_t& payload, + DataRepresentationId_t data_representation) +{ + const 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; + 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 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); + + // 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 Type42PubSubType::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* Type42PubSubType::create_data() +{ + return reinterpret_cast(new Type42()); +} + +void Type42PubSubType::delete_data( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type42PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + 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(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::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); + eprosima::fastcdr::serialize_key(ser, *p_type); + if (force_md5 || Type42_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 Type42PubSubType::register_type_object_representation() +{ + register_Type42_type_identifier(type_identifiers_); +} + +Type43PubSubType::Type43PubSubType() +{ + 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 */ + 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 (key_buffer_ != nullptr) + { + free(key_buffer_); + } +} + +bool Type43PubSubType::serialize( + const void* const data, + SerializedPayload_t& payload, + DataRepresentationId_t data_representation) +{ + const 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; + 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 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); + + // 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 Type43PubSubType::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* Type43PubSubType::create_data() +{ + return reinterpret_cast(new Type43()); +} + +void Type43PubSubType::delete_data( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type43PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + 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(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::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); + eprosima::fastcdr::serialize_key(ser, *p_type); + if (force_md5 || Type43_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 Type43PubSubType::register_type_object_representation() +{ + register_Type43_type_identifier(type_identifiers_); +} + +Type44PubSubType::Type44PubSubType() +{ + 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 */ + 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 (key_buffer_ != nullptr) + { + free(key_buffer_); + } +} + +bool Type44PubSubType::serialize( + const void* const data, + SerializedPayload_t& payload, + DataRepresentationId_t data_representation) +{ + const 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; + 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 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); + + // 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 Type44PubSubType::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* Type44PubSubType::create_data() +{ + return reinterpret_cast(new Type44()); +} + +void Type44PubSubType::delete_data( + void* data) +{ + delete(reinterpret_cast(data)); +} + +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 (!is_compute_key_provided) + { + return false; + } + + const Type44* p_type = static_cast(data); + + // Object that manages the raw buffer. + 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::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); + eprosima::fastcdr::serialize_key(ser, *p_type); + if (force_md5 || Type44_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 Type44PubSubType::register_type_object_representation() +{ + register_Type44_type_identifier(type_identifiers_); +} + +Type45PubSubType::Type45PubSubType() +{ + 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 */ + 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 (key_buffer_ != nullptr) + { + free(key_buffer_); + } +} + +bool Type45PubSubType::serialize( + const void* const data, + SerializedPayload_t& payload, + DataRepresentationId_t data_representation) +{ + const 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; + 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 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); + + // 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 Type45PubSubType::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* Type45PubSubType::create_data() +{ + return reinterpret_cast(new Type45()); +} + +void Type45PubSubType::delete_data( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type45PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + 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(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::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); + eprosima::fastcdr::serialize_key(ser, *p_type); + if (force_md5 || Type45_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 Type45PubSubType::register_type_object_representation() +{ + register_Type45_type_identifier(type_identifiers_); +} + +Type46PubSubType::Type46PubSubType() +{ + 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 */ + 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 (key_buffer_ != nullptr) + { + free(key_buffer_); + } +} + +bool Type46PubSubType::serialize( + const void* const data, + SerializedPayload_t& payload, + DataRepresentationId_t data_representation) +{ + const 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; + 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 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); + + // 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 Type46PubSubType::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* Type46PubSubType::create_data() +{ + return reinterpret_cast(new Type46()); +} + +void Type46PubSubType::delete_data( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type46PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + 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(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::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); + eprosima::fastcdr::serialize_key(ser, *p_type); + if (force_md5 || Type46_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 Type46PubSubType::register_type_object_representation() +{ + register_Type46_type_identifier(type_identifiers_); +} + +Type47PubSubType::Type47PubSubType() +{ + 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 */ + 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 (key_buffer_ != nullptr) + { + free(key_buffer_); + } +} + +bool Type47PubSubType::serialize( + const void* const data, + SerializedPayload_t& payload, + DataRepresentationId_t data_representation) +{ + const 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; + 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 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); + + // 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 Type47PubSubType::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* Type47PubSubType::create_data() +{ + return reinterpret_cast(new Type47()); +} + +void Type47PubSubType::delete_data( + void* data) +{ + delete(reinterpret_cast(data)); +} + +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 (!is_compute_key_provided) + { + return false; + } + + const Type47* p_type = static_cast(data); + + // Object that manages the raw buffer. + 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::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); + eprosima::fastcdr::serialize_key(ser, *p_type); + if (force_md5 || Type47_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 Type47PubSubType::register_type_object_representation() +{ + register_Type47_type_identifier(type_identifiers_); +} + +Type48PubSubType::Type48PubSubType() +{ + 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 */ + 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 (key_buffer_ != nullptr) + { + free(key_buffer_); + } +} + +bool Type48PubSubType::serialize( + const void* const data, + SerializedPayload_t& payload, + DataRepresentationId_t data_representation) +{ + const 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; + 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 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); + + // 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 Type48PubSubType::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* Type48PubSubType::create_data() +{ + return reinterpret_cast(new Type48()); +} + +void Type48PubSubType::delete_data( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type48PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + 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(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::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); + eprosima::fastcdr::serialize_key(ser, *p_type); + if (force_md5 || Type48_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 Type48PubSubType::register_type_object_representation() +{ + register_Type48_type_identifier(type_identifiers_); +} + +Type49PubSubType::Type49PubSubType() +{ + 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 */ + 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 (key_buffer_ != nullptr) + { + free(key_buffer_); + } +} + +bool Type49PubSubType::serialize( + const void* const data, + SerializedPayload_t& payload, + DataRepresentationId_t data_representation) +{ + const 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; + 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 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); + + // 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 Type49PubSubType::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* Type49PubSubType::create_data() +{ + return reinterpret_cast(new Type49()); +} + +void Type49PubSubType::delete_data( + void* data) +{ + delete(reinterpret_cast(data)); +} + +bool Type49PubSubType::compute_key( + SerializedPayload_t& payload, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + 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(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::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); + eprosima::fastcdr::serialize_key(ser, *p_type); + if (force_md5 || Type49_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 Type49PubSubType::register_type_object_representation() +{ + register_Type49_type_identifier(type_identifiers_); +} + +Type50PubSubType::Type50PubSubType() +{ + 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 */ + 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 (key_buffer_ != nullptr) + { + free(key_buffer_); + } +} + +bool Type50PubSubType::serialize( + const void* const data, + SerializedPayload_t& payload, + DataRepresentationId_t data_representation) +{ + const 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; + 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 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); + + // 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 Type50PubSubType::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* Type50PubSubType::create_data() +{ + return reinterpret_cast(new Type50()); +} + +void Type50PubSubType::delete_data( + void* data) +{ + delete(reinterpret_cast(data)); +} + +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 (!is_compute_key_provided) + { + return false; + } + + const Type50* p_type = static_cast(data); + + // Object that manages the raw buffer. + 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::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); + eprosima::fastcdr::serialize_key(ser, *p_type); + if (force_md5 || Type50_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 Type50PubSubType::register_type_object_representation() +{ + register_Type50_type_identifier(type_identifiers_); +} + +Type51PubSubType::Type51PubSubType() +{ + 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 */ + 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 (key_buffer_ != nullptr) + { + free(key_buffer_); + } +} + +bool Type51PubSubType::serialize( + const void* const data, + SerializedPayload_t& payload, + DataRepresentationId_t data_representation) +{ + const 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; + 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 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); + + // 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 Type51PubSubType::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* Type51PubSubType::create_data() +{ + return reinterpret_cast(new Type51()); +} + +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::compute_key( + const void* const data, + InstanceHandle_t& handle, + bool force_md5) +{ + if (!is_compute_key_provided) + { + return false; + } + + const Type51* p_type = static_cast(data); + + // Object that manages the raw buffer. + 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::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); + eprosima::fastcdr::serialize_key(ser, *p_type); + if (force_md5 || Type51_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 Type51PubSubType::register_type_object_representation() +{ + register_Type51_type_identifier(type_identifiers_); +} + +Type52PubSubType::Type52PubSubType() +{ + 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 */ + 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 (key_buffer_ != nullptr) + { + free(key_buffer_); + } +} + +bool Type52PubSubType::serialize( + const void* const data, + SerializedPayload_t& payload, + DataRepresentationId_t data_representation) +{ + const 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; + 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 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); + + // 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 Type52PubSubType::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* Type52PubSubType::create_data() +{ + return reinterpret_cast(new Type52()); +} + +void Type52PubSubType::delete_data( + void* data) +{ + delete(reinterpret_cast(data)); +} + +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 (!is_compute_key_provided) + { + return false; + } + + const Type52* p_type = static_cast(data); + + // Object that manages the raw buffer. + 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::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); + eprosima::fastcdr::serialize_key(ser, *p_type); + if (force_md5 || Type52_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 Type52PubSubType::register_type_object_representation() +{ + register_Type52_type_identifier(type_identifiers_); +} + +Type53PubSubType::Type53PubSubType() +{ + 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 */ + 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 (key_buffer_ != nullptr) + { + free(key_buffer_); + } +} + +bool Type53PubSubType::serialize( + const void* const data, + SerializedPayload_t& payload, + DataRepresentationId_t data_representation) +{ + const 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; + 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 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); + + // 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 Type53PubSubType::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* Type53PubSubType::create_data() +{ + return reinterpret_cast(new Type53()); +} + +void Type53PubSubType::delete_data( + void* data) +{ + delete(reinterpret_cast(data)); +} + +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 (!is_compute_key_provided) + { + return false; + } + + const Type53* p_type = static_cast(data); + + // Object that manages the raw buffer. + 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::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); + eprosima::fastcdr::serialize_key(ser, *p_type); + if (force_md5 || Type53_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 Type53PubSubType::register_type_object_representation() +{ + register_Type53_type_identifier(type_identifiers_); +} + +Type54PubSubType::Type54PubSubType() +{ + 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 */ + 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 (key_buffer_ != nullptr) + { + free(key_buffer_); + } +} + +bool Type54PubSubType::serialize( + const void* const data, + SerializedPayload_t& payload, + DataRepresentationId_t data_representation) +{ + const 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; + 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 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); + + // 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 Type54PubSubType::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* Type54PubSubType::create_data() +{ + return reinterpret_cast(new Type54()); +} + +void Type54PubSubType::delete_data( + void* data) +{ + delete(reinterpret_cast(data)); +} + +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 (!is_compute_key_provided) + { + return false; + } + + const Type54* p_type = static_cast(data); + + // Object that manages the raw buffer. + 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::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); + eprosima::fastcdr::serialize_key(ser, *p_type); + if (force_md5 || Type54_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 Type54PubSubType::register_type_object_representation() +{ + register_Type54_type_identifier(type_identifiers_); +} + +Type55PubSubType::Type55PubSubType() +{ + 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 */ + 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 (key_buffer_ != nullptr) + { + free(key_buffer_); + } +} + +bool Type55PubSubType::serialize( + const void* const data, + SerializedPayload_t& payload, + DataRepresentationId_t data_representation) +{ + const 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; + 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 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); + + // 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 Type55PubSubType::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* Type55PubSubType::create_data() +{ + return reinterpret_cast(new Type55()); +} + +void Type55PubSubType::delete_data( + void* data) +{ + delete(reinterpret_cast(data)); +} + +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 (!is_compute_key_provided) + { + return false; + } + + const Type55* p_type = static_cast(data); + + // Object that manages the raw buffer. + 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::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); + eprosima::fastcdr::serialize_key(ser, *p_type); + if (force_md5 || Type55_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 Type55PubSubType::register_type_object_representation() +{ + register_Type55_type_identifier(type_identifiers_); +} + +Type56PubSubType::Type56PubSubType() +{ + 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 */ + 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 (key_buffer_ != nullptr) + { + free(key_buffer_); + } +} + +bool Type56PubSubType::serialize( + const void* const data, + SerializedPayload_t& payload, + DataRepresentationId_t data_representation) +{ + const 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; + 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 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); + + // 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 Type56PubSubType::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* Type56PubSubType::create_data() +{ + return reinterpret_cast(new Type56()); +} + +void Type56PubSubType::delete_data( + void* data) +{ + delete(reinterpret_cast(data)); +} + +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 (!is_compute_key_provided) + { + return false; + } + + const Type56* p_type = static_cast(data); + + // Object that manages the raw buffer. + 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::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); + eprosima::fastcdr::serialize_key(ser, *p_type); + if (force_md5 || Type56_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 Type56PubSubType::register_type_object_representation() +{ + register_Type56_type_identifier(type_identifiers_); +} + +Type57PubSubType::Type57PubSubType() +{ + 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 */ + 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 (key_buffer_ != nullptr) + { + free(key_buffer_); + } +} + +bool Type57PubSubType::serialize( + const void* const data, + SerializedPayload_t& payload, + DataRepresentationId_t data_representation) +{ + const 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; + 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 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); + + // 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 Type57PubSubType::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* Type57PubSubType::create_data() +{ + return reinterpret_cast(new Type57()); +} + +void Type57PubSubType::delete_data( + void* data) +{ + delete(reinterpret_cast(data)); +} + +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 (!is_compute_key_provided) + { + return false; + } + + const Type57* p_type = static_cast(data); + + // Object that manages the raw buffer. + 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::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); + eprosima::fastcdr::serialize_key(ser, *p_type); + if (force_md5 || Type57_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 Type57PubSubType::register_type_object_representation() +{ + register_Type57_type_identifier(type_identifiers_); +} + +Type58PubSubType::Type58PubSubType() +{ + 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 */ + 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 (key_buffer_ != nullptr) + { + free(key_buffer_); + } +} + +bool Type58PubSubType::serialize( + const void* const data, + SerializedPayload_t& payload, + DataRepresentationId_t data_representation) +{ + const 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; + 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 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); + + // 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 Type58PubSubType::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* Type58PubSubType::create_data() +{ + return reinterpret_cast(new Type58()); +} + +void Type58PubSubType::delete_data( + void* data) +{ + delete(reinterpret_cast(data)); +} + +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 (!is_compute_key_provided) + { + return false; + } + + const Type58* p_type = static_cast(data); + + // Object that manages the raw buffer. + 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::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); + eprosima::fastcdr::serialize_key(ser, *p_type); + if (force_md5 || Type58_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 Type58PubSubType::register_type_object_representation() +{ + register_Type58_type_identifier(type_identifiers_); +} + +Type59PubSubType::Type59PubSubType() +{ + 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 */ + 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 (key_buffer_ != nullptr) + { + free(key_buffer_); + } +} + +bool Type59PubSubType::serialize( + const void* const data, + SerializedPayload_t& payload, + DataRepresentationId_t data_representation) +{ + const 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; + 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 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); + + // 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 Type59PubSubType::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* Type59PubSubType::create_data() +{ + return reinterpret_cast(new Type59()); +} + +void Type59PubSubType::delete_data( + void* data) +{ + delete(reinterpret_cast(data)); +} + +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 (!is_compute_key_provided) + { + return false; + } + + const Type59* p_type = static_cast(data); + + // Object that manages the raw buffer. + 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::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); + eprosima::fastcdr::serialize_key(ser, *p_type); + if (force_md5 || Type59_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 Type59PubSubType::register_type_object_representation() +{ + register_Type59_type_identifier(type_identifiers_); +} + +Type60PubSubType::Type60PubSubType() +{ + 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 */ + 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 (key_buffer_ != nullptr) + { + free(key_buffer_); + } +} + +bool Type60PubSubType::serialize( + const void* const data, + SerializedPayload_t& payload, + DataRepresentationId_t data_representation) +{ + const 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; + 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 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); + + // 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 Type60PubSubType::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* Type60PubSubType::create_data() +{ + return reinterpret_cast(new Type60()); +} + +void Type60PubSubType::delete_data( + void* data) +{ + delete(reinterpret_cast(data)); +} + +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 (!is_compute_key_provided) + { + return false; + } + + const Type60* p_type = static_cast(data); + + // Object that manages the raw buffer. + 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::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); + eprosima::fastcdr::serialize_key(ser, *p_type); + if (force_md5 || Type60_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 Type60PubSubType::register_type_object_representation() +{ + register_Type60_type_identifier(type_identifiers_); +} + +Type61PubSubType::Type61PubSubType() +{ + 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 */ + 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 (key_buffer_ != nullptr) + { + free(key_buffer_); + } +} + +bool Type61PubSubType::serialize( + const void* const data, + SerializedPayload_t& payload, + DataRepresentationId_t data_representation) +{ + const 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; + 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 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); + + // 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 Type61PubSubType::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* Type61PubSubType::create_data() +{ + return reinterpret_cast(new Type61()); +} + +void Type61PubSubType::delete_data( + void* data) +{ + delete(reinterpret_cast(data)); +} + +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 (!is_compute_key_provided) + { + return false; + } + + const Type61* p_type = static_cast(data); + + // Object that manages the raw buffer. + 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::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); + eprosima::fastcdr::serialize_key(ser, *p_type); + if (force_md5 || Type61_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 Type61PubSubType::register_type_object_representation() +{ + register_Type61_type_identifier(type_identifiers_); +} + +Type62PubSubType::Type62PubSubType() +{ + 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 */ + 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 (key_buffer_ != nullptr) + { + free(key_buffer_); + } +} + +bool Type62PubSubType::serialize( + const void* const data, + SerializedPayload_t& payload, + DataRepresentationId_t data_representation) +{ + const 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; + 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 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); + + // 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 Type62PubSubType::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* Type62PubSubType::create_data() +{ + return reinterpret_cast(new Type62()); +} + +void Type62PubSubType::delete_data( + void* data) +{ + delete(reinterpret_cast(data)); +} + +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 (!is_compute_key_provided) + { + return false; + } + + const Type62* p_type = static_cast(data); + + // Object that manages the raw buffer. + 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::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); + eprosima::fastcdr::serialize_key(ser, *p_type); + if (force_md5 || Type62_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 Type62PubSubType::register_type_object_representation() +{ + register_Type62_type_identifier(type_identifiers_); +} + +Type63PubSubType::Type63PubSubType() +{ + 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 */ + 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 (key_buffer_ != nullptr) + { + free(key_buffer_); + } +} + +bool Type63PubSubType::serialize( + const void* const data, + SerializedPayload_t& payload, + DataRepresentationId_t data_representation) +{ + const 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; + 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 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); + + // 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 Type63PubSubType::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* Type63PubSubType::create_data() +{ + return reinterpret_cast(new Type63()); +} + +void Type63PubSubType::delete_data( + void* data) +{ + delete(reinterpret_cast(data)); +} + +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 (!is_compute_key_provided) + { + return false; + } + + const Type63* p_type = static_cast(data); + + // Object that manages the raw buffer. + 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::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); + eprosima::fastcdr::serialize_key(ser, *p_type); + if (force_md5 || Type63_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 Type63PubSubType::register_type_object_representation() +{ + register_Type63_type_identifier(type_identifiers_); +} + +Type64PubSubType::Type64PubSubType() +{ + 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 */ + 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 (key_buffer_ != nullptr) + { + free(key_buffer_); + } +} + +bool Type64PubSubType::serialize( + const void* const data, + SerializedPayload_t& payload, + DataRepresentationId_t data_representation) +{ + const 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; + 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 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); + + // 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 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; + } +} + +void* Type64PubSubType::create_data() +{ + return reinterpret_cast(new Type64()); +} + +void Type64PubSubType::delete_data( + void* data) +{ + delete(reinterpret_cast(data)); +} + +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 (!is_compute_key_provided) + { + return false; + } + + const Type64* p_type = static_cast(data); + + // Object that manages the raw buffer. + 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::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); + eprosima::fastcdr::serialize_key(ser, *p_type); + if (force_md5 || Type64_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 Type64PubSubType::register_type_object_representation() +{ + register_Type64_type_identifier(type_identifiers_); +} + +Type65PubSubType::Type65PubSubType() +{ + 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 */ + 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 (key_buffer_ != nullptr) + { + free(key_buffer_); + } +} + +bool Type65PubSubType::serialize( + const void* const data, + SerializedPayload_t& payload, + DataRepresentationId_t data_representation) +{ + const 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; + 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 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); + + // 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 Type65PubSubType::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* Type65PubSubType::create_data() +{ + return reinterpret_cast(new Type65()); +} + +void Type65PubSubType::delete_data( + void* data) +{ + delete(reinterpret_cast(data)); +} + +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 (!is_compute_key_provided) + { + return false; + } + + const Type65* p_type = static_cast(data); + + // Object that manages the raw buffer. + 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::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); + eprosima::fastcdr::serialize_key(ser, *p_type); + if (force_md5 || Type65_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 Type65PubSubType::register_type_object_representation() +{ + register_Type65_type_identifier(type_identifiers_); +} + +Type66PubSubType::Type66PubSubType() +{ + 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 */ + 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 (key_buffer_ != nullptr) + { + free(key_buffer_); + } +} + +bool Type66PubSubType::serialize( + const void* const data, + SerializedPayload_t& payload, + DataRepresentationId_t data_representation) +{ + const 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; + 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 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); + + // 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 Type66PubSubType::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* Type66PubSubType::create_data() +{ + return reinterpret_cast(new Type66()); +} + +void Type66PubSubType::delete_data( + void* data) +{ + delete(reinterpret_cast(data)); +} + +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 (!is_compute_key_provided) + { + return false; + } + + const Type66* p_type = static_cast(data); + + // Object that manages the raw buffer. + 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::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); + eprosima::fastcdr::serialize_key(ser, *p_type); + if (force_md5 || Type66_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 Type66PubSubType::register_type_object_representation() +{ + register_Type66_type_identifier(type_identifiers_); +} + +Type67PubSubType::Type67PubSubType() +{ + 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 */ + 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 (key_buffer_ != nullptr) + { + free(key_buffer_); + } +} + +bool Type67PubSubType::serialize( + const void* const data, + SerializedPayload_t& payload, + DataRepresentationId_t data_representation) +{ + const 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; + 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 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); + + // 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 Type67PubSubType::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* Type67PubSubType::create_data() +{ + return reinterpret_cast(new Type67()); +} + +void Type67PubSubType::delete_data( + void* data) +{ + delete(reinterpret_cast(data)); +} + +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 (!is_compute_key_provided) + { + return false; + } + + const Type67* p_type = static_cast(data); + + // Object that manages the raw buffer. + 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::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); + eprosima::fastcdr::serialize_key(ser, *p_type); + if (force_md5 || Type67_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 Type67PubSubType::register_type_object_representation() +{ + register_Type67_type_identifier(type_identifiers_); +} + +Type68PubSubType::Type68PubSubType() +{ + 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 */ + 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 (key_buffer_ != nullptr) + { + free(key_buffer_); + } +} + +bool Type68PubSubType::serialize( + const void* const data, + SerializedPayload_t& payload, + DataRepresentationId_t data_representation) +{ + const 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; + 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 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); + + // 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 Type68PubSubType::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* Type68PubSubType::create_data() +{ + return reinterpret_cast(new Type68()); +} + +void Type68PubSubType::delete_data( + void* data) +{ + delete(reinterpret_cast(data)); +} + +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 (!is_compute_key_provided) + { + return false; + } + + const Type68* p_type = static_cast(data); + + // Object that manages the raw buffer. + 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::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); + eprosima::fastcdr::serialize_key(ser, *p_type); + if (force_md5 || Type68_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 Type68PubSubType::register_type_object_representation() +{ + register_Type68_type_identifier(type_identifiers_); +} + +Type69PubSubType::Type69PubSubType() +{ + 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 */ + 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 (key_buffer_ != nullptr) + { + free(key_buffer_); + } +} + +bool Type69PubSubType::serialize( + const void* const data, + SerializedPayload_t& payload, + DataRepresentationId_t data_representation) +{ + const 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; + 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 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); + + // 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 Type69PubSubType::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* Type69PubSubType::create_data() +{ + return reinterpret_cast(new Type69()); +} + +void Type69PubSubType::delete_data( + void* data) +{ + delete(reinterpret_cast(data)); +} + +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 (!is_compute_key_provided) + { + return false; + } + + const Type69* p_type = static_cast(data); + + // Object that manages the raw buffer. + 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::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); + eprosima::fastcdr::serialize_key(ser, *p_type); + if (force_md5 || Type69_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 Type69PubSubType::register_type_object_representation() +{ + register_Type69_type_identifier(type_identifiers_); +} + +Type70PubSubType::Type70PubSubType() +{ + 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 */ + 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 (key_buffer_ != nullptr) + { + free(key_buffer_); + } +} + +bool Type70PubSubType::serialize( + const void* const data, + SerializedPayload_t& payload, + DataRepresentationId_t data_representation) +{ + const 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; + 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 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); + + // 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 Type70PubSubType::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* Type70PubSubType::create_data() +{ + return reinterpret_cast(new Type70()); +} + +void Type70PubSubType::delete_data( + void* data) +{ + delete(reinterpret_cast(data)); +} + +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 (!is_compute_key_provided) + { + return false; + } + + const Type70* p_type = static_cast(data); + + // Object that manages the raw buffer. + 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::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); + eprosima::fastcdr::serialize_key(ser, *p_type); + if (force_md5 || Type70_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 Type70PubSubType::register_type_object_representation() +{ + register_Type70_type_identifier(type_identifiers_); +} + +Type71PubSubType::Type71PubSubType() +{ + 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 */ + 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 (key_buffer_ != nullptr) + { + free(key_buffer_); + } +} + +bool Type71PubSubType::serialize( + const void* const data, + SerializedPayload_t& payload, + DataRepresentationId_t data_representation) +{ + const 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; + 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 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); + + // 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 Type71PubSubType::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* Type71PubSubType::create_data() +{ + return reinterpret_cast(new Type71()); +} + +void Type71PubSubType::delete_data( + void* data) +{ + delete(reinterpret_cast(data)); +} + +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 (!is_compute_key_provided) + { + return false; + } + + const Type71* p_type = static_cast(data); + + // Object that manages the raw buffer. + 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::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); + eprosima::fastcdr::serialize_key(ser, *p_type); + if (force_md5 || Type71_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 Type71PubSubType::register_type_object_representation() +{ + register_Type71_type_identifier(type_identifiers_); +} + +Type72PubSubType::Type72PubSubType() +{ + 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 */ + 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 (key_buffer_ != nullptr) + { + free(key_buffer_); + } +} + +bool Type72PubSubType::serialize( + const void* const data, + SerializedPayload_t& payload, + DataRepresentationId_t data_representation) +{ + const 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; + 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 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); + + // 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 Type72PubSubType::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* Type72PubSubType::create_data() +{ + return reinterpret_cast(new Type72()); +} + +void Type72PubSubType::delete_data( + void* data) +{ + delete(reinterpret_cast(data)); +} + +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 (!is_compute_key_provided) + { + return false; + } + + const Type72* p_type = static_cast(data); + + // Object that manages the raw buffer. + 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::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); + eprosima::fastcdr::serialize_key(ser, *p_type); + if (force_md5 || Type72_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 Type72PubSubType::register_type_object_representation() +{ + register_Type72_type_identifier(type_identifiers_); +} + +Type73PubSubType::Type73PubSubType() +{ + 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 */ + 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 (key_buffer_ != nullptr) + { + free(key_buffer_); + } +} + +bool Type73PubSubType::serialize( + const void* const data, + SerializedPayload_t& payload, + DataRepresentationId_t data_representation) +{ + const 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; + 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 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); + + // 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 Type73PubSubType::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* Type73PubSubType::create_data() +{ + return reinterpret_cast(new Type73()); +} + +void Type73PubSubType::delete_data( + void* data) +{ + delete(reinterpret_cast(data)); +} + +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 (!is_compute_key_provided) + { + return false; + } + + const Type73* p_type = static_cast(data); + + // Object that manages the raw buffer. + 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::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); + eprosima::fastcdr::serialize_key(ser, *p_type); + if (force_md5 || Type73_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 Type73PubSubType::register_type_object_representation() +{ + register_Type73_type_identifier(type_identifiers_); +} + +Type74PubSubType::Type74PubSubType() +{ + 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 */ + 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 (key_buffer_ != nullptr) + { + free(key_buffer_); + } +} + +bool Type74PubSubType::serialize( + const void* const data, + SerializedPayload_t& payload, + DataRepresentationId_t data_representation) +{ + const 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; + 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 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); + + // 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 Type74PubSubType::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* Type74PubSubType::create_data() +{ + return reinterpret_cast(new Type74()); +} + +void Type74PubSubType::delete_data( + void* data) +{ + delete(reinterpret_cast(data)); +} + +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 (!is_compute_key_provided) + { + return false; + } + + const Type74* p_type = static_cast(data); + + // Object that manages the raw buffer. + 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::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); + eprosima::fastcdr::serialize_key(ser, *p_type); + if (force_md5 || Type74_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 Type74PubSubType::register_type_object_representation() +{ + register_Type74_type_identifier(type_identifiers_); +} + +Type75PubSubType::Type75PubSubType() +{ + 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 */ + 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 (key_buffer_ != nullptr) + { + free(key_buffer_); + } +} + +bool Type75PubSubType::serialize( + const void* const data, + SerializedPayload_t& payload, + DataRepresentationId_t data_representation) +{ + const 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; + 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 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); + + // 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 Type75PubSubType::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* Type75PubSubType::create_data() +{ + return reinterpret_cast(new Type75()); +} + +void Type75PubSubType::delete_data( + void* data) +{ + delete(reinterpret_cast(data)); +} + +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 (!is_compute_key_provided) + { + return false; + } + + const Type75* p_type = static_cast(data); + + // Object that manages the raw buffer. + 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::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); + eprosima::fastcdr::serialize_key(ser, *p_type); + if (force_md5 || Type75_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 Type75PubSubType::register_type_object_representation() +{ + register_Type75_type_identifier(type_identifiers_); +} + +Type76PubSubType::Type76PubSubType() +{ + 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 */ + 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 (key_buffer_ != nullptr) + { + free(key_buffer_); + } +} + +bool Type76PubSubType::serialize( + const void* const data, + SerializedPayload_t& payload, + DataRepresentationId_t data_representation) +{ + const 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; + 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 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); + + // 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 Type76PubSubType::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* Type76PubSubType::create_data() +{ + return reinterpret_cast(new Type76()); +} + +void Type76PubSubType::delete_data( + void* data) +{ + delete(reinterpret_cast(data)); +} + +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 (!is_compute_key_provided) + { + return false; + } + + const Type76* p_type = static_cast(data); + + // Object that manages the raw buffer. + 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::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); + eprosima::fastcdr::serialize_key(ser, *p_type); + if (force_md5 || Type76_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 Type76PubSubType::register_type_object_representation() +{ + register_Type76_type_identifier(type_identifiers_); +} + +Type77PubSubType::Type77PubSubType() +{ + 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 */ + 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 (key_buffer_ != nullptr) + { + free(key_buffer_); + } +} + +bool Type77PubSubType::serialize( + const void* const data, + SerializedPayload_t& payload, + DataRepresentationId_t data_representation) +{ + const 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; + 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 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); + + // 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 Type77PubSubType::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* Type77PubSubType::create_data() +{ + return reinterpret_cast(new Type77()); +} + +void Type77PubSubType::delete_data( + void* data) +{ + delete(reinterpret_cast(data)); +} + +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 (!is_compute_key_provided) + { + return false; + } + + const Type77* p_type = static_cast(data); + + // Object that manages the raw buffer. + 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::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); + eprosima::fastcdr::serialize_key(ser, *p_type); + if (force_md5 || Type77_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 Type77PubSubType::register_type_object_representation() +{ + register_Type77_type_identifier(type_identifiers_); +} + +Type78PubSubType::Type78PubSubType() +{ + 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 */ + 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 (key_buffer_ != nullptr) + { + free(key_buffer_); + } +} + +bool Type78PubSubType::serialize( + const void* const data, + SerializedPayload_t& payload, + DataRepresentationId_t data_representation) +{ + const 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; + 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 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); + + // 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 Type78PubSubType::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* Type78PubSubType::create_data() +{ + return reinterpret_cast(new Type78()); +} + +void Type78PubSubType::delete_data( + void* data) +{ + delete(reinterpret_cast(data)); +} + +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 (!is_compute_key_provided) + { + return false; + } + + const Type78* p_type = static_cast(data); + + // Object that manages the raw buffer. + 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::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); + eprosima::fastcdr::serialize_key(ser, *p_type); + if (force_md5 || Type78_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 Type78PubSubType::register_type_object_representation() +{ + register_Type78_type_identifier(type_identifiers_); +} + +Type79PubSubType::Type79PubSubType() +{ + 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 */ + 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 (key_buffer_ != nullptr) + { + free(key_buffer_); + } +} + +bool Type79PubSubType::serialize( + const void* const data, + SerializedPayload_t& payload, + DataRepresentationId_t data_representation) +{ + const 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; + 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 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); + + // 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 Type79PubSubType::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* Type79PubSubType::create_data() +{ + return reinterpret_cast(new Type79()); +} + +void Type79PubSubType::delete_data( + void* data) +{ + delete(reinterpret_cast(data)); +} + +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 (!is_compute_key_provided) + { + return false; + } + + const Type79* p_type = static_cast(data); + + // Object that manages the raw buffer. + 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::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); + eprosima::fastcdr::serialize_key(ser, *p_type); + if (force_md5 || Type79_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 Type79PubSubType::register_type_object_representation() +{ + register_Type79_type_identifier(type_identifiers_); +} + +Type80PubSubType::Type80PubSubType() +{ + 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 */ + 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 (key_buffer_ != nullptr) + { + free(key_buffer_); + } +} + +bool Type80PubSubType::serialize( + const void* const data, + SerializedPayload_t& payload, + DataRepresentationId_t data_representation) +{ + const 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; + 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 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); + + // 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 Type80PubSubType::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* Type80PubSubType::create_data() +{ + return reinterpret_cast(new Type80()); +} + +void Type80PubSubType::delete_data( + void* data) +{ + delete(reinterpret_cast(data)); +} + +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 (!is_compute_key_provided) + { + return false; + } + + const Type80* p_type = static_cast(data); + + // Object that manages the raw buffer. + 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::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); + eprosima::fastcdr::serialize_key(ser, *p_type); + if (force_md5 || Type80_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 Type80PubSubType::register_type_object_representation() +{ + register_Type80_type_identifier(type_identifiers_); +} + +Type81PubSubType::Type81PubSubType() +{ + 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 */ + 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 (key_buffer_ != nullptr) + { + free(key_buffer_); + } +} + +bool Type81PubSubType::serialize( + const void* const data, + SerializedPayload_t& payload, + DataRepresentationId_t data_representation) +{ + const 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; + 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 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); + + // 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 Type81PubSubType::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* Type81PubSubType::create_data() +{ + return reinterpret_cast(new Type81()); +} + +void Type81PubSubType::delete_data( + void* data) +{ + delete(reinterpret_cast(data)); +} + +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 (!is_compute_key_provided) + { + return false; + } + + const Type81* p_type = static_cast(data); + + // Object that manages the raw buffer. + 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::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); + eprosima::fastcdr::serialize_key(ser, *p_type); + if (force_md5 || Type81_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 Type81PubSubType::register_type_object_representation() +{ + register_Type81_type_identifier(type_identifiers_); +} + +Type82PubSubType::Type82PubSubType() +{ + 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 */ + 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 (key_buffer_ != nullptr) + { + free(key_buffer_); + } +} + +bool Type82PubSubType::serialize( + const void* const data, + SerializedPayload_t& payload, + DataRepresentationId_t data_representation) +{ + const 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; + 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 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); + + // 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 Type82PubSubType::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* Type82PubSubType::create_data() +{ + return reinterpret_cast(new Type82()); +} + +void Type82PubSubType::delete_data( + void* data) +{ + delete(reinterpret_cast(data)); +} + +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 (!is_compute_key_provided) + { + return false; + } + + const Type82* p_type = static_cast(data); + + // Object that manages the raw buffer. + 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::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); + eprosima::fastcdr::serialize_key(ser, *p_type); + if (force_md5 || Type82_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 Type82PubSubType::register_type_object_representation() +{ + register_Type82_type_identifier(type_identifiers_); +} + +Type83PubSubType::Type83PubSubType() +{ + 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 */ + 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 (key_buffer_ != nullptr) + { + free(key_buffer_); + } +} + +bool Type83PubSubType::serialize( + const void* const data, + SerializedPayload_t& payload, + DataRepresentationId_t data_representation) +{ + const 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; + 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 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); + + // 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 Type83PubSubType::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* Type83PubSubType::create_data() +{ + return reinterpret_cast(new Type83()); +} + +void Type83PubSubType::delete_data( + void* data) +{ + delete(reinterpret_cast(data)); +} + +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 (!is_compute_key_provided) + { + return false; + } + + const Type83* p_type = static_cast(data); + + // Object that manages the raw buffer. + 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::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); + eprosima::fastcdr::serialize_key(ser, *p_type); + if (force_md5 || Type83_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 Type83PubSubType::register_type_object_representation() +{ + register_Type83_type_identifier(type_identifiers_); +} + +Type84PubSubType::Type84PubSubType() +{ + 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 */ + 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 (key_buffer_ != nullptr) + { + free(key_buffer_); + } +} + +bool Type84PubSubType::serialize( + const void* const data, + SerializedPayload_t& payload, + DataRepresentationId_t data_representation) +{ + const 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; + 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 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); + + // 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 Type84PubSubType::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* Type84PubSubType::create_data() +{ + return reinterpret_cast(new Type84()); +} + +void Type84PubSubType::delete_data( + void* data) +{ + delete(reinterpret_cast(data)); +} + +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 (!is_compute_key_provided) + { + return false; + } + + const Type84* p_type = static_cast(data); + + // Object that manages the raw buffer. + 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::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); + eprosima::fastcdr::serialize_key(ser, *p_type); + if (force_md5 || Type84_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 Type84PubSubType::register_type_object_representation() +{ + register_Type84_type_identifier(type_identifiers_); +} + +Type85PubSubType::Type85PubSubType() +{ + 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 */ + 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 (key_buffer_ != nullptr) + { + free(key_buffer_); + } +} + +bool Type85PubSubType::serialize( + const void* const data, + SerializedPayload_t& payload, + DataRepresentationId_t data_representation) +{ + const 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; + 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 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); + + // 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 Type85PubSubType::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* Type85PubSubType::create_data() +{ + return reinterpret_cast(new Type85()); +} + +void Type85PubSubType::delete_data( + void* data) +{ + delete(reinterpret_cast(data)); +} + +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 (!is_compute_key_provided) + { + return false; + } + + const Type85* p_type = static_cast(data); + + // Object that manages the raw buffer. + 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::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); + eprosima::fastcdr::serialize_key(ser, *p_type); + if (force_md5 || Type85_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 Type85PubSubType::register_type_object_representation() +{ + register_Type85_type_identifier(type_identifiers_); +} + +Type86PubSubType::Type86PubSubType() +{ + 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 */ + 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 (key_buffer_ != nullptr) + { + free(key_buffer_); + } +} + +bool Type86PubSubType::serialize( + const void* const data, + SerializedPayload_t& payload, + DataRepresentationId_t data_representation) +{ + const 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; + 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 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); + + // 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 Type86PubSubType::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* Type86PubSubType::create_data() +{ + return reinterpret_cast(new Type86()); +} + +void Type86PubSubType::delete_data( + void* data) +{ + delete(reinterpret_cast(data)); +} + +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 (!is_compute_key_provided) + { + return false; + } + + const Type86* p_type = static_cast(data); + + // Object that manages the raw buffer. + 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::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); + eprosima::fastcdr::serialize_key(ser, *p_type); + if (force_md5 || Type86_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 Type86PubSubType::register_type_object_representation() +{ + register_Type86_type_identifier(type_identifiers_); +} + +Type87PubSubType::Type87PubSubType() +{ + 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 */ + 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 (key_buffer_ != nullptr) + { + free(key_buffer_); + } +} + +bool Type87PubSubType::serialize( + const void* const data, + SerializedPayload_t& payload, + DataRepresentationId_t data_representation) +{ + const 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; + 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 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); + + // 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 Type87PubSubType::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* Type87PubSubType::create_data() +{ + return reinterpret_cast(new Type87()); +} + +void Type87PubSubType::delete_data( + void* data) +{ + delete(reinterpret_cast(data)); +} + +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 (!is_compute_key_provided) + { + return false; + } + + const Type87* p_type = static_cast(data); + + // Object that manages the raw buffer. + 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::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); + eprosima::fastcdr::serialize_key(ser, *p_type); + if (force_md5 || Type87_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 Type87PubSubType::register_type_object_representation() +{ + register_Type87_type_identifier(type_identifiers_); +} + +Type88PubSubType::Type88PubSubType() +{ + 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 */ + 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 (key_buffer_ != nullptr) + { + free(key_buffer_); + } +} + +bool Type88PubSubType::serialize( + const void* const data, + SerializedPayload_t& payload, + DataRepresentationId_t data_representation) +{ + const 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; + 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 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); + + // 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 Type88PubSubType::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* Type88PubSubType::create_data() +{ + return reinterpret_cast(new Type88()); +} + +void Type88PubSubType::delete_data( + void* data) +{ + delete(reinterpret_cast(data)); +} + +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 (!is_compute_key_provided) + { + return false; + } + + const Type88* p_type = static_cast(data); + + // Object that manages the raw buffer. + 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::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); + eprosima::fastcdr::serialize_key(ser, *p_type); + if (force_md5 || Type88_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 Type88PubSubType::register_type_object_representation() +{ + register_Type88_type_identifier(type_identifiers_); +} + +Type89PubSubType::Type89PubSubType() +{ + 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 */ + 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 (key_buffer_ != nullptr) + { + free(key_buffer_); + } +} + +bool Type89PubSubType::serialize( + const void* const data, + SerializedPayload_t& payload, + DataRepresentationId_t data_representation) +{ + const 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; + 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 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); + + // 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 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; + } +} + +void* Type89PubSubType::create_data() +{ + return reinterpret_cast(new Type89()); +} + +void Type89PubSubType::delete_data( + void* data) +{ + delete(reinterpret_cast(data)); +} + +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 (!is_compute_key_provided) + { + return false; + } + + const Type89* p_type = static_cast(data); + + // Object that manages the raw buffer. + 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::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); + eprosima::fastcdr::serialize_key(ser, *p_type); + if (force_md5 || Type89_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 Type89PubSubType::register_type_object_representation() +{ + register_Type89_type_identifier(type_identifiers_); +} + +Type90PubSubType::Type90PubSubType() +{ + 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 */ + 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 (key_buffer_ != nullptr) + { + free(key_buffer_); + } +} + +bool Type90PubSubType::serialize( + const void* const data, + SerializedPayload_t& payload, + DataRepresentationId_t data_representation) +{ + const 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; + 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 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); + + // 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 Type90PubSubType::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* Type90PubSubType::create_data() +{ + return reinterpret_cast(new Type90()); +} + +void Type90PubSubType::delete_data( + void* data) +{ + delete(reinterpret_cast(data)); +} + +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 (!is_compute_key_provided) + { + return false; + } + + const Type90* p_type = static_cast(data); + + // Object that manages the raw buffer. + 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::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); + eprosima::fastcdr::serialize_key(ser, *p_type); + if (force_md5 || Type90_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 Type90PubSubType::register_type_object_representation() +{ + register_Type90_type_identifier(type_identifiers_); +} + +Type91PubSubType::Type91PubSubType() +{ + 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 */ + 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 (key_buffer_ != nullptr) + { + free(key_buffer_); + } +} + +bool Type91PubSubType::serialize( + const void* const data, + SerializedPayload_t& payload, + DataRepresentationId_t data_representation) +{ + const 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; + 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 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); + + // 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 Type91PubSubType::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* Type91PubSubType::create_data() +{ + return reinterpret_cast(new Type91()); +} + +void Type91PubSubType::delete_data( + void* data) +{ + delete(reinterpret_cast(data)); +} + +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 (!is_compute_key_provided) + { + return false; + } + + const Type91* p_type = static_cast(data); + + // Object that manages the raw buffer. + 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::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); + eprosima::fastcdr::serialize_key(ser, *p_type); + if (force_md5 || Type91_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 Type91PubSubType::register_type_object_representation() +{ + register_Type91_type_identifier(type_identifiers_); +} + +Type92PubSubType::Type92PubSubType() +{ + 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 */ + 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 (key_buffer_ != nullptr) + { + free(key_buffer_); + } +} + +bool Type92PubSubType::serialize( + const void* const data, + SerializedPayload_t& payload, + DataRepresentationId_t data_representation) +{ + const 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; + 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 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); + + // 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 Type92PubSubType::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* Type92PubSubType::create_data() +{ + return reinterpret_cast(new Type92()); +} + +void Type92PubSubType::delete_data( + void* data) +{ + delete(reinterpret_cast(data)); +} + +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 (!is_compute_key_provided) + { + return false; + } + + const Type92* p_type = static_cast(data); + + // Object that manages the raw buffer. + 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::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); + eprosima::fastcdr::serialize_key(ser, *p_type); + if (force_md5 || Type92_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 Type92PubSubType::register_type_object_representation() +{ + register_Type92_type_identifier(type_identifiers_); +} + +Type93PubSubType::Type93PubSubType() +{ + 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 */ + 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 (key_buffer_ != nullptr) + { + free(key_buffer_); + } +} + +bool Type93PubSubType::serialize( + const void* const data, + SerializedPayload_t& payload, + DataRepresentationId_t data_representation) +{ + const 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; + 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 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); + + // 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 Type93PubSubType::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* Type93PubSubType::create_data() +{ + return reinterpret_cast(new Type93()); +} + +void Type93PubSubType::delete_data( + void* data) +{ + delete(reinterpret_cast(data)); +} + +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 (!is_compute_key_provided) + { + return false; + } + + const Type93* p_type = static_cast(data); + + // Object that manages the raw buffer. + 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::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); + eprosima::fastcdr::serialize_key(ser, *p_type); + if (force_md5 || Type93_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 Type93PubSubType::register_type_object_representation() +{ + register_Type93_type_identifier(type_identifiers_); +} + +Type94PubSubType::Type94PubSubType() +{ + 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 */ + 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 (key_buffer_ != nullptr) + { + free(key_buffer_); + } +} + +bool Type94PubSubType::serialize( + const void* const data, + SerializedPayload_t& payload, + DataRepresentationId_t data_representation) +{ + const 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; + 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 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); + + // 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 Type94PubSubType::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* Type94PubSubType::create_data() +{ + return reinterpret_cast(new Type94()); +} + +void Type94PubSubType::delete_data( + void* data) +{ + delete(reinterpret_cast(data)); +} + +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 (!is_compute_key_provided) + { + return false; + } + + const Type94* p_type = static_cast(data); + + // Object that manages the raw buffer. + 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::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); + eprosima::fastcdr::serialize_key(ser, *p_type); + if (force_md5 || Type94_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 Type94PubSubType::register_type_object_representation() +{ + register_Type94_type_identifier(type_identifiers_); +} + +Type95PubSubType::Type95PubSubType() +{ + 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 */ + 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 (key_buffer_ != nullptr) + { + free(key_buffer_); + } +} + +bool Type95PubSubType::serialize( + const void* const data, + SerializedPayload_t& payload, + DataRepresentationId_t data_representation) +{ + const 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; + 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 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); + + // 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 Type95PubSubType::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* Type95PubSubType::create_data() +{ + return reinterpret_cast(new Type95()); +} + +void Type95PubSubType::delete_data( + void* data) +{ + delete(reinterpret_cast(data)); +} + +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 (!is_compute_key_provided) + { + return false; + } + + const Type95* p_type = static_cast(data); + + // Object that manages the raw buffer. + 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::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); + eprosima::fastcdr::serialize_key(ser, *p_type); + if (force_md5 || Type95_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 Type95PubSubType::register_type_object_representation() +{ + register_Type95_type_identifier(type_identifiers_); +} + +Type96PubSubType::Type96PubSubType() +{ + 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 */ + 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 (key_buffer_ != nullptr) + { + free(key_buffer_); + } +} + +bool Type96PubSubType::serialize( + const void* const data, + SerializedPayload_t& payload, + DataRepresentationId_t data_representation) +{ + const 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; + 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 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); + + // 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 Type96PubSubType::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* Type96PubSubType::create_data() +{ + return reinterpret_cast(new Type96()); +} + +void Type96PubSubType::delete_data( + void* data) +{ + delete(reinterpret_cast(data)); +} + +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 (!is_compute_key_provided) + { + return false; + } + + const Type96* p_type = static_cast(data); + + // Object that manages the raw buffer. + 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::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); + eprosima::fastcdr::serialize_key(ser, *p_type); + if (force_md5 || Type96_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 Type96PubSubType::register_type_object_representation() +{ + register_Type96_type_identifier(type_identifiers_); +} + +Type97PubSubType::Type97PubSubType() +{ + 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 */ + 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 (key_buffer_ != nullptr) + { + free(key_buffer_); + } +} + +bool Type97PubSubType::serialize( + const void* const data, + SerializedPayload_t& payload, + DataRepresentationId_t data_representation) +{ + const 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; + 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 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); + + // 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 Type97PubSubType::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* Type97PubSubType::create_data() +{ + return reinterpret_cast(new Type97()); +} + +void Type97PubSubType::delete_data( + void* data) +{ + delete(reinterpret_cast(data)); +} + +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 (!is_compute_key_provided) + { + return false; + } + + const Type97* p_type = static_cast(data); + + // Object that manages the raw buffer. + 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::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); + eprosima::fastcdr::serialize_key(ser, *p_type); + if (force_md5 || Type97_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 Type97PubSubType::register_type_object_representation() +{ + register_Type97_type_identifier(type_identifiers_); +} + +Type98PubSubType::Type98PubSubType() +{ + 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 */ + 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 (key_buffer_ != nullptr) + { + free(key_buffer_); + } +} + +bool Type98PubSubType::serialize( + const void* const data, + SerializedPayload_t& payload, + DataRepresentationId_t data_representation) +{ + const 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; + 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 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); + + // 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 Type98PubSubType::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* Type98PubSubType::create_data() +{ + return reinterpret_cast(new Type98()); +} + +void Type98PubSubType::delete_data( + void* data) +{ + delete(reinterpret_cast(data)); +} + +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 (!is_compute_key_provided) + { + return false; + } + + const Type98* p_type = static_cast(data); + + // Object that manages the raw buffer. + 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::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); + eprosima::fastcdr::serialize_key(ser, *p_type); + if (force_md5 || Type98_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 Type98PubSubType::register_type_object_representation() +{ + register_Type98_type_identifier(type_identifiers_); +} + +Type99PubSubType::Type99PubSubType() +{ + 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 */ + 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 (key_buffer_ != nullptr) + { + free(key_buffer_); + } +} + +bool Type99PubSubType::serialize( + const void* const data, + SerializedPayload_t& payload, + DataRepresentationId_t data_representation) +{ + const 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; + 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 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); + + // 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 Type99PubSubType::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* Type99PubSubType::create_data() +{ + return reinterpret_cast(new Type99()); +} + +void Type99PubSubType::delete_data( + void* data) +{ + delete(reinterpret_cast(data)); +} + +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 (!is_compute_key_provided) + { + return false; + } + + const Type99* p_type = static_cast(data); + + // Object that manages the raw buffer. + 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::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); + eprosima::fastcdr::serialize_key(ser, *p_type); + if (force_md5 || Type99_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 Type99PubSubType::register_type_object_representation() +{ + register_Type99_type_identifier(type_identifiers_); +} + +Type100PubSubType::Type100PubSubType() +{ + 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 */ + 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 (key_buffer_ != nullptr) + { + free(key_buffer_); + } +} + +bool Type100PubSubType::serialize( + const void* const data, + SerializedPayload_t& payload, + DataRepresentationId_t data_representation) +{ + const 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; + 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 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); + + // 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 Type100PubSubType::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* Type100PubSubType::create_data() +{ + return reinterpret_cast(new Type100()); +} + +void Type100PubSubType::delete_data( + void* data) +{ + delete(reinterpret_cast(data)); +} + +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 (!is_compute_key_provided) + { + return false; + } + + const Type100* p_type = static_cast(data); + + // Object that manages the raw buffer. + 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::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); + eprosima::fastcdr::serialize_key(ser, *p_type); + if (force_md5 || Type100_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 Type100PubSubType::register_type_object_representation() +{ + register_Type100_type_identifier(type_identifiers_); +} + +TypeBigPubSubType::TypeBigPubSubType() +{ + 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 */ + 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 (key_buffer_ != nullptr) + { + free(key_buffer_); + } +} + +bool TypeBigPubSubType::serialize( + const void* const data, + SerializedPayload_t& payload, + DataRepresentationId_t data_representation) +{ + const 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; + 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 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); + + // 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 TypeBigPubSubType::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* TypeBigPubSubType::create_data() +{ + return reinterpret_cast(new TypeBig()); +} + +void TypeBigPubSubType::delete_data( + void* data) +{ + delete(reinterpret_cast(data)); +} + +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 (!is_compute_key_provided) + { + return false; + } + + const TypeBig* p_type = static_cast(data); + + // Object that manages the raw buffer. + 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::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); + eprosima::fastcdr::serialize_key(ser, *p_type); + if (force_md5 || TypeBig_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 TypeBigPubSubType::register_type_object_representation() +{ + register_TypeBig_type_identifier(type_identifiers_); +} + + +// Include auxiliary functions like for serializing/deserializing. +#include "XtypesTestsTypeBigCdrAux.ipp" diff --git a/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeBigPubSubTypes.hpp b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeBigPubSubTypes.hpp new file mode 100644 index 00000000000..5743d097e41 --- /dev/null +++ b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeBigPubSubTypes.hpp @@ -0,0 +1,7983 @@ +// 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.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_HPP +#define FAST_DDS_GENERATED__XTYPESTESTSTYPEBIG_PUBSUBTYPES_HPP + +#include +#include +#include +#include +#include + +#include "XtypesTestsTypeBig.hpp" + +#include "XtypesTestsType1PubSubTypes.hpp" +#include "XtypesTestsType2PubSubTypes.hpp" +#include "XtypesTestsType3PubSubTypes.hpp" + +#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 // FASTDDS_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( + 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 false; + } + +#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_; + +}; + +/*! + * @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( + 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 false; + } + +#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_; + +}; + +/*! + * @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( + 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 false; + } + +#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_; + +}; + +/*! + * @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( + 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 false; + } + +#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_; + +}; + +/*! + * @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( + 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 false; + } + +#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_; + +}; + +/*! + * @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( + 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 false; + } + +#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_; + +}; + +/*! + * @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( + 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 false; + } + +#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_; + +}; + +/*! + * @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( + 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 false; + } + +#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_; + +}; + +/*! + * @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( + 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 false; + } + +#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_; + +}; + +/*! + * @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( + 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 false; + } + +#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_; + +}; + +/*! + * @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( + 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 false; + } + +#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_; + +}; + +/*! + * @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( + 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 false; + } + +#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_; + +}; + +/*! + * @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( + 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 false; + } + +#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_; + +}; + +/*! + * @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( + 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 false; + } + +#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_; + +}; + +/*! + * @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( + 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 false; + } + +#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_; + +}; + +/*! + * @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( + 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 false; + } + +#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_; + +}; + +/*! + * @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( + 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 false; + } + +#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_; + +}; + +/*! + * @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( + 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 false; + } + +#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_; + +}; + +/*! + * @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( + 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 false; + } + +#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_; + +}; + +/*! + * @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( + 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 false; + } + +#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_; + +}; + +/*! + * @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( + 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 false; + } + +#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_; + +}; + +/*! + * @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( + 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 false; + } + +#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_; + +}; + +/*! + * @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( + 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 false; + } + +#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_; + +}; + +/*! + * @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( + 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 false; + } + +#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_; + +}; + +/*! + * @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( + 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 false; + } + +#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_; + +}; + +/*! + * @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( + 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 false; + } + +#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_; + +}; + +/*! + * @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( + 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 false; + } + +#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_; + +}; + +/*! + * @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( + 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 false; + } + +#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_; + +}; + +/*! + * @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( + 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 false; + } + +#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_; + +}; + +/*! + * @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( + 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 false; + } + +#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_; + +}; + +/*! + * @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( + 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 false; + } + +#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_; + +}; + +/*! + * @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( + 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 false; + } + +#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_; + +}; + +/*! + * @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( + 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 false; + } + +#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_; + +}; + +/*! + * @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( + 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 false; + } + +#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_; + +}; + +/*! + * @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( + 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 false; + } + +#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_; + +}; + +/*! + * @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( + 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 false; + } + +#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_; + +}; + +/*! + * @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( + 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 false; + } + +#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_; + +}; + +/*! + * @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( + 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 false; + } + +#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_; + +}; + +/*! + * @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( + 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 false; + } + +#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_; + +}; + +/*! + * @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( + 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 false; + } + +#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_; + +}; + +/*! + * @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( + 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 false; + } + +#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_; + +}; + +/*! + * @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( + 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 false; + } + +#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_; + +}; + +/*! + * @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( + 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 false; + } + +#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_; + +}; + +/*! + * @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( + 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 false; + } + +#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_; + +}; + +/*! + * @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( + 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 false; + } + +#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_; + +}; + +/*! + * @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( + 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 false; + } + +#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_; + +}; + +/*! + * @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( + 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 false; + } + +#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_; + +}; + +/*! + * @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( + 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 false; + } + +#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_; + +}; + +/*! + * @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( + 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 false; + } + +#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_; + +}; + +/*! + * @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( + 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 false; + } + +#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_; + +}; + +/*! + * @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( + 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 false; + } + +#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_; + +}; + +/*! + * @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( + 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 false; + } + +#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_; + +}; + +/*! + * @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( + 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 false; + } + +#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_; + +}; + +/*! + * @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( + 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 false; + } + +#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_; + +}; + +/*! + * @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( + 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 false; + } + +#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_; + +}; + +/*! + * @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( + 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 false; + } + +#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_; + +}; + +/*! + * @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( + 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 false; + } + +#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_; + +}; + +/*! + * @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( + 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 false; + } + +#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_; + +}; + +/*! + * @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( + 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 false; + } + +#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_; + +}; + +/*! + * @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( + 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 false; + } + +#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_; + +}; + +/*! + * @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( + 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 false; + } + +#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_; + +}; + +/*! + * @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( + 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 false; + } + +#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_; + +}; + +/*! + * @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( + 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 false; + } + +#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_; + +}; + +/*! + * @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( + 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 false; + } + +#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_; + +}; + +/*! + * @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( + 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 false; + } + +#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_; + +}; + +/*! + * @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( + 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 false; + } + +#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_; + +}; + +/*! + * @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( + 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 false; + } + +#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_; + +}; + +/*! + * @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( + 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 false; + } + +#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_; + +}; + +/*! + * @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( + 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 false; + } + +#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_; + +}; + +/*! + * @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( + 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 false; + } + +#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_; + +}; + +/*! + * @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( + 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 false; + } + +#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_; + +}; + +/*! + * @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( + 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 false; + } + +#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_; + +}; + +/*! + * @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( + 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 false; + } + +#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_; + +}; + +/*! + * @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( + 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 false; + } + +#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_; + +}; + +/*! + * @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( + 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 false; + } + +#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_; + +}; + +/*! + * @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( + 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 false; + } + +#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_; + +}; + +/*! + * @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( + 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 false; + } + +#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_; + +}; + +/*! + * @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( + 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 false; + } + +#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_; + +}; + +/*! + * @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( + 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 false; + } + +#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_; + +}; + +/*! + * @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( + 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 false; + } + +#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_; + +}; + +/*! + * @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( + 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 false; + } + +#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_; + +}; + +/*! + * @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( + 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 false; + } + +#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_; + +}; + +/*! + * @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( + 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 false; + } + +#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_; + +}; + +/*! + * @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( + 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 false; + } + +#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_; + +}; + +/*! + * @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( + 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 false; + } + +#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_; + +}; + +/*! + * @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( + 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 false; + } + +#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_; + +}; + +/*! + * @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( + 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 false; + } + +#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_; + +}; + +/*! + * @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( + 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 false; + } + +#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_; + +}; + +/*! + * @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( + 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 false; + } + +#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_; + +}; + +/*! + * @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( + 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 false; + } + +#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_; + +}; + +/*! + * @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( + 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 false; + } + +#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_; + +}; + +/*! + * @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( + 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 false; + } + +#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_; + +}; + +/*! + * @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( + 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 false; + } + +#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_; + +}; + +/*! + * @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( + 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 false; + } + +#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_; + +}; + +/*! + * @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( + 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 false; + } + +#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_; + +}; + +/*! + * @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( + 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 false; + } + +#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_; + +}; + +/*! + * @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( + 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 false; + } + +#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_; + +}; + +/*! + * @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( + 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 false; + } + +#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__XTYPESTESTSTYPEBIG_PUBSUBTYPES_HPP + diff --git a/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeBigTypeObjectSupport.cxx b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeBigTypeObjectSupport.cxx new file mode 100644 index 00000000000..eab4dba3698 --- /dev/null +++ b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeBigTypeObjectSupport.cxx @@ -0,0 +1,9410 @@ +// 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; + +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_Type4_type_identifier( + TypeIdentifierPair& type_ids_Type4) +{ + + 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::APPENDABLE, + false, false); + 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; + { + 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_Type4.reset(); + 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 == + 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."); + } + } +} +// 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::APPENDABLE, + false, false); + 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; + { + 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_Type5.reset(); + 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 == + 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."); + } + } +} +// 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::APPENDABLE, + false, false); + 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; + { + 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_Type6.reset(); + 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 == + 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."); + } + } +} +// 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::APPENDABLE, + false, false); + 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; + { + 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_Type7.reset(); + 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 == + 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."); + } + } +} +// 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::APPENDABLE, + false, false); + 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; + { + 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_Type8.reset(); + 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 == + 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."); + } + } +} +// 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::APPENDABLE, + false, false); + 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; + { + 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_Type9.reset(); + 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 == + 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."); + } + } +} +// 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::APPENDABLE, + false, false); + 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; + { + 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_Type10.reset(); + 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 == + 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."); + } + } +} +// 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::APPENDABLE, + false, false); + 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; + { + 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_Type11.reset(); + 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 == + 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."); + } + } +} +// 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::APPENDABLE, + false, false); + 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; + { + 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_Type12.reset(); + 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 == + 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."); + } + } +} +// 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::APPENDABLE, + false, false); + 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; + { + 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_Type13.reset(); + 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 == + 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."); + } + } +} +// 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::APPENDABLE, + false, false); + 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; + { + 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_Type14.reset(); + 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 == + 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."); + } + } +} +// 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::APPENDABLE, + false, false); + 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; + { + 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_Type15.reset(); + 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 == + 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."); + } + } +} +// 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::APPENDABLE, + false, false); + 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; + { + 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_Type16.reset(); + 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 == + 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."); + } + } +} +// 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::APPENDABLE, + false, false); + 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; + { + 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_Type17.reset(); + 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 == + 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."); + } + } +} +// 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::APPENDABLE, + false, false); + 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; + { + 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_Type18.reset(); + 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 == + 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."); + } + } +} +// 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::APPENDABLE, + false, false); + 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; + { + 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_Type19.reset(); + 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 == + 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."); + } + } +} +// 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::APPENDABLE, + false, false); + 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; + { + 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_Type20.reset(); + 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 == + 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."); + } + } +} +// 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::APPENDABLE, + false, false); + 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; + { + 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_Type21.reset(); + 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 == + 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."); + } + } +} +// 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::APPENDABLE, + false, false); + 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; + { + 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_Type22.reset(); + 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 == + 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."); + } + } +} +// 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::APPENDABLE, + false, false); + 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; + { + 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_Type23.reset(); + 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 == + 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."); + } + } +} +// 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::APPENDABLE, + false, false); + 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; + { + 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_Type24.reset(); + 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 == + 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."); + } + } +} +// 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::APPENDABLE, + false, false); + 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; + { + 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_Type25.reset(); + 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 == + 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."); + } + } +} +// 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::APPENDABLE, + false, false); + 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; + { + 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_Type26.reset(); + 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 == + 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."); + } + } +} +// 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::APPENDABLE, + false, false); + 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; + { + 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_Type27.reset(); + 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 == + 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."); + } + } +} +// 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::APPENDABLE, + false, false); + 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; + { + 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_Type28.reset(); + 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 == + 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."); + } + } +} +// 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::APPENDABLE, + false, false); + 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; + { + 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_Type29.reset(); + 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 == + 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."); + } + } +} +// 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::APPENDABLE, + false, false); + 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; + { + 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_Type30.reset(); + 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 == + 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."); + } + } +} +// 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::APPENDABLE, + false, false); + 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; + { + 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_Type31.reset(); + 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 == + 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."); + } + } +} +// 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::APPENDABLE, + false, false); + 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; + { + 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_Type32.reset(); + 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 == + 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."); + } + } +} +// 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::APPENDABLE, + false, false); + 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; + { + 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_Type33.reset(); + 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 == + 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."); + } + } +} +// 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::APPENDABLE, + false, false); + 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; + { + 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_Type34.reset(); + 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 == + 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."); + } + } +} +// 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::APPENDABLE, + false, false); + 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; + { + 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_Type35.reset(); + 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 == + 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."); + } + } +} +// 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::APPENDABLE, + false, false); + 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; + { + 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_Type36.reset(); + 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 == + 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."); + } + } +} +// 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::APPENDABLE, + false, false); + 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; + { + 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_Type37.reset(); + 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 == + 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."); + } + } +} +// 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::APPENDABLE, + false, false); + 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; + { + 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_Type38.reset(); + 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 == + 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."); + } + } +} +// 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::APPENDABLE, + false, false); + 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; + { + 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_Type39.reset(); + 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 == + 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."); + } + } +} +// 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::APPENDABLE, + false, false); + 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; + { + 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_Type40.reset(); + 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 == + 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."); + } + } +} +// 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::APPENDABLE, + false, false); + 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; + { + 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_Type41.reset(); + 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 == + 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."); + } + } +} +// 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::APPENDABLE, + false, false); + 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; + { + 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_Type42.reset(); + 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 == + 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."); + } + } +} +// 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::APPENDABLE, + false, false); + 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; + { + 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_Type43.reset(); + 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 == + 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."); + } + } +} +// 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::APPENDABLE, + false, false); + 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; + { + 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_Type44.reset(); + 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 == + 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."); + } + } +} +// 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::APPENDABLE, + false, false); + 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; + { + 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_Type45.reset(); + 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 == + 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."); + } + } +} +// 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::APPENDABLE, + false, false); + 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; + { + 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_Type46.reset(); + 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 == + 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."); + } + } +} +// 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::APPENDABLE, + false, false); + 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; + { + 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_Type47.reset(); + 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 == + 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."); + } + } +} +// 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::APPENDABLE, + false, false); + 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; + { + 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_Type48.reset(); + 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 == + 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."); + } + } +} +// 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::APPENDABLE, + false, false); + 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; + { + 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_Type49.reset(); + 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 == + 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."); + } + } +} +// 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::APPENDABLE, + false, false); + 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; + { + 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_Type50.reset(); + 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 == + 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."); + } + } +} +// 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::APPENDABLE, + false, false); + 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; + { + 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_Type51.reset(); + 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 == + 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."); + } + } +} +// 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::APPENDABLE, + false, false); + 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; + { + 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_Type52.reset(); + 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 == + 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."); + } + } +} +// 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::APPENDABLE, + false, false); + 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; + { + 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_Type53.reset(); + 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 == + 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."); + } + } +} +// 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::APPENDABLE, + false, false); + 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; + { + 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_Type54.reset(); + 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 == + 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."); + } + } +} +// 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::APPENDABLE, + false, false); + 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; + { + 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_Type55.reset(); + 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 == + 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."); + } + } +} +// 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::APPENDABLE, + false, false); + 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; + { + 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_Type56.reset(); + 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 == + 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."); + } + } +} +// 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::APPENDABLE, + false, false); + 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; + { + 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_Type57.reset(); + 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 == + 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."); + } + } +} +// 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::APPENDABLE, + false, false); + 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; + { + 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_Type58.reset(); + 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 == + 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."); + } + } +} +// 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::APPENDABLE, + false, false); + 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; + { + 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_Type59.reset(); + 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 == + 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."); + } + } +} +// 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::APPENDABLE, + false, false); + 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; + { + 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_Type60.reset(); + 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 == + 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."); + } + } +} +// 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::APPENDABLE, + false, false); + 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; + { + 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_Type61.reset(); + 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 == + 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."); + } + } +} +// 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::APPENDABLE, + false, false); + 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; + { + 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_Type62.reset(); + 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 == + 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."); + } + } +} +// 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::APPENDABLE, + false, false); + 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; + { + 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_Type63.reset(); + 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 == + 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."); + } + } +} +// 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::APPENDABLE, + false, false); + 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; + { + 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_Type64.reset(); + 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 == + 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."); + } + } +} +// 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::APPENDABLE, + false, false); + 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; + { + 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_Type65.reset(); + 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 == + 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."); + } + } +} +// 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::APPENDABLE, + false, false); + 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; + { + 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_Type66.reset(); + 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 == + 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."); + } + } +} +// 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::APPENDABLE, + false, false); + 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; + { + 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_Type67.reset(); + 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 == + 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."); + } + } +} +// 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::APPENDABLE, + false, false); + 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; + { + 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_Type68.reset(); + 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 == + 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."); + } + } +} +// 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::APPENDABLE, + false, false); + 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; + { + 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_Type69.reset(); + 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 == + 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."); + } + } +} +// 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::APPENDABLE, + false, false); + 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; + { + 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_Type70.reset(); + 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 == + 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."); + } + } +} +// 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::APPENDABLE, + false, false); + 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; + { + 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_Type71.reset(); + 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 == + 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."); + } + } +} +// 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::APPENDABLE, + false, false); + 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; + { + 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_Type72.reset(); + 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 == + 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."); + } + } +} +// 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::APPENDABLE, + false, false); + 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; + { + 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_Type73.reset(); + 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 == + 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."); + } + } +} +// 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::APPENDABLE, + false, false); + 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; + { + 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_Type74.reset(); + 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 == + 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."); + } + } +} +// 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::APPENDABLE, + false, false); + 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; + { + 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_Type75.reset(); + 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 == + 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."); + } + } +} +// 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::APPENDABLE, + false, false); + 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; + { + 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_Type76.reset(); + 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 == + 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."); + } + } +} +// 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::APPENDABLE, + false, false); + 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; + { + 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_Type77.reset(); + 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 == + 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."); + } + } +} +// 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::APPENDABLE, + false, false); + 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; + { + 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_Type78.reset(); + 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 == + 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."); + } + } +} +// 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::APPENDABLE, + false, false); + 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; + { + 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_Type79.reset(); + 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 == + 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."); + } + } +} +// 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::APPENDABLE, + false, false); + 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; + { + 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_Type80.reset(); + 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 == + 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."); + } + } +} +// 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::APPENDABLE, + false, false); + 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; + { + 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_Type81.reset(); + 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 == + 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."); + } + } +} +// 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::APPENDABLE, + false, false); + 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; + { + 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_Type82.reset(); + 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 == + 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."); + } + } +} +// 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::APPENDABLE, + false, false); + 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; + { + 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_Type83.reset(); + 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 == + 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."); + } + } +} +// 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::APPENDABLE, + false, false); + 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; + { + 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_Type84.reset(); + 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 == + 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."); + } + } +} +// 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::APPENDABLE, + false, false); + 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; + { + 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_Type85.reset(); + 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 == + 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."); + } + } +} +// 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::APPENDABLE, + false, false); + 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; + { + 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_Type86.reset(); + 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 == + 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."); + } + } +} +// 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::APPENDABLE, + false, false); + 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; + { + 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_Type87.reset(); + 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 == + 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."); + } + } +} +// 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::APPENDABLE, + false, false); + 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; + { + 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_Type88.reset(); + 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 == + 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."); + } + } +} +// 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::APPENDABLE, + false, false); + 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; + { + 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_Type89.reset(); + 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 == + 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."); + } + } +} +// 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::APPENDABLE, + false, false); + 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; + { + 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_Type90.reset(); + 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 == + 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."); + } + } +} +// 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::APPENDABLE, + false, false); + 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; + { + 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_Type91.reset(); + 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 == + 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."); + } + } +} +// 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::APPENDABLE, + false, false); + 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; + { + 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_Type92.reset(); + 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 == + 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."); + } + } +} +// 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::APPENDABLE, + false, false); + 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; + { + 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_Type93.reset(); + 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 == + 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."); + } + } +} +// 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::APPENDABLE, + false, false); + 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; + { + 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_Type94.reset(); + 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 == + 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."); + } + } +} +// 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::APPENDABLE, + false, false); + 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; + { + 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_Type95.reset(); + 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 == + 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."); + } + } +} +// 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::APPENDABLE, + false, false); + 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; + { + 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_Type96.reset(); + 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 == + 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."); + } + } +} +// 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::APPENDABLE, + false, false); + 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; + { + 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_Type97.reset(); + 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 == + 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."); + } + } +} +// 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::APPENDABLE, + false, false); + 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; + { + 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_Type98.reset(); + 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 == + 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."); + } + } +} +// 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::APPENDABLE, + false, false); + 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; + { + 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_Type99.reset(); + 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 == + 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."); + } + } +} +// 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::APPENDABLE, + false, false); + 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; + { + 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_Type100.reset(); + 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 == + 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."); + } + } +} +// 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::APPENDABLE, + false, false); + 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; + { + 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_TypeBig.reset(); + 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; + 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_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); + MemberId member_id_dep1 = 0x00000001; + 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."); + 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); + } + { + 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_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); + MemberId member_id_dep2 = 0x00000002; + 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."); + 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); + } + { + 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_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); + MemberId member_id_dep3 = 0x00000003; + 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."); + 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); + } + { + 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_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); + MemberId member_id_dep4 = 0x00000004; + 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."); + 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); + } + { + 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_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); + MemberId member_id_dep5 = 0x00000005; + 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."); + 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); + } + { + 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_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); + MemberId member_id_dep6 = 0x00000006; + 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."); + 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); + } + { + 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_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); + MemberId member_id_dep7 = 0x00000007; + 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."); + 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); + } + { + 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_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); + MemberId member_id_dep8 = 0x00000008; + 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."); + 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); + } + { + 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_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); + MemberId member_id_dep9 = 0x00000009; + 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."); + 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); + } + { + 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_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); + MemberId member_id_dep10 = 0x0000000a; + 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."); + 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); + } + { + 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_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); + MemberId member_id_dep11 = 0x0000000b; + 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."); + 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); + } + { + 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_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); + MemberId member_id_dep12 = 0x0000000c; + 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."); + 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); + } + { + 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_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); + MemberId member_id_dep13 = 0x0000000d; + 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."); + 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); + } + { + 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_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); + MemberId member_id_dep14 = 0x0000000e; + 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."); + 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); + } + { + 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_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); + MemberId member_id_dep15 = 0x0000000f; + 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."); + 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); + } + { + 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_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); + MemberId member_id_dep16 = 0x00000010; + 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."); + 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); + } + { + 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_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); + MemberId member_id_dep17 = 0x00000011; + 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."); + 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); + } + { + 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_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); + MemberId member_id_dep18 = 0x00000012; + 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."); + 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); + } + { + 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_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); + MemberId member_id_dep19 = 0x00000013; + 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."); + 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); + } + { + 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_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); + MemberId member_id_dep20 = 0x00000014; + 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."); + 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); + } + { + 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_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); + MemberId member_id_dep21 = 0x00000015; + 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."); + 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); + } + { + 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_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); + MemberId member_id_dep22 = 0x00000016; + 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."); + 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); + } + { + 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_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); + MemberId member_id_dep23 = 0x00000017; + 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."); + 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); + } + { + 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_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); + MemberId member_id_dep24 = 0x00000018; + 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."); + 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); + } + { + 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_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); + MemberId member_id_dep25 = 0x00000019; + 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."); + 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); + } + { + 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_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); + MemberId member_id_dep26 = 0x0000001a; + 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."); + 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); + } + { + 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_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); + MemberId member_id_dep27 = 0x0000001b; + 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."); + 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); + } + { + 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_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); + MemberId member_id_dep28 = 0x0000001c; + 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."); + 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); + } + { + 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_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); + MemberId member_id_dep29 = 0x0000001d; + 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."); + 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); + } + { + 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_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); + MemberId member_id_dep30 = 0x0000001e; + 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."); + 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); + } + { + 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_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); + MemberId member_id_dep31 = 0x0000001f; + 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."); + 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); + } + { + 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_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); + MemberId member_id_dep32 = 0x00000020; + 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."); + 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); + } + { + 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_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); + MemberId member_id_dep33 = 0x00000021; + 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."); + 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); + } + { + 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_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); + MemberId member_id_dep34 = 0x00000022; + 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."); + 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); + } + { + 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_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); + MemberId member_id_dep35 = 0x00000023; + 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."); + 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); + } + { + 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_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); + MemberId member_id_dep36 = 0x00000024; + 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."); + 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); + } + { + 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_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); + MemberId member_id_dep37 = 0x00000025; + 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."); + 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); + } + { + 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_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); + MemberId member_id_dep38 = 0x00000026; + 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."); + 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); + } + { + 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_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); + MemberId member_id_dep39 = 0x00000027; + 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."); + 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); + } + { + 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_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); + MemberId member_id_dep40 = 0x00000028; + 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."); + 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); + } + { + 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_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); + MemberId member_id_dep41 = 0x00000029; + 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."); + 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); + } + { + 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_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); + MemberId member_id_dep42 = 0x0000002a; + 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."); + 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); + } + { + 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_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); + MemberId member_id_dep43 = 0x0000002b; + 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."); + 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); + } + { + 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_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); + MemberId member_id_dep44 = 0x0000002c; + 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."); + 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); + } + { + 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_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); + MemberId member_id_dep45 = 0x0000002d; + 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."); + 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); + } + { + 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_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); + MemberId member_id_dep46 = 0x0000002e; + 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."); + 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); + } + { + 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_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); + MemberId member_id_dep47 = 0x0000002f; + 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."); + 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); + } + { + 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_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); + MemberId member_id_dep48 = 0x00000030; + 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."); + 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); + } + { + 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_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); + MemberId member_id_dep49 = 0x00000031; + 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."); + 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); + } + { + 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_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); + MemberId member_id_dep50 = 0x00000032; + 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."); + 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); + } + { + 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_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); + MemberId member_id_dep51 = 0x00000033; + 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."); + 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); + } + { + 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_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); + MemberId member_id_dep52 = 0x00000034; + 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."); + 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); + } + { + 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_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); + MemberId member_id_dep53 = 0x00000035; + 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."); + 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); + } + { + 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_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); + MemberId member_id_dep54 = 0x00000036; + 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."); + 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); + } + { + 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_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); + MemberId member_id_dep55 = 0x00000037; + 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."); + 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); + } + { + 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_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); + MemberId member_id_dep56 = 0x00000038; + 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."); + 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); + } + { + 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_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); + MemberId member_id_dep57 = 0x00000039; + 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."); + 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); + } + { + 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_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); + MemberId member_id_dep58 = 0x0000003a; + 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."); + 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); + } + { + 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_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); + MemberId member_id_dep59 = 0x0000003b; + 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."); + 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); + } + { + 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_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); + MemberId member_id_dep60 = 0x0000003c; + 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."); + 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); + } + { + 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_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); + MemberId member_id_dep61 = 0x0000003d; + 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."); + 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); + } + { + 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_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); + MemberId member_id_dep62 = 0x0000003e; + 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."); + 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); + } + { + 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_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); + MemberId member_id_dep63 = 0x0000003f; + 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."); + 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); + } + { + 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_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); + MemberId member_id_dep64 = 0x00000040; + 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."); + 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); + } + { + 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_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); + MemberId member_id_dep65 = 0x00000041; + 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."); + 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); + } + { + 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_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); + MemberId member_id_dep66 = 0x00000042; + 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."); + 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); + } + { + 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_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); + MemberId member_id_dep67 = 0x00000043; + 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."); + 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); + } + { + 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_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); + MemberId member_id_dep68 = 0x00000044; + 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."); + 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); + } + { + 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_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); + MemberId member_id_dep69 = 0x00000045; + 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."); + 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); + } + { + 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_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); + MemberId member_id_dep70 = 0x00000046; + 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."); + 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); + } + { + 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_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); + MemberId member_id_dep71 = 0x00000047; + 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."); + 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); + } + { + 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_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); + MemberId member_id_dep72 = 0x00000048; + 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."); + 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); + } + { + 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_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); + MemberId member_id_dep73 = 0x00000049; + 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."); + 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); + } + { + 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_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); + MemberId member_id_dep74 = 0x0000004a; + 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."); + 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); + } + { + 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_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); + MemberId member_id_dep75 = 0x0000004b; + 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."); + 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); + } + { + 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_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); + MemberId member_id_dep76 = 0x0000004c; + 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."); + 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); + } + { + 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_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); + MemberId member_id_dep77 = 0x0000004d; + 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."); + 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); + } + { + 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_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); + MemberId member_id_dep78 = 0x0000004e; + 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."); + 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); + } + { + 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_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); + MemberId member_id_dep79 = 0x0000004f; + 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."); + 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); + } + { + 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_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); + MemberId member_id_dep80 = 0x00000050; + 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."); + 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); + } + { + 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_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); + MemberId member_id_dep81 = 0x00000051; + 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."); + 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); + } + { + 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_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); + MemberId member_id_dep82 = 0x00000052; + 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."); + 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); + } + { + 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_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); + MemberId member_id_dep83 = 0x00000053; + 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."); + 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); + } + { + 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_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); + MemberId member_id_dep84 = 0x00000054; + 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."); + 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); + } + { + 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_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); + MemberId member_id_dep85 = 0x00000055; + 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."); + 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); + } + { + 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_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); + MemberId member_id_dep86 = 0x00000056; + 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."); + 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); + } + { + 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_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); + MemberId member_id_dep87 = 0x00000057; + 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."); + 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); + } + { + 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_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); + MemberId member_id_dep88 = 0x00000058; + 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."); + 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); + } + { + 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_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); + MemberId member_id_dep89 = 0x00000059; + 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."); + 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); + } + { + 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_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); + MemberId member_id_dep90 = 0x0000005a; + 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."); + 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); + } + { + 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_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); + MemberId member_id_dep91 = 0x0000005b; + 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."); + 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); + } + { + 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_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); + MemberId member_id_dep92 = 0x0000005c; + 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."); + 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); + } + { + 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_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); + MemberId member_id_dep93 = 0x0000005d; + 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."); + 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); + } + { + 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_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); + MemberId member_id_dep94 = 0x0000005e; + 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."); + 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); + } + { + 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_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); + MemberId member_id_dep95 = 0x0000005f; + 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."); + 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); + } + { + 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_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); + MemberId member_id_dep96 = 0x00000060; + 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."); + 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); + } + { + 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_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); + MemberId member_id_dep97 = 0x00000061; + 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."); + 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); + } + { + 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_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); + MemberId member_id_dep98 = 0x00000062; + 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."); + return; + } + MemberName name_dep98 = "dep98"; + eprosima::fastcdr::optional member_ann_builtin_dep98; + ann_custom_TypeBig.reset(); + 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); + } + { + 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_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); + MemberId member_id_dep99 = 0x00000063; + 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."); + return; + } + MemberName name_dep99 = "dep99"; + eprosima::fastcdr::optional member_ann_builtin_dep99; + ann_custom_TypeBig.reset(); + 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); + } + { + 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_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); + MemberId member_id_dep100 = 0x00000064; + 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."); + return; + } + MemberName name_dep100 = "dep100"; + eprosima::fastcdr::optional member_ann_builtin_dep100; + ann_custom_TypeBig.reset(); + 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 == + 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."); + } + } +} + diff --git a/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeBigTypeObjectSupport.hpp b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeBigTypeObjectSupport.hpp new file mode 100644 index 00000000000..cdf88cde24e --- /dev/null +++ b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeBigTypeObjectSupport.hpp @@ -0,0 +1,1223 @@ +// 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 + +#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 + +#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. + * + * @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::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::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::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::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::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::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::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::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::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::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::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::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::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::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::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::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::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::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::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::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::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::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::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::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::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::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::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::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::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::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::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::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::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::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::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::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::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::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::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::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::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::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::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::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::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::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::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::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::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::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::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::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::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::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::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::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::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::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::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::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::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::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::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::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::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::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::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::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::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::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::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::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::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::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::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::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::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::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::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::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::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::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::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::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::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::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::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::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::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::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::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::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::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::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::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::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::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::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); + + +#endif // DOXYGEN_SHOULD_SKIP_THIS_PUBLIC + +#endif // FAST_DDS_GENERATED__XTYPESTESTSTYPEBIG_TYPE_OBJECT_SUPPORT_HPP diff --git a/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeDep.hpp b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeDep.hpp new file mode 100644 index 00000000000..cb844f0bf03 --- /dev/null +++ b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeDep.hpp @@ -0,0 +1,334 @@ +// 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 +#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_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; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object TypeDep that will be copied. + */ + eProsima_user_DllExport TypeDep( + TypeDep&& x) noexcept + { + 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); + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object TypeDep that will be copied. + */ + eProsima_user_DllExport TypeDep& operator =( + const TypeDep& x) + { + + 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; + + 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_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); + return *this; + } + + /*! + * @brief Comparison operator. + * @param x TypeDep object to compare. + */ + eProsima_user_DllExport bool operator ==( + const TypeDep& x) const + { + 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); + } + + /*! + * @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 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 content( + std::string&& _content) + { + m_content = std::move(_content); + } + + /*! + * @brief This function returns a constant reference to member content + * @return Constant reference to member content + */ + eProsima_user_DllExport const std::string& content() const + { + 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; + } + + + /*! + * @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: + + std::string m_content; + Type1 m_var_type1; + Type2 m_var_type2; + Type3 m_var_type3; + +}; + +#endif // _FAST_DDS_GENERATED_XTYPESTESTSTYPEDEP_HPP_ + + diff --git a/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeDep.idl b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeDep.idl new file mode 100644 index 00000000000..e2ae9047c3f --- /dev/null +++ b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeDep.idl @@ -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 test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeDep.idl + */ + +#include "XtypesTestsType1.idl" +#include "XtypesTestsType2.idl" +#include "XtypesTestsType3.idl" + +struct TypeDep +{ + string content; + Type1 var_type1; + Type2 var_type2; + Type3 var_type3; +}; diff --git a/test/dds-types-test/relative_path_includeCdrAux.hpp b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeDepCdrAux.hpp similarity index 68% rename from test/dds-types-test/relative_path_includeCdrAux.hpp rename to test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeDepCdrAux.hpp index a8c51274052..5210e7f4c65 100644 --- a/test/dds-types-test/relative_path_includeCdrAux.hpp +++ b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeDepCdrAux.hpp @@ -13,27 +13,19 @@ // limitations under the License. /*! - * @file relative_path_includeCdrAux.hpp + * @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__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}; - - - - - - +#ifndef FAST_DDS_GENERATED__XTYPESTESTSTYPEDEPCDRAUX_HPP +#define FAST_DDS_GENERATED__XTYPESTESTSTYPEDEPCDRAUX_HPP +#include "XtypesTestsTypeDep.hpp" +constexpr uint32_t TypeDep_max_cdr_typesize {1056UL}; +constexpr uint32_t TypeDep_max_key_cdr_typesize {0UL}; @@ -45,11 +37,11 @@ class CdrSizeCalculator; eProsima_user_DllExport void serialize_key( eprosima::fastcdr::Cdr& scdr, - const RelativePathIncludeStruct& data); + const TypeDep& data); } // namespace fastcdr } // namespace eprosima -#endif // FAST_DDS_GENERATED__RELATIVE_PATH_INCLUDECDRAUX_HPP +#endif // FAST_DDS_GENERATED__XTYPESTESTSTYPEDEPCDRAUX_HPP diff --git a/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeDepCdrAux.ipp b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeDepCdrAux.ipp new file mode 100644 index 00000000000..f27ed7a9845 --- /dev/null +++ b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeDepCdrAux.ipp @@ -0,0 +1,163 @@ +// 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.content(), current_alignment); + + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(1), + 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); + + + 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.content() + << 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); +} + +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.content(); + break; + + case 1: + dcdr >> data.var_type1(); + break; + + case 2: + dcdr >> data.var_type2(); + break; + + case 3: + dcdr >> data.var_type3(); + break; + + default: + ret_value = false; + break; + } + return ret_value; + }); +} + +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.content(); + + serialize_key(scdr, data.var_type1()); + + serialize_key(scdr, data.var_type2()); + + serialize_key(scdr, data.var_type3()); + +} + + + +} // namespace fastcdr +} // namespace eprosima + +#endif // FAST_DDS_GENERATED__XTYPESTESTSTYPEDEPCDRAUX_IPP + diff --git a/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeDepPubSubTypes.cxx b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeDepPubSubTypes.cxx new file mode 100644 index 00000000000..c457073f595 --- /dev/null +++ b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeDepPubSubTypes.cxx @@ -0,0 +1,217 @@ +// 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.hpp" + +#include +#include + +#include "XtypesTestsTypeDepCdrAux.hpp" +#include "XtypesTestsTypeDepTypeObjectSupport.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; + +TypeDepPubSubType::TypeDepPubSubType() +{ + 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 */ + 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 (key_buffer_ != nullptr) + { + free(key_buffer_); + } +} + +bool TypeDepPubSubType::serialize( + const void* const data, + SerializedPayload_t& payload, + DataRepresentationId_t data_representation) +{ + const 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; + 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 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); + + // 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 TypeDepPubSubType::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* TypeDepPubSubType::create_data() +{ + return reinterpret_cast(new TypeDep()); +} + +void TypeDepPubSubType::delete_data( + void* data) +{ + delete(reinterpret_cast(data)); +} + +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 (!is_compute_key_provided) + { + return false; + } + + const TypeDep* p_type = static_cast(data); + + // Object that manages the raw buffer. + 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::XCDRv2); + ser.set_encoding_flag(eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2); + eprosima::fastcdr::serialize_key(ser, *p_type); + if (force_md5 || TypeDep_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 TypeDepPubSubType::register_type_object_representation() +{ + register_TypeDep_type_identifier(type_identifiers_); +} + + +// Include auxiliary functions like for serializing/deserializing. +#include "XtypesTestsTypeDepCdrAux.ipp" diff --git a/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeDepPubSubTypes.hpp b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeDepPubSubTypes.hpp new file mode 100644 index 00000000000..b826eaf6c40 --- /dev/null +++ b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeDepPubSubTypes.hpp @@ -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 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_HPP +#define FAST_DDS_GENERATED__XTYPESTESTSTYPEDEP_PUBSUBTYPES_HPP + +#include +#include +#include +#include +#include + +#include "XtypesTestsTypeDep.hpp" + +#include "XtypesTestsType1PubSubTypes.hpp" +#include "XtypesTestsType2PubSubTypes.hpp" +#include "XtypesTestsType3PubSubTypes.hpp" + +#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 // FASTDDS_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( + 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 false; + } + +#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__XTYPESTESTSTYPEDEP_PUBSUBTYPES_HPP + diff --git a/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeDepTypeObjectSupport.cxx b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeDepTypeObjectSupport.cxx new file mode 100644 index 00000000000..4144b3c382b --- /dev/null +++ b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeDepTypeObjectSupport.cxx @@ -0,0 +1,195 @@ +// 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; + +// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method +void register_TypeDep_type_identifier( + TypeIdentifierPair& type_ids_TypeDep) +{ + + 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::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()); + CompleteStructHeader header_TypeDep; + header_TypeDep = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_TypeDep); + CompleteStructMemberSeq member_seq_TypeDep; + { + 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_TypeDep.reset(); + 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; + 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 (eprosima::fastdds::dds::RETCODE_OK != return_code_var_type1) + { + ::register_Type1_type_identifier(type_ids_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; + 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."); + 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); + } + { + 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 (eprosima::fastdds::dds::RETCODE_OK != return_code_var_type2) + { + ::register_Type2_type_identifier(type_ids_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; + 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) + { + 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); + } + { + 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 (eprosima::fastdds::dds::RETCODE_OK != return_code_var_type3) + { + ::register_Type3_type_identifier(type_ids_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; + 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) + { + 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(), type_ids_TypeDep)) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "TypeDep already registered in TypeObjectRegistry for a different type."); + } + } +} + diff --git a/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeDepTypeObjectSupport.hpp b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeDepTypeObjectSupport.hpp new file mode 100644 index 00000000000..cfddf40b078 --- /dev/null +++ b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeDepTypeObjectSupport.hpp @@ -0,0 +1,59 @@ +// 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 + +#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 + +#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. + * + * @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::fastdds::dds::xtypes::TypeIdentifierPair& type_ids); + + +#endif // DOXYGEN_SHOULD_SKIP_THIS_PUBLIC + +#endif // FAST_DDS_GENERATED__XTYPESTESTSTYPEDEP_TYPE_OBJECT_SUPPORT_HPP diff --git a/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeNoTypeObject.hpp b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeNoTypeObject.hpp new file mode 100644 index 00000000000..0153b206286 --- /dev/null +++ b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeNoTypeObject.hpp @@ -0,0 +1,190 @@ +// 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 +#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_content = x.m_content; + + } + + /*! + * @brief Move constructor. + * @param x Reference to the object TypeNoTypeObject that will be copied. + */ + eProsima_user_DllExport TypeNoTypeObject( + TypeNoTypeObject&& x) noexcept + { + m_content = std::move(x.m_content); + } + + /*! + * @brief Copy assignment. + * @param x Reference to the object TypeNoTypeObject that will be copied. + */ + eProsima_user_DllExport TypeNoTypeObject& operator =( + const TypeNoTypeObject& x) + { + + m_content = x.m_content; + + 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_content = std::move(x.m_content); + return *this; + } + + /*! + * @brief Comparison operator. + * @param x TypeNoTypeObject object to compare. + */ + eProsima_user_DllExport bool operator ==( + const TypeNoTypeObject& x) const + { + return (m_content == x.m_content); + } + + /*! + * @brief Comparison operator. + * @param x TypeNoTypeObject object to compare. + */ + eProsima_user_DllExport bool operator !=( + const TypeNoTypeObject& x) const + { + return !(*this == x); + } + + /*! + * @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 content( + std::string&& _content) + { + m_content = std::move(_content); + } + + /*! + * @brief This function returns a constant reference to member content + * @return Constant reference to member content + */ + eProsima_user_DllExport const std::string& content() const + { + 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: + + std::string m_content; + +}; + +#endif // _FAST_DDS_GENERATED_XTYPESTESTSTYPENOTYPEOBJECT_HPP_ + + diff --git a/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeNoTypeObject.idl b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeNoTypeObject.idl new file mode 100644 index 00000000000..dd1e2200837 --- /dev/null +++ b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeNoTypeObject.idl @@ -0,0 +1,22 @@ +// 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/BaseCasesIDLs/XtypesTestsTypeNoTypeObjectCdrAux.hpp b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeNoTypeObjectCdrAux.hpp new file mode 100644 index 00000000000..1bcc7c5bc3e --- /dev/null +++ b/test/dds/xtypes/BaseCasesIDLs/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 {264UL}; +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/BaseCasesIDLs/XtypesTestsTypeNoTypeObjectCdrAux.ipp b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeNoTypeObjectCdrAux.ipp new file mode 100644 index 00000000000..05e4315ba57 --- /dev/null +++ b/test/dds/xtypes/BaseCasesIDLs/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.content(), 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.content() +; + 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.content(); + 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.content(); + +} + + + +} // namespace fastcdr +} // namespace eprosima + +#endif // FAST_DDS_GENERATED__XTYPESTESTSTYPENOTYPEOBJECTCDRAUX_IPP + diff --git a/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeNoTypeObjectPubSubTypes.cxx b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeNoTypeObjectPubSubTypes.cxx new file mode 100644 index 00000000000..304252537d7 --- /dev/null +++ b/test/dds/xtypes/BaseCasesIDLs/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/BaseCasesIDLs/XtypesTestsTypeNoTypeObjectPubSubTypes.h b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeNoTypeObjectPubSubTypes.h new file mode 100644 index 00000000000..505c0276a89 --- /dev/null +++ b/test/dds/xtypes/BaseCasesIDLs/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 false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED + +#ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + eProsima_user_DllExport inline bool is_plain() const override + { + return false; + } + + eProsima_user_DllExport inline bool is_plain( + eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override + { + static_cast(data_representation); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_IS_PLAIN + +#ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + eProsima_user_DllExport inline bool construct_sample( + void* memory) const override + { + static_cast(memory); + return false; + } + +#endif // TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE + + MD5 m_md5; + unsigned char* m_keyBuffer; + +}; + +#endif // _FAST_DDS_GENERATED_XTYPESTESTSTYPENOTYPEOBJECT_PUBSUBTYPES_H_ + diff --git a/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeNoTypeObjectPubSubTypes.hpp b/test/dds/xtypes/BaseCasesIDLs/XtypesTestsTypeNoTypeObjectPubSubTypes.hpp new file mode 100644 index 00000000000..075ba461bac --- /dev/null +++ b/test/dds/xtypes/BaseCasesIDLs/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 false; + } + +#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/dds/xtypes/CMakeLists.txt b/test/dds/xtypes/CMakeLists.txt new file mode 100644 index 00000000000..71c1cb6122a --- /dev/null +++ b/test/dds/xtypes/CMakeLists.txt @@ -0,0 +1,138 @@ +# 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. + +find_package(PythonInterp 3) + +add_definitions( + -DBOOST_ASIO_STANDALONE + -DASIO_STANDALONE + ) + +include_directories(${Asio_INCLUDE_DIR}) + +############################################################################### +# Binaries +############################################################################### + +file(GLOB COMMON_SOURCE + ${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 +) + +set(DDS_XTYPES_SOURCE ${COMMON_SOURCE} + TypeLookupService_main.cpp + TypeLookupServicePublisher.cpp + 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> + $<$:__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} + ) + +############################################################################### +# Tests specification +############################################################################### +# Python script +configure_file(${CMAKE_CURRENT_SOURCE_DIR}/test_build.py + ${CMAKE_CURRENT_BINARY_DIR}/test_build.py COPYONLY) + +# Get test definitions from the json files +file(GLOB TEST_DEFINITIONS + "BaseCases/Case*" + "TypesTestsCases/Cases*" +) + +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} + --app $ + ${TEST_DEFINITION} + ) + + 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/TypeLookupServicePublisher.cpp b/test/dds/xtypes/TypeLookupServicePublisher.cpp new file mode 100644 index 00000000000..31d792d941d --- /dev/null +++ b/test/dds/xtypes/TypeLookupServicePublisher.cpp @@ -0,0 +1,357 @@ +// 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 TypeLookupServicePublisher.cpp + */ + +#include "TypeLookupServicePublisher.h" + +#include +#include +#include +#include +#include +#include + +using namespace eprosima::fastdds::dds; +using namespace eprosima::fastdds::rtps; + +TypeLookupServicePublisher::~TypeLookupServicePublisher() +{ + if (nullptr != participant_) + { + participant_->delete_contained_entities(); + DomainParticipantFactory::get_instance()->delete_participant(participant_); + participant_ = nullptr; + } + + for (auto& thread : create_types_threads) + { + thread.join(); + } +} + +bool TypeLookupServicePublisher::init( + uint32_t domain_id, + std::vector known_types) +{ + domain_id_ = domain_id; + create_type_creator_functions(); + + LibrarySettings settings; + settings.intraprocess_delivery = INTRAPROCESS_OFF; + DomainParticipantFactory::get_instance()->set_library_settings(settings); + + participant_ = DomainParticipantFactory::get_instance() + ->create_participant(domain_id, PARTICIPANT_QOS_DEFAULT, this); + if (participant_ == nullptr) + { + std::cout << "ERROR TypeLookupServicePublisher: create_participant" << std::endl; + return false; + } + + for (const auto& type : known_types) + { + if (!create_known_type(type)) + { + return false; + } + } + + 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() << "_" << 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(); + 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) + { + 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()) + { + // Call the associated type creator function + return it->second(type); + } + else + { + std::cout << "ERROR TypeLookupServicePublisher: init unknown type: " << type << std::endl; + return false; + } +} + +template +bool TypeLookupServicePublisher::create_known_type_impl( + const std::string& type) +{ + // Create a new PubKnownType for the given type + PubKnownType a_type; + a_type.type_.reset(new Type()); + a_type.type_sup_.reset(new TypePubSubType()); + a_type.type_sup_.register_type(participant_); + + if (!setup_publisher(a_type)) + { + return false; + } + + std::lock_guard guard(known_types_mutex_); + known_types_.emplace(type, a_type); + return true; +} + +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)) + { + return false; + } + + 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: TypeObject cannot be retrieved for type: " << new_type_name << std::endl; + return false; + } + + // 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; + } + + // 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: DynamicType cannot be registered for type: " << new_type_name << std::endl; + return false; + } + + if (!setup_publisher(a_type)) + { + return false; + } + + std::lock_guard guard(known_types_mutex_); + known_types_.emplace(new_type_name, a_type); + return true; +} + +bool TypeLookupServicePublisher::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 TypeLookupServicePublisher::wait_discovery( + uint32_t expected_matches, + uint32_t timeout) +{ + expected_matches_ = expected_matches; + + std::unique_lock lock(mutex_); + bool result = cv_.wait_for(lock, std::chrono::seconds(timeout), + [&]() + { + return matched_ == static_cast(expected_matches_); + }); + + if (!result) + { + std::cout << "ERROR TypeLookupServicePublisher discovery Timeout with matched = " << + matched_ << std::endl; + return false; + } + return true; +} + +bool TypeLookupServicePublisher::run( + uint32_t samples, + uint32_t timeout) +{ + std::unique_lock lock(mutex_); + bool result = cv_.wait_for( + lock, std::chrono::seconds(timeout), [&] + { + std::this_thread::sleep_for(std::chrono::milliseconds(100)); + 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_); + 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(); + 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); + } + + ++sent_samples_[known_type.second.writer_->guid()]; + std::this_thread::sleep_for(std::chrono::milliseconds(10)); + } + ++current_sample; + } + return true; + }); + + if (!result) + { + std::cout << "ERROR TypeLookupServicePublisher" << std::endl; + if (expected_matches_ != sent_samples_.size()) + { + std::cout << "Expected_matches_ = " << expected_matches_ << + " Working_writers_ = " << sent_samples_.size() << 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 TypeLookupServicePublisher::on_publication_matched( + DataWriter* /*writer*/, + const PublicationMatchedStatus& info) +{ + std::unique_lock lock(mutex_); + matched_ += info.current_count_change; + cv_.notify_all(); +} + +void TypeLookupServicePublisher::on_data_reader_discovery( + DomainParticipant* /*participant*/, + ReaderDiscoveryStatus reason, + const SubscriptionBuiltinTopicData& info, + 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) + { + // Check if the type is already created + if (nullptr == participant_->find_type(discovered_reader_type_name)) + { + // Check for TypeObjectRegistry inconsistency + 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("TypeLookupServiceSubscriber: Type '" + + discovered_reader_type_name + "' is not registered but it should be."); + } + if ((!has_type_object && is_registered)) + { + throw std::runtime_error("TypeLookupServiceSubscriber: Type '" + + discovered_reader_type_name + "' is registered but it should not be."); + } + + // Create new publisher for the type + if (has_type_object) + { + 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/TypeLookupServicePublisher.h b/test/dds/xtypes/TypeLookupServicePublisher.h new file mode 100644 index 00000000000..921facdcc90 --- /dev/null +++ b/test/dds/xtypes/TypeLookupServicePublisher.h @@ -0,0 +1,908 @@ +// 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 TypeLookupServicePublisher.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 +#include +#include +#include +#include +#include +#include +#include +#include + +#include "TypeLookupServiceTestsTypes.h" + +namespace eprosima { +namespace fastdds { +namespace dds { + +struct PubKnownType +{ + std::shared_ptr type_; + DynamicType::_ref_type dyn_type_; + TypeSupport type_sup_; + + DataWriter* writer_ = nullptr; +}; + +// Define a macro to simplify type registration + #define PUBLISHER_TYPE_CREATOR_FUNCTION(Type) \ + type_creator_functions_[#Type] = std::bind(&TypeLookupServicePublisher::create_known_type_impl, \ + this, \ + std::placeholders::_1) + + +class TypeLookupServicePublisher + : public DomainParticipantListener +{ +public: + + TypeLookupServicePublisher() + { + } + + ~TypeLookupServicePublisher(); + + bool init( + uint32_t domain_id, + std::vector known_types); + + bool wait_discovery( + uint32_t expected_matches, + uint32_t timeout); + + 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, + const eprosima::fastdds::dds::SubscriptionBuiltinTopicData& info, + bool& should_be_ignored) override; + +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_; + int32_t matched_ {0}; + uint32_t 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; + uint32_t domain_id_ {0}; + + /** + * This method is updated automatically using the update_headers_and_create_cases.py script + */ + void create_type_creator_functions() + { + 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(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(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); + 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(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(root); + 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(UnionSeveralFields); + PUBLISHER_TYPE_CREATOR_FUNCTION(UnionSeveralFieldsWithDefault); + 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); + } + +}; + +} // dds +} // fastdds +} // eprosima + +#endif /* _TEST_DDS_XTYPES_TYPELOOKUPSERVICETEST_PUBLISHER_H_ */ diff --git a/test/dds/xtypes/TypeLookupServiceSubscriber.cpp b/test/dds/xtypes/TypeLookupServiceSubscriber.cpp new file mode 100644 index 00000000000..cd2d8e4b4a8 --- /dev/null +++ b/test/dds/xtypes/TypeLookupServiceSubscriber.cpp @@ -0,0 +1,449 @@ +// 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 TypeLookupServiceSubscriber.cpp + * + */ + +#include "TypeLookupServiceSubscriber.h" + +#include +#include +#include +#include +#include +#include +#include + +using namespace eprosima::fastdds::dds; +using namespace eprosima::fastdds::rtps; + +TypeLookupServiceSubscriber::~TypeLookupServiceSubscriber() +{ + if (nullptr != participant_) + { + participant_->delete_contained_entities(); + DomainParticipantFactory::get_instance()->delete_participant(participant_); + participant_ = nullptr; + } + + for (auto& thread : create_types_threads) + { + thread.join(); + } +} + +bool TypeLookupServiceSubscriber::init( + uint32_t domain_id, + std::vector known_types) +{ + domain_id_ = domain_id; + create_type_creator_functions(); + + 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(); + + participant_ = DomainParticipantFactory::get_instance() + ->create_participant(domain_id, PARTICIPANT_QOS_DEFAULT, this, mask); + if (participant_ == nullptr) + { + std::cout << "ERROR TypeLookupServiceSubscriber: create_participant" << std::endl; + return false; + } + + for (const auto& type : known_types) + { + if (!create_known_type(type)) + { + return false; + } + } + + 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() << "_" << 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(); + rqos.reliability().kind = RELIABLE_RELIABILITY_QOS; + rqos.durability().kind = TRANSIENT_LOCAL_DURABILITY_QOS; + 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) +{ + // 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()) + { + // Call the associated type creator function + return it->second(type); + } + else + { + std::cout << "ERROR TypeLookupServiceSubscriber: init unknown type: " << type << std::endl; + return false; + } +} + +template +bool TypeLookupServiceSubscriber::create_known_type_impl( + const std::string& type) +{ + // Create a new SubKnownType for the given type + SubKnownType a_type; + a_type.type_.reset(new Type()); + a_type.type_sup_.reset(new TypePubSubType()); + a_type.type_sup_.register_type(participant_); + + if (!setup_subscriber(a_type)) + { + return false; + } + + std::lock_guard guard(known_types_mutex_); + known_types_.emplace(type, a_type); + 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(mutex_); + 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(mutex_); + 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) +{ + 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)) + { + return false; + } + + 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: TypeObject cannot be retrieved for type: " << new_type_name << std::endl; + return false; + } + + // 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; + } + + // 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: DynamicType cannot be registered for type: " << new_type_name << std::endl; + return false; + } + + if (!setup_subscriber(a_type)) + { + return false; + } + + std::lock_guard guard(known_types_mutex_); + known_types_.emplace(new_type_name, a_type); + return true; +} + +bool TypeLookupServiceSubscriber::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 TypeLookupServiceSubscriber::wait_discovery( + uint32_t expected_matches, + uint32_t timeout) +{ + expected_matches_ = expected_matches; + + std::unique_lock lock(mutex_); + bool result = cv_.wait_for(lock, std::chrono::seconds(timeout), + [&]() + { + return matched_ == static_cast(expected_matches_); + }); + + if (!result) + { + std::cout << "ERROR TypeLookupServiceSubscriber discovery Timeout with matched = " << + matched_ << std::endl; + return false; + } + return true; +} + +bool TypeLookupServiceSubscriber::run( + uint32_t samples, + uint32_t timeout) +{ + 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) + { + std::cout << "ERROR TypeLookupServiceSubscriber" << std::endl; + if (expected_matches_ != received_samples_.size()) + { + std::cout << "Expected_matches_ = " << expected_matches_ << + " Working_writers_ = " << 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 TypeLookupServiceSubscriber::on_subscription_matched( + DataReader* /*reader*/, + const SubscriptionMatchedStatus& info) +{ + std::unique_lock lock(mutex_); + matched_ += info.current_count_change; + cv_.notify_all(); +} + +void TypeLookupServiceSubscriber::on_data_available( + DataReader* reader) +{ + bool data_correct = false; + auto& known_type = known_types_[reader->type().get_type_name()]; + + if (known_type.dyn_type_) + { + data_correct = process_dyn_type_impl(reader); + } + if (known_type.type_) + { + // Find the type processor in the map + auto it = type_processor_functions_.find(reader->type().get_type_name()); + if (it != type_processor_functions_.end()) + { + // 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( + DomainParticipant* /*participant*/, + WriterDiscoveryStatus reason, + const PublicationBuiltinTopicData& info, + 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) + { + // Check if the type is already created + if (participant_->find_type(discovered_writer_type_name) == nullptr) + { + // Check for TypeObjectRegistry inconsistency + 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("TypeLookupServiceSubscriber: Type '" + + discovered_writer_type_name + "' is not registered but it should be."); + } + if ((!has_type_object && is_registered)) + { + throw std::runtime_error("TypeLookupServiceSubscriber: Type '" + + discovered_writer_type_name + "' is registered but it should not be."); + } + + // Create new subscriber for the type + if (has_type_object) + { + 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); + } + } + } +} diff --git a/test/dds/xtypes/TypeLookupServiceSubscriber.h b/test/dds/xtypes/TypeLookupServiceSubscriber.h new file mode 100644 index 00000000000..61c65cd238b --- /dev/null +++ b/test/dds/xtypes/TypeLookupServiceSubscriber.h @@ -0,0 +1,921 @@ +// 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 TypeLookupServiceSubscriber.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 +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include "TypeLookupServiceTestsTypes.h" + +namespace eprosima { +namespace fastdds { +namespace dds { + +struct SubKnownType +{ + std::shared_ptr type_; + DynamicType::_ref_type dyn_type_; + TypeSupport type_sup_; +}; + +// Define a macro to simplify type registration +#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) + +class TypeLookupServiceSubscriber + : public DomainParticipantListener +{ +public: + + TypeLookupServiceSubscriber() + { + } + + ~TypeLookupServiceSubscriber(); + + bool init( + uint32_t domain_id, + std::vector known_types); + + bool wait_discovery( + 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 on_data_available( + DataReader* reader) override; + + void on_data_writer_discovery( + eprosima::fastdds::dds::DomainParticipant* /*participant*/, + eprosima::fastdds::rtps::WriterDiscoveryStatus reason, + const eprosima::fastdds::dds::PublicationBuiltinTopicData& info, + bool& should_be_ignored) override; + +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); + + template + bool process_type_impl( + DataReader* reader); + + bool process_dyn_type_impl( + DataReader* reader); + + 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_; + int32_t matched_ {0}; + uint32_t 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::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 + */ + void create_type_creator_functions() + { + 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(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(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); + 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(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(root); + 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(UnionSeveralFields); + SUBSCRIBER_TYPE_CREATOR_FUNCTION(UnionSeveralFieldsWithDefault); + 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); + } + +}; + +} // dds +} // fastdds +} // eprosima + + +#endif /* _TEST_DDS_XTYPES_TYPELOOKUPSERVICETEST_SUBSCRIBER_H_ */ diff --git a/test/dds/xtypes/TypeLookupServiceTestsTypes.h b/test/dds/xtypes/TypeLookupServiceTestsTypes.h new file mode 100644 index 00000000000..7776a86af44 --- /dev/null +++ b/test/dds/xtypes/TypeLookupServiceTestsTypes.h @@ -0,0 +1,53 @@ +// 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 TypeLookupServiceTestsTypes.h + * + */ + +#ifndef _TEST_DDS_XTYPES_TYPELOOKUPSERVICETEST_TYPES_H_ +#define _TEST_DDS_XTYPES_TYPELOOKUPSERVICETEST_TYPES_H_ + +// 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/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/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 new file mode 100644 index 00000000000..4ac0819cb54 --- /dev/null +++ b/test/dds/xtypes/TypeLookupService_main.cpp @@ -0,0 +1,135 @@ +// 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 TypeLookupService_main.cpp + * + */ + +#include "TypeLookupServicePublisher.h" +#include "TypeLookupServiceSubscriber.h" + +#include +#include +#include +#include + +struct CommandLineArgs +{ + int kind; + int samples; + int timeout; + int expected_matches; + std::vector known_types; + uint32_t seed {10800}; +}; + +CommandLineArgs parse_args( + int argc, + char** argv) +{ + CommandLineArgs args = {0, 0, 0, 0, {}}; + + for (int i = 1; i < argc; ++i) + { + std::string arg = argv[i]; + std::stringstream ss(arg); + + std::string key, value; + std::getline(ss, key, '='); + std::getline(ss, value, '='); + + if (key == "kind") + { + if (value == "publisher") + { + args.kind = 1; + } + else if (value == "subscriber") + { + args.kind = 2; + } + } + else if (key == "samples") + { + args.samples = std::stoi(value); + } + else if (key == "timeout") + { + args.timeout = std::stoi(value); + } + else if (key == "expected_matches") + { + args.expected_matches = std::stoi(value); + } + else if (key == "known_types") + { + 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 if (key == "seed") + { + args.seed = strtol(value.c_str(), nullptr, 10); + } + } + + 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 << "argv[" << i << "]: " << argv[i] << std::endl; + // } + + CommandLineArgs args = parse_args(argc, argv); + + try + { + switch (args.kind){ + case 1: { + eprosima::fastdds::dds::TypeLookupServicePublisher pub; + 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.seed % 230, args.known_types) && + sub.wait_discovery(args.expected_matches, args.timeout) && + sub.run(args.samples, args.timeout)) ? 0 : -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/TypesTestsCases/Cases_aliases.json b/test/dds/xtypes/TypesTestsCases/Cases_aliases.json new file mode 100644 index 00000000000..273b697af1a --- /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": "10", + "expected_matches": "1", + "known_types": [ + "AliasAlias" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_aliases_AliasArray", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "AliasArray" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_aliases_AliasBitmask", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "AliasBitmask" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_aliases_AliasBitset", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "AliasBitset" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_aliases_AliasBool", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "AliasBool" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_aliases_AliasChar16", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "AliasChar16" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_aliases_AliasChar8", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "AliasChar8" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_aliases_AliasEnum", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "AliasEnum" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_aliases_AliasFloat128", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "AliasFloat128" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_aliases_AliasFloat32", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "AliasFloat32" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_aliases_AliasFloat64", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "AliasFloat64" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_aliases_AliasInt16", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "AliasInt16" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_aliases_AliasInt32", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "AliasInt32" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_aliases_AliasInt64", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "AliasInt64" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_aliases_AliasMap", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "AliasMap" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_aliases_AliasMultiArray", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "AliasMultiArray" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_aliases_AliasOctet", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "AliasOctet" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_aliases_AliasSequence", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "AliasSequence" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_aliases_AliasString16", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "AliasString16" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_aliases_AliasString8", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "AliasString8" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_aliases_AliasStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "AliasStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_aliases_AliasUInt32", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "AliasUInt32" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_aliases_AliasUInt64", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "AliasUInt64" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_aliases_AliasUint16", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "AliasUint16" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_aliases_AliasUnion", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "AliasUnion" + ] + }, + { + "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_annotations.json b/test/dds/xtypes/TypesTestsCases/Cases_annotations.json new file mode 100644 index 00000000000..33c9c70196e --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Cases_annotations.json @@ -0,0 +1,46 @@ +{ + "test_cases": [ + { + "TestCase": "Case_annotations_BasicAnnotationsStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "BasicAnnotationsStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_annotations_EmptyAnnotatedStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "EmptyAnnotatedStruct" + ] + }, + { + "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_appendable.json b/test/dds/xtypes/TypesTestsCases/Cases_appendable.json new file mode 100644 index 00000000000..2182d57b9fb --- /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": "10", + "expected_matches": "1", + "known_types": [ + "AppendableBooleanStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_appendable_AppendableCharStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "AppendableCharStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_appendable_AppendableDoubleStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "AppendableDoubleStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_appendable_AppendableEmptyInheritanceStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "AppendableEmptyInheritanceStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_appendable_AppendableEmptyStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "AppendableEmptyStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_appendable_AppendableExtensibilityInheritance", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "AppendableExtensibilityInheritance" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_appendable_AppendableFloatStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "AppendableFloatStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_appendable_AppendableInheritanceEmptyStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "AppendableInheritanceEmptyStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_appendable_AppendableInheritanceStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "AppendableInheritanceStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_appendable_AppendableLongDoubleStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "AppendableLongDoubleStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_appendable_AppendableLongLongStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "AppendableLongLongStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_appendable_AppendableLongStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "AppendableLongStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_appendable_AppendableOctetStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "AppendableOctetStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_appendable_AppendableShortStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "AppendableShortStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_appendable_AppendableULongLongStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "AppendableULongLongStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_appendable_AppendableULongStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "AppendableULongStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_appendable_AppendableUShortStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "AppendableUShortStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_appendable_AppendableUnionStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "AppendableUnionStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_appendable_AppendableWCharStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "AppendableWCharStruct" + ] + }, + { + "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_arrays.json b/test/dds/xtypes/TypesTestsCases/Cases_arrays.json new file mode 100644 index 00000000000..0bddf7407d6 --- /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": "10", + "expected_matches": "1", + "known_types": [ + "ArrayAlias" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayBitMask", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ArrayBitMask" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayBitset", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ArrayBitset" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayBoolean", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ArrayBoolean" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayBoundedString", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ArrayBoundedString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayBoundedWString", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ArrayBoundedWString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayChar", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ArrayChar" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayDouble", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ArrayDouble" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayEnum", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ArrayEnum" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayFloat", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ArrayFloat" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayLong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ArrayLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayLongDouble", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ArrayLongDouble" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayLongLong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ArrayLongLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayMap", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ArrayMap" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayMultiDimensionAlias", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionAlias" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayMultiDimensionBitMask", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionBitMask" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayMultiDimensionBitset", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionBitset" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayMultiDimensionBoolean", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionBoolean" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayMultiDimensionBoundedString", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionBoundedString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayMultiDimensionBoundedWString", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionBoundedWString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayMultiDimensionChar", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionChar" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayMultiDimensionDouble", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionDouble" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayMultiDimensionEnum", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionEnum" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayMultiDimensionFloat", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionFloat" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayMultiDimensionLiteralsAlias", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionLiteralsAlias" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayMultiDimensionLiteralsBitMask", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionLiteralsBitMask" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayMultiDimensionLiteralsBitSet", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionLiteralsBitSet" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayMultiDimensionLiteralsBoolean", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionLiteralsBoolean" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayMultiDimensionLiteralsBoundedString", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionLiteralsBoundedString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayMultiDimensionLiteralsBoundedWString", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionLiteralsBoundedWString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayMultiDimensionLiteralsChar", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionLiteralsChar" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayMultiDimensionLiteralsDouble", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionLiteralsDouble" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayMultiDimensionLiteralsEnum", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionLiteralsEnum" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayMultiDimensionLiteralsFloat", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionLiteralsFloat" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayMultiDimensionLiteralsLong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionLiteralsLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayMultiDimensionLiteralsLongDouble", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionLiteralsLongDouble" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayMultiDimensionLiteralsLongLong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionLiteralsLongLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayMultiDimensionLiteralsMap", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionLiteralsMap" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayMultiDimensionLiteralsOctet", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionLiteralsOctet" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayMultiDimensionLiteralsSequence", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionLiteralsSequence" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayMultiDimensionLiteralsShort", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionLiteralsShort" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayMultiDimensionLiteralsString", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionLiteralsString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayMultiDimensionLiteralsStructure", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionLiteralsStructure" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayMultiDimensionLiteralsULong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionLiteralsULong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayMultiDimensionLiteralsULongLong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionLiteralsULongLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayMultiDimensionLiteralsUShort", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionLiteralsUShort" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayMultiDimensionLiteralsUnion", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionLiteralsUnion" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayMultiDimensionLiteralsWChar", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionLiteralsWChar" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayMultiDimensionLiteralsWString", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionLiteralsWString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayMultiDimensionLong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayMultiDimensionLongDouble", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionLongDouble" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayMultiDimensionLongLong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionLongLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayMultiDimensionMap", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionMap" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayMultiDimensionOctet", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionOctet" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayMultiDimensionSequence", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionSequence" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayMultiDimensionShort", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionShort" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayMultiDimensionString", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayMultiDimensionStructure", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionStructure" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayMultiDimensionULong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionULong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayMultiDimensionULongLong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionULongLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayMultiDimensionUShort", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionUShort" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayMultiDimensionUnion", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionUnion" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayMultiDimensionWChar", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionWChar" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayMultiDimensionWString", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ArrayMultiDimensionWString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayOctet", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ArrayOctet" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArraySequence", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ArraySequence" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayShort", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ArrayShort" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayShortArray", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ArrayShortArray" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArraySingleDimensionLiteralsAlias", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ArraySingleDimensionLiteralsAlias" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArraySingleDimensionLiteralsBitMask", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ArraySingleDimensionLiteralsBitMask" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArraySingleDimensionLiteralsBitset", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ArraySingleDimensionLiteralsBitset" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArraySingleDimensionLiteralsBoolean", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ArraySingleDimensionLiteralsBoolean" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArraySingleDimensionLiteralsBoundedString", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ArraySingleDimensionLiteralsBoundedString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArraySingleDimensionLiteralsBoundedWString", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ArraySingleDimensionLiteralsBoundedWString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArraySingleDimensionLiteralsChar", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ArraySingleDimensionLiteralsChar" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArraySingleDimensionLiteralsDouble", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ArraySingleDimensionLiteralsDouble" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArraySingleDimensionLiteralsEnum", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ArraySingleDimensionLiteralsEnum" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArraySingleDimensionLiteralsFloat", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ArraySingleDimensionLiteralsFloat" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArraySingleDimensionLiteralsLong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ArraySingleDimensionLiteralsLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArraySingleDimensionLiteralsLongDouble", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ArraySingleDimensionLiteralsLongDouble" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArraySingleDimensionLiteralsLongLong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ArraySingleDimensionLiteralsLongLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArraySingleDimensionLiteralsMap", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ArraySingleDimensionLiteralsMap" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArraySingleDimensionLiteralsOctet", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ArraySingleDimensionLiteralsOctet" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArraySingleDimensionLiteralsSequence", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ArraySingleDimensionLiteralsSequence" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArraySingleDimensionLiteralsShort", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ArraySingleDimensionLiteralsShort" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArraySingleDimensionLiteralsShortArray", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ArraySingleDimensionLiteralsShortArray" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArraySingleDimensionLiteralsString", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ArraySingleDimensionLiteralsString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArraySingleDimensionLiteralsStructure", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ArraySingleDimensionLiteralsStructure" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArraySingleDimensionLiteralsUnion", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ArraySingleDimensionLiteralsUnion" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArraySingleDimensionLiteralsUnsignedLong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ArraySingleDimensionLiteralsUnsignedLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArraySingleDimensionLiteralsUnsignedLongLong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ArraySingleDimensionLiteralsUnsignedLongLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArraySingleDimensionLiteralsUnsignedShort", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ArraySingleDimensionLiteralsUnsignedShort" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArraySingleDimensionLiteralsWChar", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ArraySingleDimensionLiteralsWChar" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArraySingleDimensionLiteralsWString", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ArraySingleDimensionLiteralsWString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayString", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ArrayString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayStructure", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ArrayStructure" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayULong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ArrayULong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayULongLong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ArrayULongLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayUShort", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ArrayUShort" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayUnion", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ArrayUnion" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayWChar", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ArrayWChar" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_ArrayWString", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ArrayWString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_BoundedBigArrays", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "BoundedBigArrays" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_arrays_BoundedSmallArrays", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "BoundedSmallArrays" + ] + }, + { + "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_bitsets.json b/test/dds/xtypes/TypesTestsCases/Cases_bitsets.json new file mode 100644 index 00000000000..38417de42a3 --- /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": "10", + "expected_matches": "1", + "known_types": [ + "BitsetStruct" + ] + }, + { + "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_constants.json b/test/dds/xtypes/TypesTestsCases/Cases_constants.json new file mode 100644 index 00000000000..353f76dac34 --- /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": "10", + "expected_matches": "1", + "known_types": [ + "ConstsLiteralsStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_constants_Module2ConstsLiteralsStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "const_module2::Module2ConstsLiteralsStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_constants_ModuleConstsLiteralsStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "const_module1::ModuleConstsLiteralsStruct" + ] + }, + { + "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_declarations.json b/test/dds/xtypes/TypesTestsCases/Cases_declarations.json new file mode 100644 index 00000000000..b518e1007a7 --- /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": "10", + "expected_matches": "1", + "known_types": [ + "ForwardDeclarationsRecursiveStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_declarations_ForwardStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ForwardStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_declarations_ModuledCommonNameStructure", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ModuledCommonNameStructure" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_declarations_ModuledForwardDeclarationsRecursiveStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ModuledForwardDeclarationsRecursiveStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_declarations_ModuledForwardStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "declarations_module::ModuledForwardStruct" + ] + }, + { + "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_enumerations.json b/test/dds/xtypes/TypesTestsCases/Cases_enumerations.json new file mode 100644 index 00000000000..768c45aaafe --- /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": "10", + "expected_matches": "1", + "known_types": [ + "BitMaskStructure" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_enumerations_BoundedBitMaskStructure", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "BoundedBitMaskStructure" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_enumerations_EnumStructure", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "EnumStructure" + ] + }, + { + "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_final.json b/test/dds/xtypes/TypesTestsCases/Cases_final.json new file mode 100644 index 00000000000..a6c1b2b3d3c --- /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": "10", + "expected_matches": "1", + "known_types": [ + "FinalBooleanStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_final_FinalCharStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "FinalCharStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_final_FinalDoubleStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "FinalDoubleStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_final_FinalEmptyInheritanceStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "FinalEmptyInheritanceStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_final_FinalEmptyStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "FinalEmptyStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_final_FinalExtensibilityInheritance", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "FinalExtensibilityInheritance" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_final_FinalFloatStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "FinalFloatStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_final_FinalInheritanceStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "FinalInheritanceStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_final_FinalLongDoubleStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "FinalLongDoubleStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_final_FinalLongLongStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "FinalLongLongStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_final_FinalLongStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "FinalLongStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_final_FinalOctetStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "FinalOctetStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_final_FinalShortStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "FinalShortStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_final_FinalULongLongStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "FinalULongLongStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_final_FinalULongStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "FinalULongStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_final_FinalUShortStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "FinalUShortStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_final_FinalUnionStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "FinalUnionStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_final_FinalWCharStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "FinalWCharStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_final_InheritanceEmptyStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "InheritanceEmptyStruct" + ] + }, + { + "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_helpers_basic_inner_types.json b/test/dds/xtypes/TypesTestsCases/Cases_helpers_basic_inner_types.json new file mode 100644 index 00000000000..008a45e170d --- /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": "10", + "expected_matches": "1", + "known_types": [ + "InnerEmptyStructureHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_helpers/basic_inner_types_InnerStructureHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "InnerStructureHelper" + ] + }, + { + "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_inheritance.json b/test/dds/xtypes/TypesTestsCases/Cases_inheritance.json new file mode 100644 index 00000000000..77aa5a910cf --- /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": "10", + "expected_matches": "1", + "known_types": [ + "BitsetsChildInheritanceStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_inheritance_InnerEmptyStructureHelperChild", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "InnerEmptyStructureHelperChild" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_inheritance_InnerStructureHelperChild", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "InnerStructureHelperChild" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_inheritance_InnerStructureHelperChildChild", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "InnerStructureHelperChildChild" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_inheritance_InnerStructureHelperEmptyChild", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "InnerStructureHelperEmptyChild" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_inheritance_InnerStructureHelperEmptyChildChild", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "InnerStructureHelperEmptyChildChild" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_inheritance_StructAliasInheritanceStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "StructAliasInheritanceStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_inheritance_StructuresInheritanceStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "StructuresInheritanceStruct" + ] + }, + { + "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_key.json b/test/dds/xtypes/TypesTestsCases/Cases_key.json new file mode 100644 index 00000000000..e89afc46452 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Cases_key.json @@ -0,0 +1,424 @@ +{ + "test_cases": [ + { + "TestCase": "Case_key_InheritanceKeyedEmptyStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "InheritanceKeyedEmptyStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_key_KeyedAppendable", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "KeyedAppendable" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_key_KeyedBooleanStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "KeyedBooleanStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_key_KeyedCharStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "KeyedCharStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_key_KeyedDoubleStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "KeyedDoubleStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_key_KeyedEmptyInheritanceStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "KeyedEmptyInheritanceStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_key_KeyedEmptyStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "KeyedEmptyStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_key_KeyedFinal", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "KeyedFinal" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_key_KeyedFloatStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "KeyedFloatStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_key_KeyedInheritanceStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "KeyedInheritanceStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_key_KeyedLongDoubleStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "KeyedLongDoubleStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_key_KeyedLongLongStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "KeyedLongLongStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_key_KeyedLongStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "KeyedLongStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_key_KeyedMutable", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "KeyedMutable" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_key_KeyedOctetStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "KeyedOctetStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_key_KeyedShortStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "KeyedShortStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_key_KeyedULongLongStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "KeyedULongLongStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_key_KeyedULongStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "KeyedULongStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_key_KeyedUShortStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "KeyedUShortStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_key_KeyedWCharStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "KeyedWCharStruct" + ] + }, + { + "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_maps.json b/test/dds/xtypes/TypesTestsCases/Cases_maps.json new file mode 100644 index 00000000000..5fe4c3c5dfd --- /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": "10", + "expected_matches": "1", + "known_types": [ + "BoundedLargeMap" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_BoundedSmallMap", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "BoundedSmallMap" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapInnerAliasBoundedStringHelperBoolean", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapInnerAliasBoundedStringHelperBoolean" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapInnerAliasBoundedStringHelperChar", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapInnerAliasBoundedStringHelperChar" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapInnerAliasBoundedStringHelperDouble", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapInnerAliasBoundedStringHelperDouble" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapInnerAliasBoundedStringHelperFloat", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapInnerAliasBoundedStringHelperFloat" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapInnerAliasBoundedStringHelperInnerAliasArrayHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapInnerAliasBoundedStringHelperInnerAliasArrayHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapInnerAliasBoundedStringHelperInnerAliasBoundedStringHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapInnerAliasBoundedStringHelperInnerAliasBoundedWStringHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapInnerAliasBoundedStringHelperInnerAliasHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapInnerAliasBoundedStringHelperInnerAliasHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapInnerAliasBoundedStringHelperInnerAliasMapHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapInnerAliasBoundedStringHelperInnerAliasMapHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapInnerAliasBoundedStringHelperInnerAliasSequenceHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapInnerAliasBoundedStringHelperInnerBitMaskHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapInnerAliasBoundedStringHelperInnerBitMaskHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapInnerAliasBoundedStringHelperInnerBitsetHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapInnerAliasBoundedStringHelperInnerBitsetHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapInnerAliasBoundedStringHelperInnerEnumHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapInnerAliasBoundedStringHelperInnerEnumHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapInnerAliasBoundedStringHelperInnerStructureHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapInnerAliasBoundedStringHelperInnerStructureHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapInnerAliasBoundedStringHelperInnerUnionHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapInnerAliasBoundedStringHelperInnerUnionHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapInnerAliasBoundedStringHelperLong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapInnerAliasBoundedStringHelperLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapInnerAliasBoundedStringHelperLongDouble", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapInnerAliasBoundedStringHelperLongDouble" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapInnerAliasBoundedStringHelperLongLong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapInnerAliasBoundedStringHelperLongLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapInnerAliasBoundedStringHelperOctet", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapInnerAliasBoundedStringHelperOctet" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapInnerAliasBoundedStringHelperShort", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapInnerAliasBoundedStringHelperShort" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapInnerAliasBoundedStringHelperString", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapInnerAliasBoundedStringHelperString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapInnerAliasBoundedStringHelperULong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapInnerAliasBoundedStringHelperULong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapInnerAliasBoundedStringHelperULongLong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapInnerAliasBoundedStringHelperULongLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapInnerAliasBoundedStringHelperUShort", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapInnerAliasBoundedStringHelperUShort" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapInnerAliasBoundedStringHelperWChar", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapInnerAliasBoundedStringHelperWChar" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapInnerAliasBoundedStringHelperWString", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapInnerAliasBoundedStringHelperWString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapKeyULongLongValueDouble", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapKeyULongLongValueDouble" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapKeyULongValueLongDouble", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapKeyULongValueLongDouble" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapKeyULongValueLongLong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapKeyULongValueLongLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapLongBoolean", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapLongBoolean" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapLongChar", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapLongChar" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapLongDouble", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapLongDouble" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapLongFloat", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapLongFloat" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapLongInnerAliasArrayHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapLongInnerAliasArrayHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapLongInnerAliasBoundedStringHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapLongInnerAliasBoundedStringHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapLongInnerAliasBoundedWStringHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapLongInnerAliasBoundedWStringHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapLongInnerAliasHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapLongInnerAliasHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapLongInnerAliasMapHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapLongInnerAliasMapHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapLongInnerAliasSequenceHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapLongInnerAliasSequenceHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapLongInnerBitMaskHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapLongInnerBitMaskHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapLongInnerBitsetHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapLongInnerBitsetHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapLongInnerEnumHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapLongInnerEnumHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapLongInnerStructureHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapLongInnerStructureHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapLongInnerUnionHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapLongInnerUnionHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapLongKeyLongDoubleValue", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapLongKeyLongDoubleValue" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapLongKeyLongLongValue", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapLongKeyLongLongValue" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapLongLong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapLongLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapLongLongBoolean", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapLongLongBoolean" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapLongLongChar", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapLongLongChar" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapLongLongFloat", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapLongLongFloat" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapLongLongInnerAliasArrayHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapLongLongInnerAliasArrayHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapLongLongInnerAliasBoundedStringHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapLongLongInnerAliasBoundedStringHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapLongLongInnerAliasBoundedWStringHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapLongLongInnerAliasBoundedWStringHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapLongLongInnerAliasHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapLongLongInnerAliasHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapLongLongInnerAliasMapHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapLongLongInnerAliasMapHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapLongLongInnerAliasSequenceHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapLongLongInnerAliasSequenceHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapLongLongInnerBitMaskHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapLongLongInnerBitMaskHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapLongLongInnerBitsetHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapLongLongInnerBitsetHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapLongLongInnerEnumHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapLongLongInnerEnumHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapLongLongInnerStructureHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapLongLongInnerStructureHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapLongLongInnerUnionHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapLongLongInnerUnionHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapLongLongKeyDoubleValue", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapLongLongKeyDoubleValue" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapLongLongKeyLongValue", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapLongLongKeyLongValue" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapLongLongLongDouble", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapLongLongLongDouble" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapLongLongLongLong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapLongLongLongLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapLongLongOctet", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapLongLongOctet" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapLongLongShort", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapLongLongShort" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapLongLongString", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapLongLongString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapLongLongULong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapLongLongULong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapLongLongULongLong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapLongLongULongLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapLongLongUShort", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapLongLongUShort" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapLongLongWChar", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapLongLongWChar" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapLongLongWString", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapLongLongWString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapLongOctet", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapLongOctet" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapLongShort", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapLongShort" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapLongString", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapLongString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapLongULong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapLongULong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapLongULongLong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapLongULongLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapLongUShort", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapLongUShort" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapLongWChar", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapLongWChar" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapLongWString", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapLongWString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapShortBoolean", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapShortBoolean" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapShortChar", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapShortChar" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapShortDouble", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapShortDouble" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapShortFloat", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapShortFloat" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapShortInnerAliasArrayHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapShortInnerAliasArrayHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapShortInnerAliasBoundedStringHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapShortInnerAliasBoundedStringHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapShortInnerAliasBoundedWStringHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapShortInnerAliasBoundedWStringHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapShortInnerAliasHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapShortInnerAliasHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapShortInnerAliasMapHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapShortInnerAliasMapHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapShortInnerAliasSequenceHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapShortInnerAliasSequenceHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapShortInnerBitMaskHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapShortInnerBitMaskHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapShortInnerBitsetHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapShortInnerBitsetHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapShortInnerEnumHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapShortInnerEnumHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapShortInnerStructureHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapShortInnerStructureHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapShortInnerUnionHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapShortInnerUnionHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapShortLong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapShortLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapShortLongDouble", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapShortLongDouble" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapShortLongLong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapShortLongLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapShortOctet", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapShortOctet" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapShortShort", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapShortShort" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapShortString", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapShortString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapShortULong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapShortULong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapShortULongLong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapShortULongLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapShortUShort", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapShortUShort" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapShortWChar", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapShortWChar" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapShortWString", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapShortWString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapStringBoolean", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapStringBoolean" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapStringChar", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapStringChar" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapStringDouble", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapStringDouble" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapStringFloat", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapStringFloat" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapStringInnerAliasArrayHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapStringInnerAliasArrayHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapStringInnerAliasBoundedStringHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapStringInnerAliasBoundedStringHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapStringInnerAliasBoundedWStringHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapStringInnerAliasBoundedWStringHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapStringInnerAliasHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapStringInnerAliasHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapStringInnerAliasMapHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapStringInnerAliasMapHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapStringInnerAliasSequenceHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapStringInnerAliasSequenceHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapStringInnerBitMaskHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapStringInnerBitMaskHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapStringInnerBitsetHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapStringInnerBitsetHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapStringInnerEnumHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapStringInnerEnumHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapStringInnerStructureHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapStringInnerStructureHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapStringInnerUnionHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapStringInnerUnionHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapStringLong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapStringLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapStringLongDouble", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapStringLongDouble" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapStringLongLong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapStringLongLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapStringOctet", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapStringOctet" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapStringShort", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapStringShort" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapStringString", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapStringString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapStringULong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapStringULong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapStringULongLong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapStringULongLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapStringUShort", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapStringUShort" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapStringWChar", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapStringWChar" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapStringWString", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapStringWString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapULongBoolean", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapULongBoolean" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapULongChar", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapULongChar" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapULongDouble", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapULongDouble" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapULongFloat", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapULongFloat" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapULongInnerAliasArrayHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapULongInnerAliasArrayHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapULongInnerAliasBoundedStringHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapULongInnerAliasBoundedStringHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapULongInnerAliasBoundedWStringHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapULongInnerAliasBoundedWStringHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapULongInnerAliasHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapULongInnerAliasHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapULongInnerAliasMapHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapULongInnerAliasMapHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapULongInnerAliasSequenceHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapULongInnerAliasSequenceHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapULongInnerBitMaskHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapULongInnerBitMaskHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapULongInnerBitsetHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapULongInnerBitsetHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapULongInnerEnumHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapULongInnerEnumHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapULongInnerStructureHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapULongInnerStructureHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapULongInnerUnionHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapULongInnerUnionHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapULongLong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapULongLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapULongLongBoolean", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapULongLongBoolean" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapULongLongChar", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapULongLongChar" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapULongLongFloat", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapULongLongFloat" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapULongLongInnerAliasArrayHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapULongLongInnerAliasArrayHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapULongLongInnerAliasBoundedStringHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapULongLongInnerAliasBoundedStringHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapULongLongInnerAliasBoundedWStringHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapULongLongInnerAliasBoundedWStringHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapULongLongInnerAliasHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapULongLongInnerAliasHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapULongLongInnerAliasMapHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapULongLongInnerAliasMapHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapULongLongInnerAliasSequenceHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapULongLongInnerAliasSequenceHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapULongLongInnerBitMaskHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapULongLongInnerBitMaskHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapULongLongInnerBitsetHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapULongLongInnerBitsetHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapULongLongInnerEnumHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapULongLongInnerEnumHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapULongLongInnerStructureHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapULongLongInnerStructureHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapULongLongInnerUnionHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapULongLongInnerUnionHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapULongLongLong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapULongLongLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapULongLongLongDouble", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapULongLongLongDouble" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapULongLongLongLong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapULongLongLongLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapULongLongOctet", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapULongLongOctet" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapULongLongShort", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapULongLongShort" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapULongLongString", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapULongLongString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapULongLongULong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapULongLongULong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapULongLongULongLong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapULongLongULongLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapULongLongUShort", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapULongLongUShort" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapULongLongWChar", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapULongLongWChar" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapULongLongWString", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapULongLongWString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapULongOctet", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapULongOctet" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapULongShort", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapULongShort" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapULongString", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapULongString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapULongULong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapULongULong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapULongULongLong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapULongULongLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapULongUShort", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapULongUShort" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapULongWChar", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapULongWChar" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapULongWString", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapULongWString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapUShortBoolean", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapUShortBoolean" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapUShortChar", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapUShortChar" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapUShortDouble", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapUShortDouble" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapUShortFloat", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapUShortFloat" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapUShortInnerAliasArrayHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapUShortInnerAliasArrayHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapUShortInnerAliasBoundedStringHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapUShortInnerAliasBoundedStringHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapUShortInnerAliasBoundedWStringHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapUShortInnerAliasBoundedWStringHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapUShortInnerAliasHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapUShortInnerAliasHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapUShortInnerAliasMapHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapUShortInnerAliasMapHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapUShortInnerAliasSequenceHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapUShortInnerAliasSequenceHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapUShortInnerBitMaskHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapUShortInnerBitMaskHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapUShortInnerBitsetHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapUShortInnerBitsetHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapUShortInnerEnumHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapUShortInnerEnumHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapUShortInnerStructureHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapUShortInnerStructureHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapUShortInnerUnionHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapUShortInnerUnionHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapUShortLong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapUShortLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapUShortLongDouble", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapUShortLongDouble" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapUShortLongLong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapUShortLongLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapUShortOctet", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapUShortOctet" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapUShortShort", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapUShortShort" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapUShortString", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapUShortString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapUShortULong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapUShortULong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapUShortULongLong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapUShortULongLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapUShortUShort", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapUShortUShort" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapUShortWChar", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapUShortWChar" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_maps_MapUShortWString", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MapUShortWString" + ] + }, + { + "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_mutable.json b/test/dds/xtypes/TypesTestsCases/Cases_mutable.json new file mode 100644 index 00000000000..4af58837a5e --- /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": "10", + "expected_matches": "1", + "known_types": [ + "MutableBooleanStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_mutable_MutableCharStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MutableCharStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_mutable_MutableDoubleStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MutableDoubleStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_mutable_MutableEmptyInheritanceStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MutableEmptyInheritanceStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_mutable_MutableEmptyStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MutableEmptyStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_mutable_MutableExtensibilityInheritance", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MutableExtensibilityInheritance" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_mutable_MutableFloatStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MutableFloatStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_mutable_MutableInheritanceEmptyStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MutableInheritanceEmptyStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_mutable_MutableInheritanceStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MutableInheritanceStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_mutable_MutableLongDoubleStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MutableLongDoubleStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_mutable_MutableLongLongStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MutableLongLongStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_mutable_MutableLongStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MutableLongStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_mutable_MutableOctetStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MutableOctetStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_mutable_MutableShortStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MutableShortStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_mutable_MutableULongLongStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MutableULongLongStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_mutable_MutableULongStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MutableULongStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_mutable_MutableUShortStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MutableUShortStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_mutable_MutableUnionStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MutableUnionStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_mutable_MutableWCharStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "MutableWCharStruct" + ] + }, + { + "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_optional.json b/test/dds/xtypes/TypesTestsCases/Cases_optional.json new file mode 100644 index 00000000000..90cda0ab439 --- /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": "10", + "expected_matches": "1", + "known_types": [ + "InnerStructOptional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_array_short_align_1_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "array_short_align_1_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_array_short_align_2_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "array_short_align_2_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_array_short_align_4_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "array_short_align_4_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_array_short_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "array_short_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_boolean_align_1_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "boolean_align_1_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_boolean_align_2_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "boolean_align_2_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_boolean_align_4_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "boolean_align_4_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_boolean_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "boolean_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_char_align_1_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "char_align_1_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_char_align_2_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "char_align_2_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_char_align_4_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "char_align_4_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_char_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "char_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_double_align_1_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "double_align_1_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_double_align_2_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "double_align_2_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_double_align_4_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "double_align_4_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_double_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "double_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_float_align_1_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "float_align_1_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_float_align_2_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "float_align_2_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_float_align_4_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "float_align_4_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_float_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "float_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_long_align_1_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "long_align_1_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_long_align_2_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "long_align_2_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_long_align_4_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "long_align_4_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_long_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "long_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_longdouble_align_1_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "longdouble_align_1_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_longdouble_align_2_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "longdouble_align_2_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_longdouble_align_4_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "longdouble_align_4_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_longdouble_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "longdouble_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_longlong_align_1_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "longlong_align_1_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_longlong_align_2_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "longlong_align_2_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_longlong_align_4_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "longlong_align_4_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_longlong_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "longlong_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_map_short_align_1_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "map_short_align_1_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_map_short_align_2_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "map_short_align_2_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_map_short_align_4_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "map_short_align_4_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_map_short_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "map_short_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_octet_align_1_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "octet_align_1_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_octet_align_2_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "octet_align_2_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_octet_align_4_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "octet_align_4_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_octet_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "octet_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_opt_struct_align_1_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "opt_struct_align_1_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_opt_struct_align_2_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "opt_struct_align_2_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_opt_struct_align_4_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "opt_struct_align_4_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_opt_struct_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "opt_struct_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_sequence_short_align_1_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "sequence_short_align_1_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_sequence_short_align_2_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "sequence_short_align_2_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_sequence_short_align_4_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "sequence_short_align_4_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_sequence_short_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "sequence_short_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_short_align_1_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "short_align_1_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_short_align_2_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "short_align_2_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_short_align_4_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "short_align_4_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_short_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "short_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_string_bounded_align_1_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "string_bounded_align_1_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_string_bounded_align_2_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "string_bounded_align_2_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_string_bounded_align_4_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "string_bounded_align_4_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_string_bounded_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "string_bounded_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_string_unbounded_align_1_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "string_unbounded_align_1_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_string_unbounded_align_2_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "string_unbounded_align_2_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_string_unbounded_align_4_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "string_unbounded_align_4_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_string_unbounded_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "string_unbounded_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_struct_align_1_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "struct_align_1_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_struct_align_2_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "struct_align_2_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_struct_align_4_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "struct_align_4_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_struct_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "struct_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_ulong_align_1_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ulong_align_1_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_ulong_align_2_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ulong_align_2_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_ulong_align_4_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ulong_align_4_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_ulong_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ulong_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_ulonglong_align_1_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ulonglong_align_1_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_ulonglong_align_2_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ulonglong_align_2_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_ulonglong_align_4_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ulonglong_align_4_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_ulonglong_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ulonglong_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_ushort_align_1_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ushort_align_1_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_ushort_align_2_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ushort_align_2_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_ushort_align_4_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ushort_align_4_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_ushort_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ushort_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_wchar_align_1_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "wchar_align_1_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_wchar_align_2_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "wchar_align_2_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_wchar_align_4_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "wchar_align_4_optional" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_optional_wchar_optional", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "wchar_optional" + ] + }, + { + "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_primitives.json b/test/dds/xtypes/TypesTestsCases/Cases_primitives.json new file mode 100644 index 00000000000..c2d566c3f2f --- /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": "10", + "expected_matches": "1", + "known_types": [ + "BooleanStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_primitives_CharStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "CharStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_primitives_DoubleStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "DoubleStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_primitives_FloatStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "FloatStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_primitives_Int16Struct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "Int16Struct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_primitives_Int32Struct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "Int32Struct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_primitives_Int64Struct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "Int64Struct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_primitives_Int8Struct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "Int8Struct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_primitives_LongDoubleStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "LongDoubleStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_primitives_LongLongStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "LongLongStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_primitives_LongStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "LongStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_primitives_OctetStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "OctetStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_primitives_ShortStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ShortStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_primitives_ULongLongStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ULongLongStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_primitives_ULongStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "ULongStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_primitives_UShortStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "UShortStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_primitives_Uint16Struct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "Uint16Struct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_primitives_Uint32Struct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "Uint32Struct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_primitives_Uint64Struct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "Uint64Struct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_primitives_Uint8Struct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "Uint8Struct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_primitives_WCharStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "WCharStruct" + ] + }, + { + "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_sequences.json b/test/dds/xtypes/TypesTestsCases/Cases_sequences.json new file mode 100644 index 00000000000..4605e53a615 --- /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": "10", + "expected_matches": "1", + "known_types": [ + "BoundedBigSequences" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_sequences_BoundedSmallSequences", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "BoundedSmallSequences" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_sequences_SequenceAlias", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "SequenceAlias" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_sequences_SequenceBitMask", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "SequenceBitMask" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_sequences_SequenceBitset", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "SequenceBitset" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_sequences_SequenceBoolean", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "SequenceBoolean" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_sequences_SequenceChar", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "SequenceChar" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_sequences_SequenceDouble", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "SequenceDouble" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_sequences_SequenceEnum", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "SequenceEnum" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_sequences_SequenceFloat", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "SequenceFloat" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_sequences_SequenceLong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "SequenceLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_sequences_SequenceLongDouble", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "SequenceLongDouble" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_sequences_SequenceLongLong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "SequenceLongLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_sequences_SequenceMap", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "SequenceMap" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_sequences_SequenceOctet", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "SequenceOctet" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_sequences_SequenceSequence", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "SequenceSequence" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_sequences_SequenceShort", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "SequenceShort" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_sequences_SequenceShortArray", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "SequenceShortArray" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_sequences_SequenceString", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "SequenceString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_sequences_SequenceStringBounded", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "SequenceStringBounded" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_sequences_SequenceStructure", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "SequenceStructure" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_sequences_SequenceULong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "SequenceULong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_sequences_SequenceULongLong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "SequenceULongLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_sequences_SequenceUShort", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "SequenceUShort" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_sequences_SequenceUnion", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "SequenceUnion" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_sequences_SequenceWChar", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "SequenceWChar" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_sequences_SequenceWString", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "SequenceWString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_sequences_SequenceWStringBounded", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "SequenceWStringBounded" + ] + }, + { + "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_strings.json b/test/dds/xtypes/TypesTestsCases/Cases_strings.json new file mode 100644 index 00000000000..0a75e16739c --- /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": "10", + "expected_matches": "1", + "known_types": [ + "LargeStringStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_strings_LargeWStringStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "LargeWStringStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_strings_SmallStringStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "SmallStringStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_strings_SmallWStringStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "SmallWStringStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_strings_StringStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "StringStruct" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_strings_WStringStruct", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "WStringStruct" + ] + }, + { + "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 new file mode 100644 index 00000000000..0b44fe74e52 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Cases_structures.json @@ -0,0 +1,718 @@ +{ + "test_cases": [ + { + "TestCase": "Case_structures_StructAlias", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "StructAlias" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_structures_StructBitMask", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "StructBitMask" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_structures_StructBitset", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "StructBitset" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_structures_StructBoolean", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "StructBoolean" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_structures_StructBoundedString", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "StructBoundedString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_structures_StructBoundedWString", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "StructBoundedWString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_structures_StructChar16", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "StructChar16" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_structures_StructChar8", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "StructChar8" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_structures_StructDouble", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "StructDouble" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_structures_StructEmpty", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "StructEmpty" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_structures_StructEnum", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "StructEnum" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_structures_StructFloat", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "StructFloat" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_structures_StructLong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "StructLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_structures_StructLongDouble", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "StructLongDouble" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_structures_StructLongLong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "StructLongLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_structures_StructMap", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "StructMap" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_structures_StructOctet", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "StructOctet" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_structures_StructSequence", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "StructSequence" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_structures_StructShort", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "StructShort" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_structures_StructShortArray", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "StructShortArray" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_structures_StructString", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "StructString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_structures_StructStructure", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "StructStructure" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_structures_StructUnion", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "StructUnion" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_structures_StructUnsignedLong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "StructUnsignedLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_structures_StructUnsignedLongLong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "StructUnsignedLongLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_structures_StructUnsignedShort", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "StructUnsignedShort" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_structures_StructWString", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "StructWString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_structures_Structures", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "Structures" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_structures_bar", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "bar" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_structures_foo", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "testing_2::foo" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_structures_foo", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "testing_1::foo" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_structures_root", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "root" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_structures_root1", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "root1" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_structures_root2", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "root2" + ] + }, + { + "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_unions.json b/test/dds/xtypes/TypesTestsCases/Cases_unions.json new file mode 100644 index 00000000000..dd553071ff6 --- /dev/null +++ b/test/dds/xtypes/TypesTestsCases/Cases_unions.json @@ -0,0 +1,865 @@ +{ + "test_cases": [ + { + "TestCase": "Case_unions_UnionArray", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "UnionArray" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_unions_UnionBoolean", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "UnionBoolean" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_unions_UnionBoundedString", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "UnionBoundedString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_unions_UnionBoundedWString", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "UnionBoundedWString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_unions_UnionChar", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "UnionChar" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_unions_UnionDiscriminatorAlias", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "UnionDiscriminatorAlias" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_unions_UnionDiscriminatorBoolean", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "UnionDiscriminatorBoolean" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_unions_UnionDiscriminatorChar", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "UnionDiscriminatorChar" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_unions_UnionDiscriminatorEnum", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "UnionDiscriminatorEnum" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_unions_UnionDiscriminatorEnumLabel", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "UnionDiscriminatorEnumLabel" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_unions_UnionDiscriminatorLong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "UnionDiscriminatorLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_unions_UnionDiscriminatorLongLong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "UnionDiscriminatorLongLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_unions_UnionDiscriminatorOctet", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "UnionDiscriminatorOctet" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_unions_UnionDiscriminatorShort", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "UnionDiscriminatorShort" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_unions_UnionDiscriminatorULong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "UnionDiscriminatorULong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_unions_UnionDiscriminatorULongLong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "UnionDiscriminatorULongLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_unions_UnionDiscriminatorUShort", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "UnionDiscriminatorUShort" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_unions_UnionDiscriminatorWChar", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "UnionDiscriminatorWChar" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_unions_UnionDouble", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "UnionDouble" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_unions_UnionFloat", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "UnionFloat" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_unions_UnionInnerAliasHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "UnionInnerAliasHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_unions_UnionInnerBitMaskHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "UnionInnerBitMaskHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_unions_UnionInnerBitsetHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "UnionInnerBitsetHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_unions_UnionInnerEnumHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "UnionInnerEnumHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_unions_UnionInnerStructureHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "UnionInnerStructureHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_unions_UnionInnerUnionHelper", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "UnionInnerUnionHelper" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_unions_UnionLong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "UnionLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_unions_UnionLongDouble", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "UnionLongDouble" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_unions_UnionLongLong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "UnionLongLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_unions_UnionMap", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "UnionMap" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_unions_UnionOctet", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "UnionOctet" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_unions_UnionSequence", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "UnionSequence" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_unions_UnionSeveralFields", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "UnionSeveralFields" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_unions_UnionSeveralFieldsWithDefault", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "UnionSeveralFieldsWithDefault" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_unions_UnionShort", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "UnionShort" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_unions_UnionString", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "UnionString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_unions_UnionULong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "UnionULong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_unions_UnionULongLong", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "UnionULongLong" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_unions_UnionUShort", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "UnionUShort" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_unions_UnionWChar", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "UnionWChar" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }, + { + "TestCase": "Case_unions_UnionWString", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [ + "UnionWString" + ] + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "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 new file mode 100644 index 00000000000..dbce9e9f24f --- /dev/null +++ b/test/dds/xtypes/test_build.py @@ -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. + +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( + '-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', + '--debug', + action='store_true', + help='Print test debugging info.' + ) + + return parser.parse_args() + + +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 define_args(participant): + """Use dictionary to get command args for each participant.""" + 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_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): + 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 define_commands(executable_path, test_cases): + """Create commands for each participant adding executable to args.""" + 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 all_commands + + +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 + ) + + num_lines = [0, 0] + + try: + await asyncio.wait_for(read_outputs(test_case, proc, num_lines), timeout) + except (TimeoutError, asyncio.TimeoutError): + logger.debug(" Timeout"); + 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))) + await asyncio.sleep(0.3) # Avoid errors with SharedMemory starting all commands at same time + + return sum([proc.result() for proc in tasks]) + + +if __name__ == '__main__': + + # 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.file[0])['test_cases'] + + total_test_value = 0 + successful_cases = [] + failling_cases = [] + + for test_case in test_cases: + # Define commands for each 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 + 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: + logger.info("---------- SUCCESSFUL CASES ----------") + for successful_test in successful_cases: + logger.info(successful_test) + + if failling_cases.__len__() > 0: + logger.info("----------- FAILLING CASES -----------") + for failed_test in failling_cases: + logger.info(failed_test) + + # Exit with appropriate exit code based on total test value + if total_test_value != 0: + 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 new file mode 100644 index 00000000000..00c6d65b180 --- /dev/null +++ b/test/dds/xtypes/update_header_and_create_cases.py @@ -0,0 +1,262 @@ +import json +import os +import re +import sys +import fnmatch + +class IDLProcessor: + def __init__(self): + self.structs_info = set() + + # 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 + 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"} + + 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 + structures = re.findall(struct_regexp, module_content) + module_structures[module_name] = structures + + # 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(idls_path): + for file_name in files: + 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}") + idl_file_relative_path = os.path.relpath(file_path, idls_path) + idl_file_name = os.path.splitext(idl_file_relative_path)[0] + with open(file_path, 'r') as file: + content = file.read() + 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.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.structs_info.add((structure[0], idl_file_name, "", idls_path)) + + +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): + os.makedirs(cases_folder) + print(f"Created 'TypesTestsCases' folder: {cases_folder}") + + # Aggregate test cases for each IDL file + idl_test_cases = {} + 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] = [] + + 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}"] + + idl_test_cases[idl_file_name].append({ + "TestCase": f"Case_{idl_file_name}_{struct_name}", + "participants": [ + { + "kind": "publisher", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": known_types + }, + { + "kind": "subscriber", + "samples": "10", + "timeout": "10", + "expected_matches": "1", + "known_types": [] + } + ] + }) + + # Generate case files for each IDL file + print("Creating case files...") + 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(structs_info, typecode_path): + # 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, _, idls_path in structs_info: + if idls_path != "BaseCasesIDLs/": + 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.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:] + + 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, 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) + 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, 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: + 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, 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 + updated_func = '\n'.join(lines) + + idx = updated_func.rfind(' }') + if idx != -1: + 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: + 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 + 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) + except Exception as e: + print(f"Error deleting {file_path}: {e}") + + +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 + + 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(idls_path) + + if not processor.structs_info: + print("No structures found in the IDL files.") + return + + delete_files_in_cases_folder() + + 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.structs_info, processor.struct_names_to_ignore, processor.idl_without_typeobjects) + update_participant_headers_file("TypeLookupServiceSubscriber.h", "SUBSCRIBER_TYPE_CREATOR_FUNCTION", + processor.structs_info, processor.struct_names_to_ignore, processor.idl_without_typeobjects) + + +if __name__ == "__main__": + main() 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/EDP/rtps/builtin/discovery/endpoint/EDP.h b/test/mock/rtps/EDP/rtps/builtin/discovery/endpoint/EDP.h index 8518507ba18..4a7e3a0ab6c 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 { 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..ec9da7f1ce6 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 diff --git a/test/mock/rtps/RTPSParticipantImpl/rtps/participant/RTPSParticipantImpl.h b/test/mock/rtps/RTPSParticipantImpl/rtps/participant/RTPSParticipantImpl.h index 8008681d102..2b367219b3c 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 @@ -351,6 +352,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; @@ -423,7 +428,7 @@ class RTPSParticipantImpl NetworkFactory network_factory_ {attr_}; - ResourceEvent events_; + ::testing::NiceMock events_; std::map endpoints_; 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/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/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..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 @@ -20,13 +20,73 @@ #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 +#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 { @@ -46,20 +106,20 @@ 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&)>; +using AsyncGetTypeReaderCallback = std::function< + void (eprosima::ProxyPool::smart_ptr&)>; -/** - * Class TypeLookupManager that implements the TypeLookup Service described in the DDS-XTYPES 1.2 specification. - * @ingroup XTYPES - */ class TypeLookupManager { + friend class TypeLookupRequestListener; + friend class TypeLookupReplyListener; public: - /** - * Constructor - */ TypeLookupManager() { } @@ -68,22 +128,80 @@ class TypeLookupManager { } - MOCK_CONST_METHOD1(get_type_dependencies, fastdds::rtps::SampleIdentity( - const fastdds::dds::xtypes::TypeIdentifierSeq&)); + // *INDENT-OFF* + + MOCK_CONST_METHOD2(get_type_dependencies, SampleIdentity( + const xtypes::TypeIdentifierSeq&, + const fastdds::rtps::GUID_t&)); + + MOCK_CONST_METHOD3(get_type_dependencies, SampleIdentity( + const xtypes::TypeIdentifierSeq&, + const fastdds::rtps::GUID_t&, + const std::vector&)); + + MOCK_CONST_METHOD2(get_types, SampleIdentity( + const xtypes::TypeIdentifierSeq&, + const fastdds::rtps::GUID_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_METHOD2(notify_callbacks, void( + ReturnCode_t, + const xtypes::TypeIdentfierWithSize&)); + + MOCK_METHOD2(add_async_get_type_request, bool( + const SampleIdentity&, + const xtypes::TypeIdentfierWithSize&)); - MOCK_CONST_METHOD1(get_types, fastdds::rtps::SampleIdentity( - const fastdds::dds::xtypes::TypeIdentifierSeq&)); + MOCK_METHOD1(remove_async_get_type_callback, bool( + const xtypes::TypeIdentfierWithSize&)); - void remove_remote_endpoints( - fastdds::rtps::ParticipantProxyData* pdata) + 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*)); + + 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* + + xtypes::TypeKind get_type_kind_to_propagate() const { - static_cast(pdata); + return xtypes::EK_COMPLETE; } + 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/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..c8282ad2549 --- /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 new file mode 100644 index 00000000000..f4ce49bbb8f --- /dev/null +++ b/test/unittest/dds/xtypes/type_lookup_service/CMakeLists.txt @@ -0,0 +1,91 @@ +# 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(TYPELOOKUPSERVICETESTS_SOURCE TypeLookupServiceTests.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/policy/ParameterList.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 + ${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/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/SystemInfo.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}) +target_compile_definitions(TypeLookupServiceTests 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(TypeLookupServiceTests PUBLIC + ${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/RTPSParticipantImpl + ${PROJECT_SOURCE_DIR}/test/mock/rtps/RTPSReader + ${PROJECT_SOURCE_DIR}/test/mock/rtps/RTPSWriter + ${PROJECT_SOURCE_DIR}/test/mock/rtps/StatefulReader + ${PROJECT_SOURCE_DIR}/test/mock/rtps/StatefulWriter + ${PROJECT_SOURCE_DIR}/test/mock/rtps/WriterHistory + ${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 + ${Asio_INCLUDE_DIR} + $<$:${ANDROID_IFADDRS_INCLUDE_DIR}> + ) + +target_link_libraries(TypeLookupServiceTests + fastcdr + fastdds::log + foonathan_memory + GTest::gmock + ${CMAKE_DL_LIBS} + ) + +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..7defb76b026 --- /dev/null +++ b/test/unittest/dds/xtypes/type_lookup_service/TypeLookupServiceTests.cpp @@ -0,0 +1,996 @@ +// 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 + +using ::testing::Mock; +using ::testing::NiceMock; +using ::testing::_; +using namespace eprosima::fastdds::dds::builtin; +using namespace eprosima::fastdds::dds::xtypes; +using namespace eprosima::fastdds::rtps; + +namespace eprosima { +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 on_new_cache_change_added( + fastdds::rtps::RTPSReader* reader_, + const fastdds::rtps::CacheChange_t* const change) + { + TypeLookupReplyListener::on_new_cache_change_added(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 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::on_new_cache_change_added(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 + { + 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 stateful_reader_.history_; + delete reply_listener_; + delete request_listener_; + delete tlm_; + } + + TypeLookupManager* tlm_; + MockTypeLookupReplyListener* reply_listener_; + MockTypeLookupRequestListener* request_listener_; + RTPSParticipantAttributes participant_attr_; + NetworkFactory network_factory_ {participant_attr_}; + ReaderProxyData reader_proxy_{0, 0}; + WriterProxyData writer_proxy_{0, 0}; + NiceMock participant_; + NiceMock stateful_reader_; + TypeObjectRegistry& registry {RTPSDomainImpl::get_instance()->type_object_registry_observer()}; +}; + +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", + "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_, true, c_VendorId_eProsima)); + + 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", + "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_, true, c_VendorId_eProsima)); + + 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", "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_, true, c_VendorId_eProsima)); + + 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", "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_, true, c_VendorId_eProsima)); + + 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; + + 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); + + 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; + + EXPECT_CALL(*tlm_, receive( + 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_->on_new_cache_change_added(&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: " + + std::to_string(static_cast(rpc::RemoteExceptionCode_t::REMOTE_EX_UNSUPPORTED))); + + + 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); + EXPECT_CALL(*tlm_, receive( + testing::Matcher(_), + testing::Matcher(_))) + .WillOnce(testing::DoAll(testing::SetArgReferee<1>(expectedReply), testing::Return(true))); + + reply_listener_->on_new_cache_change_added(&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: " + + std::to_string(static_cast(rpc::RemoteExceptionCode_t::REMOTE_EX_INVALID_ARGUMENT))); + + + 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); + EXPECT_CALL(*tlm_, receive( + testing::Matcher(_), + testing::Matcher(_))) + .WillOnce(testing::DoAll(testing::SetArgReferee<1>(expectedReply), testing::Return(true))); + + reply_listener_->on_new_cache_change_added(&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: " + + std::to_string(static_cast(rpc::RemoteExceptionCode_t::REMOTE_EX_OUT_OF_RESOURCES))); + + + 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); + EXPECT_CALL(*tlm_, receive( + testing::Matcher(_), + testing::Matcher(_))) + .WillOnce(testing::DoAll(testing::SetArgReferee<1>(expectedReply), testing::Return(true))); + + reply_listener_->on_new_cache_change_added(&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: " + + std::to_string(static_cast(rpc::RemoteExceptionCode_t::REMOTE_EX_UNKNOWN_OPERATION))); + + + 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); + EXPECT_CALL(*tlm_, receive( + testing::Matcher(_), + testing::Matcher(_))) + .WillOnce(testing::DoAll(testing::SetArgReferee<1>(expectedReply), testing::Return(true))); + + reply_listener_->on_new_cache_change_added(&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: " + + std::to_string(static_cast(rpc::RemoteExceptionCode_t::REMOTE_EX_UNKNOWN_EXCEPTION))); + + + 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); + EXPECT_CALL(*tlm_, receive( + testing::Matcher(_), + testing::Matcher(_))) + .WillOnce(testing::DoAll(testing::SetArgReferee<1>(expectedReply), testing::Return(true))); + + reply_listener_->on_new_cache_change_added(&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 unknown reply operation type in type lookup service."); + + TypeIdentfierWithSize tidws; + 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; + + 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", "Received reply with no types."); + + TypeIdentfierWithSize tidws; + tlm_->async_get_type_requests_.emplace(valid_sampleidentity(), tidws); + + TypeLookup_Reply reply; + reply.header().relatedRequestId(valid_sampleidentity()); + 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(); + + 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 remote type."); + + TypeIdentfierWithSize tidws; + tlm_->async_get_type_requests_.emplace(valid_sampleidentity(), tidws); + + TypeLookup_Reply reply; + reply.header().relatedRequestId(valid_sampleidentity()); + 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), false)).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(); + + 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 remote type."); + + TypeIdentfierWithSize tidws; + tlm_->async_get_type_requests_.emplace(valid_sampleidentity(), tidws); + + TypeLookup_Reply reply; + reply.header().relatedRequestId(valid_sampleidentity()); + reply.return_value().getType({}); + + TypeIdentifierTypeObjectPair pair; + TypeIdentifier id; + id._d(TK_CHAR8); + TypeObject obj; + obj.complete({}); + obj.complete().sequence_type({}); + 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; + + TypeIdentifierPair type_ids; + type_ids.type_identifier1(pair.type_identifier()); + + EXPECT_CALL(registry, + 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)); + + 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"); + + TypeIdentfierWithSize tidws; + tlm_->async_get_type_requests_.emplace(valid_sampleidentity(), tidws); + + TypeLookup_Reply reply; + reply.header().relatedRequestId(valid_sampleidentity()); + reply.return_value().getTypeDependencies({}); + 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; + + 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(); + + 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().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(); + + 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; + + 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); + + 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; + + 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_->on_new_cache_change_added(&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 in type lookup service."); + + TypeIdentfierWithSize tidws; + tlm_->async_get_type_requests_.emplace(valid_sampleidentity(), tidws); + + TypeLookup_Request request; + request.data()._default(); + + 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(); + 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", + "Received request with no type identifiers."); + + TypeIdentfierWithSize tidws; + tlm_->async_get_type_requests_.emplace(valid_sampleidentity(), tidws); + + TypeLookup_Request request; + request.data().getTypes({}); + + request_listener_->get_requests_queue()->push({request, c_VendorId_eProsima}); + 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", + "Requested TypeIdentifier is not a direct hash."); + + TypeIdentfierWithSize tidws; + tlm_->async_get_type_requests_.emplace(valid_sampleidentity(), tidws); + + TypeLookup_Request request; + 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); + + 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(); + 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", + "Requested TypeIdentifier is not found in the registry."); + + TypeIdentfierWithSize tidws; + tlm_->async_get_type_requests_.emplace(valid_sampleidentity(), tidws); + + TypeLookup_Request request; + TypeLookup_getTypes_In in; + TypeIdentifierSeq id_seq; + TypeIdentifier id; + id._d(TK_CHAR8); + + id_seq.push_back(id); + in.type_ids(id_seq); + in.type_ids().push_back(id); + request.data().getTypes(in); + + 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(); + 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", "Type dependencies request is empty."); + + TypeIdentfierWithSize tidws; + tlm_->async_get_type_requests_.emplace(valid_sampleidentity(), tidws); + + TypeLookup_Request request; + request.data().getTypeDependencies({}); + + request_listener_->get_requests_queue()->push({request, c_VendorId_eProsima}); + 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", + "Requested TypeIdentifier is not found in the registry."); + + TypeIdentfierWithSize tidws; + tlm_->async_get_type_requests_.emplace(valid_sampleidentity(), tidws); + + TypeLookup_Request request; + + TypeLookup_getTypeDependencies_In in; + TypeIdentifierSeq id_seq; + TypeIdentifier id; + id._d(TK_CHAR8); + id_seq.push_back(id); + in.type_ids(id_seq); + in.type_ids().push_back(id); + request.data().getTypeDependencies(in); + + 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(); + 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/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 diff --git a/utils/scripts/update_generated_code_from_idl.sh b/utils/scripts/update_generated_code_from_idl.sh index 4f0214311e5..a5d622cc78b 100755 --- a/utils/scripts/update_generated_code_from_idl.sh +++ b/utils/scripts/update_generated_code_from_idl.sh @@ -3,15 +3,17 @@ 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=( './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=( ) @@ -58,13 +60,13 @@ files_needing_output_dir=( './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' @@ -84,12 +86,11 @@ 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 @@ -113,7 +114,7 @@ for idl_file in "${idl_files[@]}"; do not_processed=true for od_entry in ${files_needing_output_dir[@]}; do if [[ $od_entry = $idl_file\|* ]]; then - not_processed=false; + 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}" @@ -123,7 +124,7 @@ for idl_file in "${idl_files[@]}"; do fi done - if $not_processed ; then + if $not_processed; then fastddsgen -replace -genapi $to_arg $cs_arg $nosupport_arg "$file_from_gen" -no-dependencies fi