diff --git a/examples/cpp/HelloWorldExample/HelloWorld.hpp b/examples/cpp/HelloWorldExample/HelloWorld.hpp index 46d0d7b5..69c2ce55 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,7 +174,6 @@ class HelloWorld return m_index; } - /*! * @brief This function copies the value in member message * @param _message New value to be copied in member message @@ -213,8 +212,6 @@ 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 4e1b6912..4b406302 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,7 +209,6 @@ class Connection return m_mode; } - /*! * @brief This function copies the value in member guid * @param _guid New value to be copied in member guid @@ -248,7 +247,6 @@ 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 @@ -287,7 +285,6 @@ 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 @@ -326,8 +323,6 @@ class Connection return m_used_locators; } - - private: ConnectionMode m_mode{ConnectionMode::DATA_SHARING}; @@ -365,9 +360,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; } @@ -390,9 +385,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; } @@ -418,7 +413,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); } /*! @@ -459,7 +454,6 @@ class QosPolicyCount_s return m_policy_id; } - /*! * @brief This function sets a value in member count * @param _count New value for member count @@ -488,8 +482,6 @@ class QosPolicyCount_s return m_count; } - - private: uint32_t m_policy_id{0}; @@ -525,7 +517,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; } @@ -547,7 +539,7 @@ class BaseStatus_s const BaseStatus_s& x) { - m_total_count = x.m_total_count; + m_total_count = x.m_total_count; return *this; } @@ -612,8 +604,6 @@ class BaseStatus_s return m_total_count; } - - private: uint32_t m_total_count{0}; @@ -650,11 +640,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; } @@ -678,11 +668,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; } @@ -709,8 +699,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); } /*! @@ -751,7 +741,6 @@ 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 @@ -780,7 +769,6 @@ 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 @@ -819,8 +807,6 @@ class IncompatibleQoSStatus_s return m_policies; } - - private: uint32_t m_total_count{0}; @@ -857,11 +843,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; } @@ -885,11 +871,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; } @@ -916,8 +902,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); } /*! @@ -958,7 +944,6 @@ 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 @@ -987,7 +972,6 @@ 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 @@ -1026,8 +1010,6 @@ class LivelinessChangedStatus_s return m_last_publication_handle; } - - private: uint32_t m_alive_count{0}; @@ -1064,9 +1046,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; } @@ -1089,9 +1071,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; } @@ -1117,7 +1099,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); } /*! @@ -1158,7 +1140,6 @@ 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 @@ -1197,8 +1178,6 @@ class DeadlineMissedStatus_s return m_last_instance_handle; } - - private: uint32_t m_total_count{0}; @@ -1263,41 +1242,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; } } @@ -1313,41 +1292,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; } } @@ -1363,41 +1342,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; } @@ -1415,41 +1394,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; } @@ -1470,41 +1449,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; } } @@ -1534,74 +1513,75 @@ 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; @@ -1668,7 +1648,6 @@ 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 @@ -1721,7 +1700,6 @@ 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 @@ -1774,7 +1752,6 @@ 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 @@ -1827,7 +1804,6 @@ 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 @@ -1880,7 +1856,6 @@ 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 @@ -1933,7 +1908,6 @@ 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 @@ -1986,7 +1960,6 @@ 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 @@ -2039,7 +2012,6 @@ 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 @@ -2081,7 +2053,6 @@ class MonitorServiceData return m_statuses_size; } - void _default() { if (member_destructor_) @@ -2092,171 +2063,184 @@ class MonitorServiceData selected_member_ = 0x0FFFFFFFu; } - private: - std::vector& entity_proxy_() + std::vector& entity_proxy_() + { + if (0x00000001 != selected_member_) + { + if (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; + member_destructor_(); } - std::vector& connection_list_() - { - if (0x00000002 != selected_member_) - { - if (member_destructor_) + selected_member_ = 0x00000001; + member_destructor_ = [&]() { - member_destructor_(); - } + m_entity_proxy.~vector(); + }; + new(&m_entity_proxy) std::vector(); + } - selected_member_ = 0x00000002; - member_destructor_ = [&]() {m_connection_list.~vector();}; - new(&m_connection_list) std::vector(); - ; - } + return m_entity_proxy; + } - return m_connection_list; + std::vector& connection_list_() + { + if (0x00000002 != selected_member_) + { + if (member_destructor_) + { + member_destructor_(); } - IncompatibleQoSStatus_s& incompatible_qos_status_() - { - if (0x00000003 != selected_member_) - { - if (member_destructor_) + selected_member_ = 0x00000002; + member_destructor_ = [&]() { - member_destructor_(); - } + m_connection_list.~vector(); + }; + new(&m_connection_list) std::vector(); + } - selected_member_ = 0x00000003; - member_destructor_ = [&]() {m_incompatible_qos_status.~IncompatibleQoSStatus_s();}; - new(&m_incompatible_qos_status) IncompatibleQoSStatus_s(); - ; - } + return m_connection_list; + } - return m_incompatible_qos_status; + IncompatibleQoSStatus_s& incompatible_qos_status_() + { + if (0x00000003 != selected_member_) + { + if (member_destructor_) + { + member_destructor_(); } - InconsistentTopicStatus_s& inconsistent_topic_status_() - { - if (0x00000004 != selected_member_) - { - if (member_destructor_) + selected_member_ = 0x00000003; + member_destructor_ = [&]() { - member_destructor_(); - } + m_incompatible_qos_status.~IncompatibleQoSStatus_s(); + }; + new(&m_incompatible_qos_status) IncompatibleQoSStatus_s(); + } - selected_member_ = 0x00000004; - member_destructor_ = [&]() {m_inconsistent_topic_status.~InconsistentTopicStatus_s();}; - new(&m_inconsistent_topic_status) InconsistentTopicStatus_s(); - ; - } + return m_incompatible_qos_status; + } - return m_inconsistent_topic_status; + InconsistentTopicStatus_s& inconsistent_topic_status_() + { + if (0x00000004 != selected_member_) + { + if (member_destructor_) + { + member_destructor_(); } - LivelinessLostStatus_s& liveliness_lost_status_() - { - if (0x00000005 != selected_member_) - { - if (member_destructor_) + selected_member_ = 0x00000004; + member_destructor_ = [&]() { - member_destructor_(); - } + m_inconsistent_topic_status.~InconsistentTopicStatus_s(); + }; + new(&m_inconsistent_topic_status) InconsistentTopicStatus_s(); + } - selected_member_ = 0x00000005; - member_destructor_ = [&]() {m_liveliness_lost_status.~LivelinessLostStatus_s();}; - new(&m_liveliness_lost_status) LivelinessLostStatus_s(); - ; - } + return m_inconsistent_topic_status; + } - return m_liveliness_lost_status; + LivelinessLostStatus_s& liveliness_lost_status_() + { + if (0x00000005 != selected_member_) + { + if (member_destructor_) + { + member_destructor_(); } - LivelinessChangedStatus_s& liveliness_changed_status_() - { - if (0x00000006 != selected_member_) - { - if (member_destructor_) + selected_member_ = 0x00000005; + member_destructor_ = [&]() { - member_destructor_(); - } + m_liveliness_lost_status.~LivelinessLostStatus_s(); + }; + new(&m_liveliness_lost_status) LivelinessLostStatus_s(); + } - selected_member_ = 0x00000006; - member_destructor_ = [&]() {m_liveliness_changed_status.~LivelinessChangedStatus_s();}; - new(&m_liveliness_changed_status) LivelinessChangedStatus_s(); - ; - } + return m_liveliness_lost_status; + } - return m_liveliness_changed_status; + LivelinessChangedStatus_s& liveliness_changed_status_() + { + if (0x00000006 != selected_member_) + { + if (member_destructor_) + { + member_destructor_(); } - DeadlineMissedStatus_s& deadline_missed_status_() - { - if (0x00000007 != selected_member_) - { - if (member_destructor_) + selected_member_ = 0x00000006; + member_destructor_ = [&]() { - member_destructor_(); - } + m_liveliness_changed_status.~LivelinessChangedStatus_s(); + }; + new(&m_liveliness_changed_status) LivelinessChangedStatus_s(); + } - selected_member_ = 0x00000007; - member_destructor_ = [&]() {m_deadline_missed_status.~DeadlineMissedStatus_s();}; - new(&m_deadline_missed_status) DeadlineMissedStatus_s(); - ; - } + return m_liveliness_changed_status; + } - return m_deadline_missed_status; + DeadlineMissedStatus_s& deadline_missed_status_() + { + if (0x00000007 != selected_member_) + { + if (member_destructor_) + { + member_destructor_(); } - SampleLostStatus_s& sample_lost_status_() - { - if (0x00000008 != selected_member_) - { - if (member_destructor_) + selected_member_ = 0x00000007; + member_destructor_ = [&]() { - member_destructor_(); - } + m_deadline_missed_status.~DeadlineMissedStatus_s(); + }; + new(&m_deadline_missed_status) DeadlineMissedStatus_s(); + } - selected_member_ = 0x00000008; - member_destructor_ = [&]() {m_sample_lost_status.~SampleLostStatus_s();}; - new(&m_sample_lost_status) SampleLostStatus_s(); - ; - } + return m_deadline_missed_status; + } - return m_sample_lost_status; + SampleLostStatus_s& sample_lost_status_() + { + if (0x00000008 != selected_member_) + { + if (member_destructor_) + { + member_destructor_(); } - uint8_t& statuses_size_() - { - if (0x00000009 != selected_member_) - { - if (member_destructor_) + selected_member_ = 0x00000008; + member_destructor_ = [&]() { - member_destructor_(); - } + m_sample_lost_status.~SampleLostStatus_s(); + }; + new(&m_sample_lost_status) SampleLostStatus_s(); + } - selected_member_ = 0x00000009; - member_destructor_ = nullptr; - m_statuses_size = {0}; - ; - } + return m_sample_lost_status; + } - return m_statuses_size; + 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; + } StatusKind::StatusKind m__d {2147483647}; @@ -2306,11 +2290,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; } @@ -2334,11 +2318,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; } @@ -2365,8 +2349,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); } /*! @@ -2417,7 +2401,6 @@ 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 @@ -2446,7 +2429,6 @@ 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 @@ -2485,8 +2467,6 @@ 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 5c62a2bb..a14453b5 100644 --- a/include/fastdds_statistics_backend/topic_types/monitorservice_typesPubSubTypes.hpp +++ b/include/fastdds_statistics_backend/topic_types/monitorservice_typesPubSubTypes.hpp @@ -38,505 +38,501 @@ 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 - { +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 - { - public: +/*! + * @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; @@ -546,91 +542,91 @@ namespace eprosima - } // 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 a07f0fb7..70ad38bd 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,8 +189,6 @@ class EntityId_s return m_value; } - - private: std::array m_value{0}; @@ -225,7 +223,7 @@ class GuidPrefix_s eProsima_user_DllExport GuidPrefix_s( const GuidPrefix_s& x) { - m_value = x.m_value; + m_value = x.m_value; } @@ -247,7 +245,7 @@ class GuidPrefix_s const GuidPrefix_s& x) { - m_value = x.m_value; + m_value = x.m_value; return *this; } @@ -322,8 +320,6 @@ class GuidPrefix_s return m_value; } - - private: std::array m_value{0}; @@ -358,9 +354,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; } @@ -383,9 +379,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; } @@ -411,7 +407,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); } /*! @@ -462,7 +458,6 @@ 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 @@ -501,8 +496,6 @@ class GUID_s return m_entityId; } - - private: GuidPrefix_s m_guidPrefix; @@ -538,9 +531,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; } @@ -563,9 +556,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; } @@ -591,7 +584,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); } /*! @@ -632,7 +625,6 @@ class SequenceNumber_s return m_high; } - /*! * @brief This function sets a value in member low * @param _low New value for member low @@ -661,8 +653,6 @@ class SequenceNumber_s return m_low; } - - private: int32_t m_high{0}; @@ -698,9 +688,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; } @@ -723,9 +713,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; } @@ -751,7 +741,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); } /*! @@ -802,7 +792,6 @@ 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 @@ -841,8 +830,6 @@ class SampleIdentity_s return m_sequence_number; } - - private: GUID_s m_writer_guid; @@ -878,11 +865,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; } @@ -906,11 +893,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; } @@ -937,8 +924,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); } /*! @@ -979,7 +966,6 @@ class Locator_s return m_kind; } - /*! * @brief This function sets a value in member port * @param _port New value for member port @@ -1008,7 +994,6 @@ 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 @@ -1047,8 +1032,6 @@ class Locator_s return m_address; } - - private: int32_t m_kind{0}; @@ -1087,17 +1070,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; } @@ -1124,17 +1107,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; } @@ -1164,11 +1147,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); } /*! @@ -1219,7 +1202,6 @@ 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 @@ -1258,7 +1240,6 @@ class DiscoveryTime return m_remote_entity_guid; } - /*! * @brief This function sets a value in member time * @param _time New value for member time @@ -1287,7 +1268,6 @@ class DiscoveryTime return m_time; } - /*! * @brief This function copies the value in member host * @param _host New value to be copied in member host @@ -1326,7 +1306,6 @@ class DiscoveryTime return m_host; } - /*! * @brief This function copies the value in member user * @param _user New value to be copied in member user @@ -1365,7 +1344,6 @@ class DiscoveryTime return m_user; } - /*! * @brief This function copies the value in member process * @param _process New value to be copied in member process @@ -1404,8 +1382,6 @@ class DiscoveryTime return m_process; } - - private: detail::GUID_s m_local_participant_guid; @@ -1445,9 +1421,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; } @@ -1470,9 +1446,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; } @@ -1498,7 +1474,7 @@ class EntityCount const EntityCount& x) const { return (m_guid == x.m_guid && - m_count == x.m_count); + m_count == x.m_count); } /*! @@ -1549,7 +1525,6 @@ class EntityCount return m_guid; } - /*! * @brief This function sets a value in member count * @param _count New value for member count @@ -1578,8 +1553,6 @@ class EntityCount return m_count; } - - private: detail::GUID_s m_guid; @@ -1615,9 +1588,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; } @@ -1640,9 +1613,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; } @@ -1668,7 +1641,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); } /*! @@ -1719,7 +1692,6 @@ class SampleIdentityCount return m_sample_id; } - /*! * @brief This function sets a value in member count * @param _count New value for member count @@ -1748,8 +1720,6 @@ class SampleIdentityCount return m_count; } - - private: detail::SampleIdentity_s m_sample_id; @@ -1785,15 +1755,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; } @@ -1819,15 +1789,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; } @@ -1856,10 +1826,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); } /*! @@ -1910,7 +1880,6 @@ 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 @@ -1949,7 +1918,6 @@ 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 @@ -1978,7 +1946,6 @@ 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 @@ -2007,7 +1974,6 @@ 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 @@ -2036,8 +2002,6 @@ class Entity2LocatorTraffic return m_byte_magnitude_order; } - - private: detail::GUID_s m_src_guid; @@ -2076,11 +2040,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; } @@ -2104,11 +2068,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; } @@ -2135,8 +2099,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); } /*! @@ -2187,7 +2151,6 @@ 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 @@ -2226,7 +2189,6 @@ class WriterReaderData return m_reader_guid; } - /*! * @brief This function sets a value in member data * @param _data New value for member data @@ -2255,8 +2217,6 @@ class WriterReaderData return m_data; } - - private: detail::GUID_s m_writer_guid; @@ -2293,11 +2253,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; } @@ -2321,11 +2281,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; } @@ -2352,8 +2312,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); } /*! @@ -2404,7 +2364,6 @@ 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 @@ -2443,7 +2402,6 @@ class Locator2LocatorData return m_dst_locator; } - /*! * @brief This function sets a value in member data * @param _data New value for member data @@ -2472,8 +2430,6 @@ class Locator2LocatorData return m_data; } - - private: detail::Locator_s m_src_locator; @@ -2510,9 +2466,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; } @@ -2535,9 +2491,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; } @@ -2563,7 +2519,7 @@ class EntityData const EntityData& x) const { return (m_guid == x.m_guid && - m_data == x.m_data); + m_data == x.m_data); } /*! @@ -2614,7 +2570,6 @@ class EntityData return m_guid; } - /*! * @brief This function sets a value in member data * @param _data New value for member data @@ -2643,8 +2598,6 @@ class EntityData return m_data; } - - private: detail::GUID_s m_guid; @@ -2680,13 +2633,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; } @@ -2711,13 +2664,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; } @@ -2745,9 +2698,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); } /*! @@ -2798,7 +2751,6 @@ 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 @@ -2837,7 +2789,6 @@ class PhysicalData return m_host; } - /*! * @brief This function copies the value in member user * @param _user New value to be copied in member user @@ -2876,7 +2827,6 @@ class PhysicalData return m_user; } - /*! * @brief This function copies the value in member process * @param _process New value to be copied in member process @@ -2915,8 +2865,6 @@ class PhysicalData return m_process; } - - private: detail::GUID_s m_participant_guid; @@ -2983,37 +2931,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; } } @@ -3029,37 +2977,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; } } @@ -3075,37 +3023,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; } @@ -3123,37 +3071,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; } @@ -3174,37 +3122,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; } } @@ -3234,76 +3182,77 @@ 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; @@ -3370,7 +3319,6 @@ 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 @@ -3423,7 +3371,6 @@ 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 @@ -3476,7 +3423,6 @@ 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 @@ -3529,7 +3475,6 @@ 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 @@ -3582,7 +3527,6 @@ 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 @@ -3635,7 +3579,6 @@ 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 @@ -3688,7 +3631,6 @@ 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 @@ -3741,7 +3683,6 @@ class Data return m_physical_data; } - void _default() { if (member_destructor_) @@ -3752,153 +3693,167 @@ class Data selected_member_ = 0x0FFFFFFFu; } - private: - WriterReaderData& writer_reader_data_() + WriterReaderData& writer_reader_data_() + { + if (0x00000001 != selected_member_) + { + if (member_destructor_) { - if (0x00000001 != selected_member_) - { - if (member_destructor_) - { - member_destructor_(); - } - - selected_member_ = 0x00000001; - member_destructor_ = [&]() {m_writer_reader_data.~WriterReaderData();}; - new(&m_writer_reader_data) WriterReaderData(); - ; - } - - return m_writer_reader_data; + member_destructor_(); } - Locator2LocatorData& locator2locator_data_() - { - if (0x00000002 != selected_member_) - { - if (member_destructor_) + selected_member_ = 0x00000001; + member_destructor_ = [&]() { - member_destructor_(); - } + m_writer_reader_data.~WriterReaderData(); + }; + new(&m_writer_reader_data) WriterReaderData(); + } - selected_member_ = 0x00000002; - member_destructor_ = [&]() {m_locator2locator_data.~Locator2LocatorData();}; - new(&m_locator2locator_data) Locator2LocatorData(); - ; - } + return m_writer_reader_data; + } - return m_locator2locator_data; + Locator2LocatorData& locator2locator_data_() + { + if (0x00000002 != selected_member_) + { + if (member_destructor_) + { + member_destructor_(); } - EntityData& entity_data_() - { - if (0x00000003 != selected_member_) - { - if (member_destructor_) + selected_member_ = 0x00000002; + member_destructor_ = [&]() { - member_destructor_(); - } + m_locator2locator_data.~Locator2LocatorData(); + }; + new(&m_locator2locator_data) Locator2LocatorData(); + } - selected_member_ = 0x00000003; - member_destructor_ = [&]() {m_entity_data.~EntityData();}; - new(&m_entity_data) EntityData(); - ; - } + return m_locator2locator_data; + } - return m_entity_data; + EntityData& entity_data_() + { + if (0x00000003 != selected_member_) + { + if (member_destructor_) + { + member_destructor_(); } - Entity2LocatorTraffic& entity2locator_traffic_() - { - if (0x00000004 != selected_member_) - { - if (member_destructor_) + selected_member_ = 0x00000003; + member_destructor_ = [&]() { - member_destructor_(); - } + m_entity_data.~EntityData(); + }; + new(&m_entity_data) EntityData(); + } - selected_member_ = 0x00000004; - member_destructor_ = [&]() {m_entity2locator_traffic.~Entity2LocatorTraffic();}; - new(&m_entity2locator_traffic) Entity2LocatorTraffic(); - ; - } + return m_entity_data; + } - return m_entity2locator_traffic; + Entity2LocatorTraffic& entity2locator_traffic_() + { + if (0x00000004 != selected_member_) + { + if (member_destructor_) + { + member_destructor_(); } - EntityCount& entity_count_() - { - if (0x00000005 != selected_member_) - { - if (member_destructor_) + selected_member_ = 0x00000004; + member_destructor_ = [&]() { - member_destructor_(); - } + m_entity2locator_traffic.~Entity2LocatorTraffic(); + }; + new(&m_entity2locator_traffic) Entity2LocatorTraffic(); + } - selected_member_ = 0x00000005; - member_destructor_ = [&]() {m_entity_count.~EntityCount();}; - new(&m_entity_count) EntityCount(); - ; - } + return m_entity2locator_traffic; + } - return m_entity_count; + EntityCount& entity_count_() + { + if (0x00000005 != selected_member_) + { + if (member_destructor_) + { + member_destructor_(); } - DiscoveryTime& discovery_time_() - { - if (0x00000006 != selected_member_) - { - if (member_destructor_) + selected_member_ = 0x00000005; + member_destructor_ = [&]() { - member_destructor_(); - } + m_entity_count.~EntityCount(); + }; + new(&m_entity_count) EntityCount(); + } - selected_member_ = 0x00000006; - member_destructor_ = [&]() {m_discovery_time.~DiscoveryTime();}; - new(&m_discovery_time) DiscoveryTime(); - ; - } + return m_entity_count; + } - return m_discovery_time; + DiscoveryTime& discovery_time_() + { + if (0x00000006 != selected_member_) + { + if (member_destructor_) + { + member_destructor_(); } - SampleIdentityCount& sample_identity_count_() - { - if (0x00000007 != selected_member_) - { - if (member_destructor_) + selected_member_ = 0x00000006; + member_destructor_ = [&]() { - member_destructor_(); - } + m_discovery_time.~DiscoveryTime(); + }; + new(&m_discovery_time) DiscoveryTime(); + } - selected_member_ = 0x00000007; - member_destructor_ = [&]() {m_sample_identity_count.~SampleIdentityCount();}; - new(&m_sample_identity_count) SampleIdentityCount(); - ; - } + return m_discovery_time; + } - return m_sample_identity_count; + SampleIdentityCount& sample_identity_count_() + { + if (0x00000007 != selected_member_) + { + if (member_destructor_) + { + member_destructor_(); } - PhysicalData& physical_data_() - { - if (0x00000008 != selected_member_) - { - if (member_destructor_) + selected_member_ = 0x00000007; + member_destructor_ = [&]() { - member_destructor_(); - } + m_sample_identity_count.~SampleIdentityCount(); + }; + new(&m_sample_identity_count) SampleIdentityCount(); + } - selected_member_ = 0x00000008; - member_destructor_ = [&]() {m_physical_data.~PhysicalData();}; - new(&m_physical_data) PhysicalData(); - ; - } + return m_sample_identity_count; + } - return m_physical_data; + PhysicalData& physical_data_() + { + if (0x00000008 != selected_member_) + { + if (member_destructor_) + { + member_destructor_(); } + selected_member_ = 0x00000008; + member_destructor_ = [&]() + { + m_physical_data.~PhysicalData(); + }; + new(&m_physical_data) PhysicalData(); + } + + 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 3a7c7aa0..9e1dc6d7 100644 --- a/include/fastdds_statistics_backend/topic_types/typesPubSubTypes.hpp +++ b/include/fastdds_statistics_backend/topic_types/typesPubSubTypes.hpp @@ -37,1155 +37,1150 @@ 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 - { +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 - { - public: +/*! + * @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/src/cpp/database/database_queue.cpp b/src/cpp/database/database_queue.cpp index ca4a8bab..e94f11f3 100644 --- a/src/cpp/database/database_queue.cpp +++ b/src/cpp/database/database_queue.cpp @@ -74,7 +74,9 @@ EntityId DatabaseEntityQueue::process_participant( participant_id = database_->get_entity_by_guid(EntityKind::PARTICIPANT, to_string(info.guid)).second; // Update the entity status and check if its references must also change it status - database_->change_entity_status(participant_id, info.discovery_status != details::StatisticsBackendData::DiscoveryStatus::UNDISCOVERY); + database_->change_entity_status(participant_id, + info.discovery_status != + details::StatisticsBackendData::DiscoveryStatus::UNDISCOVERY); } catch (BadParameter&) @@ -125,7 +127,8 @@ EntityId DatabaseEntityQueue::process_participant( { process_name = info.process; process_pid = info.process; - EPROSIMA_LOG_INFO(BACKEND_DATABASE, "Process name " + process_name + " does not follow the [command]:[PID] pattern"); + EPROSIMA_LOG_INFO(BACKEND_DATABASE, + "Process name " + process_name + " does not follow the [command]:[PID] pattern"); } else { @@ -169,10 +172,12 @@ EntityId DatabaseEntityQueue::process_datareader( { // See if the reader is already in the database // This will throw if the reader is unknown - datareader_id =database_->get_entity_by_guid(EntityKind::DATAREADER, to_string(info.guid)).second; + datareader_id = database_->get_entity_by_guid(EntityKind::DATAREADER, to_string(info.guid)).second; // Update the entity status and check if its references must also change it status - database_->change_entity_status(datareader_id,info.discovery_status != details::StatisticsBackendData::DiscoveryStatus::UNDISCOVERY); + database_->change_entity_status(datareader_id, + info.discovery_status != + details::StatisticsBackendData::DiscoveryStatus::UNDISCOVERY); // Delete inactive entites // Get the participant from the database @@ -241,7 +246,9 @@ EntityId DatabaseEntityQueue::process_datawriter( datawriter_id = database_->get_entity_by_guid(EntityKind::DATAWRITER, to_string(info.guid)).second; // Update the entity status and check if its references must also change it status - database_->change_entity_status(datawriter_id, info.discovery_status != details::StatisticsBackendData::DiscoveryStatus::UNDISCOVERY); + database_->change_entity_status(datawriter_id, + info.discovery_status != + details::StatisticsBackendData::DiscoveryStatus::UNDISCOVERY); // Delete inactive entites // Get the participant from the database @@ -1004,7 +1011,8 @@ void DatabaseDataQueue::process_sample() catch (const eprosima::statistics_backend::Exception& e) { EPROSIMA_LOG_WARNING(BACKEND_DATABASE_QUEUE, - "Error processing HISTORY2HISTORY_LATENCY event. Data was not added to the statistics collection: " + std::string(e.what())); + "Error processing HISTORY2HISTORY_LATENCY event. Data was not added to the statistics collection: " + std::string( + e.what())); } break; } @@ -1108,8 +1116,10 @@ void DatabaseDataQueue::process_sample() static_cast(byte_sample), item.second->entity2locator_traffic()); database_->insert(domain, entity, byte_sample); - details::StatisticsBackendData::get_instance()->on_data_available(domain, entity, DataKind::RTPS_PACKETS_SENT); - details::StatisticsBackendData::get_instance()->on_data_available(domain, entity, DataKind::RTPS_BYTES_SENT); + details::StatisticsBackendData::get_instance()->on_data_available(domain, entity, + DataKind::RTPS_PACKETS_SENT); + details::StatisticsBackendData::get_instance()->on_data_available(domain, entity, + DataKind::RTPS_BYTES_SENT); } catch (const eprosima::statistics_backend::Exception& e) { @@ -1148,8 +1158,10 @@ void DatabaseDataQueue::process_sample() static_cast(byte_sample), item.second->entity2locator_traffic()); database_->insert(domain, entity, byte_sample); - details::StatisticsBackendData::get_instance()->on_data_available(domain, entity, DataKind::RTPS_PACKETS_LOST); - details::StatisticsBackendData::get_instance()->on_data_available(domain, entity, DataKind::RTPS_BYTES_LOST); + details::StatisticsBackendData::get_instance()->on_data_available(domain, entity, + DataKind::RTPS_PACKETS_LOST); + details::StatisticsBackendData::get_instance()->on_data_available(domain, entity, + DataKind::RTPS_BYTES_LOST); } catch (const eprosima::statistics_backend::Exception& e) { @@ -1171,7 +1183,8 @@ void DatabaseDataQueue::process_sample() process_sample_type(domain, entity, EntityKind::DATAWRITER, static_cast(sample), item.second->entity_count()); database_->insert(domain, entity, sample); - details::StatisticsBackendData::get_instance()->on_data_available(domain, entity, DataKind::RESENT_DATA); + details::StatisticsBackendData::get_instance()->on_data_available(domain, entity, + DataKind::RESENT_DATA); } catch (const eprosima::statistics_backend::Exception& e) { @@ -1193,7 +1206,8 @@ void DatabaseDataQueue::process_sample() process_sample_type(domain, entity, EntityKind::DATAWRITER, static_cast(sample), item.second->entity_count()); database_->insert(domain, entity, sample); - details::StatisticsBackendData::get_instance()->on_data_available(domain, entity, DataKind::HEARTBEAT_COUNT); + details::StatisticsBackendData::get_instance()->on_data_available(domain, entity, + DataKind::HEARTBEAT_COUNT); } catch (const eprosima::statistics_backend::Exception& e) { @@ -1215,7 +1229,8 @@ void DatabaseDataQueue::process_sample() process_sample_type(domain, entity, EntityKind::DATAREADER, static_cast(sample), item.second->entity_count()); database_->insert(domain, entity, sample); - details::StatisticsBackendData::get_instance()->on_data_available(domain, entity, DataKind::ACKNACK_COUNT); + details::StatisticsBackendData::get_instance()->on_data_available(domain, entity, + DataKind::ACKNACK_COUNT); } catch (const eprosima::statistics_backend::Exception& e) { @@ -1237,7 +1252,8 @@ void DatabaseDataQueue::process_sample() process_sample_type(domain, entity, EntityKind::DATAREADER, static_cast(sample), item.second->entity_count()); database_->insert(domain, entity, sample); - details::StatisticsBackendData::get_instance()->on_data_available(domain, entity, DataKind::NACKFRAG_COUNT); + details::StatisticsBackendData::get_instance()->on_data_available(domain, entity, + DataKind::NACKFRAG_COUNT); } catch (const eprosima::statistics_backend::Exception& e) { @@ -1303,7 +1319,8 @@ void DatabaseDataQueue::process_sample() process_sample_type(domain, entity, EntityKind::PARTICIPANT, static_cast(sample), item.second->entity_count()); database_->insert(domain, entity, sample); - details::StatisticsBackendData::get_instance()->on_data_available(domain, entity, DataKind::PDP_PACKETS); + details::StatisticsBackendData::get_instance()->on_data_available(domain, entity, + DataKind::PDP_PACKETS); } catch (const eprosima::statistics_backend::Exception& e) { @@ -1325,7 +1342,8 @@ void DatabaseDataQueue::process_sample() process_sample_type(domain, entity, EntityKind::PARTICIPANT, static_cast(sample), item.second->entity_count()); database_->insert(domain, entity, sample); - details::StatisticsBackendData::get_instance()->on_data_available(domain, entity, DataKind::EDP_PACKETS); + details::StatisticsBackendData::get_instance()->on_data_available(domain, entity, + DataKind::EDP_PACKETS); } catch (const eprosima::statistics_backend::Exception& e) { @@ -1346,7 +1364,8 @@ void DatabaseDataQueue::process_sample() { process_sample_type(domain, entity, EntityKind::PARTICIPANT, sample, item.second->discovery_time()); database_->insert(domain, entity, sample); - details::StatisticsBackendData::get_instance()->on_data_available(domain, entity, DataKind::DISCOVERY_TIME); + details::StatisticsBackendData::get_instance()->on_data_available(domain, entity, + DataKind::DISCOVERY_TIME); } catch (const eprosima::statistics_backend::Exception& e) { @@ -1368,7 +1387,8 @@ void DatabaseDataQueue::process_sample() process_sample_type(domain, entity, EntityKind::DATAWRITER, sample, item.second->sample_identity_count()); database_->insert(domain, entity, sample); - details::StatisticsBackendData::get_instance()->on_data_available(domain, entity, DataKind::SAMPLE_DATAS); + details::StatisticsBackendData::get_instance()->on_data_available(domain, entity, + DataKind::SAMPLE_DATAS); } catch (const eprosima::statistics_backend::Exception& e) { @@ -1428,13 +1448,15 @@ void DatabaseDataQueue: item.second->value().connection_list()); updated_entity = database_->insert(domain, entity, sample); - details::StatisticsBackendData::get_instance()->on_status_reported(domain, entity, StatusKind::CONNECTION_LIST); + details::StatisticsBackendData::get_instance()->on_status_reported(domain, entity, + StatusKind::CONNECTION_LIST); } catch (const eprosima::statistics_backend::Exception& e) { EPROSIMA_LOG_WARNING(BACKEND_DATABASE_QUEUE, "Error processing CONNECTION_LIST status data. Data was not added to the statistics collection: " - + std::string(e.what())); + + std::string( + e.what())); } break; } @@ -1449,13 +1471,15 @@ void DatabaseDataQueue: item.second->value().incompatible_qos_status()); updated_entity = database_->insert(domain, entity, sample); - details::StatisticsBackendData::get_instance()->on_status_reported(domain, entity, StatusKind::INCOMPATIBLE_QOS); + details::StatisticsBackendData::get_instance()->on_status_reported(domain, entity, + StatusKind::INCOMPATIBLE_QOS); } catch (const eprosima::statistics_backend::Exception& e) { EPROSIMA_LOG_WARNING(BACKEND_DATABASE_QUEUE, "Error processing INCOMPATIBLE_QOS status data. Data was not added to the statistics collection: " - + std::string(e.what())); + + std::string( + e.what())); } break; } @@ -1477,7 +1501,8 @@ void DatabaseDataQueue: { EPROSIMA_LOG_WARNING(BACKEND_DATABASE_QUEUE, "Error processing INCONSISTENT_TOPIC status data. Data was not added to the statistics collection: " - + std::string(e.what())); + + std::string( + e.what())); } break; } @@ -1492,13 +1517,15 @@ void DatabaseDataQueue: item.second->value().liveliness_lost_status()); updated_entity = database_->insert(domain, entity, sample); - details::StatisticsBackendData::get_instance()->on_status_reported(domain, entity, StatusKind::LIVELINESS_LOST); + details::StatisticsBackendData::get_instance()->on_status_reported(domain, entity, + StatusKind::LIVELINESS_LOST); } catch (const eprosima::statistics_backend::Exception& e) { EPROSIMA_LOG_WARNING(BACKEND_DATABASE_QUEUE, "Error processing LIVELINESS_LOST status data. Data was not added to the statistics collection: " - + std::string(e.what())); + + std::string( + e.what())); } break; } @@ -1520,7 +1547,8 @@ void DatabaseDataQueue: { EPROSIMA_LOG_WARNING(BACKEND_DATABASE_QUEUE, "Error processing LIVELINESS_CHANGED status data. Data was not added to the statistics collection: " - + std::string(e.what())); + + std::string( + e.what())); } break; } @@ -1542,7 +1570,8 @@ void DatabaseDataQueue: { EPROSIMA_LOG_WARNING(BACKEND_DATABASE_QUEUE, "Error processing DEADLINE_MISSED status data. Data was not added to the statistics collection: " - + std::string(e.what())); + + std::string( + e.what())); } break; } diff --git a/src/cpp/database/database_queue.hpp b/src/cpp/database/database_queue.hpp index f8076a92..6c2ac7b7 100644 --- a/src/cpp/database/database_queue.hpp +++ b/src/cpp/database/database_queue.hpp @@ -589,7 +589,9 @@ class DatabaseDataQueue : public DatabaseQueue> } eprosima::fastdds::rtps::GUID_t guid; memcpy(guid.guidPrefix.value, data.address().data(), eprosima::fastdds::rtps::GuidPrefix_t::size); - memcpy(guid.entityId.value, data.address().data() + eprosima::fastdds::rtps::GuidPrefix_t::size, eprosima::fastdds::rtps::EntityId_t::size); + memcpy(guid.entityId.value, + data.address().data() + eprosima::fastdds::rtps::GuidPrefix_t::size, + eprosima::fastdds::rtps::EntityId_t::size); std::stringstream ss; ss << guid; return ss.str(); diff --git a/src/cpp/subscriber/StatisticsParticipantListener.cpp b/src/cpp/subscriber/StatisticsParticipantListener.cpp index ebbfd72e..17ef89ce 100644 --- a/src/cpp/subscriber/StatisticsParticipantListener.cpp +++ b/src/cpp/subscriber/StatisticsParticipantListener.cpp @@ -141,7 +141,8 @@ void StatisticsParticipantListener::on_participant_discovery( std::chrono::system_clock::time_point timestamp = now(); // Meaningful prefix for metatraffic entities - const std::string metatraffic_prefix = "___EPROSIMA___METATRAFFIC___DOMAIN_" + std::to_string(domain_id_.value()) + "___"; + const std::string metatraffic_prefix = "___EPROSIMA___METATRAFFIC___DOMAIN_" + std::to_string(domain_id_.value()) + + "___"; const std::string metatraffic_alias = "_metatraffic_"; // Build the discovery info for the queue @@ -198,13 +199,16 @@ void StatisticsParticipantListener::on_participant_discovery( return std::string(""); }; - discovery_info.host = get_property_value(info.properties, eprosima::fastdds::dds::parameter_policy_physical_data_host); + discovery_info.host = get_property_value(info.properties, + eprosima::fastdds::dds::parameter_policy_physical_data_host); discovery_info.host = discovery_info.host.empty()? "Unknown" : discovery_info.host; - discovery_info.user = get_property_value(info.properties, eprosima::fastdds::dds::parameter_policy_physical_data_user); + discovery_info.user = get_property_value(info.properties, + eprosima::fastdds::dds::parameter_policy_physical_data_user); discovery_info.user = discovery_info.user.empty()? "Unknown" : discovery_info.user; - discovery_info.process = get_property_value(info.properties, eprosima::fastdds::dds::parameter_policy_physical_data_process); + discovery_info.process = get_property_value(info.properties, + eprosima::fastdds::dds::parameter_policy_physical_data_process); discovery_info.process = discovery_info.process.empty()? "Unknown" : discovery_info.process; std::string app_id = get_property_value(info.properties, "fastdds.application.id"); diff --git a/test/dds/communication/Monitor.cpp b/test/dds/communication/Monitor.cpp index ca503027..4aad020d 100644 --- a/test/dds/communication/Monitor.cpp +++ b/test/dds/communication/Monitor.cpp @@ -317,9 +317,7 @@ int main( throw Error("Error: database contains unexpected DATAREADER"); } // Some locators are beyond the monitor domain - else if ( - StatisticsBackend::get_entities(EntityKind::LOCATOR, - monitor_id).size() != num_locators) + else if (StatisticsBackend::get_entities(EntityKind::LOCATOR, monitor_id).size() != num_locators) { throw Error("Error: database contains unexpected LOCATOR"); } @@ -451,9 +449,7 @@ int main( throw Error("Error: database contains unexpected DATAREADER"); } // Some locators are beyond the monitor domain - else if ( - StatisticsBackend::get_entities(EntityKind::LOCATOR, - monitor_id).size() != num_locators) + else if (StatisticsBackend::get_entities(EntityKind::LOCATOR, monitor_id).size() != num_locators) { throw Error("Error: database contains unexpected LOCATOR"); } @@ -587,9 +583,7 @@ int main( throw Error("Error: database contains unexpected DATAREADER"); } // Some locators are beyond the monitor domain - else if ( - StatisticsBackend::get_entities(EntityKind::LOCATOR, - monitor_id).size() != num_locators) + else if (StatisticsBackend::get_entities(EntityKind::LOCATOR, monitor_id).size() != num_locators) { throw Error("Error: database contains unexpected LOCATOR"); } diff --git a/test/dds/communication/Subscriber.hpp b/test/dds/communication/Subscriber.hpp index 33588de8..feab07ec 100644 --- a/test/dds/communication/Subscriber.hpp +++ b/test/dds/communication/Subscriber.hpp @@ -83,11 +83,12 @@ class Subscriber void on_subscription_matched( eprosima::fastdds::dds::DataReader* reader, const eprosima::fastdds::dds::SubscriptionMatchedStatus& info) override; - + uint32_t get_matched() { return matched_; } + private: Communication comm_; @@ -104,7 +105,8 @@ class Subscriber //! Avoids race conditions in callback execution std::mutex mutex_; std::condition_variable cv_; - } listener; + } + listener; private: diff --git a/test/unittest/DatabaseQueue/DatabaseQueueTests.cpp b/test/unittest/DatabaseQueue/DatabaseQueueTests.cpp index a1d6acdb..c0a3c1be 100644 --- a/test/unittest/DatabaseQueue/DatabaseQueueTests.cpp +++ b/test/unittest/DatabaseQueue/DatabaseQueueTests.cpp @@ -450,7 +450,8 @@ struct InsertEndpointArgs participant_id_ = participant_id; topic_id_ = topic_id; app_data_ = app_data; - return callback_(endpoint_guid, name, alias, qos, is_virtual_metatraffic, locators, kind, participant_id, topic_id, app_data); + return callback_(endpoint_guid, name, alias, qos, is_virtual_metatraffic, locators, kind, participant_id, + topic_id, app_data); } std::function