From 3d9d135f3c4917355ce98dff00503430af099e1b Mon Sep 17 00:00:00 2001 From: JesusPoderoso Date: Wed, 11 Sep 2024 20:16:07 +0200 Subject: [PATCH] Refs #21636: Regenerate types with Gen v4.0.1 Signed-off-by: JesusPoderoso --- examples/cpp/HelloWorldExample/HelloWorld.hpp | 13 +- .../topic_types/monitorservice_types.hpp | 778 ++++----- .../monitorservice_typesPubSubTypes.hpp | 770 ++++----- .../topic_types/types.hpp | 859 +++++----- .../topic_types/typesPubSubTypes.hpp | 1507 +++++++++-------- test/dds/communication/Communication.hpp | 15 +- .../dds/communication/CommunicationCdrAux.hpp | 2 +- .../dds/communication/CommunicationCdrAux.ipp | 7 +- .../CommunicationPubSubTypes.cxx | 5 +- .../CommunicationPubSubTypes.hpp | 2 +- .../CommunicationTypeObjectSupport.cxx | 2 +- .../CommunicationTypeObjectSupport.hpp | 2 +- 12 files changed, 2024 insertions(+), 1938 deletions(-) diff --git a/examples/cpp/HelloWorldExample/HelloWorld.hpp b/examples/cpp/HelloWorldExample/HelloWorld.hpp index 69c2ce55d..46d0d7b58 100644 --- a/examples/cpp/HelloWorldExample/HelloWorld.hpp +++ b/examples/cpp/HelloWorldExample/HelloWorld.hpp @@ -80,9 +80,9 @@ class HelloWorld eProsima_user_DllExport HelloWorld( const HelloWorld& x) { - m_index = x.m_index; + m_index = x.m_index; - m_message = x.m_message; + m_message = x.m_message; } @@ -105,9 +105,9 @@ class HelloWorld const HelloWorld& x) { - m_index = x.m_index; + m_index = x.m_index; - m_message = x.m_message; + m_message = x.m_message; return *this; } @@ -133,7 +133,7 @@ class HelloWorld const HelloWorld& x) const { return (m_index == x.m_index && - m_message == x.m_message); + m_message == x.m_message); } /*! @@ -174,6 +174,7 @@ class HelloWorld return m_index; } + /*! * @brief This function copies the value in member message * @param _message New value to be copied in member message @@ -212,6 +213,8 @@ class HelloWorld return m_message; } + + private: uint32_t m_index{0}; diff --git a/include/fastdds_statistics_backend/topic_types/monitorservice_types.hpp b/include/fastdds_statistics_backend/topic_types/monitorservice_types.hpp index 4b4063023..532982ed6 100644 --- a/include/fastdds_statistics_backend/topic_types/monitorservice_types.hpp +++ b/include/fastdds_statistics_backend/topic_types/monitorservice_types.hpp @@ -101,13 +101,13 @@ class Connection eProsima_user_DllExport Connection( const Connection& x) { - m_mode = x.m_mode; + m_mode = x.m_mode; - m_guid = x.m_guid; + m_guid = x.m_guid; - m_announced_locators = x.m_announced_locators; + m_announced_locators = x.m_announced_locators; - m_used_locators = x.m_used_locators; + m_used_locators = x.m_used_locators; } @@ -132,13 +132,13 @@ class Connection const Connection& x) { - m_mode = x.m_mode; + m_mode = x.m_mode; - m_guid = x.m_guid; + m_guid = x.m_guid; - m_announced_locators = x.m_announced_locators; + m_announced_locators = x.m_announced_locators; - m_used_locators = x.m_used_locators; + m_used_locators = x.m_used_locators; return *this; } @@ -166,9 +166,9 @@ class Connection const Connection& x) const { return (m_mode == x.m_mode && - m_guid == x.m_guid && - m_announced_locators == x.m_announced_locators && - m_used_locators == x.m_used_locators); + m_guid == x.m_guid && + m_announced_locators == x.m_announced_locators && + m_used_locators == x.m_used_locators); } /*! @@ -209,6 +209,7 @@ class Connection return m_mode; } + /*! * @brief This function copies the value in member guid * @param _guid New value to be copied in member guid @@ -247,6 +248,7 @@ class Connection return m_guid; } + /*! * @brief This function copies the value in member announced_locators * @param _announced_locators New value to be copied in member announced_locators @@ -285,6 +287,7 @@ class Connection return m_announced_locators; } + /*! * @brief This function copies the value in member used_locators * @param _used_locators New value to be copied in member used_locators @@ -323,6 +326,8 @@ class Connection return m_used_locators; } + + private: ConnectionMode m_mode{ConnectionMode::DATA_SHARING}; @@ -360,9 +365,9 @@ class QosPolicyCount_s eProsima_user_DllExport QosPolicyCount_s( const QosPolicyCount_s& x) { - m_policy_id = x.m_policy_id; + m_policy_id = x.m_policy_id; - m_count = x.m_count; + m_count = x.m_count; } @@ -385,9 +390,9 @@ class QosPolicyCount_s const QosPolicyCount_s& x) { - m_policy_id = x.m_policy_id; + m_policy_id = x.m_policy_id; - m_count = x.m_count; + m_count = x.m_count; return *this; } @@ -413,7 +418,7 @@ class QosPolicyCount_s const QosPolicyCount_s& x) const { return (m_policy_id == x.m_policy_id && - m_count == x.m_count); + m_count == x.m_count); } /*! @@ -454,6 +459,7 @@ class QosPolicyCount_s return m_policy_id; } + /*! * @brief This function sets a value in member count * @param _count New value for member count @@ -482,6 +488,8 @@ class QosPolicyCount_s return m_count; } + + private: uint32_t m_policy_id{0}; @@ -517,7 +525,7 @@ class BaseStatus_s eProsima_user_DllExport BaseStatus_s( const BaseStatus_s& x) { - m_total_count = x.m_total_count; + m_total_count = x.m_total_count; } @@ -539,7 +547,7 @@ class BaseStatus_s const BaseStatus_s& x) { - m_total_count = x.m_total_count; + m_total_count = x.m_total_count; return *this; } @@ -604,6 +612,8 @@ class BaseStatus_s return m_total_count; } + + private: uint32_t m_total_count{0}; @@ -640,11 +650,11 @@ class IncompatibleQoSStatus_s eProsima_user_DllExport IncompatibleQoSStatus_s( const IncompatibleQoSStatus_s& x) { - m_total_count = x.m_total_count; + m_total_count = x.m_total_count; - m_last_policy_id = x.m_last_policy_id; + m_last_policy_id = x.m_last_policy_id; - m_policies = x.m_policies; + m_policies = x.m_policies; } @@ -668,11 +678,11 @@ class IncompatibleQoSStatus_s const IncompatibleQoSStatus_s& x) { - m_total_count = x.m_total_count; + m_total_count = x.m_total_count; - m_last_policy_id = x.m_last_policy_id; + m_last_policy_id = x.m_last_policy_id; - m_policies = x.m_policies; + m_policies = x.m_policies; return *this; } @@ -699,8 +709,8 @@ class IncompatibleQoSStatus_s const IncompatibleQoSStatus_s& x) const { return (m_total_count == x.m_total_count && - m_last_policy_id == x.m_last_policy_id && - m_policies == x.m_policies); + m_last_policy_id == x.m_last_policy_id && + m_policies == x.m_policies); } /*! @@ -741,6 +751,7 @@ class IncompatibleQoSStatus_s return m_total_count; } + /*! * @brief This function sets a value in member last_policy_id * @param _last_policy_id New value for member last_policy_id @@ -769,6 +780,7 @@ class IncompatibleQoSStatus_s return m_last_policy_id; } + /*! * @brief This function copies the value in member policies * @param _policies New value to be copied in member policies @@ -807,6 +819,8 @@ class IncompatibleQoSStatus_s return m_policies; } + + private: uint32_t m_total_count{0}; @@ -843,11 +857,11 @@ class LivelinessChangedStatus_s eProsima_user_DllExport LivelinessChangedStatus_s( const LivelinessChangedStatus_s& x) { - m_alive_count = x.m_alive_count; + m_alive_count = x.m_alive_count; - m_not_alive_count = x.m_not_alive_count; + m_not_alive_count = x.m_not_alive_count; - m_last_publication_handle = x.m_last_publication_handle; + m_last_publication_handle = x.m_last_publication_handle; } @@ -871,11 +885,11 @@ class LivelinessChangedStatus_s const LivelinessChangedStatus_s& x) { - m_alive_count = x.m_alive_count; + m_alive_count = x.m_alive_count; - m_not_alive_count = x.m_not_alive_count; + m_not_alive_count = x.m_not_alive_count; - m_last_publication_handle = x.m_last_publication_handle; + m_last_publication_handle = x.m_last_publication_handle; return *this; } @@ -902,8 +916,8 @@ class LivelinessChangedStatus_s const LivelinessChangedStatus_s& x) const { return (m_alive_count == x.m_alive_count && - m_not_alive_count == x.m_not_alive_count && - m_last_publication_handle == x.m_last_publication_handle); + m_not_alive_count == x.m_not_alive_count && + m_last_publication_handle == x.m_last_publication_handle); } /*! @@ -944,6 +958,7 @@ class LivelinessChangedStatus_s return m_alive_count; } + /*! * @brief This function sets a value in member not_alive_count * @param _not_alive_count New value for member not_alive_count @@ -972,6 +987,7 @@ class LivelinessChangedStatus_s return m_not_alive_count; } + /*! * @brief This function copies the value in member last_publication_handle * @param _last_publication_handle New value to be copied in member last_publication_handle @@ -1010,6 +1026,8 @@ class LivelinessChangedStatus_s return m_last_publication_handle; } + + private: uint32_t m_alive_count{0}; @@ -1046,9 +1064,9 @@ class DeadlineMissedStatus_s eProsima_user_DllExport DeadlineMissedStatus_s( const DeadlineMissedStatus_s& x) { - m_total_count = x.m_total_count; + m_total_count = x.m_total_count; - m_last_instance_handle = x.m_last_instance_handle; + m_last_instance_handle = x.m_last_instance_handle; } @@ -1071,9 +1089,9 @@ class DeadlineMissedStatus_s const DeadlineMissedStatus_s& x) { - m_total_count = x.m_total_count; + m_total_count = x.m_total_count; - m_last_instance_handle = x.m_last_instance_handle; + m_last_instance_handle = x.m_last_instance_handle; return *this; } @@ -1099,7 +1117,7 @@ class DeadlineMissedStatus_s const DeadlineMissedStatus_s& x) const { return (m_total_count == x.m_total_count && - m_last_instance_handle == x.m_last_instance_handle); + m_last_instance_handle == x.m_last_instance_handle); } /*! @@ -1140,6 +1158,7 @@ class DeadlineMissedStatus_s return m_total_count; } + /*! * @brief This function copies the value in member last_instance_handle * @param _last_instance_handle New value to be copied in member last_instance_handle @@ -1178,6 +1197,8 @@ class DeadlineMissedStatus_s return m_last_instance_handle; } + + private: uint32_t m_total_count{0}; @@ -1242,41 +1263,41 @@ class MonitorServiceData switch (x.selected_member_) { - case 0x00000001: - entity_proxy_() = x.m_entity_proxy; - break; + case 0x00000001: + entity_proxy_() = x.m_entity_proxy; + break; - case 0x00000002: - connection_list_() = x.m_connection_list; - break; + case 0x00000002: + connection_list_() = x.m_connection_list; + break; - case 0x00000003: - incompatible_qos_status_() = x.m_incompatible_qos_status; - break; + case 0x00000003: + incompatible_qos_status_() = x.m_incompatible_qos_status; + break; - case 0x00000004: - inconsistent_topic_status_() = x.m_inconsistent_topic_status; - break; + case 0x00000004: + inconsistent_topic_status_() = x.m_inconsistent_topic_status; + break; - case 0x00000005: - liveliness_lost_status_() = x.m_liveliness_lost_status; - break; + case 0x00000005: + liveliness_lost_status_() = x.m_liveliness_lost_status; + break; - case 0x00000006: - liveliness_changed_status_() = x.m_liveliness_changed_status; - break; + case 0x00000006: + liveliness_changed_status_() = x.m_liveliness_changed_status; + break; - case 0x00000007: - deadline_missed_status_() = x.m_deadline_missed_status; - break; + case 0x00000007: + deadline_missed_status_() = x.m_deadline_missed_status; + break; - case 0x00000008: - sample_lost_status_() = x.m_sample_lost_status; - break; + case 0x00000008: + sample_lost_status_() = x.m_sample_lost_status; + break; - case 0x00000009: - statuses_size_() = x.m_statuses_size; - break; + case 0x00000009: + statuses_size_() = x.m_statuses_size; + break; } } @@ -1292,41 +1313,41 @@ class MonitorServiceData switch (x.selected_member_) { - case 0x00000001: - entity_proxy_() = std::move(x.m_entity_proxy); - break; + case 0x00000001: + entity_proxy_() = std::move(x.m_entity_proxy); + break; - case 0x00000002: - connection_list_() = std::move(x.m_connection_list); - break; + case 0x00000002: + connection_list_() = std::move(x.m_connection_list); + break; - case 0x00000003: - incompatible_qos_status_() = std::move(x.m_incompatible_qos_status); - break; + case 0x00000003: + incompatible_qos_status_() = std::move(x.m_incompatible_qos_status); + break; - case 0x00000004: - inconsistent_topic_status_() = std::move(x.m_inconsistent_topic_status); - break; + case 0x00000004: + inconsistent_topic_status_() = std::move(x.m_inconsistent_topic_status); + break; - case 0x00000005: - liveliness_lost_status_() = std::move(x.m_liveliness_lost_status); - break; + case 0x00000005: + liveliness_lost_status_() = std::move(x.m_liveliness_lost_status); + break; - case 0x00000006: - liveliness_changed_status_() = std::move(x.m_liveliness_changed_status); - break; + case 0x00000006: + liveliness_changed_status_() = std::move(x.m_liveliness_changed_status); + break; - case 0x00000007: - deadline_missed_status_() = std::move(x.m_deadline_missed_status); - break; + case 0x00000007: + deadline_missed_status_() = std::move(x.m_deadline_missed_status); + break; - case 0x00000008: - sample_lost_status_() = std::move(x.m_sample_lost_status); - break; + case 0x00000008: + sample_lost_status_() = std::move(x.m_sample_lost_status); + break; - case 0x00000009: - statuses_size_() = std::move(x.m_statuses_size); - break; + case 0x00000009: + statuses_size_() = std::move(x.m_statuses_size); + break; } } @@ -1342,41 +1363,41 @@ class MonitorServiceData switch (x.selected_member_) { - case 0x00000001: - entity_proxy_() = x.m_entity_proxy; - break; + case 0x00000001: + entity_proxy_() = x.m_entity_proxy; + break; - case 0x00000002: - connection_list_() = x.m_connection_list; - break; + case 0x00000002: + connection_list_() = x.m_connection_list; + break; - case 0x00000003: - incompatible_qos_status_() = x.m_incompatible_qos_status; - break; + case 0x00000003: + incompatible_qos_status_() = x.m_incompatible_qos_status; + break; - case 0x00000004: - inconsistent_topic_status_() = x.m_inconsistent_topic_status; - break; + case 0x00000004: + inconsistent_topic_status_() = x.m_inconsistent_topic_status; + break; - case 0x00000005: - liveliness_lost_status_() = x.m_liveliness_lost_status; - break; + case 0x00000005: + liveliness_lost_status_() = x.m_liveliness_lost_status; + break; - case 0x00000006: - liveliness_changed_status_() = x.m_liveliness_changed_status; - break; + case 0x00000006: + liveliness_changed_status_() = x.m_liveliness_changed_status; + break; - case 0x00000007: - deadline_missed_status_() = x.m_deadline_missed_status; - break; + case 0x00000007: + deadline_missed_status_() = x.m_deadline_missed_status; + break; - case 0x00000008: - sample_lost_status_() = x.m_sample_lost_status; - break; + case 0x00000008: + sample_lost_status_() = x.m_sample_lost_status; + break; - case 0x00000009: - statuses_size_() = x.m_statuses_size; - break; + case 0x00000009: + statuses_size_() = x.m_statuses_size; + break; } @@ -1394,41 +1415,41 @@ class MonitorServiceData switch (x.selected_member_) { - case 0x00000001: - entity_proxy_() = std::move(x.m_entity_proxy); - break; + case 0x00000001: + entity_proxy_() = std::move(x.m_entity_proxy); + break; - case 0x00000002: - connection_list_() = std::move(x.m_connection_list); - break; + case 0x00000002: + connection_list_() = std::move(x.m_connection_list); + break; - case 0x00000003: - incompatible_qos_status_() = std::move(x.m_incompatible_qos_status); - break; + case 0x00000003: + incompatible_qos_status_() = std::move(x.m_incompatible_qos_status); + break; - case 0x00000004: - inconsistent_topic_status_() = std::move(x.m_inconsistent_topic_status); - break; + case 0x00000004: + inconsistent_topic_status_() = std::move(x.m_inconsistent_topic_status); + break; - case 0x00000005: - liveliness_lost_status_() = std::move(x.m_liveliness_lost_status); - break; + case 0x00000005: + liveliness_lost_status_() = std::move(x.m_liveliness_lost_status); + break; - case 0x00000006: - liveliness_changed_status_() = std::move(x.m_liveliness_changed_status); - break; + case 0x00000006: + liveliness_changed_status_() = std::move(x.m_liveliness_changed_status); + break; - case 0x00000007: - deadline_missed_status_() = std::move(x.m_deadline_missed_status); - break; + case 0x00000007: + deadline_missed_status_() = std::move(x.m_deadline_missed_status); + break; - case 0x00000008: - sample_lost_status_() = std::move(x.m_sample_lost_status); - break; + case 0x00000008: + sample_lost_status_() = std::move(x.m_sample_lost_status); + break; - case 0x00000009: - statuses_size_() = std::move(x.m_statuses_size); - break; + case 0x00000009: + statuses_size_() = std::move(x.m_statuses_size); + break; } @@ -1449,41 +1470,41 @@ class MonitorServiceData { switch (selected_member_) { - case 0x00000001: - ret_value = (m_entity_proxy == x.m_entity_proxy); - break; + case 0x00000001: + ret_value = (m_entity_proxy == x.m_entity_proxy); + break; - case 0x00000002: - ret_value = (m_connection_list == x.m_connection_list); - break; + case 0x00000002: + ret_value = (m_connection_list == x.m_connection_list); + break; - case 0x00000003: - ret_value = (m_incompatible_qos_status == x.m_incompatible_qos_status); - break; + case 0x00000003: + ret_value = (m_incompatible_qos_status == x.m_incompatible_qos_status); + break; - case 0x00000004: - ret_value = (m_inconsistent_topic_status == x.m_inconsistent_topic_status); - break; + case 0x00000004: + ret_value = (m_inconsistent_topic_status == x.m_inconsistent_topic_status); + break; - case 0x00000005: - ret_value = (m_liveliness_lost_status == x.m_liveliness_lost_status); - break; + case 0x00000005: + ret_value = (m_liveliness_lost_status == x.m_liveliness_lost_status); + break; - case 0x00000006: - ret_value = (m_liveliness_changed_status == x.m_liveliness_changed_status); - break; + case 0x00000006: + ret_value = (m_liveliness_changed_status == x.m_liveliness_changed_status); + break; - case 0x00000007: - ret_value = (m_deadline_missed_status == x.m_deadline_missed_status); - break; + case 0x00000007: + ret_value = (m_deadline_missed_status == x.m_deadline_missed_status); + break; - case 0x00000008: - ret_value = (m_sample_lost_status == x.m_sample_lost_status); - break; + case 0x00000008: + ret_value = (m_sample_lost_status == x.m_sample_lost_status); + break; - case 0x00000009: - ret_value = (m_statuses_size == x.m_statuses_size); - break; + case 0x00000009: + ret_value = (m_statuses_size == x.m_statuses_size); + break; } } @@ -1513,75 +1534,74 @@ class MonitorServiceData switch (__d) { - case StatusKind::PROXY: - if (0x00000001 == selected_member_) - { - valid_discriminator = true; - } - break; - - case StatusKind::CONNECTION_LIST: - if (0x00000002 == selected_member_) - { - valid_discriminator = true; - } - break; - - case StatusKind::INCOMPATIBLE_QOS: - if (0x00000003 == selected_member_) - { - valid_discriminator = true; - } - break; - - case StatusKind::INCONSISTENT_TOPIC: - if (0x00000004 == selected_member_) - { - valid_discriminator = true; - } - break; - - case StatusKind::LIVELINESS_LOST: - if (0x00000005 == selected_member_) - { - valid_discriminator = true; - } - break; - - case StatusKind::LIVELINESS_CHANGED: - if (0x00000006 == selected_member_) - { - valid_discriminator = true; - } - break; - - case StatusKind::DEADLINE_MISSED: - if (0x00000007 == selected_member_) - { - valid_discriminator = true; - } - break; - - case StatusKind::SAMPLE_LOST: - if (0x00000008 == selected_member_) - { - valid_discriminator = true; - } - break; - - case StatusKind::STATUSES_SIZE: - if (0x00000009 == selected_member_) - { - valid_discriminator = true; - } - break; + case StatusKind::PROXY: + if (0x00000001 == selected_member_) + { + valid_discriminator = true; + } + break; + + case StatusKind::CONNECTION_LIST: + if (0x00000002 == selected_member_) + { + valid_discriminator = true; + } + break; + + case StatusKind::INCOMPATIBLE_QOS: + if (0x00000003 == selected_member_) + { + valid_discriminator = true; + } + break; + + case StatusKind::INCONSISTENT_TOPIC: + if (0x00000004 == selected_member_) + { + valid_discriminator = true; + } + break; + + case StatusKind::LIVELINESS_LOST: + if (0x00000005 == selected_member_) + { + valid_discriminator = true; + } + break; + + case StatusKind::LIVELINESS_CHANGED: + if (0x00000006 == selected_member_) + { + valid_discriminator = true; + } + break; + + case StatusKind::DEADLINE_MISSED: + if (0x00000007 == selected_member_) + { + valid_discriminator = true; + } + break; + + case StatusKind::SAMPLE_LOST: + if (0x00000008 == selected_member_) + { + valid_discriminator = true; + } + break; + + case StatusKind::STATUSES_SIZE: + if (0x00000009 == 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; @@ -1648,6 +1668,7 @@ class MonitorServiceData return m_entity_proxy; } + /*! * @brief This function copies the value in member connection_list * @param _connection_list New value to be copied in member connection_list @@ -1700,6 +1721,7 @@ class MonitorServiceData return m_connection_list; } + /*! * @brief This function copies the value in member incompatible_qos_status * @param _incompatible_qos_status New value to be copied in member incompatible_qos_status @@ -1752,6 +1774,7 @@ class MonitorServiceData return m_incompatible_qos_status; } + /*! * @brief This function copies the value in member inconsistent_topic_status * @param _inconsistent_topic_status New value to be copied in member inconsistent_topic_status @@ -1804,6 +1827,7 @@ class MonitorServiceData return m_inconsistent_topic_status; } + /*! * @brief This function copies the value in member liveliness_lost_status * @param _liveliness_lost_status New value to be copied in member liveliness_lost_status @@ -1856,6 +1880,7 @@ class MonitorServiceData return m_liveliness_lost_status; } + /*! * @brief This function copies the value in member liveliness_changed_status * @param _liveliness_changed_status New value to be copied in member liveliness_changed_status @@ -1908,6 +1933,7 @@ class MonitorServiceData return m_liveliness_changed_status; } + /*! * @brief This function copies the value in member deadline_missed_status * @param _deadline_missed_status New value to be copied in member deadline_missed_status @@ -1960,6 +1986,7 @@ class MonitorServiceData return m_deadline_missed_status; } + /*! * @brief This function copies the value in member sample_lost_status * @param _sample_lost_status New value to be copied in member sample_lost_status @@ -2012,6 +2039,7 @@ class MonitorServiceData return m_sample_lost_status; } + /*! * @brief This function sets a value in member statuses_size * @param _statuses_size New value for member statuses_size @@ -2053,6 +2081,7 @@ class MonitorServiceData return m_statuses_size; } + void _default() { if (member_destructor_) @@ -2063,184 +2092,171 @@ class MonitorServiceData selected_member_ = 0x0FFFFFFFu; } + private: - std::vector& entity_proxy_() - { - if (0x00000001 != selected_member_) - { - if (member_destructor_) + std::vector& entity_proxy_() { - member_destructor_(); + if (0x00000001 != selected_member_) + { + if (member_destructor_) + { + member_destructor_(); + } + + selected_member_ = 0x00000001; + member_destructor_ = [&]() {m_entity_proxy.~vector();}; + new(&m_entity_proxy) std::vector(); + + } + + return m_entity_proxy; } - selected_member_ = 0x00000001; - member_destructor_ = [&]() + std::vector& connection_list_() + { + if (0x00000002 != selected_member_) + { + if (member_destructor_) { - m_entity_proxy.~vector(); - }; - new(&m_entity_proxy) std::vector(); - } + member_destructor_(); + } - return m_entity_proxy; - } + selected_member_ = 0x00000002; + member_destructor_ = [&]() {m_connection_list.~vector();}; + new(&m_connection_list) std::vector(); - std::vector& connection_list_() - { - if (0x00000002 != selected_member_) - { - if (member_destructor_) - { - member_destructor_(); + } + + return m_connection_list; } - selected_member_ = 0x00000002; - member_destructor_ = [&]() + IncompatibleQoSStatus_s& incompatible_qos_status_() + { + if (0x00000003 != selected_member_) + { + if (member_destructor_) { - m_connection_list.~vector(); - }; - new(&m_connection_list) std::vector(); - } + member_destructor_(); + } - return m_connection_list; - } + selected_member_ = 0x00000003; + member_destructor_ = [&]() {m_incompatible_qos_status.~IncompatibleQoSStatus_s();}; + new(&m_incompatible_qos_status) IncompatibleQoSStatus_s(); - IncompatibleQoSStatus_s& incompatible_qos_status_() - { - if (0x00000003 != selected_member_) - { - if (member_destructor_) - { - member_destructor_(); + } + + return m_incompatible_qos_status; } - selected_member_ = 0x00000003; - member_destructor_ = [&]() + InconsistentTopicStatus_s& inconsistent_topic_status_() + { + if (0x00000004 != selected_member_) + { + if (member_destructor_) { - m_incompatible_qos_status.~IncompatibleQoSStatus_s(); - }; - new(&m_incompatible_qos_status) IncompatibleQoSStatus_s(); - } + member_destructor_(); + } - return m_incompatible_qos_status; - } + selected_member_ = 0x00000004; + member_destructor_ = [&]() {m_inconsistent_topic_status.~InconsistentTopicStatus_s();}; + new(&m_inconsistent_topic_status) InconsistentTopicStatus_s(); - InconsistentTopicStatus_s& inconsistent_topic_status_() - { - if (0x00000004 != selected_member_) - { - if (member_destructor_) - { - member_destructor_(); + } + + return m_inconsistent_topic_status; } - selected_member_ = 0x00000004; - member_destructor_ = [&]() + LivelinessLostStatus_s& liveliness_lost_status_() + { + if (0x00000005 != selected_member_) + { + if (member_destructor_) { - m_inconsistent_topic_status.~InconsistentTopicStatus_s(); - }; - new(&m_inconsistent_topic_status) InconsistentTopicStatus_s(); - } + member_destructor_(); + } - return m_inconsistent_topic_status; - } + selected_member_ = 0x00000005; + member_destructor_ = [&]() {m_liveliness_lost_status.~LivelinessLostStatus_s();}; + new(&m_liveliness_lost_status) LivelinessLostStatus_s(); - LivelinessLostStatus_s& liveliness_lost_status_() - { - if (0x00000005 != selected_member_) - { - if (member_destructor_) - { - member_destructor_(); + } + + return m_liveliness_lost_status; } - selected_member_ = 0x00000005; - member_destructor_ = [&]() + LivelinessChangedStatus_s& liveliness_changed_status_() + { + if (0x00000006 != selected_member_) + { + if (member_destructor_) { - m_liveliness_lost_status.~LivelinessLostStatus_s(); - }; - new(&m_liveliness_lost_status) LivelinessLostStatus_s(); - } + member_destructor_(); + } - return m_liveliness_lost_status; - } + selected_member_ = 0x00000006; + member_destructor_ = [&]() {m_liveliness_changed_status.~LivelinessChangedStatus_s();}; + new(&m_liveliness_changed_status) LivelinessChangedStatus_s(); - LivelinessChangedStatus_s& liveliness_changed_status_() - { - if (0x00000006 != selected_member_) - { - if (member_destructor_) - { - member_destructor_(); + } + + return m_liveliness_changed_status; } - selected_member_ = 0x00000006; - member_destructor_ = [&]() + DeadlineMissedStatus_s& deadline_missed_status_() + { + if (0x00000007 != selected_member_) + { + if (member_destructor_) { - m_liveliness_changed_status.~LivelinessChangedStatus_s(); - }; - new(&m_liveliness_changed_status) LivelinessChangedStatus_s(); - } + member_destructor_(); + } - return m_liveliness_changed_status; - } + selected_member_ = 0x00000007; + member_destructor_ = [&]() {m_deadline_missed_status.~DeadlineMissedStatus_s();}; + new(&m_deadline_missed_status) DeadlineMissedStatus_s(); - DeadlineMissedStatus_s& deadline_missed_status_() - { - if (0x00000007 != selected_member_) - { - if (member_destructor_) - { - member_destructor_(); + } + + return m_deadline_missed_status; } - selected_member_ = 0x00000007; - member_destructor_ = [&]() + SampleLostStatus_s& sample_lost_status_() + { + if (0x00000008 != selected_member_) + { + if (member_destructor_) { - m_deadline_missed_status.~DeadlineMissedStatus_s(); - }; - new(&m_deadline_missed_status) DeadlineMissedStatus_s(); - } + member_destructor_(); + } - return m_deadline_missed_status; - } + selected_member_ = 0x00000008; + member_destructor_ = [&]() {m_sample_lost_status.~SampleLostStatus_s();}; + new(&m_sample_lost_status) SampleLostStatus_s(); - SampleLostStatus_s& sample_lost_status_() - { - if (0x00000008 != selected_member_) - { - if (member_destructor_) - { - member_destructor_(); + } + + return m_sample_lost_status; } - selected_member_ = 0x00000008; - member_destructor_ = [&]() + uint8_t& statuses_size_() + { + if (0x00000009 != selected_member_) + { + if (member_destructor_) { - m_sample_lost_status.~SampleLostStatus_s(); - }; - new(&m_sample_lost_status) SampleLostStatus_s(); - } + member_destructor_(); + } - return m_sample_lost_status; - } + selected_member_ = 0x00000009; + member_destructor_ = nullptr; + m_statuses_size = {0}; - uint8_t& statuses_size_() - { - if (0x00000009 != selected_member_) - { - if (member_destructor_) - { - member_destructor_(); - } + } - selected_member_ = 0x00000009; - member_destructor_ = nullptr; - m_statuses_size = {0}; - } + return m_statuses_size; + } - return m_statuses_size; - } StatusKind::StatusKind m__d {2147483647}; @@ -2290,11 +2306,11 @@ class MonitorServiceStatusData eProsima_user_DllExport MonitorServiceStatusData( const MonitorServiceStatusData& x) { - m_local_entity = x.m_local_entity; + m_local_entity = x.m_local_entity; - m_status_kind = x.m_status_kind; + m_status_kind = x.m_status_kind; - m_value = x.m_value; + m_value = x.m_value; } @@ -2318,11 +2334,11 @@ class MonitorServiceStatusData const MonitorServiceStatusData& x) { - m_local_entity = x.m_local_entity; + m_local_entity = x.m_local_entity; - m_status_kind = x.m_status_kind; + m_status_kind = x.m_status_kind; - m_value = x.m_value; + m_value = x.m_value; return *this; } @@ -2349,8 +2365,8 @@ class MonitorServiceStatusData const MonitorServiceStatusData& x) const { return (m_local_entity == x.m_local_entity && - m_status_kind == x.m_status_kind && - m_value == x.m_value); + m_status_kind == x.m_status_kind && + m_value == x.m_value); } /*! @@ -2401,6 +2417,7 @@ class MonitorServiceStatusData return m_local_entity; } + /*! * @brief This function sets a value in member status_kind * @param _status_kind New value for member status_kind @@ -2429,6 +2446,7 @@ class MonitorServiceStatusData return m_status_kind; } + /*! * @brief This function copies the value in member value * @param _value New value to be copied in member value @@ -2467,6 +2485,8 @@ class MonitorServiceStatusData return m_value; } + + private: detail::GUID_s m_local_entity; diff --git a/include/fastdds_statistics_backend/topic_types/monitorservice_typesPubSubTypes.hpp b/include/fastdds_statistics_backend/topic_types/monitorservice_typesPubSubTypes.hpp index a14453b5f..5c62a2bba 100644 --- a/include/fastdds_statistics_backend/topic_types/monitorservice_typesPubSubTypes.hpp +++ b/include/fastdds_statistics_backend/topic_types/monitorservice_typesPubSubTypes.hpp @@ -38,501 +38,505 @@ Generated monitorservice_types is not compatible with current installed Fast DDS. Please, regenerate it with fastddsgen. #endif // FASTDDS_GEN_API_VER -namespace eprosima { -namespace fastdds { -namespace statistics { - -/*! - * @brief This class represents the TopicDataType of the type Connection defined by the user in the IDL file. - * @ingroup monitorservice_types - */ -class ConnectionPubSubType : public eprosima::fastdds::dds::TopicDataType +namespace eprosima { -public: + namespace fastdds + { + namespace statistics + { + + /*! + * @brief This class represents the TopicDataType of the type Connection defined by the user in the IDL file. + * @ingroup monitorservice_types + */ + class ConnectionPubSubType : public eprosima::fastdds::dds::TopicDataType + { + public: - typedef Connection type; + typedef Connection type; - eProsima_user_DllExport ConnectionPubSubType(); + eProsima_user_DllExport ConnectionPubSubType(); - eProsima_user_DllExport ~ConnectionPubSubType() override; + eProsima_user_DllExport ~ConnectionPubSubType() 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 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 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 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( + 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 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* create_data() override; - eProsima_user_DllExport void delete_data( - void* 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; + //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; - } + 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; - } + 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; - } + 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: + private: - eprosima::fastdds::MD5 md5_; - unsigned char* key_buffer_; + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; -}; + }; -/*! - * @brief This class represents the TopicDataType of the type QosPolicyCount_s defined by the user in the IDL file. - * @ingroup monitorservice_types - */ -class QosPolicyCount_sPubSubType : public eprosima::fastdds::dds::TopicDataType -{ -public: + /*! + * @brief This class represents the TopicDataType of the type QosPolicyCount_s defined by the user in the IDL file. + * @ingroup monitorservice_types + */ + class QosPolicyCount_sPubSubType : public eprosima::fastdds::dds::TopicDataType + { + public: - typedef QosPolicyCount_s type; + typedef QosPolicyCount_s type; - eProsima_user_DllExport QosPolicyCount_sPubSubType(); + eProsima_user_DllExport QosPolicyCount_sPubSubType(); - eProsima_user_DllExport ~QosPolicyCount_sPubSubType() override; + eProsima_user_DllExport ~QosPolicyCount_sPubSubType() 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 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 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 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( + 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 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* create_data() override; - eProsima_user_DllExport void delete_data( - void* 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; + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED - eProsima_user_DllExport inline bool is_bounded() const override - { - return true; - } + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override - { - static_cast(data_representation); - return false; - } + 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; - } + 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: + private: - eprosima::fastdds::MD5 md5_; - unsigned char* key_buffer_; + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; -}; + }; -/*! - * @brief This class represents the TopicDataType of the type BaseStatus_s defined by the user in the IDL file. - * @ingroup monitorservice_types - */ -class BaseStatus_sPubSubType : public eprosima::fastdds::dds::TopicDataType -{ -public: + /*! + * @brief This class represents the TopicDataType of the type BaseStatus_s defined by the user in the IDL file. + * @ingroup monitorservice_types + */ + class BaseStatus_sPubSubType : public eprosima::fastdds::dds::TopicDataType + { + public: - typedef BaseStatus_s type; + typedef BaseStatus_s type; - eProsima_user_DllExport BaseStatus_sPubSubType(); + eProsima_user_DllExport BaseStatus_sPubSubType(); - eProsima_user_DllExport ~BaseStatus_sPubSubType() override; + eProsima_user_DllExport ~BaseStatus_sPubSubType() 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 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 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 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( + 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 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* create_data() override; - eProsima_user_DllExport void delete_data( - void* 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; + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED - eProsima_user_DllExport inline bool is_bounded() const override - { - return true; - } + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override - { - static_cast(data_representation); - return false; - } + 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; - } + 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: + private: - eprosima::fastdds::MD5 md5_; - unsigned char* key_buffer_; + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; -}; -typedef std::vector QosPolicyCountSeq_s; + }; + typedef std::vector QosPolicyCountSeq_s; -/*! - * @brief This class represents the TopicDataType of the type IncompatibleQoSStatus_s defined by the user in the IDL file. - * @ingroup monitorservice_types - */ -class IncompatibleQoSStatus_sPubSubType : public eprosima::fastdds::dds::TopicDataType -{ -public: + /*! + * @brief This class represents the TopicDataType of the type IncompatibleQoSStatus_s defined by the user in the IDL file. + * @ingroup monitorservice_types + */ + class IncompatibleQoSStatus_sPubSubType : public eprosima::fastdds::dds::TopicDataType + { + public: - typedef IncompatibleQoSStatus_s type; + typedef IncompatibleQoSStatus_s type; - eProsima_user_DllExport IncompatibleQoSStatus_sPubSubType(); + eProsima_user_DllExport IncompatibleQoSStatus_sPubSubType(); - eProsima_user_DllExport ~IncompatibleQoSStatus_sPubSubType() override; + eProsima_user_DllExport ~IncompatibleQoSStatus_sPubSubType() 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 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 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 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( + 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 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* create_data() override; - eProsima_user_DllExport void delete_data( - void* 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; + //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; - } + 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; - } + 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; - } + 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: + private: - eprosima::fastdds::MD5 md5_; - unsigned char* key_buffer_; + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; -}; + }; -/*! - * @brief This class represents the TopicDataType of the type LivelinessChangedStatus_s defined by the user in the IDL file. - * @ingroup monitorservice_types - */ -class LivelinessChangedStatus_sPubSubType : public eprosima::fastdds::dds::TopicDataType -{ -public: + /*! + * @brief This class represents the TopicDataType of the type LivelinessChangedStatus_s defined by the user in the IDL file. + * @ingroup monitorservice_types + */ + class LivelinessChangedStatus_sPubSubType : public eprosima::fastdds::dds::TopicDataType + { + public: - typedef LivelinessChangedStatus_s type; + typedef LivelinessChangedStatus_s type; - eProsima_user_DllExport LivelinessChangedStatus_sPubSubType(); + eProsima_user_DllExport LivelinessChangedStatus_sPubSubType(); - eProsima_user_DllExport ~LivelinessChangedStatus_sPubSubType() override; + eProsima_user_DllExport ~LivelinessChangedStatus_sPubSubType() 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 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 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 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( + 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 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* create_data() override; - eProsima_user_DllExport void delete_data( - void* 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; + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED - eProsima_user_DllExport inline bool is_bounded() const override - { - return true; - } + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override - { - static_cast(data_representation); - return false; - } + 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; - } + 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: + private: - eprosima::fastdds::MD5 md5_; - unsigned char* key_buffer_; + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; -}; + }; -/*! - * @brief This class represents the TopicDataType of the type DeadlineMissedStatus_s defined by the user in the IDL file. - * @ingroup monitorservice_types - */ -class DeadlineMissedStatus_sPubSubType : public eprosima::fastdds::dds::TopicDataType -{ -public: + /*! + * @brief This class represents the TopicDataType of the type DeadlineMissedStatus_s defined by the user in the IDL file. + * @ingroup monitorservice_types + */ + class DeadlineMissedStatus_sPubSubType : public eprosima::fastdds::dds::TopicDataType + { + public: - typedef DeadlineMissedStatus_s type; + typedef DeadlineMissedStatus_s type; - eProsima_user_DllExport DeadlineMissedStatus_sPubSubType(); + eProsima_user_DllExport DeadlineMissedStatus_sPubSubType(); - eProsima_user_DllExport ~DeadlineMissedStatus_sPubSubType() override; + eProsima_user_DllExport ~DeadlineMissedStatus_sPubSubType() 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 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 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 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( + 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 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* create_data() override; - eProsima_user_DllExport void delete_data( - void* 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; + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED - eProsima_user_DllExport inline bool is_bounded() const override - { - return true; - } + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override - { - static_cast(data_representation); - return false; - } + 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; - } + 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: + private: - eprosima::fastdds::MD5 md5_; - unsigned char* key_buffer_; + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; -}; -typedef eprosima::fastdds::statistics::BaseStatus_s LivelinessLostStatus_s; -typedef eprosima::fastdds::statistics::BaseStatus_s InconsistentTopicStatus_s; -typedef eprosima::fastdds::statistics::BaseStatus_s SampleLostStatus_s; -namespace StatusKind { -typedef uint32_t StatusKind; + }; + typedef eprosima::fastdds::statistics::BaseStatus_s LivelinessLostStatus_s; + typedef eprosima::fastdds::statistics::BaseStatus_s InconsistentTopicStatus_s; + typedef eprosima::fastdds::statistics::BaseStatus_s SampleLostStatus_s; + namespace StatusKind + { + typedef uint32_t StatusKind; @@ -542,91 +546,91 @@ typedef uint32_t StatusKind; -} // namespace StatusKind + } // namespace StatusKind -/*! - * @brief This class represents the TopicDataType of the type MonitorServiceStatusData defined by the user in the IDL file. - * @ingroup monitorservice_types - */ -class MonitorServiceStatusDataPubSubType : public eprosima::fastdds::dds::TopicDataType -{ -public: + /*! + * @brief This class represents the TopicDataType of the type MonitorServiceStatusData defined by the user in the IDL file. + * @ingroup monitorservice_types + */ + class MonitorServiceStatusDataPubSubType : public eprosima::fastdds::dds::TopicDataType + { + public: - typedef MonitorServiceStatusData type; + typedef MonitorServiceStatusData type; - eProsima_user_DllExport MonitorServiceStatusDataPubSubType(); + eProsima_user_DllExport MonitorServiceStatusDataPubSubType(); - eProsima_user_DllExport ~MonitorServiceStatusDataPubSubType() override; + eProsima_user_DllExport ~MonitorServiceStatusDataPubSubType() 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 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 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 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( + 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 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* create_data() override; - eProsima_user_DllExport void delete_data( - void* 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; + //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; - } + 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; - } + 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; - } + 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: + private: - eprosima::fastdds::MD5 md5_; - unsigned char* key_buffer_; + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; -}; -} // namespace statistics -} // namespace fastdds + }; + } // namespace statistics + } // namespace fastdds } // namespace eprosima #endif // FAST_DDS_GENERATED__EPROSIMA_FASTDDS_STATISTICS_MONITORSERVICE_TYPES_PUBSUBTYPES_HPP diff --git a/include/fastdds_statistics_backend/topic_types/types.hpp b/include/fastdds_statistics_backend/topic_types/types.hpp index 70ad38bd5..a1ed98228 100644 --- a/include/fastdds_statistics_backend/topic_types/types.hpp +++ b/include/fastdds_statistics_backend/topic_types/types.hpp @@ -92,7 +92,7 @@ class EntityId_s eProsima_user_DllExport EntityId_s( const EntityId_s& x) { - m_value = x.m_value; + m_value = x.m_value; } @@ -114,7 +114,7 @@ class EntityId_s const EntityId_s& x) { - m_value = x.m_value; + m_value = x.m_value; return *this; } @@ -189,6 +189,8 @@ class EntityId_s return m_value; } + + private: std::array m_value{0}; @@ -223,7 +225,7 @@ class GuidPrefix_s eProsima_user_DllExport GuidPrefix_s( const GuidPrefix_s& x) { - m_value = x.m_value; + m_value = x.m_value; } @@ -245,7 +247,7 @@ class GuidPrefix_s const GuidPrefix_s& x) { - m_value = x.m_value; + m_value = x.m_value; return *this; } @@ -320,6 +322,8 @@ class GuidPrefix_s return m_value; } + + private: std::array m_value{0}; @@ -354,9 +358,9 @@ class GUID_s eProsima_user_DllExport GUID_s( const GUID_s& x) { - m_guidPrefix = x.m_guidPrefix; + m_guidPrefix = x.m_guidPrefix; - m_entityId = x.m_entityId; + m_entityId = x.m_entityId; } @@ -379,9 +383,9 @@ class GUID_s const GUID_s& x) { - m_guidPrefix = x.m_guidPrefix; + m_guidPrefix = x.m_guidPrefix; - m_entityId = x.m_entityId; + m_entityId = x.m_entityId; return *this; } @@ -407,7 +411,7 @@ class GUID_s const GUID_s& x) const { return (m_guidPrefix == x.m_guidPrefix && - m_entityId == x.m_entityId); + m_entityId == x.m_entityId); } /*! @@ -458,6 +462,7 @@ class GUID_s return m_guidPrefix; } + /*! * @brief This function copies the value in member entityId * @param _entityId New value to be copied in member entityId @@ -496,6 +501,8 @@ class GUID_s return m_entityId; } + + private: GuidPrefix_s m_guidPrefix; @@ -531,9 +538,9 @@ class SequenceNumber_s eProsima_user_DllExport SequenceNumber_s( const SequenceNumber_s& x) { - m_high = x.m_high; + m_high = x.m_high; - m_low = x.m_low; + m_low = x.m_low; } @@ -556,9 +563,9 @@ class SequenceNumber_s const SequenceNumber_s& x) { - m_high = x.m_high; + m_high = x.m_high; - m_low = x.m_low; + m_low = x.m_low; return *this; } @@ -584,7 +591,7 @@ class SequenceNumber_s const SequenceNumber_s& x) const { return (m_high == x.m_high && - m_low == x.m_low); + m_low == x.m_low); } /*! @@ -625,6 +632,7 @@ class SequenceNumber_s return m_high; } + /*! * @brief This function sets a value in member low * @param _low New value for member low @@ -653,6 +661,8 @@ class SequenceNumber_s return m_low; } + + private: int32_t m_high{0}; @@ -688,9 +698,9 @@ class SampleIdentity_s eProsima_user_DllExport SampleIdentity_s( const SampleIdentity_s& x) { - m_writer_guid = x.m_writer_guid; + m_writer_guid = x.m_writer_guid; - m_sequence_number = x.m_sequence_number; + m_sequence_number = x.m_sequence_number; } @@ -713,9 +723,9 @@ class SampleIdentity_s const SampleIdentity_s& x) { - m_writer_guid = x.m_writer_guid; + m_writer_guid = x.m_writer_guid; - m_sequence_number = x.m_sequence_number; + m_sequence_number = x.m_sequence_number; return *this; } @@ -741,7 +751,7 @@ class SampleIdentity_s const SampleIdentity_s& x) const { return (m_writer_guid == x.m_writer_guid && - m_sequence_number == x.m_sequence_number); + m_sequence_number == x.m_sequence_number); } /*! @@ -792,6 +802,7 @@ class SampleIdentity_s return m_writer_guid; } + /*! * @brief This function copies the value in member sequence_number * @param _sequence_number New value to be copied in member sequence_number @@ -830,6 +841,8 @@ class SampleIdentity_s return m_sequence_number; } + + private: GUID_s m_writer_guid; @@ -865,11 +878,11 @@ class Locator_s eProsima_user_DllExport Locator_s( const Locator_s& x) { - m_kind = x.m_kind; + m_kind = x.m_kind; - m_port = x.m_port; + m_port = x.m_port; - m_address = x.m_address; + m_address = x.m_address; } @@ -893,11 +906,11 @@ class Locator_s const Locator_s& x) { - m_kind = x.m_kind; + m_kind = x.m_kind; - m_port = x.m_port; + m_port = x.m_port; - m_address = x.m_address; + m_address = x.m_address; return *this; } @@ -924,8 +937,8 @@ class Locator_s const Locator_s& x) const { return (m_kind == x.m_kind && - m_port == x.m_port && - m_address == x.m_address); + m_port == x.m_port && + m_address == x.m_address); } /*! @@ -966,6 +979,7 @@ class Locator_s return m_kind; } + /*! * @brief This function sets a value in member port * @param _port New value for member port @@ -994,6 +1008,7 @@ class Locator_s return m_port; } + /*! * @brief This function copies the value in member address * @param _address New value to be copied in member address @@ -1032,6 +1047,8 @@ class Locator_s return m_address; } + + private: int32_t m_kind{0}; @@ -1070,17 +1087,17 @@ class DiscoveryTime eProsima_user_DllExport DiscoveryTime( const DiscoveryTime& x) { - m_local_participant_guid = x.m_local_participant_guid; + m_local_participant_guid = x.m_local_participant_guid; - m_remote_entity_guid = x.m_remote_entity_guid; + m_remote_entity_guid = x.m_remote_entity_guid; - m_time = x.m_time; + m_time = x.m_time; - m_host = x.m_host; + m_host = x.m_host; - m_user = x.m_user; + m_user = x.m_user; - m_process = x.m_process; + m_process = x.m_process; } @@ -1107,17 +1124,17 @@ class DiscoveryTime const DiscoveryTime& x) { - m_local_participant_guid = x.m_local_participant_guid; + m_local_participant_guid = x.m_local_participant_guid; - m_remote_entity_guid = x.m_remote_entity_guid; + m_remote_entity_guid = x.m_remote_entity_guid; - m_time = x.m_time; + m_time = x.m_time; - m_host = x.m_host; + m_host = x.m_host; - m_user = x.m_user; + m_user = x.m_user; - m_process = x.m_process; + m_process = x.m_process; return *this; } @@ -1147,11 +1164,11 @@ class DiscoveryTime const DiscoveryTime& x) const { return (m_local_participant_guid == x.m_local_participant_guid && - m_remote_entity_guid == x.m_remote_entity_guid && - m_time == x.m_time && - m_host == x.m_host && - m_user == x.m_user && - m_process == x.m_process); + m_remote_entity_guid == x.m_remote_entity_guid && + m_time == x.m_time && + m_host == x.m_host && + m_user == x.m_user && + m_process == x.m_process); } /*! @@ -1202,6 +1219,7 @@ class DiscoveryTime return m_local_participant_guid; } + /*! * @brief This function copies the value in member remote_entity_guid * @param _remote_entity_guid New value to be copied in member remote_entity_guid @@ -1240,6 +1258,7 @@ class DiscoveryTime return m_remote_entity_guid; } + /*! * @brief This function sets a value in member time * @param _time New value for member time @@ -1268,6 +1287,7 @@ class DiscoveryTime return m_time; } + /*! * @brief This function copies the value in member host * @param _host New value to be copied in member host @@ -1306,6 +1326,7 @@ class DiscoveryTime return m_host; } + /*! * @brief This function copies the value in member user * @param _user New value to be copied in member user @@ -1344,6 +1365,7 @@ class DiscoveryTime return m_user; } + /*! * @brief This function copies the value in member process * @param _process New value to be copied in member process @@ -1382,6 +1404,8 @@ class DiscoveryTime return m_process; } + + private: detail::GUID_s m_local_participant_guid; @@ -1421,9 +1445,9 @@ class EntityCount eProsima_user_DllExport EntityCount( const EntityCount& x) { - m_guid = x.m_guid; + m_guid = x.m_guid; - m_count = x.m_count; + m_count = x.m_count; } @@ -1446,9 +1470,9 @@ class EntityCount const EntityCount& x) { - m_guid = x.m_guid; + m_guid = x.m_guid; - m_count = x.m_count; + m_count = x.m_count; return *this; } @@ -1474,7 +1498,7 @@ class EntityCount const EntityCount& x) const { return (m_guid == x.m_guid && - m_count == x.m_count); + m_count == x.m_count); } /*! @@ -1525,6 +1549,7 @@ class EntityCount return m_guid; } + /*! * @brief This function sets a value in member count * @param _count New value for member count @@ -1553,6 +1578,8 @@ class EntityCount return m_count; } + + private: detail::GUID_s m_guid; @@ -1588,9 +1615,9 @@ class SampleIdentityCount eProsima_user_DllExport SampleIdentityCount( const SampleIdentityCount& x) { - m_sample_id = x.m_sample_id; + m_sample_id = x.m_sample_id; - m_count = x.m_count; + m_count = x.m_count; } @@ -1613,9 +1640,9 @@ class SampleIdentityCount const SampleIdentityCount& x) { - m_sample_id = x.m_sample_id; + m_sample_id = x.m_sample_id; - m_count = x.m_count; + m_count = x.m_count; return *this; } @@ -1641,7 +1668,7 @@ class SampleIdentityCount const SampleIdentityCount& x) const { return (m_sample_id == x.m_sample_id && - m_count == x.m_count); + m_count == x.m_count); } /*! @@ -1692,6 +1719,7 @@ class SampleIdentityCount return m_sample_id; } + /*! * @brief This function sets a value in member count * @param _count New value for member count @@ -1720,6 +1748,8 @@ class SampleIdentityCount return m_count; } + + private: detail::SampleIdentity_s m_sample_id; @@ -1755,15 +1785,15 @@ class Entity2LocatorTraffic eProsima_user_DllExport Entity2LocatorTraffic( const Entity2LocatorTraffic& x) { - m_src_guid = x.m_src_guid; + m_src_guid = x.m_src_guid; - m_dst_locator = x.m_dst_locator; + m_dst_locator = x.m_dst_locator; - m_packet_count = x.m_packet_count; + m_packet_count = x.m_packet_count; - m_byte_count = x.m_byte_count; + m_byte_count = x.m_byte_count; - m_byte_magnitude_order = x.m_byte_magnitude_order; + m_byte_magnitude_order = x.m_byte_magnitude_order; } @@ -1789,15 +1819,15 @@ class Entity2LocatorTraffic const Entity2LocatorTraffic& x) { - m_src_guid = x.m_src_guid; + m_src_guid = x.m_src_guid; - m_dst_locator = x.m_dst_locator; + m_dst_locator = x.m_dst_locator; - m_packet_count = x.m_packet_count; + m_packet_count = x.m_packet_count; - m_byte_count = x.m_byte_count; + m_byte_count = x.m_byte_count; - m_byte_magnitude_order = x.m_byte_magnitude_order; + m_byte_magnitude_order = x.m_byte_magnitude_order; return *this; } @@ -1826,10 +1856,10 @@ class Entity2LocatorTraffic const Entity2LocatorTraffic& x) const { return (m_src_guid == x.m_src_guid && - m_dst_locator == x.m_dst_locator && - m_packet_count == x.m_packet_count && - m_byte_count == x.m_byte_count && - m_byte_magnitude_order == x.m_byte_magnitude_order); + m_dst_locator == x.m_dst_locator && + m_packet_count == x.m_packet_count && + m_byte_count == x.m_byte_count && + m_byte_magnitude_order == x.m_byte_magnitude_order); } /*! @@ -1880,6 +1910,7 @@ class Entity2LocatorTraffic return m_src_guid; } + /*! * @brief This function copies the value in member dst_locator * @param _dst_locator New value to be copied in member dst_locator @@ -1918,6 +1949,7 @@ class Entity2LocatorTraffic return m_dst_locator; } + /*! * @brief This function sets a value in member packet_count * @param _packet_count New value for member packet_count @@ -1946,6 +1978,7 @@ class Entity2LocatorTraffic return m_packet_count; } + /*! * @brief This function sets a value in member byte_count * @param _byte_count New value for member byte_count @@ -1974,6 +2007,7 @@ class Entity2LocatorTraffic return m_byte_count; } + /*! * @brief This function sets a value in member byte_magnitude_order * @param _byte_magnitude_order New value for member byte_magnitude_order @@ -2002,6 +2036,8 @@ class Entity2LocatorTraffic return m_byte_magnitude_order; } + + private: detail::GUID_s m_src_guid; @@ -2040,11 +2076,11 @@ class WriterReaderData eProsima_user_DllExport WriterReaderData( const WriterReaderData& x) { - m_writer_guid = x.m_writer_guid; + m_writer_guid = x.m_writer_guid; - m_reader_guid = x.m_reader_guid; + m_reader_guid = x.m_reader_guid; - m_data = x.m_data; + m_data = x.m_data; } @@ -2068,11 +2104,11 @@ class WriterReaderData const WriterReaderData& x) { - m_writer_guid = x.m_writer_guid; + m_writer_guid = x.m_writer_guid; - m_reader_guid = x.m_reader_guid; + m_reader_guid = x.m_reader_guid; - m_data = x.m_data; + m_data = x.m_data; return *this; } @@ -2099,8 +2135,8 @@ class WriterReaderData const WriterReaderData& x) const { return (m_writer_guid == x.m_writer_guid && - m_reader_guid == x.m_reader_guid && - m_data == x.m_data); + m_reader_guid == x.m_reader_guid && + m_data == x.m_data); } /*! @@ -2151,6 +2187,7 @@ class WriterReaderData return m_writer_guid; } + /*! * @brief This function copies the value in member reader_guid * @param _reader_guid New value to be copied in member reader_guid @@ -2189,6 +2226,7 @@ class WriterReaderData return m_reader_guid; } + /*! * @brief This function sets a value in member data * @param _data New value for member data @@ -2217,6 +2255,8 @@ class WriterReaderData return m_data; } + + private: detail::GUID_s m_writer_guid; @@ -2253,11 +2293,11 @@ class Locator2LocatorData eProsima_user_DllExport Locator2LocatorData( const Locator2LocatorData& x) { - m_src_locator = x.m_src_locator; + m_src_locator = x.m_src_locator; - m_dst_locator = x.m_dst_locator; + m_dst_locator = x.m_dst_locator; - m_data = x.m_data; + m_data = x.m_data; } @@ -2281,11 +2321,11 @@ class Locator2LocatorData const Locator2LocatorData& x) { - m_src_locator = x.m_src_locator; + m_src_locator = x.m_src_locator; - m_dst_locator = x.m_dst_locator; + m_dst_locator = x.m_dst_locator; - m_data = x.m_data; + m_data = x.m_data; return *this; } @@ -2312,8 +2352,8 @@ class Locator2LocatorData const Locator2LocatorData& x) const { return (m_src_locator == x.m_src_locator && - m_dst_locator == x.m_dst_locator && - m_data == x.m_data); + m_dst_locator == x.m_dst_locator && + m_data == x.m_data); } /*! @@ -2364,6 +2404,7 @@ class Locator2LocatorData return m_src_locator; } + /*! * @brief This function copies the value in member dst_locator * @param _dst_locator New value to be copied in member dst_locator @@ -2402,6 +2443,7 @@ class Locator2LocatorData return m_dst_locator; } + /*! * @brief This function sets a value in member data * @param _data New value for member data @@ -2430,6 +2472,8 @@ class Locator2LocatorData return m_data; } + + private: detail::Locator_s m_src_locator; @@ -2466,9 +2510,9 @@ class EntityData eProsima_user_DllExport EntityData( const EntityData& x) { - m_guid = x.m_guid; + m_guid = x.m_guid; - m_data = x.m_data; + m_data = x.m_data; } @@ -2491,9 +2535,9 @@ class EntityData const EntityData& x) { - m_guid = x.m_guid; + m_guid = x.m_guid; - m_data = x.m_data; + m_data = x.m_data; return *this; } @@ -2519,7 +2563,7 @@ class EntityData const EntityData& x) const { return (m_guid == x.m_guid && - m_data == x.m_data); + m_data == x.m_data); } /*! @@ -2570,6 +2614,7 @@ class EntityData return m_guid; } + /*! * @brief This function sets a value in member data * @param _data New value for member data @@ -2598,6 +2643,8 @@ class EntityData return m_data; } + + private: detail::GUID_s m_guid; @@ -2633,13 +2680,13 @@ class PhysicalData eProsima_user_DllExport PhysicalData( const PhysicalData& x) { - m_participant_guid = x.m_participant_guid; + m_participant_guid = x.m_participant_guid; - m_host = x.m_host; + m_host = x.m_host; - m_user = x.m_user; + m_user = x.m_user; - m_process = x.m_process; + m_process = x.m_process; } @@ -2664,13 +2711,13 @@ class PhysicalData const PhysicalData& x) { - m_participant_guid = x.m_participant_guid; + m_participant_guid = x.m_participant_guid; - m_host = x.m_host; + m_host = x.m_host; - m_user = x.m_user; + m_user = x.m_user; - m_process = x.m_process; + m_process = x.m_process; return *this; } @@ -2698,9 +2745,9 @@ class PhysicalData const PhysicalData& x) const { return (m_participant_guid == x.m_participant_guid && - m_host == x.m_host && - m_user == x.m_user && - m_process == x.m_process); + m_host == x.m_host && + m_user == x.m_user && + m_process == x.m_process); } /*! @@ -2751,6 +2798,7 @@ class PhysicalData return m_participant_guid; } + /*! * @brief This function copies the value in member host * @param _host New value to be copied in member host @@ -2789,6 +2837,7 @@ class PhysicalData return m_host; } + /*! * @brief This function copies the value in member user * @param _user New value to be copied in member user @@ -2827,6 +2876,7 @@ class PhysicalData return m_user; } + /*! * @brief This function copies the value in member process * @param _process New value to be copied in member process @@ -2865,6 +2915,8 @@ class PhysicalData return m_process; } + + private: detail::GUID_s m_participant_guid; @@ -2931,37 +2983,37 @@ class Data switch (x.selected_member_) { - case 0x00000001: - writer_reader_data_() = x.m_writer_reader_data; - break; + case 0x00000001: + writer_reader_data_() = x.m_writer_reader_data; + break; - case 0x00000002: - locator2locator_data_() = x.m_locator2locator_data; - break; + case 0x00000002: + locator2locator_data_() = x.m_locator2locator_data; + break; - case 0x00000003: - entity_data_() = x.m_entity_data; - break; + case 0x00000003: + entity_data_() = x.m_entity_data; + break; - case 0x00000004: - entity2locator_traffic_() = x.m_entity2locator_traffic; - break; + case 0x00000004: + entity2locator_traffic_() = x.m_entity2locator_traffic; + break; - case 0x00000005: - entity_count_() = x.m_entity_count; - break; + case 0x00000005: + entity_count_() = x.m_entity_count; + break; - case 0x00000006: - discovery_time_() = x.m_discovery_time; - break; + case 0x00000006: + discovery_time_() = x.m_discovery_time; + break; - case 0x00000007: - sample_identity_count_() = x.m_sample_identity_count; - break; + case 0x00000007: + sample_identity_count_() = x.m_sample_identity_count; + break; - case 0x00000008: - physical_data_() = x.m_physical_data; - break; + case 0x00000008: + physical_data_() = x.m_physical_data; + break; } } @@ -2977,37 +3029,37 @@ class Data switch (x.selected_member_) { - case 0x00000001: - writer_reader_data_() = std::move(x.m_writer_reader_data); - break; + case 0x00000001: + writer_reader_data_() = std::move(x.m_writer_reader_data); + break; - case 0x00000002: - locator2locator_data_() = std::move(x.m_locator2locator_data); - break; + case 0x00000002: + locator2locator_data_() = std::move(x.m_locator2locator_data); + break; - case 0x00000003: - entity_data_() = std::move(x.m_entity_data); - break; + case 0x00000003: + entity_data_() = std::move(x.m_entity_data); + break; - case 0x00000004: - entity2locator_traffic_() = std::move(x.m_entity2locator_traffic); - break; + case 0x00000004: + entity2locator_traffic_() = std::move(x.m_entity2locator_traffic); + break; - case 0x00000005: - entity_count_() = std::move(x.m_entity_count); - break; + case 0x00000005: + entity_count_() = std::move(x.m_entity_count); + break; - case 0x00000006: - discovery_time_() = std::move(x.m_discovery_time); - break; + case 0x00000006: + discovery_time_() = std::move(x.m_discovery_time); + break; - case 0x00000007: - sample_identity_count_() = std::move(x.m_sample_identity_count); - break; + case 0x00000007: + sample_identity_count_() = std::move(x.m_sample_identity_count); + break; - case 0x00000008: - physical_data_() = std::move(x.m_physical_data); - break; + case 0x00000008: + physical_data_() = std::move(x.m_physical_data); + break; } } @@ -3023,37 +3075,37 @@ class Data switch (x.selected_member_) { - case 0x00000001: - writer_reader_data_() = x.m_writer_reader_data; - break; + case 0x00000001: + writer_reader_data_() = x.m_writer_reader_data; + break; - case 0x00000002: - locator2locator_data_() = x.m_locator2locator_data; - break; + case 0x00000002: + locator2locator_data_() = x.m_locator2locator_data; + break; - case 0x00000003: - entity_data_() = x.m_entity_data; - break; + case 0x00000003: + entity_data_() = x.m_entity_data; + break; - case 0x00000004: - entity2locator_traffic_() = x.m_entity2locator_traffic; - break; + case 0x00000004: + entity2locator_traffic_() = x.m_entity2locator_traffic; + break; - case 0x00000005: - entity_count_() = x.m_entity_count; - break; + case 0x00000005: + entity_count_() = x.m_entity_count; + break; - case 0x00000006: - discovery_time_() = x.m_discovery_time; - break; + case 0x00000006: + discovery_time_() = x.m_discovery_time; + break; - case 0x00000007: - sample_identity_count_() = x.m_sample_identity_count; - break; + case 0x00000007: + sample_identity_count_() = x.m_sample_identity_count; + break; - case 0x00000008: - physical_data_() = x.m_physical_data; - break; + case 0x00000008: + physical_data_() = x.m_physical_data; + break; } @@ -3071,37 +3123,37 @@ class Data switch (x.selected_member_) { - case 0x00000001: - writer_reader_data_() = std::move(x.m_writer_reader_data); - break; + case 0x00000001: + writer_reader_data_() = std::move(x.m_writer_reader_data); + break; - case 0x00000002: - locator2locator_data_() = std::move(x.m_locator2locator_data); - break; + case 0x00000002: + locator2locator_data_() = std::move(x.m_locator2locator_data); + break; - case 0x00000003: - entity_data_() = std::move(x.m_entity_data); - break; + case 0x00000003: + entity_data_() = std::move(x.m_entity_data); + break; - case 0x00000004: - entity2locator_traffic_() = std::move(x.m_entity2locator_traffic); - break; + case 0x00000004: + entity2locator_traffic_() = std::move(x.m_entity2locator_traffic); + break; - case 0x00000005: - entity_count_() = std::move(x.m_entity_count); - break; + case 0x00000005: + entity_count_() = std::move(x.m_entity_count); + break; - case 0x00000006: - discovery_time_() = std::move(x.m_discovery_time); - break; + case 0x00000006: + discovery_time_() = std::move(x.m_discovery_time); + break; - case 0x00000007: - sample_identity_count_() = std::move(x.m_sample_identity_count); - break; + case 0x00000007: + sample_identity_count_() = std::move(x.m_sample_identity_count); + break; - case 0x00000008: - physical_data_() = std::move(x.m_physical_data); - break; + case 0x00000008: + physical_data_() = std::move(x.m_physical_data); + break; } @@ -3122,37 +3174,37 @@ class Data { switch (selected_member_) { - case 0x00000001: - ret_value = (m_writer_reader_data == x.m_writer_reader_data); - break; + case 0x00000001: + ret_value = (m_writer_reader_data == x.m_writer_reader_data); + break; - case 0x00000002: - ret_value = (m_locator2locator_data == x.m_locator2locator_data); - break; + case 0x00000002: + ret_value = (m_locator2locator_data == x.m_locator2locator_data); + break; - case 0x00000003: - ret_value = (m_entity_data == x.m_entity_data); - break; + case 0x00000003: + ret_value = (m_entity_data == x.m_entity_data); + break; - case 0x00000004: - ret_value = (m_entity2locator_traffic == x.m_entity2locator_traffic); - break; + case 0x00000004: + ret_value = (m_entity2locator_traffic == x.m_entity2locator_traffic); + break; - case 0x00000005: - ret_value = (m_entity_count == x.m_entity_count); - break; + case 0x00000005: + ret_value = (m_entity_count == x.m_entity_count); + break; - case 0x00000006: - ret_value = (m_discovery_time == x.m_discovery_time); - break; + case 0x00000006: + ret_value = (m_discovery_time == x.m_discovery_time); + break; - case 0x00000007: - ret_value = (m_sample_identity_count == x.m_sample_identity_count); - break; + case 0x00000007: + ret_value = (m_sample_identity_count == x.m_sample_identity_count); + break; - case 0x00000008: - ret_value = (m_physical_data == x.m_physical_data); - break; + case 0x00000008: + ret_value = (m_physical_data == x.m_physical_data); + break; } } @@ -3182,77 +3234,76 @@ class Data switch (__d) { - case EventKind::HISTORY2HISTORY_LATENCY: - if (0x00000001 == selected_member_) - { - valid_discriminator = true; - } - break; - - case EventKind::NETWORK_LATENCY: - if (0x00000002 == selected_member_) - { - valid_discriminator = true; - } - break; - - case EventKind::PUBLICATION_THROUGHPUT: - case EventKind::SUBSCRIPTION_THROUGHPUT: - if (0x00000003 == selected_member_) - { - valid_discriminator = true; - } - break; - - case EventKind::RTPS_SENT: - case EventKind::RTPS_LOST: - if (0x00000004 == selected_member_) - { - valid_discriminator = true; - } - break; - - case EventKind::RESENT_DATAS: - case EventKind::HEARTBEAT_COUNT: - case EventKind::ACKNACK_COUNT: - case EventKind::NACKFRAG_COUNT: - case EventKind::GAP_COUNT: - case EventKind::DATA_COUNT: - case EventKind::PDP_PACKETS: - case EventKind::EDP_PACKETS: - if (0x00000005 == selected_member_) - { - valid_discriminator = true; - } - break; - - case EventKind::DISCOVERED_ENTITY: - if (0x00000006 == selected_member_) - { - valid_discriminator = true; - } - break; - - case EventKind::SAMPLE_DATAS: - if (0x00000007 == selected_member_) - { - valid_discriminator = true; - } - break; - - case EventKind::PHYSICAL_DATA: - if (0x00000008 == selected_member_) - { - valid_discriminator = true; - } - break; + case EventKind::HISTORY2HISTORY_LATENCY: + if (0x00000001 == selected_member_) + { + valid_discriminator = true; + } + break; + + case EventKind::NETWORK_LATENCY: + if (0x00000002 == selected_member_) + { + valid_discriminator = true; + } + break; + + case EventKind::PUBLICATION_THROUGHPUT: + case EventKind::SUBSCRIPTION_THROUGHPUT: + if (0x00000003 == selected_member_) + { + valid_discriminator = true; + } + break; + + case EventKind::RTPS_SENT: + case EventKind::RTPS_LOST: + if (0x00000004 == selected_member_) + { + valid_discriminator = true; + } + break; + + case EventKind::RESENT_DATAS: + case EventKind::HEARTBEAT_COUNT: + case EventKind::ACKNACK_COUNT: + case EventKind::NACKFRAG_COUNT: + case EventKind::GAP_COUNT: + case EventKind::DATA_COUNT: + case EventKind::PDP_PACKETS: + case EventKind::EDP_PACKETS: + if (0x00000005 == selected_member_) + { + valid_discriminator = true; + } + break; + + case EventKind::DISCOVERED_ENTITY: + if (0x00000006 == selected_member_) + { + valid_discriminator = true; + } + break; + + case EventKind::SAMPLE_DATAS: + if (0x00000007 == selected_member_) + { + valid_discriminator = true; + } + break; + + case EventKind::PHYSICAL_DATA: + if (0x00000008 == 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; @@ -3319,6 +3370,7 @@ class Data return m_writer_reader_data; } + /*! * @brief This function copies the value in member locator2locator_data * @param _locator2locator_data New value to be copied in member locator2locator_data @@ -3371,6 +3423,7 @@ class Data return m_locator2locator_data; } + /*! * @brief This function copies the value in member entity_data * @param _entity_data New value to be copied in member entity_data @@ -3423,6 +3476,7 @@ class Data return m_entity_data; } + /*! * @brief This function copies the value in member entity2locator_traffic * @param _entity2locator_traffic New value to be copied in member entity2locator_traffic @@ -3475,6 +3529,7 @@ class Data return m_entity2locator_traffic; } + /*! * @brief This function copies the value in member entity_count * @param _entity_count New value to be copied in member entity_count @@ -3527,6 +3582,7 @@ class Data return m_entity_count; } + /*! * @brief This function copies the value in member discovery_time * @param _discovery_time New value to be copied in member discovery_time @@ -3579,6 +3635,7 @@ class Data return m_discovery_time; } + /*! * @brief This function copies the value in member sample_identity_count * @param _sample_identity_count New value to be copied in member sample_identity_count @@ -3631,6 +3688,7 @@ class Data return m_sample_identity_count; } + /*! * @brief This function copies the value in member physical_data * @param _physical_data New value to be copied in member physical_data @@ -3683,6 +3741,7 @@ class Data return m_physical_data; } + void _default() { if (member_destructor_) @@ -3693,167 +3752,153 @@ class Data selected_member_ = 0x0FFFFFFFu; } + private: - WriterReaderData& writer_reader_data_() - { - if (0x00000001 != selected_member_) - { - if (member_destructor_) + WriterReaderData& writer_reader_data_() { - member_destructor_(); - } - - selected_member_ = 0x00000001; - member_destructor_ = [&]() + if (0x00000001 != selected_member_) + { + if (member_destructor_) { - m_writer_reader_data.~WriterReaderData(); - }; - new(&m_writer_reader_data) WriterReaderData(); - } + member_destructor_(); + } - return m_writer_reader_data; - } + selected_member_ = 0x00000001; + member_destructor_ = [&]() {m_writer_reader_data.~WriterReaderData();}; + new(&m_writer_reader_data) WriterReaderData(); - Locator2LocatorData& locator2locator_data_() - { - if (0x00000002 != selected_member_) - { - if (member_destructor_) - { - member_destructor_(); + } + + return m_writer_reader_data; } - selected_member_ = 0x00000002; - member_destructor_ = [&]() + Locator2LocatorData& locator2locator_data_() + { + if (0x00000002 != selected_member_) + { + if (member_destructor_) { - m_locator2locator_data.~Locator2LocatorData(); - }; - new(&m_locator2locator_data) Locator2LocatorData(); - } + member_destructor_(); + } - return m_locator2locator_data; - } + selected_member_ = 0x00000002; + member_destructor_ = [&]() {m_locator2locator_data.~Locator2LocatorData();}; + new(&m_locator2locator_data) Locator2LocatorData(); - EntityData& entity_data_() - { - if (0x00000003 != selected_member_) - { - if (member_destructor_) - { - member_destructor_(); + } + + return m_locator2locator_data; } - selected_member_ = 0x00000003; - member_destructor_ = [&]() + EntityData& entity_data_() + { + if (0x00000003 != selected_member_) + { + if (member_destructor_) { - m_entity_data.~EntityData(); - }; - new(&m_entity_data) EntityData(); - } + member_destructor_(); + } - return m_entity_data; - } + selected_member_ = 0x00000003; + member_destructor_ = [&]() {m_entity_data.~EntityData();}; + new(&m_entity_data) EntityData(); - Entity2LocatorTraffic& entity2locator_traffic_() - { - if (0x00000004 != selected_member_) - { - if (member_destructor_) - { - member_destructor_(); + } + + return m_entity_data; } - selected_member_ = 0x00000004; - member_destructor_ = [&]() + Entity2LocatorTraffic& entity2locator_traffic_() + { + if (0x00000004 != selected_member_) + { + if (member_destructor_) { - m_entity2locator_traffic.~Entity2LocatorTraffic(); - }; - new(&m_entity2locator_traffic) Entity2LocatorTraffic(); - } + member_destructor_(); + } - return m_entity2locator_traffic; - } + selected_member_ = 0x00000004; + member_destructor_ = [&]() {m_entity2locator_traffic.~Entity2LocatorTraffic();}; + new(&m_entity2locator_traffic) Entity2LocatorTraffic(); - EntityCount& entity_count_() - { - if (0x00000005 != selected_member_) - { - if (member_destructor_) - { - member_destructor_(); + } + + return m_entity2locator_traffic; } - selected_member_ = 0x00000005; - member_destructor_ = [&]() + EntityCount& entity_count_() + { + if (0x00000005 != selected_member_) + { + if (member_destructor_) { - m_entity_count.~EntityCount(); - }; - new(&m_entity_count) EntityCount(); - } + member_destructor_(); + } - return m_entity_count; - } + selected_member_ = 0x00000005; + member_destructor_ = [&]() {m_entity_count.~EntityCount();}; + new(&m_entity_count) EntityCount(); - DiscoveryTime& discovery_time_() - { - if (0x00000006 != selected_member_) - { - if (member_destructor_) - { - member_destructor_(); + } + + return m_entity_count; } - selected_member_ = 0x00000006; - member_destructor_ = [&]() + DiscoveryTime& discovery_time_() + { + if (0x00000006 != selected_member_) + { + if (member_destructor_) { - m_discovery_time.~DiscoveryTime(); - }; - new(&m_discovery_time) DiscoveryTime(); - } + member_destructor_(); + } - return m_discovery_time; - } + selected_member_ = 0x00000006; + member_destructor_ = [&]() {m_discovery_time.~DiscoveryTime();}; + new(&m_discovery_time) DiscoveryTime(); - SampleIdentityCount& sample_identity_count_() - { - if (0x00000007 != selected_member_) - { - if (member_destructor_) - { - member_destructor_(); + } + + return m_discovery_time; } - selected_member_ = 0x00000007; - member_destructor_ = [&]() + SampleIdentityCount& sample_identity_count_() + { + if (0x00000007 != selected_member_) + { + if (member_destructor_) { - m_sample_identity_count.~SampleIdentityCount(); - }; - new(&m_sample_identity_count) SampleIdentityCount(); - } + member_destructor_(); + } - return m_sample_identity_count; - } + selected_member_ = 0x00000007; + member_destructor_ = [&]() {m_sample_identity_count.~SampleIdentityCount();}; + new(&m_sample_identity_count) SampleIdentityCount(); - PhysicalData& physical_data_() - { - if (0x00000008 != selected_member_) - { - if (member_destructor_) - { - member_destructor_(); + } + + return m_sample_identity_count; } - selected_member_ = 0x00000008; - member_destructor_ = [&]() + PhysicalData& physical_data_() + { + if (0x00000008 != selected_member_) + { + if (member_destructor_) { - m_physical_data.~PhysicalData(); - }; - new(&m_physical_data) PhysicalData(); - } + member_destructor_(); + } + + selected_member_ = 0x00000008; + member_destructor_ = [&]() {m_physical_data.~PhysicalData();}; + new(&m_physical_data) PhysicalData(); + + } + + return m_physical_data; + } - return m_physical_data; - } uint32_t m__d {2147483647}; diff --git a/include/fastdds_statistics_backend/topic_types/typesPubSubTypes.hpp b/include/fastdds_statistics_backend/topic_types/typesPubSubTypes.hpp index 9e1dc6d78..3a7c7aa0a 100644 --- a/include/fastdds_statistics_backend/topic_types/typesPubSubTypes.hpp +++ b/include/fastdds_statistics_backend/topic_types/typesPubSubTypes.hpp @@ -37,1150 +37,1155 @@ Generated types is not compatible with current installed Fast DDS. Please, regenerate it with fastddsgen. #endif // FASTDDS_GEN_API_VER -namespace eprosima { -namespace fastdds { -namespace statistics { -namespace detail { - -/*! - * @brief This class represents the TopicDataType of the type EntityId_s defined by the user in the IDL file. - * @ingroup types - */ -class EntityId_sPubSubType : public eprosima::fastdds::dds::TopicDataType +namespace eprosima { -public: + namespace fastdds + { + namespace statistics + { + namespace detail + { + + /*! + * @brief This class represents the TopicDataType of the type EntityId_s defined by the user in the IDL file. + * @ingroup types + */ + class EntityId_sPubSubType : public eprosima::fastdds::dds::TopicDataType + { + public: - typedef EntityId_s type; + typedef EntityId_s type; - eProsima_user_DllExport EntityId_sPubSubType(); + eProsima_user_DllExport EntityId_sPubSubType(); - eProsima_user_DllExport ~EntityId_sPubSubType() override; + eProsima_user_DllExport ~EntityId_sPubSubType() 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 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 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 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( + 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 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* create_data() override; - eProsima_user_DllExport void delete_data( - void* 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; + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED - eProsima_user_DllExport inline bool is_bounded() const override - { - return true; - } + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override - { - static_cast(data_representation); - return false; - } + 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; - } + 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: + private: - eprosima::fastdds::MD5 md5_; - unsigned char* key_buffer_; + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; -}; + }; -/*! - * @brief This class represents the TopicDataType of the type GuidPrefix_s defined by the user in the IDL file. - * @ingroup types - */ -class GuidPrefix_sPubSubType : public eprosima::fastdds::dds::TopicDataType -{ -public: + /*! + * @brief This class represents the TopicDataType of the type GuidPrefix_s defined by the user in the IDL file. + * @ingroup types + */ + class GuidPrefix_sPubSubType : public eprosima::fastdds::dds::TopicDataType + { + public: - typedef GuidPrefix_s type; + typedef GuidPrefix_s type; - eProsima_user_DllExport GuidPrefix_sPubSubType(); + eProsima_user_DllExport GuidPrefix_sPubSubType(); - eProsima_user_DllExport ~GuidPrefix_sPubSubType() override; + eProsima_user_DllExport ~GuidPrefix_sPubSubType() 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 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 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 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( + 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 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* create_data() override; - eProsima_user_DllExport void delete_data( - void* 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; + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED - eProsima_user_DllExport inline bool is_bounded() const override - { - return true; - } + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override - { - static_cast(data_representation); - return false; - } + 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; - } + 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: + private: - eprosima::fastdds::MD5 md5_; - unsigned char* key_buffer_; + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; -}; + }; -/*! - * @brief This class represents the TopicDataType of the type GUID_s defined by the user in the IDL file. - * @ingroup types - */ -class GUID_sPubSubType : public eprosima::fastdds::dds::TopicDataType -{ -public: + /*! + * @brief This class represents the TopicDataType of the type GUID_s defined by the user in the IDL file. + * @ingroup types + */ + class GUID_sPubSubType : public eprosima::fastdds::dds::TopicDataType + { + public: - typedef GUID_s type; + typedef GUID_s type; - eProsima_user_DllExport GUID_sPubSubType(); + eProsima_user_DllExport GUID_sPubSubType(); - eProsima_user_DllExport ~GUID_sPubSubType() override; + eProsima_user_DllExport ~GUID_sPubSubType() 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 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 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 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( + 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 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* create_data() override; - eProsima_user_DllExport void delete_data( - void* 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; + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED - eProsima_user_DllExport inline bool is_bounded() const override - { - return true; - } + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override - { - static_cast(data_representation); - return false; - } + 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; - } + 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: + private: - eprosima::fastdds::MD5 md5_; - unsigned char* key_buffer_; + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; -}; + }; -/*! - * @brief This class represents the TopicDataType of the type SequenceNumber_s defined by the user in the IDL file. - * @ingroup types - */ -class SequenceNumber_sPubSubType : public eprosima::fastdds::dds::TopicDataType -{ -public: + /*! + * @brief This class represents the TopicDataType of the type SequenceNumber_s defined by the user in the IDL file. + * @ingroup types + */ + class SequenceNumber_sPubSubType : public eprosima::fastdds::dds::TopicDataType + { + public: - typedef SequenceNumber_s type; + typedef SequenceNumber_s type; - eProsima_user_DllExport SequenceNumber_sPubSubType(); + eProsima_user_DllExport SequenceNumber_sPubSubType(); - eProsima_user_DllExport ~SequenceNumber_sPubSubType() override; + eProsima_user_DllExport ~SequenceNumber_sPubSubType() 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 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 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 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( + 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 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* create_data() override; - eProsima_user_DllExport void delete_data( - void* 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; + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED - eProsima_user_DllExport inline bool is_bounded() const override - { - return true; - } + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override - { - static_cast(data_representation); - return false; - } + 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; - } + 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: + private: - eprosima::fastdds::MD5 md5_; - unsigned char* key_buffer_; + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; -}; + }; -/*! - * @brief This class represents the TopicDataType of the type SampleIdentity_s defined by the user in the IDL file. - * @ingroup types - */ -class SampleIdentity_sPubSubType : public eprosima::fastdds::dds::TopicDataType -{ -public: + /*! + * @brief This class represents the TopicDataType of the type SampleIdentity_s defined by the user in the IDL file. + * @ingroup types + */ + class SampleIdentity_sPubSubType : public eprosima::fastdds::dds::TopicDataType + { + public: - typedef SampleIdentity_s type; + typedef SampleIdentity_s type; - eProsima_user_DllExport SampleIdentity_sPubSubType(); + eProsima_user_DllExport SampleIdentity_sPubSubType(); - eProsima_user_DllExport ~SampleIdentity_sPubSubType() override; + eProsima_user_DllExport ~SampleIdentity_sPubSubType() 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 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 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 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( + 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 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* create_data() override; - eProsima_user_DllExport void delete_data( - void* 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; + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED - eProsima_user_DllExport inline bool is_bounded() const override - { - return true; - } + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override - { - static_cast(data_representation); - return false; - } + 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; - } + 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: + private: - eprosima::fastdds::MD5 md5_; - unsigned char* key_buffer_; + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; -}; + }; -/*! - * @brief This class represents the TopicDataType of the type Locator_s defined by the user in the IDL file. - * @ingroup types - */ -class Locator_sPubSubType : public eprosima::fastdds::dds::TopicDataType -{ -public: + /*! + * @brief This class represents the TopicDataType of the type Locator_s defined by the user in the IDL file. + * @ingroup types + */ + class Locator_sPubSubType : public eprosima::fastdds::dds::TopicDataType + { + public: - typedef Locator_s type; + typedef Locator_s type; - eProsima_user_DllExport Locator_sPubSubType(); + eProsima_user_DllExport Locator_sPubSubType(); - eProsima_user_DllExport ~Locator_sPubSubType() override; + eProsima_user_DllExport ~Locator_sPubSubType() 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 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 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 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( + 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 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* create_data() override; - eProsima_user_DllExport void delete_data( - void* 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; + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED - eProsima_user_DllExport inline bool is_bounded() const override - { - return true; - } + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override - { - static_cast(data_representation); - return false; - } + 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; - } + 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: + private: - eprosima::fastdds::MD5 md5_; - unsigned char* key_buffer_; + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; -}; -} // namespace detail + }; + } // namespace detail -/*! - * @brief This class represents the TopicDataType of the type DiscoveryTime defined by the user in the IDL file. - * @ingroup types - */ -class DiscoveryTimePubSubType : public eprosima::fastdds::dds::TopicDataType -{ -public: + /*! + * @brief This class represents the TopicDataType of the type DiscoveryTime defined by the user in the IDL file. + * @ingroup types + */ + class DiscoveryTimePubSubType : public eprosima::fastdds::dds::TopicDataType + { + public: - typedef DiscoveryTime type; + typedef DiscoveryTime type; - eProsima_user_DllExport DiscoveryTimePubSubType(); + eProsima_user_DllExport DiscoveryTimePubSubType(); - eProsima_user_DllExport ~DiscoveryTimePubSubType() override; + eProsima_user_DllExport ~DiscoveryTimePubSubType() 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 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 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 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( + 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 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* create_data() override; - eProsima_user_DllExport void delete_data( - void* 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; + //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; - } + 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; - } + 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; - } + 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: + private: - eprosima::fastdds::MD5 md5_; - unsigned char* key_buffer_; + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; -}; + }; -/*! - * @brief This class represents the TopicDataType of the type EntityCount defined by the user in the IDL file. - * @ingroup types - */ -class EntityCountPubSubType : public eprosima::fastdds::dds::TopicDataType -{ -public: + /*! + * @brief This class represents the TopicDataType of the type EntityCount defined by the user in the IDL file. + * @ingroup types + */ + class EntityCountPubSubType : public eprosima::fastdds::dds::TopicDataType + { + public: - typedef EntityCount type; + typedef EntityCount type; - eProsima_user_DllExport EntityCountPubSubType(); + eProsima_user_DllExport EntityCountPubSubType(); - eProsima_user_DllExport ~EntityCountPubSubType() override; + eProsima_user_DllExport ~EntityCountPubSubType() 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 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 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 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( + 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 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* create_data() override; - eProsima_user_DllExport void delete_data( - void* 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; + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED - eProsima_user_DllExport inline bool is_bounded() const override - { - return true; - } + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override - { - static_cast(data_representation); - return false; - } + 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; - } + 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: + private: - eprosima::fastdds::MD5 md5_; - unsigned char* key_buffer_; + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; -}; + }; -/*! - * @brief This class represents the TopicDataType of the type SampleIdentityCount defined by the user in the IDL file. - * @ingroup types - */ -class SampleIdentityCountPubSubType : public eprosima::fastdds::dds::TopicDataType -{ -public: + /*! + * @brief This class represents the TopicDataType of the type SampleIdentityCount defined by the user in the IDL file. + * @ingroup types + */ + class SampleIdentityCountPubSubType : public eprosima::fastdds::dds::TopicDataType + { + public: - typedef SampleIdentityCount type; + typedef SampleIdentityCount type; - eProsima_user_DllExport SampleIdentityCountPubSubType(); + eProsima_user_DllExport SampleIdentityCountPubSubType(); - eProsima_user_DllExport ~SampleIdentityCountPubSubType() override; + eProsima_user_DllExport ~SampleIdentityCountPubSubType() 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 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 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 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( + 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 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* create_data() override; - eProsima_user_DllExport void delete_data( - void* 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; + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED - eProsima_user_DllExport inline bool is_bounded() const override - { - return true; - } + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override - { - static_cast(data_representation); - return false; - } + 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; - } + 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: + private: - eprosima::fastdds::MD5 md5_; - unsigned char* key_buffer_; + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; -}; + }; -/*! - * @brief This class represents the TopicDataType of the type Entity2LocatorTraffic defined by the user in the IDL file. - * @ingroup types - */ -class Entity2LocatorTrafficPubSubType : public eprosima::fastdds::dds::TopicDataType -{ -public: + /*! + * @brief This class represents the TopicDataType of the type Entity2LocatorTraffic defined by the user in the IDL file. + * @ingroup types + */ + class Entity2LocatorTrafficPubSubType : public eprosima::fastdds::dds::TopicDataType + { + public: - typedef Entity2LocatorTraffic type; + typedef Entity2LocatorTraffic type; - eProsima_user_DllExport Entity2LocatorTrafficPubSubType(); + eProsima_user_DllExport Entity2LocatorTrafficPubSubType(); - eProsima_user_DllExport ~Entity2LocatorTrafficPubSubType() override; + eProsima_user_DllExport ~Entity2LocatorTrafficPubSubType() 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 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 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 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( + 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 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* create_data() override; - eProsima_user_DllExport void delete_data( - void* 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; + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED - eProsima_user_DllExport inline bool is_bounded() const override - { - return true; - } + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override - { - static_cast(data_representation); - return false; - } + 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; - } + 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: + private: - eprosima::fastdds::MD5 md5_; - unsigned char* key_buffer_; + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; -}; + }; -/*! - * @brief This class represents the TopicDataType of the type WriterReaderData defined by the user in the IDL file. - * @ingroup types - */ -class WriterReaderDataPubSubType : public eprosima::fastdds::dds::TopicDataType -{ -public: + /*! + * @brief This class represents the TopicDataType of the type WriterReaderData defined by the user in the IDL file. + * @ingroup types + */ + class WriterReaderDataPubSubType : public eprosima::fastdds::dds::TopicDataType + { + public: - typedef WriterReaderData type; + typedef WriterReaderData type; - eProsima_user_DllExport WriterReaderDataPubSubType(); + eProsima_user_DllExport WriterReaderDataPubSubType(); - eProsima_user_DllExport ~WriterReaderDataPubSubType() override; + eProsima_user_DllExport ~WriterReaderDataPubSubType() 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 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 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 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( + 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 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* create_data() override; - eProsima_user_DllExport void delete_data( - void* 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; + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED - eProsima_user_DllExport inline bool is_bounded() const override - { - return true; - } + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override - { - static_cast(data_representation); - return false; - } + 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; - } + 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: + private: - eprosima::fastdds::MD5 md5_; - unsigned char* key_buffer_; + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; -}; + }; -/*! - * @brief This class represents the TopicDataType of the type Locator2LocatorData defined by the user in the IDL file. - * @ingroup types - */ -class Locator2LocatorDataPubSubType : public eprosima::fastdds::dds::TopicDataType -{ -public: + /*! + * @brief This class represents the TopicDataType of the type Locator2LocatorData defined by the user in the IDL file. + * @ingroup types + */ + class Locator2LocatorDataPubSubType : public eprosima::fastdds::dds::TopicDataType + { + public: - typedef Locator2LocatorData type; + typedef Locator2LocatorData type; - eProsima_user_DllExport Locator2LocatorDataPubSubType(); + eProsima_user_DllExport Locator2LocatorDataPubSubType(); - eProsima_user_DllExport ~Locator2LocatorDataPubSubType() override; + eProsima_user_DllExport ~Locator2LocatorDataPubSubType() 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 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 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 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( + 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 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* create_data() override; - eProsima_user_DllExport void delete_data( - void* 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; + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED - eProsima_user_DllExport inline bool is_bounded() const override - { - return true; - } + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override - { - static_cast(data_representation); - return false; - } + 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; - } + 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: + private: - eprosima::fastdds::MD5 md5_; - unsigned char* key_buffer_; + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; -}; + }; -/*! - * @brief This class represents the TopicDataType of the type EntityData defined by the user in the IDL file. - * @ingroup types - */ -class EntityDataPubSubType : public eprosima::fastdds::dds::TopicDataType -{ -public: + /*! + * @brief This class represents the TopicDataType of the type EntityData defined by the user in the IDL file. + * @ingroup types + */ + class EntityDataPubSubType : public eprosima::fastdds::dds::TopicDataType + { + public: - typedef EntityData type; + typedef EntityData type; - eProsima_user_DllExport EntityDataPubSubType(); + eProsima_user_DllExport EntityDataPubSubType(); - eProsima_user_DllExport ~EntityDataPubSubType() override; + eProsima_user_DllExport ~EntityDataPubSubType() 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 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 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 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( + 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 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* create_data() override; - eProsima_user_DllExport void delete_data( - void* 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; + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() override; #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED - eProsima_user_DllExport inline bool is_bounded() const override - { - return true; - } + eProsima_user_DllExport inline bool is_bounded() const override + { + return true; + } #endif // TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN - eProsima_user_DllExport inline bool is_plain( - eprosima::fastdds::dds::DataRepresentationId_t data_representation) const override - { - static_cast(data_representation); - return false; - } + 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; - } + 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: + private: - eprosima::fastdds::MD5 md5_; - unsigned char* key_buffer_; + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; -}; + }; -/*! - * @brief This class represents the TopicDataType of the type PhysicalData defined by the user in the IDL file. - * @ingroup types - */ -class PhysicalDataPubSubType : public eprosima::fastdds::dds::TopicDataType -{ -public: + /*! + * @brief This class represents the TopicDataType of the type PhysicalData defined by the user in the IDL file. + * @ingroup types + */ + class PhysicalDataPubSubType : public eprosima::fastdds::dds::TopicDataType + { + public: - typedef PhysicalData type; + typedef PhysicalData type; - eProsima_user_DllExport PhysicalDataPubSubType(); + eProsima_user_DllExport PhysicalDataPubSubType(); - eProsima_user_DllExport ~PhysicalDataPubSubType() override; + eProsima_user_DllExport ~PhysicalDataPubSubType() 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 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 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 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( + 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 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* create_data() override; - eProsima_user_DllExport void delete_data( - void* 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; + //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; - } + 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; - } + 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; - } + 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: + private: - eprosima::fastdds::MD5 md5_; - unsigned char* key_buffer_; + eprosima::fastdds::MD5 md5_; + unsigned char* key_buffer_; -}; -namespace EventKind { -} // namespace EventKind + }; + namespace EventKind + { + } // namespace EventKind -} // namespace statistics -} // namespace fastdds + } // namespace statistics + } // namespace fastdds } // namespace eprosima #endif // FAST_DDS_GENERATED__EPROSIMA_FASTDDS_STATISTICS_TYPES_PUBSUBTYPES_HPP diff --git a/test/dds/communication/Communication.hpp b/test/dds/communication/Communication.hpp index b998a4ade..ea6abd352 100644 --- a/test/dds/communication/Communication.hpp +++ b/test/dds/communication/Communication.hpp @@ -1,4 +1,4 @@ -// Copyright 2024 Proyectos y Sistemas de Mantenimiento SL (eProsima). +// 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. @@ -80,9 +80,9 @@ class Communication eProsima_user_DllExport Communication( const Communication& x) { - m_index = x.m_index; + m_index = x.m_index; - m_message = x.m_message; + m_message = x.m_message; } @@ -105,9 +105,9 @@ class Communication const Communication& x) { - m_index = x.m_index; + m_index = x.m_index; - m_message = x.m_message; + m_message = x.m_message; return *this; } @@ -133,7 +133,7 @@ class Communication const Communication& x) const { return (m_index == x.m_index && - m_message == x.m_message); + m_message == x.m_message); } /*! @@ -174,6 +174,7 @@ class Communication return m_index; } + /*! * @brief This function copies the value in member message * @param _message New value to be copied in member message @@ -212,6 +213,8 @@ class Communication return m_message; } + + private: uint32_t m_index{0}; diff --git a/test/dds/communication/CommunicationCdrAux.hpp b/test/dds/communication/CommunicationCdrAux.hpp index fc56e32bb..07621fb28 100644 --- a/test/dds/communication/CommunicationCdrAux.hpp +++ b/test/dds/communication/CommunicationCdrAux.hpp @@ -1,4 +1,4 @@ -// Copyright 2024 Proyectos y Sistemas de Mantenimiento SL (eProsima). +// 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. diff --git a/test/dds/communication/CommunicationCdrAux.ipp b/test/dds/communication/CommunicationCdrAux.ipp index ab40b65a6..0d16d5e4d 100644 --- a/test/dds/communication/CommunicationCdrAux.ipp +++ b/test/dds/communication/CommunicationCdrAux.ipp @@ -1,4 +1,4 @@ -// Copyright 2024 Proyectos y Sistemas de Mantenimiento SL (eProsima). +// 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. @@ -113,8 +113,13 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const Communication& data) { + static_cast(scdr); static_cast(data); + scdr << data.index(); + + scdr << data.message(); + } diff --git a/test/dds/communication/CommunicationPubSubTypes.cxx b/test/dds/communication/CommunicationPubSubTypes.cxx index 862b4dbf2..05fc2883a 100644 --- a/test/dds/communication/CommunicationPubSubTypes.cxx +++ b/test/dds/communication/CommunicationPubSubTypes.cxx @@ -1,4 +1,4 @@ -// Copyright 2024 Proyectos y Sistemas de Mantenimiento SL (eProsima). +// 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. @@ -184,7 +184,8 @@ bool CommunicationPubSubType::compute_key( Communication_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); + 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 || Communication_max_key_cdr_typesize > 16) { diff --git a/test/dds/communication/CommunicationPubSubTypes.hpp b/test/dds/communication/CommunicationPubSubTypes.hpp index 829a912db..c2285f4ac 100644 --- a/test/dds/communication/CommunicationPubSubTypes.hpp +++ b/test/dds/communication/CommunicationPubSubTypes.hpp @@ -1,4 +1,4 @@ -// Copyright 2024 Proyectos y Sistemas de Mantenimiento SL (eProsima). +// 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. diff --git a/test/dds/communication/CommunicationTypeObjectSupport.cxx b/test/dds/communication/CommunicationTypeObjectSupport.cxx index d6d9117b6..f4c60e602 100644 --- a/test/dds/communication/CommunicationTypeObjectSupport.cxx +++ b/test/dds/communication/CommunicationTypeObjectSupport.cxx @@ -1,4 +1,4 @@ -// Copyright 2024 Proyectos y Sistemas de Mantenimiento SL (eProsima). +// 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. diff --git a/test/dds/communication/CommunicationTypeObjectSupport.hpp b/test/dds/communication/CommunicationTypeObjectSupport.hpp index 3d72ca530..d3a41f701 100644 --- a/test/dds/communication/CommunicationTypeObjectSupport.hpp +++ b/test/dds/communication/CommunicationTypeObjectSupport.hpp @@ -1,4 +1,4 @@ -// Copyright 2024 Proyectos y Sistemas de Mantenimiento SL (eProsima). +// 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.