diff --git a/src/cpp/CMakeLists.txt b/src/cpp/CMakeLists.txt index 4af36236fd7..1efbbb2b7f2 100644 --- a/src/cpp/CMakeLists.txt +++ b/src/cpp/CMakeLists.txt @@ -267,6 +267,7 @@ if (FASTDDS_STATISTICS) statistics/types/types.cxx statistics/types/typesv1.cxx statistics/types/monitorservice_types.cxx + statistics/types/monitorservice_typesv1.cxx statistics/types/monitorservice_typesPubSubTypes.cxx ) diff --git a/src/cpp/statistics/types/monitorservice_types.cxx b/src/cpp/statistics/types/monitorservice_types.cxx index e4c91164da6..2ea9407d9ef 100644 --- a/src/cpp/statistics/types/monitorservice_types.cxx +++ b/src/cpp/statistics/types/monitorservice_types.cxx @@ -27,6 +27,9 @@ char dummy; #endif // _WIN32 #include "monitorservice_types.h" + +#if FASTCDR_VERSION_MAJOR > 1 + #include @@ -36,16 +39,25 @@ using namespace eprosima::fastcdr::exception; #include -eprosima::fastdds::statistics::Connection::Connection() -{ +namespace eprosima { + +namespace fastdds { + +namespace statistics { + + + + +Connection::Connection() +{ } -eprosima::fastdds::statistics::Connection::~Connection() +Connection::~Connection() { } -eprosima::fastdds::statistics::Connection::Connection( +Connection::Connection( const Connection& x) { m_mode = x.m_mode; @@ -54,7 +66,7 @@ eprosima::fastdds::statistics::Connection::Connection( m_used_locators = x.m_used_locators; } -eprosima::fastdds::statistics::Connection::Connection( +Connection::Connection( Connection&& x) noexcept { m_mode = x.m_mode; @@ -63,7 +75,7 @@ eprosima::fastdds::statistics::Connection::Connection( m_used_locators = std::move(x.m_used_locators); } -eprosima::fastdds::statistics::Connection& eprosima::fastdds::statistics::Connection::operator =( +Connection& Connection::operator =( const Connection& x) { @@ -71,11 +83,10 @@ eprosima::fastdds::statistics::Connection& eprosima::fastdds::statistics::Connec m_guid = x.m_guid; m_announced_locators = x.m_announced_locators; m_used_locators = x.m_used_locators; - return *this; } -eprosima::fastdds::statistics::Connection& eprosima::fastdds::statistics::Connection::operator =( +Connection& Connection::operator =( Connection&& x) noexcept { @@ -83,11 +94,10 @@ eprosima::fastdds::statistics::Connection& eprosima::fastdds::statistics::Connec m_guid = std::move(x.m_guid); m_announced_locators = std::move(x.m_announced_locators); m_used_locators = std::move(x.m_used_locators); - return *this; } -bool eprosima::fastdds::statistics::Connection::operator ==( +bool Connection::operator ==( const Connection& x) const { return (m_mode == x.m_mode && @@ -96,7 +106,7 @@ bool eprosima::fastdds::statistics::Connection::operator ==( m_used_locators == x.m_used_locators); } -bool eprosima::fastdds::statistics::Connection::operator !=( +bool Connection::operator !=( const Connection& x) const { return !(*this == x); @@ -106,7 +116,7 @@ bool eprosima::fastdds::statistics::Connection::operator !=( * @brief This function sets a value in member mode * @param _mode New value for member mode */ -void eprosima::fastdds::statistics::Connection::mode( +void Connection::mode( eprosima::fastdds::statistics::ConnectionMode _mode) { m_mode = _mode; @@ -116,7 +126,7 @@ void eprosima::fastdds::statistics::Connection::mode( * @brief This function returns the value of member mode * @return Value of member mode */ -eprosima::fastdds::statistics::ConnectionMode eprosima::fastdds::statistics::Connection::mode() const +eprosima::fastdds::statistics::ConnectionMode Connection::mode() const { return m_mode; } @@ -125,7 +135,7 @@ eprosima::fastdds::statistics::ConnectionMode eprosima::fastdds::statistics::Con * @brief This function returns a reference to member mode * @return Reference to member mode */ -eprosima::fastdds::statistics::ConnectionMode& eprosima::fastdds::statistics::Connection::mode() +eprosima::fastdds::statistics::ConnectionMode& Connection::mode() { return m_mode; } @@ -135,7 +145,7 @@ eprosima::fastdds::statistics::ConnectionMode& eprosima::fastdds::statistics::Co * @brief This function copies the value in member guid * @param _guid New value to be copied in member guid */ -void eprosima::fastdds::statistics::Connection::guid( +void Connection::guid( const eprosima::fastdds::statistics::detail::GUID_s& _guid) { m_guid = _guid; @@ -145,7 +155,7 @@ void eprosima::fastdds::statistics::Connection::guid( * @brief This function moves the value in member guid * @param _guid New value to be moved in member guid */ -void eprosima::fastdds::statistics::Connection::guid( +void Connection::guid( eprosima::fastdds::statistics::detail::GUID_s&& _guid) { m_guid = std::move(_guid); @@ -155,7 +165,7 @@ void eprosima::fastdds::statistics::Connection::guid( * @brief This function returns a constant reference to member guid * @return Constant reference to member guid */ -const eprosima::fastdds::statistics::detail::GUID_s& eprosima::fastdds::statistics::Connection::guid() const +const eprosima::fastdds::statistics::detail::GUID_s& Connection::guid() const { return m_guid; } @@ -164,7 +174,7 @@ const eprosima::fastdds::statistics::detail::GUID_s& eprosima::fastdds::statisti * @brief This function returns a reference to member guid * @return Reference to member guid */ -eprosima::fastdds::statistics::detail::GUID_s& eprosima::fastdds::statistics::Connection::guid() +eprosima::fastdds::statistics::detail::GUID_s& Connection::guid() { return m_guid; } @@ -174,7 +184,7 @@ eprosima::fastdds::statistics::detail::GUID_s& eprosima::fastdds::statistics::Co * @brief This function copies the value in member announced_locators * @param _announced_locators New value to be copied in member announced_locators */ -void eprosima::fastdds::statistics::Connection::announced_locators( +void Connection::announced_locators( const std::vector& _announced_locators) { m_announced_locators = _announced_locators; @@ -184,7 +194,7 @@ void eprosima::fastdds::statistics::Connection::announced_locators( * @brief This function moves the value in member announced_locators * @param _announced_locators New value to be moved in member announced_locators */ -void eprosima::fastdds::statistics::Connection::announced_locators( +void Connection::announced_locators( std::vector&& _announced_locators) { m_announced_locators = std::move(_announced_locators); @@ -194,7 +204,7 @@ void eprosima::fastdds::statistics::Connection::announced_locators( * @brief This function returns a constant reference to member announced_locators * @return Constant reference to member announced_locators */ -const std::vector& eprosima::fastdds::statistics::Connection::announced_locators() const +const std::vector& Connection::announced_locators() const { return m_announced_locators; } @@ -203,7 +213,7 @@ const std::vector& eprosima::f * @brief This function returns a reference to member announced_locators * @return Reference to member announced_locators */ -std::vector& eprosima::fastdds::statistics::Connection::announced_locators() +std::vector& Connection::announced_locators() { return m_announced_locators; } @@ -213,7 +223,7 @@ std::vector& eprosima::fastdds * @brief This function copies the value in member used_locators * @param _used_locators New value to be copied in member used_locators */ -void eprosima::fastdds::statistics::Connection::used_locators( +void Connection::used_locators( const std::vector& _used_locators) { m_used_locators = _used_locators; @@ -223,7 +233,7 @@ void eprosima::fastdds::statistics::Connection::used_locators( * @brief This function moves the value in member used_locators * @param _used_locators New value to be moved in member used_locators */ -void eprosima::fastdds::statistics::Connection::used_locators( +void Connection::used_locators( std::vector&& _used_locators) { m_used_locators = std::move(_used_locators); @@ -233,7 +243,7 @@ void eprosima::fastdds::statistics::Connection::used_locators( * @brief This function returns a constant reference to member used_locators * @return Constant reference to member used_locators */ -const std::vector& eprosima::fastdds::statistics::Connection::used_locators() const +const std::vector& Connection::used_locators() const { return m_used_locators; } @@ -242,63 +252,62 @@ const std::vector& eprosima::f * @brief This function returns a reference to member used_locators * @return Reference to member used_locators */ -std::vector& eprosima::fastdds::statistics::Connection::used_locators() +std::vector& Connection::used_locators() { return m_used_locators; } -eprosima::fastdds::statistics::QosPolicyCount_s::QosPolicyCount_s() -{ + +QosPolicyCount_s::QosPolicyCount_s() +{ } -eprosima::fastdds::statistics::QosPolicyCount_s::~QosPolicyCount_s() +QosPolicyCount_s::~QosPolicyCount_s() { } -eprosima::fastdds::statistics::QosPolicyCount_s::QosPolicyCount_s( +QosPolicyCount_s::QosPolicyCount_s( const QosPolicyCount_s& x) { m_policy_id = x.m_policy_id; m_count = x.m_count; } -eprosima::fastdds::statistics::QosPolicyCount_s::QosPolicyCount_s( +QosPolicyCount_s::QosPolicyCount_s( QosPolicyCount_s&& x) noexcept { m_policy_id = x.m_policy_id; m_count = x.m_count; } -eprosima::fastdds::statistics::QosPolicyCount_s& eprosima::fastdds::statistics::QosPolicyCount_s::operator =( +QosPolicyCount_s& QosPolicyCount_s::operator =( const QosPolicyCount_s& x) { m_policy_id = x.m_policy_id; m_count = x.m_count; - return *this; } -eprosima::fastdds::statistics::QosPolicyCount_s& eprosima::fastdds::statistics::QosPolicyCount_s::operator =( +QosPolicyCount_s& QosPolicyCount_s::operator =( QosPolicyCount_s&& x) noexcept { m_policy_id = x.m_policy_id; m_count = x.m_count; - return *this; } -bool eprosima::fastdds::statistics::QosPolicyCount_s::operator ==( +bool QosPolicyCount_s::operator ==( const QosPolicyCount_s& x) const { return (m_policy_id == x.m_policy_id && m_count == x.m_count); } -bool eprosima::fastdds::statistics::QosPolicyCount_s::operator !=( +bool QosPolicyCount_s::operator !=( const QosPolicyCount_s& x) const { return !(*this == x); @@ -308,7 +317,7 @@ bool eprosima::fastdds::statistics::QosPolicyCount_s::operator !=( * @brief This function sets a value in member policy_id * @param _policy_id New value for member policy_id */ -void eprosima::fastdds::statistics::QosPolicyCount_s::policy_id( +void QosPolicyCount_s::policy_id( uint32_t _policy_id) { m_policy_id = _policy_id; @@ -318,7 +327,7 @@ void eprosima::fastdds::statistics::QosPolicyCount_s::policy_id( * @brief This function returns the value of member policy_id * @return Value of member policy_id */ -uint32_t eprosima::fastdds::statistics::QosPolicyCount_s::policy_id() const +uint32_t QosPolicyCount_s::policy_id() const { return m_policy_id; } @@ -327,7 +336,7 @@ uint32_t eprosima::fastdds::statistics::QosPolicyCount_s::policy_id() const * @brief This function returns a reference to member policy_id * @return Reference to member policy_id */ -uint32_t& eprosima::fastdds::statistics::QosPolicyCount_s::policy_id() +uint32_t& QosPolicyCount_s::policy_id() { return m_policy_id; } @@ -337,7 +346,7 @@ uint32_t& eprosima::fastdds::statistics::QosPolicyCount_s::policy_id() * @brief This function sets a value in member count * @param _count New value for member count */ -void eprosima::fastdds::statistics::QosPolicyCount_s::count( +void QosPolicyCount_s::count( uint32_t _count) { m_count = _count; @@ -347,7 +356,7 @@ void eprosima::fastdds::statistics::QosPolicyCount_s::count( * @brief This function returns the value of member count * @return Value of member count */ -uint32_t eprosima::fastdds::statistics::QosPolicyCount_s::count() const +uint32_t QosPolicyCount_s::count() const { return m_count; } @@ -356,58 +365,57 @@ uint32_t eprosima::fastdds::statistics::QosPolicyCount_s::count() const * @brief This function returns a reference to member count * @return Reference to member count */ -uint32_t& eprosima::fastdds::statistics::QosPolicyCount_s::count() +uint32_t& QosPolicyCount_s::count() { return m_count; } -eprosima::fastdds::statistics::BaseStatus_s::BaseStatus_s() -{ + +BaseStatus_s::BaseStatus_s() +{ } -eprosima::fastdds::statistics::BaseStatus_s::~BaseStatus_s() +BaseStatus_s::~BaseStatus_s() { } -eprosima::fastdds::statistics::BaseStatus_s::BaseStatus_s( +BaseStatus_s::BaseStatus_s( const BaseStatus_s& x) { m_total_count = x.m_total_count; } -eprosima::fastdds::statistics::BaseStatus_s::BaseStatus_s( +BaseStatus_s::BaseStatus_s( BaseStatus_s&& x) noexcept { m_total_count = x.m_total_count; } -eprosima::fastdds::statistics::BaseStatus_s& eprosima::fastdds::statistics::BaseStatus_s::operator =( +BaseStatus_s& BaseStatus_s::operator =( const BaseStatus_s& x) { m_total_count = x.m_total_count; - return *this; } -eprosima::fastdds::statistics::BaseStatus_s& eprosima::fastdds::statistics::BaseStatus_s::operator =( +BaseStatus_s& BaseStatus_s::operator =( BaseStatus_s&& x) noexcept { m_total_count = x.m_total_count; - return *this; } -bool eprosima::fastdds::statistics::BaseStatus_s::operator ==( +bool BaseStatus_s::operator ==( const BaseStatus_s& x) const { return (m_total_count == x.m_total_count); } -bool eprosima::fastdds::statistics::BaseStatus_s::operator !=( +bool BaseStatus_s::operator !=( const BaseStatus_s& x) const { return !(*this == x); @@ -417,7 +425,7 @@ bool eprosima::fastdds::statistics::BaseStatus_s::operator !=( * @brief This function sets a value in member total_count * @param _total_count New value for member total_count */ -void eprosima::fastdds::statistics::BaseStatus_s::total_count( +void BaseStatus_s::total_count( uint32_t _total_count) { m_total_count = _total_count; @@ -427,7 +435,7 @@ void eprosima::fastdds::statistics::BaseStatus_s::total_count( * @brief This function returns the value of member total_count * @return Value of member total_count */ -uint32_t eprosima::fastdds::statistics::BaseStatus_s::total_count() const +uint32_t BaseStatus_s::total_count() const { return m_total_count; } @@ -436,23 +444,26 @@ uint32_t eprosima::fastdds::statistics::BaseStatus_s::total_count() const * @brief This function returns a reference to member total_count * @return Reference to member total_count */ -uint32_t& eprosima::fastdds::statistics::BaseStatus_s::total_count() +uint32_t& BaseStatus_s::total_count() { return m_total_count; } -eprosima::fastdds::statistics::IncompatibleQoSStatus_s::IncompatibleQoSStatus_s() -{ + + + +IncompatibleQoSStatus_s::IncompatibleQoSStatus_s() +{ } -eprosima::fastdds::statistics::IncompatibleQoSStatus_s::~IncompatibleQoSStatus_s() +IncompatibleQoSStatus_s::~IncompatibleQoSStatus_s() { } -eprosima::fastdds::statistics::IncompatibleQoSStatus_s::IncompatibleQoSStatus_s( +IncompatibleQoSStatus_s::IncompatibleQoSStatus_s( const IncompatibleQoSStatus_s& x) { m_total_count = x.m_total_count; @@ -460,7 +471,7 @@ eprosima::fastdds::statistics::IncompatibleQoSStatus_s::IncompatibleQoSStatus_s( m_policies = x.m_policies; } -eprosima::fastdds::statistics::IncompatibleQoSStatus_s::IncompatibleQoSStatus_s( +IncompatibleQoSStatus_s::IncompatibleQoSStatus_s( IncompatibleQoSStatus_s&& x) noexcept { m_total_count = x.m_total_count; @@ -468,29 +479,27 @@ eprosima::fastdds::statistics::IncompatibleQoSStatus_s::IncompatibleQoSStatus_s( m_policies = std::move(x.m_policies); } -eprosima::fastdds::statistics::IncompatibleQoSStatus_s& eprosima::fastdds::statistics::IncompatibleQoSStatus_s::operator =( +IncompatibleQoSStatus_s& IncompatibleQoSStatus_s::operator =( const IncompatibleQoSStatus_s& x) { m_total_count = x.m_total_count; m_last_policy_id = x.m_last_policy_id; m_policies = x.m_policies; - return *this; } -eprosima::fastdds::statistics::IncompatibleQoSStatus_s& eprosima::fastdds::statistics::IncompatibleQoSStatus_s::operator =( +IncompatibleQoSStatus_s& IncompatibleQoSStatus_s::operator =( IncompatibleQoSStatus_s&& x) noexcept { m_total_count = x.m_total_count; m_last_policy_id = x.m_last_policy_id; m_policies = std::move(x.m_policies); - return *this; } -bool eprosima::fastdds::statistics::IncompatibleQoSStatus_s::operator ==( +bool IncompatibleQoSStatus_s::operator ==( const IncompatibleQoSStatus_s& x) const { return (m_total_count == x.m_total_count && @@ -498,7 +507,7 @@ bool eprosima::fastdds::statistics::IncompatibleQoSStatus_s::operator ==( m_policies == x.m_policies); } -bool eprosima::fastdds::statistics::IncompatibleQoSStatus_s::operator !=( +bool IncompatibleQoSStatus_s::operator !=( const IncompatibleQoSStatus_s& x) const { return !(*this == x); @@ -508,7 +517,7 @@ bool eprosima::fastdds::statistics::IncompatibleQoSStatus_s::operator !=( * @brief This function sets a value in member total_count * @param _total_count New value for member total_count */ -void eprosima::fastdds::statistics::IncompatibleQoSStatus_s::total_count( +void IncompatibleQoSStatus_s::total_count( uint32_t _total_count) { m_total_count = _total_count; @@ -518,7 +527,7 @@ void eprosima::fastdds::statistics::IncompatibleQoSStatus_s::total_count( * @brief This function returns the value of member total_count * @return Value of member total_count */ -uint32_t eprosima::fastdds::statistics::IncompatibleQoSStatus_s::total_count() const +uint32_t IncompatibleQoSStatus_s::total_count() const { return m_total_count; } @@ -527,7 +536,7 @@ uint32_t eprosima::fastdds::statistics::IncompatibleQoSStatus_s::total_count() c * @brief This function returns a reference to member total_count * @return Reference to member total_count */ -uint32_t& eprosima::fastdds::statistics::IncompatibleQoSStatus_s::total_count() +uint32_t& IncompatibleQoSStatus_s::total_count() { return m_total_count; } @@ -537,7 +546,7 @@ uint32_t& eprosima::fastdds::statistics::IncompatibleQoSStatus_s::total_count() * @brief This function sets a value in member last_policy_id * @param _last_policy_id New value for member last_policy_id */ -void eprosima::fastdds::statistics::IncompatibleQoSStatus_s::last_policy_id( +void IncompatibleQoSStatus_s::last_policy_id( uint32_t _last_policy_id) { m_last_policy_id = _last_policy_id; @@ -547,7 +556,7 @@ void eprosima::fastdds::statistics::IncompatibleQoSStatus_s::last_policy_id( * @brief This function returns the value of member last_policy_id * @return Value of member last_policy_id */ -uint32_t eprosima::fastdds::statistics::IncompatibleQoSStatus_s::last_policy_id() const +uint32_t IncompatibleQoSStatus_s::last_policy_id() const { return m_last_policy_id; } @@ -556,7 +565,7 @@ uint32_t eprosima::fastdds::statistics::IncompatibleQoSStatus_s::last_policy_id( * @brief This function returns a reference to member last_policy_id * @return Reference to member last_policy_id */ -uint32_t& eprosima::fastdds::statistics::IncompatibleQoSStatus_s::last_policy_id() +uint32_t& IncompatibleQoSStatus_s::last_policy_id() { return m_last_policy_id; } @@ -566,7 +575,7 @@ uint32_t& eprosima::fastdds::statistics::IncompatibleQoSStatus_s::last_policy_id * @brief This function copies the value in member policies * @param _policies New value to be copied in member policies */ -void eprosima::fastdds::statistics::IncompatibleQoSStatus_s::policies( +void IncompatibleQoSStatus_s::policies( const eprosima::fastdds::statistics::QosPolicyCountSeq_s& _policies) { m_policies = _policies; @@ -576,7 +585,7 @@ void eprosima::fastdds::statistics::IncompatibleQoSStatus_s::policies( * @brief This function moves the value in member policies * @param _policies New value to be moved in member policies */ -void eprosima::fastdds::statistics::IncompatibleQoSStatus_s::policies( +void IncompatibleQoSStatus_s::policies( eprosima::fastdds::statistics::QosPolicyCountSeq_s&& _policies) { m_policies = std::move(_policies); @@ -586,7 +595,7 @@ void eprosima::fastdds::statistics::IncompatibleQoSStatus_s::policies( * @brief This function returns a constant reference to member policies * @return Constant reference to member policies */ -const eprosima::fastdds::statistics::QosPolicyCountSeq_s& eprosima::fastdds::statistics::IncompatibleQoSStatus_s::policies() const +const eprosima::fastdds::statistics::QosPolicyCountSeq_s& IncompatibleQoSStatus_s::policies() const { return m_policies; } @@ -595,22 +604,23 @@ const eprosima::fastdds::statistics::QosPolicyCountSeq_s& eprosima::fastdds::sta * @brief This function returns a reference to member policies * @return Reference to member policies */ -eprosima::fastdds::statistics::QosPolicyCountSeq_s& eprosima::fastdds::statistics::IncompatibleQoSStatus_s::policies() +eprosima::fastdds::statistics::QosPolicyCountSeq_s& IncompatibleQoSStatus_s::policies() { return m_policies; } -eprosima::fastdds::statistics::LivelinessChangedStatus_s::LivelinessChangedStatus_s() -{ + +LivelinessChangedStatus_s::LivelinessChangedStatus_s() +{ } -eprosima::fastdds::statistics::LivelinessChangedStatus_s::~LivelinessChangedStatus_s() +LivelinessChangedStatus_s::~LivelinessChangedStatus_s() { } -eprosima::fastdds::statistics::LivelinessChangedStatus_s::LivelinessChangedStatus_s( +LivelinessChangedStatus_s::LivelinessChangedStatus_s( const LivelinessChangedStatus_s& x) { m_alive_count = x.m_alive_count; @@ -618,7 +628,7 @@ eprosima::fastdds::statistics::LivelinessChangedStatus_s::LivelinessChangedStatu m_last_publication_handle = x.m_last_publication_handle; } -eprosima::fastdds::statistics::LivelinessChangedStatus_s::LivelinessChangedStatus_s( +LivelinessChangedStatus_s::LivelinessChangedStatus_s( LivelinessChangedStatus_s&& x) noexcept { m_alive_count = x.m_alive_count; @@ -626,29 +636,27 @@ eprosima::fastdds::statistics::LivelinessChangedStatus_s::LivelinessChangedStatu m_last_publication_handle = std::move(x.m_last_publication_handle); } -eprosima::fastdds::statistics::LivelinessChangedStatus_s& eprosima::fastdds::statistics::LivelinessChangedStatus_s::operator =( +LivelinessChangedStatus_s& LivelinessChangedStatus_s::operator =( const LivelinessChangedStatus_s& x) { 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; - return *this; } -eprosima::fastdds::statistics::LivelinessChangedStatus_s& eprosima::fastdds::statistics::LivelinessChangedStatus_s::operator =( +LivelinessChangedStatus_s& LivelinessChangedStatus_s::operator =( LivelinessChangedStatus_s&& x) noexcept { m_alive_count = x.m_alive_count; m_not_alive_count = x.m_not_alive_count; m_last_publication_handle = std::move(x.m_last_publication_handle); - return *this; } -bool eprosima::fastdds::statistics::LivelinessChangedStatus_s::operator ==( +bool LivelinessChangedStatus_s::operator ==( const LivelinessChangedStatus_s& x) const { return (m_alive_count == x.m_alive_count && @@ -656,7 +664,7 @@ bool eprosima::fastdds::statistics::LivelinessChangedStatus_s::operator ==( m_last_publication_handle == x.m_last_publication_handle); } -bool eprosima::fastdds::statistics::LivelinessChangedStatus_s::operator !=( +bool LivelinessChangedStatus_s::operator !=( const LivelinessChangedStatus_s& x) const { return !(*this == x); @@ -666,7 +674,7 @@ bool eprosima::fastdds::statistics::LivelinessChangedStatus_s::operator !=( * @brief This function sets a value in member alive_count * @param _alive_count New value for member alive_count */ -void eprosima::fastdds::statistics::LivelinessChangedStatus_s::alive_count( +void LivelinessChangedStatus_s::alive_count( uint32_t _alive_count) { m_alive_count = _alive_count; @@ -676,7 +684,7 @@ void eprosima::fastdds::statistics::LivelinessChangedStatus_s::alive_count( * @brief This function returns the value of member alive_count * @return Value of member alive_count */ -uint32_t eprosima::fastdds::statistics::LivelinessChangedStatus_s::alive_count() const +uint32_t LivelinessChangedStatus_s::alive_count() const { return m_alive_count; } @@ -685,7 +693,7 @@ uint32_t eprosima::fastdds::statistics::LivelinessChangedStatus_s::alive_count() * @brief This function returns a reference to member alive_count * @return Reference to member alive_count */ -uint32_t& eprosima::fastdds::statistics::LivelinessChangedStatus_s::alive_count() +uint32_t& LivelinessChangedStatus_s::alive_count() { return m_alive_count; } @@ -695,7 +703,7 @@ uint32_t& eprosima::fastdds::statistics::LivelinessChangedStatus_s::alive_count( * @brief This function sets a value in member not_alive_count * @param _not_alive_count New value for member not_alive_count */ -void eprosima::fastdds::statistics::LivelinessChangedStatus_s::not_alive_count( +void LivelinessChangedStatus_s::not_alive_count( uint32_t _not_alive_count) { m_not_alive_count = _not_alive_count; @@ -705,7 +713,7 @@ void eprosima::fastdds::statistics::LivelinessChangedStatus_s::not_alive_count( * @brief This function returns the value of member not_alive_count * @return Value of member not_alive_count */ -uint32_t eprosima::fastdds::statistics::LivelinessChangedStatus_s::not_alive_count() const +uint32_t LivelinessChangedStatus_s::not_alive_count() const { return m_not_alive_count; } @@ -714,7 +722,7 @@ uint32_t eprosima::fastdds::statistics::LivelinessChangedStatus_s::not_alive_cou * @brief This function returns a reference to member not_alive_count * @return Reference to member not_alive_count */ -uint32_t& eprosima::fastdds::statistics::LivelinessChangedStatus_s::not_alive_count() +uint32_t& LivelinessChangedStatus_s::not_alive_count() { return m_not_alive_count; } @@ -724,7 +732,7 @@ uint32_t& eprosima::fastdds::statistics::LivelinessChangedStatus_s::not_alive_co * @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 */ -void eprosima::fastdds::statistics::LivelinessChangedStatus_s::last_publication_handle( +void LivelinessChangedStatus_s::last_publication_handle( const std::array& _last_publication_handle) { m_last_publication_handle = _last_publication_handle; @@ -734,7 +742,7 @@ void eprosima::fastdds::statistics::LivelinessChangedStatus_s::last_publication_ * @brief This function moves the value in member last_publication_handle * @param _last_publication_handle New value to be moved in member last_publication_handle */ -void eprosima::fastdds::statistics::LivelinessChangedStatus_s::last_publication_handle( +void LivelinessChangedStatus_s::last_publication_handle( std::array&& _last_publication_handle) { m_last_publication_handle = std::move(_last_publication_handle); @@ -744,7 +752,7 @@ void eprosima::fastdds::statistics::LivelinessChangedStatus_s::last_publication_ * @brief This function returns a constant reference to member last_publication_handle * @return Constant reference to member last_publication_handle */ -const std::array& eprosima::fastdds::statistics::LivelinessChangedStatus_s::last_publication_handle() const +const std::array& LivelinessChangedStatus_s::last_publication_handle() const { return m_last_publication_handle; } @@ -753,63 +761,62 @@ const std::array& eprosima::fastdds::statistics::LivelinessChangedS * @brief This function returns a reference to member last_publication_handle * @return Reference to member last_publication_handle */ -std::array& eprosima::fastdds::statistics::LivelinessChangedStatus_s::last_publication_handle() +std::array& LivelinessChangedStatus_s::last_publication_handle() { return m_last_publication_handle; } -eprosima::fastdds::statistics::DeadlineMissedStatus_s::DeadlineMissedStatus_s() -{ + +DeadlineMissedStatus_s::DeadlineMissedStatus_s() +{ } -eprosima::fastdds::statistics::DeadlineMissedStatus_s::~DeadlineMissedStatus_s() +DeadlineMissedStatus_s::~DeadlineMissedStatus_s() { } -eprosima::fastdds::statistics::DeadlineMissedStatus_s::DeadlineMissedStatus_s( +DeadlineMissedStatus_s::DeadlineMissedStatus_s( const DeadlineMissedStatus_s& x) { m_total_count = x.m_total_count; m_last_instance_handle = x.m_last_instance_handle; } -eprosima::fastdds::statistics::DeadlineMissedStatus_s::DeadlineMissedStatus_s( +DeadlineMissedStatus_s::DeadlineMissedStatus_s( DeadlineMissedStatus_s&& x) noexcept { m_total_count = x.m_total_count; m_last_instance_handle = std::move(x.m_last_instance_handle); } -eprosima::fastdds::statistics::DeadlineMissedStatus_s& eprosima::fastdds::statistics::DeadlineMissedStatus_s::operator =( +DeadlineMissedStatus_s& DeadlineMissedStatus_s::operator =( const DeadlineMissedStatus_s& x) { m_total_count = x.m_total_count; m_last_instance_handle = x.m_last_instance_handle; - return *this; } -eprosima::fastdds::statistics::DeadlineMissedStatus_s& eprosima::fastdds::statistics::DeadlineMissedStatus_s::operator =( +DeadlineMissedStatus_s& DeadlineMissedStatus_s::operator =( DeadlineMissedStatus_s&& x) noexcept { m_total_count = x.m_total_count; m_last_instance_handle = std::move(x.m_last_instance_handle); - return *this; } -bool eprosima::fastdds::statistics::DeadlineMissedStatus_s::operator ==( +bool DeadlineMissedStatus_s::operator ==( const DeadlineMissedStatus_s& x) const { return (m_total_count == x.m_total_count && m_last_instance_handle == x.m_last_instance_handle); } -bool eprosima::fastdds::statistics::DeadlineMissedStatus_s::operator !=( +bool DeadlineMissedStatus_s::operator !=( const DeadlineMissedStatus_s& x) const { return !(*this == x); @@ -819,7 +826,7 @@ bool eprosima::fastdds::statistics::DeadlineMissedStatus_s::operator !=( * @brief This function sets a value in member total_count * @param _total_count New value for member total_count */ -void eprosima::fastdds::statistics::DeadlineMissedStatus_s::total_count( +void DeadlineMissedStatus_s::total_count( uint32_t _total_count) { m_total_count = _total_count; @@ -829,7 +836,7 @@ void eprosima::fastdds::statistics::DeadlineMissedStatus_s::total_count( * @brief This function returns the value of member total_count * @return Value of member total_count */ -uint32_t eprosima::fastdds::statistics::DeadlineMissedStatus_s::total_count() const +uint32_t DeadlineMissedStatus_s::total_count() const { return m_total_count; } @@ -838,7 +845,7 @@ uint32_t eprosima::fastdds::statistics::DeadlineMissedStatus_s::total_count() co * @brief This function returns a reference to member total_count * @return Reference to member total_count */ -uint32_t& eprosima::fastdds::statistics::DeadlineMissedStatus_s::total_count() +uint32_t& DeadlineMissedStatus_s::total_count() { return m_total_count; } @@ -848,7 +855,7 @@ uint32_t& eprosima::fastdds::statistics::DeadlineMissedStatus_s::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 */ -void eprosima::fastdds::statistics::DeadlineMissedStatus_s::last_instance_handle( +void DeadlineMissedStatus_s::last_instance_handle( const std::array& _last_instance_handle) { m_last_instance_handle = _last_instance_handle; @@ -858,7 +865,7 @@ void eprosima::fastdds::statistics::DeadlineMissedStatus_s::last_instance_handle * @brief This function moves the value in member last_instance_handle * @param _last_instance_handle New value to be moved in member last_instance_handle */ -void eprosima::fastdds::statistics::DeadlineMissedStatus_s::last_instance_handle( +void DeadlineMissedStatus_s::last_instance_handle( std::array&& _last_instance_handle) { m_last_instance_handle = std::move(_last_instance_handle); @@ -868,7 +875,7 @@ void eprosima::fastdds::statistics::DeadlineMissedStatus_s::last_instance_handle * @brief This function returns a constant reference to member last_instance_handle * @return Constant reference to member last_instance_handle */ -const std::array& eprosima::fastdds::statistics::DeadlineMissedStatus_s::last_instance_handle() const +const std::array& DeadlineMissedStatus_s::last_instance_handle() const { return m_last_instance_handle; } @@ -877,7 +884,7 @@ const std::array& eprosima::fastdds::statistics::DeadlineMissedStat * @brief This function returns a reference to member last_instance_handle * @return Reference to member last_instance_handle */ -std::array& eprosima::fastdds::statistics::DeadlineMissedStatus_s::last_instance_handle() +std::array& DeadlineMissedStatus_s::last_instance_handle() { return m_last_instance_handle; } @@ -887,16 +894,18 @@ std::array& eprosima::fastdds::statistics::DeadlineMissedStatus_s:: -eprosima::fastdds::statistics::MonitorServiceData::MonitorServiceData() + + +MonitorServiceData::MonitorServiceData() { m__d = eprosima::fastdds::statistics::PROXY; } -eprosima::fastdds::statistics::MonitorServiceData::~MonitorServiceData() +MonitorServiceData::~MonitorServiceData() { } -eprosima::fastdds::statistics::MonitorServiceData::MonitorServiceData( +MonitorServiceData::MonitorServiceData( const MonitorServiceData& x) { m__d = x.m__d; @@ -952,7 +961,7 @@ eprosima::fastdds::statistics::MonitorServiceData::MonitorServiceData( } } -eprosima::fastdds::statistics::MonitorServiceData::MonitorServiceData( +MonitorServiceData::MonitorServiceData( MonitorServiceData&& x) noexcept { m__d = x.m__d; @@ -1016,7 +1025,7 @@ eprosima::fastdds::statistics::MonitorServiceData::MonitorServiceData( } } -eprosima::fastdds::statistics::MonitorServiceData& eprosima::fastdds::statistics::MonitorServiceData::operator =( +MonitorServiceData& MonitorServiceData::operator =( const MonitorServiceData& x) { m__d = x.m__d; @@ -1074,7 +1083,7 @@ eprosima::fastdds::statistics::MonitorServiceData& eprosima::fastdds::statistics return *this; } -eprosima::fastdds::statistics::MonitorServiceData& eprosima::fastdds::statistics::MonitorServiceData::operator =( +MonitorServiceData& MonitorServiceData::operator =( MonitorServiceData&& x) noexcept { m__d = x.m__d; @@ -1140,7 +1149,7 @@ eprosima::fastdds::statistics::MonitorServiceData& eprosima::fastdds::statistics return *this; } -bool eprosima::fastdds::statistics::MonitorServiceData::operator ==( +bool MonitorServiceData::operator ==( const MonitorServiceData& x) const { if (m__d != x.m__d) @@ -1200,13 +1209,13 @@ bool eprosima::fastdds::statistics::MonitorServiceData::operator ==( return false; } -bool eprosima::fastdds::statistics::MonitorServiceData::operator !=( +bool MonitorServiceData::operator !=( const MonitorServiceData& x) const { return !(*this == x); } -void eprosima::fastdds::statistics::MonitorServiceData::_d( +void MonitorServiceData::_d( eprosima::fastdds::statistics::StatusKind __d) { bool b = false; @@ -1320,6 +1329,8 @@ void eprosima::fastdds::statistics::MonitorServiceData::_d( } break; + default: + break; } if (!b) @@ -1330,17 +1341,17 @@ void eprosima::fastdds::statistics::MonitorServiceData::_d( m__d = __d; } -eprosima::fastdds::statistics::StatusKind eprosima::fastdds::statistics::MonitorServiceData::_d() const +eprosima::fastdds::statistics::StatusKind MonitorServiceData::_d() const { return m__d; } -eprosima::fastdds::statistics::StatusKind& eprosima::fastdds::statistics::MonitorServiceData::_d() +eprosima::fastdds::statistics::StatusKind& MonitorServiceData::_d() { return m__d; } -void eprosima::fastdds::statistics::MonitorServiceData::entity_proxy( +void MonitorServiceData::entity_proxy( const std::vector& _entity_proxy) { m_entity_proxy = _entity_proxy; @@ -1348,7 +1359,7 @@ void eprosima::fastdds::statistics::MonitorServiceData::entity_proxy( } -void eprosima::fastdds::statistics::MonitorServiceData::entity_proxy( +void MonitorServiceData::entity_proxy( std::vector&& _entity_proxy) { m_entity_proxy = std::move(_entity_proxy); @@ -1356,7 +1367,7 @@ void eprosima::fastdds::statistics::MonitorServiceData::entity_proxy( } -const std::vector& eprosima::fastdds::statistics::MonitorServiceData::entity_proxy() const +const std::vector& MonitorServiceData::entity_proxy() const { bool b = false; @@ -1377,7 +1388,7 @@ const std::vector& eprosima::fastdds::statistics::MonitorServiceData::e return m_entity_proxy; } -std::vector& eprosima::fastdds::statistics::MonitorServiceData::entity_proxy() +std::vector& MonitorServiceData::entity_proxy() { bool b = false; @@ -1399,7 +1410,7 @@ std::vector& eprosima::fastdds::statistics::MonitorServiceData::entity_ } -void eprosima::fastdds::statistics::MonitorServiceData::connection_list( +void MonitorServiceData::connection_list( const std::vector& _connection_list) { m_connection_list = _connection_list; @@ -1407,7 +1418,7 @@ void eprosima::fastdds::statistics::MonitorServiceData::connection_list( } -void eprosima::fastdds::statistics::MonitorServiceData::connection_list( +void MonitorServiceData::connection_list( std::vector&& _connection_list) { m_connection_list = std::move(_connection_list); @@ -1415,7 +1426,7 @@ void eprosima::fastdds::statistics::MonitorServiceData::connection_list( } -const std::vector& eprosima::fastdds::statistics::MonitorServiceData::connection_list() const +const std::vector& MonitorServiceData::connection_list() const { bool b = false; @@ -1436,7 +1447,7 @@ const std::vector& eprosima::fastdds: return m_connection_list; } -std::vector& eprosima::fastdds::statistics::MonitorServiceData::connection_list() +std::vector& MonitorServiceData::connection_list() { bool b = false; @@ -1458,7 +1469,7 @@ std::vector& eprosima::fastdds::stati } -void eprosima::fastdds::statistics::MonitorServiceData::incompatible_qos_status( +void MonitorServiceData::incompatible_qos_status( const eprosima::fastdds::statistics::IncompatibleQoSStatus_s& _incompatible_qos_status) { m_incompatible_qos_status = _incompatible_qos_status; @@ -1466,7 +1477,7 @@ void eprosima::fastdds::statistics::MonitorServiceData::incompatible_qos_status( } -void eprosima::fastdds::statistics::MonitorServiceData::incompatible_qos_status( +void MonitorServiceData::incompatible_qos_status( eprosima::fastdds::statistics::IncompatibleQoSStatus_s&& _incompatible_qos_status) { m_incompatible_qos_status = std::move(_incompatible_qos_status); @@ -1474,7 +1485,7 @@ void eprosima::fastdds::statistics::MonitorServiceData::incompatible_qos_status( } -const eprosima::fastdds::statistics::IncompatibleQoSStatus_s& eprosima::fastdds::statistics::MonitorServiceData::incompatible_qos_status() const +const eprosima::fastdds::statistics::IncompatibleQoSStatus_s& MonitorServiceData::incompatible_qos_status() const { bool b = false; @@ -1495,7 +1506,7 @@ const eprosima::fastdds::statistics::IncompatibleQoSStatus_s& eprosima::fastdds: return m_incompatible_qos_status; } -eprosima::fastdds::statistics::IncompatibleQoSStatus_s& eprosima::fastdds::statistics::MonitorServiceData::incompatible_qos_status() +eprosima::fastdds::statistics::IncompatibleQoSStatus_s& MonitorServiceData::incompatible_qos_status() { bool b = false; @@ -1517,7 +1528,7 @@ eprosima::fastdds::statistics::IncompatibleQoSStatus_s& eprosima::fastdds::stati } -void eprosima::fastdds::statistics::MonitorServiceData::inconsistent_topic_status( +void MonitorServiceData::inconsistent_topic_status( const eprosima::fastdds::statistics::InconsistentTopicStatus_s& _inconsistent_topic_status) { m_inconsistent_topic_status = _inconsistent_topic_status; @@ -1525,7 +1536,7 @@ void eprosima::fastdds::statistics::MonitorServiceData::inconsistent_topic_statu } -void eprosima::fastdds::statistics::MonitorServiceData::inconsistent_topic_status( +void MonitorServiceData::inconsistent_topic_status( eprosima::fastdds::statistics::InconsistentTopicStatus_s&& _inconsistent_topic_status) { m_inconsistent_topic_status = std::move(_inconsistent_topic_status); @@ -1533,7 +1544,7 @@ void eprosima::fastdds::statistics::MonitorServiceData::inconsistent_topic_statu } -const eprosima::fastdds::statistics::InconsistentTopicStatus_s& eprosima::fastdds::statistics::MonitorServiceData::inconsistent_topic_status() const +const eprosima::fastdds::statistics::InconsistentTopicStatus_s& MonitorServiceData::inconsistent_topic_status() const { bool b = false; @@ -1554,7 +1565,7 @@ const eprosima::fastdds::statistics::InconsistentTopicStatus_s& eprosima::fastdd return m_inconsistent_topic_status; } -eprosima::fastdds::statistics::InconsistentTopicStatus_s& eprosima::fastdds::statistics::MonitorServiceData::inconsistent_topic_status() +eprosima::fastdds::statistics::InconsistentTopicStatus_s& MonitorServiceData::inconsistent_topic_status() { bool b = false; @@ -1576,7 +1587,7 @@ eprosima::fastdds::statistics::InconsistentTopicStatus_s& eprosima::fastdds::sta } -void eprosima::fastdds::statistics::MonitorServiceData::liveliness_lost_status( +void MonitorServiceData::liveliness_lost_status( const eprosima::fastdds::statistics::LivelinessLostStatus_s& _liveliness_lost_status) { m_liveliness_lost_status = _liveliness_lost_status; @@ -1584,7 +1595,7 @@ void eprosima::fastdds::statistics::MonitorServiceData::liveliness_lost_status( } -void eprosima::fastdds::statistics::MonitorServiceData::liveliness_lost_status( +void MonitorServiceData::liveliness_lost_status( eprosima::fastdds::statistics::LivelinessLostStatus_s&& _liveliness_lost_status) { m_liveliness_lost_status = std::move(_liveliness_lost_status); @@ -1592,7 +1603,7 @@ void eprosima::fastdds::statistics::MonitorServiceData::liveliness_lost_status( } -const eprosima::fastdds::statistics::LivelinessLostStatus_s& eprosima::fastdds::statistics::MonitorServiceData::liveliness_lost_status() const +const eprosima::fastdds::statistics::LivelinessLostStatus_s& MonitorServiceData::liveliness_lost_status() const { bool b = false; @@ -1613,7 +1624,7 @@ const eprosima::fastdds::statistics::LivelinessLostStatus_s& eprosima::fastdds:: return m_liveliness_lost_status; } -eprosima::fastdds::statistics::LivelinessLostStatus_s& eprosima::fastdds::statistics::MonitorServiceData::liveliness_lost_status() +eprosima::fastdds::statistics::LivelinessLostStatus_s& MonitorServiceData::liveliness_lost_status() { bool b = false; @@ -1635,7 +1646,7 @@ eprosima::fastdds::statistics::LivelinessLostStatus_s& eprosima::fastdds::statis } -void eprosima::fastdds::statistics::MonitorServiceData::liveliness_changed_status( +void MonitorServiceData::liveliness_changed_status( const eprosima::fastdds::statistics::LivelinessChangedStatus_s& _liveliness_changed_status) { m_liveliness_changed_status = _liveliness_changed_status; @@ -1643,7 +1654,7 @@ void eprosima::fastdds::statistics::MonitorServiceData::liveliness_changed_statu } -void eprosima::fastdds::statistics::MonitorServiceData::liveliness_changed_status( +void MonitorServiceData::liveliness_changed_status( eprosima::fastdds::statistics::LivelinessChangedStatus_s&& _liveliness_changed_status) { m_liveliness_changed_status = std::move(_liveliness_changed_status); @@ -1651,7 +1662,7 @@ void eprosima::fastdds::statistics::MonitorServiceData::liveliness_changed_statu } -const eprosima::fastdds::statistics::LivelinessChangedStatus_s& eprosima::fastdds::statistics::MonitorServiceData::liveliness_changed_status() const +const eprosima::fastdds::statistics::LivelinessChangedStatus_s& MonitorServiceData::liveliness_changed_status() const { bool b = false; @@ -1672,7 +1683,7 @@ const eprosima::fastdds::statistics::LivelinessChangedStatus_s& eprosima::fastdd return m_liveliness_changed_status; } -eprosima::fastdds::statistics::LivelinessChangedStatus_s& eprosima::fastdds::statistics::MonitorServiceData::liveliness_changed_status() +eprosima::fastdds::statistics::LivelinessChangedStatus_s& MonitorServiceData::liveliness_changed_status() { bool b = false; @@ -1694,7 +1705,7 @@ eprosima::fastdds::statistics::LivelinessChangedStatus_s& eprosima::fastdds::sta } -void eprosima::fastdds::statistics::MonitorServiceData::deadline_missed_status( +void MonitorServiceData::deadline_missed_status( const eprosima::fastdds::statistics::DeadlineMissedStatus_s& _deadline_missed_status) { m_deadline_missed_status = _deadline_missed_status; @@ -1702,7 +1713,7 @@ void eprosima::fastdds::statistics::MonitorServiceData::deadline_missed_status( } -void eprosima::fastdds::statistics::MonitorServiceData::deadline_missed_status( +void MonitorServiceData::deadline_missed_status( eprosima::fastdds::statistics::DeadlineMissedStatus_s&& _deadline_missed_status) { m_deadline_missed_status = std::move(_deadline_missed_status); @@ -1710,7 +1721,7 @@ void eprosima::fastdds::statistics::MonitorServiceData::deadline_missed_status( } -const eprosima::fastdds::statistics::DeadlineMissedStatus_s& eprosima::fastdds::statistics::MonitorServiceData::deadline_missed_status() const +const eprosima::fastdds::statistics::DeadlineMissedStatus_s& MonitorServiceData::deadline_missed_status() const { bool b = false; @@ -1731,7 +1742,7 @@ const eprosima::fastdds::statistics::DeadlineMissedStatus_s& eprosima::fastdds:: return m_deadline_missed_status; } -eprosima::fastdds::statistics::DeadlineMissedStatus_s& eprosima::fastdds::statistics::MonitorServiceData::deadline_missed_status() +eprosima::fastdds::statistics::DeadlineMissedStatus_s& MonitorServiceData::deadline_missed_status() { bool b = false; @@ -1753,7 +1764,7 @@ eprosima::fastdds::statistics::DeadlineMissedStatus_s& eprosima::fastdds::statis } -void eprosima::fastdds::statistics::MonitorServiceData::sample_lost_status( +void MonitorServiceData::sample_lost_status( const eprosima::fastdds::statistics::SampleLostStatus_s& _sample_lost_status) { m_sample_lost_status = _sample_lost_status; @@ -1761,7 +1772,7 @@ void eprosima::fastdds::statistics::MonitorServiceData::sample_lost_status( } -void eprosima::fastdds::statistics::MonitorServiceData::sample_lost_status( +void MonitorServiceData::sample_lost_status( eprosima::fastdds::statistics::SampleLostStatus_s&& _sample_lost_status) { m_sample_lost_status = std::move(_sample_lost_status); @@ -1769,7 +1780,7 @@ void eprosima::fastdds::statistics::MonitorServiceData::sample_lost_status( } -const eprosima::fastdds::statistics::SampleLostStatus_s& eprosima::fastdds::statistics::MonitorServiceData::sample_lost_status() const +const eprosima::fastdds::statistics::SampleLostStatus_s& MonitorServiceData::sample_lost_status() const { bool b = false; @@ -1790,7 +1801,7 @@ const eprosima::fastdds::statistics::SampleLostStatus_s& eprosima::fastdds::stat return m_sample_lost_status; } -eprosima::fastdds::statistics::SampleLostStatus_s& eprosima::fastdds::statistics::MonitorServiceData::sample_lost_status() +eprosima::fastdds::statistics::SampleLostStatus_s& MonitorServiceData::sample_lost_status() { bool b = false; @@ -1812,7 +1823,7 @@ eprosima::fastdds::statistics::SampleLostStatus_s& eprosima::fastdds::statistics } -void eprosima::fastdds::statistics::MonitorServiceData::statuses_size( +void MonitorServiceData::statuses_size( uint8_t _statuses_size) { m_statuses_size = _statuses_size; @@ -1820,7 +1831,7 @@ void eprosima::fastdds::statistics::MonitorServiceData::statuses_size( } -uint8_t eprosima::fastdds::statistics::MonitorServiceData::statuses_size() const +uint8_t MonitorServiceData::statuses_size() const { bool b = false; @@ -1841,7 +1852,7 @@ uint8_t eprosima::fastdds::statistics::MonitorServiceData::statuses_size() const return m_statuses_size; } -uint8_t& eprosima::fastdds::statistics::MonitorServiceData::statuses_size() +uint8_t& MonitorServiceData::statuses_size() { bool b = false; @@ -1863,16 +1874,17 @@ uint8_t& eprosima::fastdds::statistics::MonitorServiceData::statuses_size() } -eprosima::fastdds::statistics::MonitorServiceStatusData::MonitorServiceStatusData() -{ + +MonitorServiceStatusData::MonitorServiceStatusData() +{ } -eprosima::fastdds::statistics::MonitorServiceStatusData::~MonitorServiceStatusData() +MonitorServiceStatusData::~MonitorServiceStatusData() { } -eprosima::fastdds::statistics::MonitorServiceStatusData::MonitorServiceStatusData( +MonitorServiceStatusData::MonitorServiceStatusData( const MonitorServiceStatusData& x) { m_local_entity = x.m_local_entity; @@ -1880,7 +1892,7 @@ eprosima::fastdds::statistics::MonitorServiceStatusData::MonitorServiceStatusDat m_value = x.m_value; } -eprosima::fastdds::statistics::MonitorServiceStatusData::MonitorServiceStatusData( +MonitorServiceStatusData::MonitorServiceStatusData( MonitorServiceStatusData&& x) noexcept { m_local_entity = std::move(x.m_local_entity); @@ -1888,29 +1900,27 @@ eprosima::fastdds::statistics::MonitorServiceStatusData::MonitorServiceStatusDat m_value = std::move(x.m_value); } -eprosima::fastdds::statistics::MonitorServiceStatusData& eprosima::fastdds::statistics::MonitorServiceStatusData::operator =( +MonitorServiceStatusData& MonitorServiceStatusData::operator =( const MonitorServiceStatusData& x) { m_local_entity = x.m_local_entity; m_status_kind = x.m_status_kind; m_value = x.m_value; - return *this; } -eprosima::fastdds::statistics::MonitorServiceStatusData& eprosima::fastdds::statistics::MonitorServiceStatusData::operator =( +MonitorServiceStatusData& MonitorServiceStatusData::operator =( MonitorServiceStatusData&& x) noexcept { m_local_entity = std::move(x.m_local_entity); m_status_kind = x.m_status_kind; m_value = std::move(x.m_value); - return *this; } -bool eprosima::fastdds::statistics::MonitorServiceStatusData::operator ==( +bool MonitorServiceStatusData::operator ==( const MonitorServiceStatusData& x) const { return (m_local_entity == x.m_local_entity && @@ -1918,7 +1928,7 @@ bool eprosima::fastdds::statistics::MonitorServiceStatusData::operator ==( m_value == x.m_value); } -bool eprosima::fastdds::statistics::MonitorServiceStatusData::operator !=( +bool MonitorServiceStatusData::operator !=( const MonitorServiceStatusData& x) const { return !(*this == x); @@ -1928,7 +1938,7 @@ bool eprosima::fastdds::statistics::MonitorServiceStatusData::operator !=( * @brief This function copies the value in member local_entity * @param _local_entity New value to be copied in member local_entity */ -void eprosima::fastdds::statistics::MonitorServiceStatusData::local_entity( +void MonitorServiceStatusData::local_entity( const eprosima::fastdds::statistics::detail::GUID_s& _local_entity) { m_local_entity = _local_entity; @@ -1938,7 +1948,7 @@ void eprosima::fastdds::statistics::MonitorServiceStatusData::local_entity( * @brief This function moves the value in member local_entity * @param _local_entity New value to be moved in member local_entity */ -void eprosima::fastdds::statistics::MonitorServiceStatusData::local_entity( +void MonitorServiceStatusData::local_entity( eprosima::fastdds::statistics::detail::GUID_s&& _local_entity) { m_local_entity = std::move(_local_entity); @@ -1948,7 +1958,7 @@ void eprosima::fastdds::statistics::MonitorServiceStatusData::local_entity( * @brief This function returns a constant reference to member local_entity * @return Constant reference to member local_entity */ -const eprosima::fastdds::statistics::detail::GUID_s& eprosima::fastdds::statistics::MonitorServiceStatusData::local_entity() const +const eprosima::fastdds::statistics::detail::GUID_s& MonitorServiceStatusData::local_entity() const { return m_local_entity; } @@ -1957,7 +1967,7 @@ const eprosima::fastdds::statistics::detail::GUID_s& eprosima::fastdds::statisti * @brief This function returns a reference to member local_entity * @return Reference to member local_entity */ -eprosima::fastdds::statistics::detail::GUID_s& eprosima::fastdds::statistics::MonitorServiceStatusData::local_entity() +eprosima::fastdds::statistics::detail::GUID_s& MonitorServiceStatusData::local_entity() { return m_local_entity; } @@ -1967,7 +1977,7 @@ eprosima::fastdds::statistics::detail::GUID_s& eprosima::fastdds::statistics::Mo * @brief This function sets a value in member status_kind * @param _status_kind New value for member status_kind */ -void eprosima::fastdds::statistics::MonitorServiceStatusData::status_kind( +void MonitorServiceStatusData::status_kind( eprosima::fastdds::statistics::StatusKind _status_kind) { m_status_kind = _status_kind; @@ -1977,7 +1987,7 @@ void eprosima::fastdds::statistics::MonitorServiceStatusData::status_kind( * @brief This function returns the value of member status_kind * @return Value of member status_kind */ -eprosima::fastdds::statistics::StatusKind eprosima::fastdds::statistics::MonitorServiceStatusData::status_kind() const +eprosima::fastdds::statistics::StatusKind MonitorServiceStatusData::status_kind() const { return m_status_kind; } @@ -1986,7 +1996,7 @@ eprosima::fastdds::statistics::StatusKind eprosima::fastdds::statistics::Monitor * @brief This function returns a reference to member status_kind * @return Reference to member status_kind */ -eprosima::fastdds::statistics::StatusKind& eprosima::fastdds::statistics::MonitorServiceStatusData::status_kind() +eprosima::fastdds::statistics::StatusKind& MonitorServiceStatusData::status_kind() { return m_status_kind; } @@ -1996,7 +2006,7 @@ eprosima::fastdds::statistics::StatusKind& eprosima::fastdds::statistics::Monito * @brief This function copies the value in member value * @param _value New value to be copied in member value */ -void eprosima::fastdds::statistics::MonitorServiceStatusData::value( +void MonitorServiceStatusData::value( const eprosima::fastdds::statistics::MonitorServiceData& _value) { m_value = _value; @@ -2006,7 +2016,7 @@ void eprosima::fastdds::statistics::MonitorServiceStatusData::value( * @brief This function moves the value in member value * @param _value New value to be moved in member value */ -void eprosima::fastdds::statistics::MonitorServiceStatusData::value( +void MonitorServiceStatusData::value( eprosima::fastdds::statistics::MonitorServiceData&& _value) { m_value = std::move(_value); @@ -2016,7 +2026,7 @@ void eprosima::fastdds::statistics::MonitorServiceStatusData::value( * @brief This function returns a constant reference to member value * @return Constant reference to member value */ -const eprosima::fastdds::statistics::MonitorServiceData& eprosima::fastdds::statistics::MonitorServiceStatusData::value() const +const eprosima::fastdds::statistics::MonitorServiceData& MonitorServiceStatusData::value() const { return m_value; } @@ -2025,7 +2035,7 @@ const eprosima::fastdds::statistics::MonitorServiceData& eprosima::fastdds::stat * @brief This function returns a reference to member value * @return Reference to member value */ -eprosima::fastdds::statistics::MonitorServiceData& eprosima::fastdds::statistics::MonitorServiceStatusData::value() +eprosima::fastdds::statistics::MonitorServiceData& MonitorServiceStatusData::value() { return m_value; } @@ -2033,6 +2043,14 @@ eprosima::fastdds::statistics::MonitorServiceData& eprosima::fastdds::statistics +} // namespace statistics + +} // namespace fastdds + + +} // namespace eprosima // Include auxiliary functions like for serializing/deserializing. #include "monitorservice_typesCdrAux.ipp" + +#endif // FASTCDR_VERSION_MAJOR > 1 diff --git a/src/cpp/statistics/types/monitorservice_types.h b/src/cpp/statistics/types/monitorservice_types.h index 0998a7eeee9..08f713a0ee3 100644 --- a/src/cpp/statistics/types/monitorservice_types.h +++ b/src/cpp/statistics/types/monitorservice_types.h @@ -19,6 +19,11 @@ * This file was generated by the tool fastddsgen. */ +#include +#include "monitorservice_typesv1.h" + +#if FASTCDR_VERSION_MAJOR > 1 + #ifndef _FAST_DDS_GENERATED_EPROSIMA_FASTDDS_STATISTICS_MONITORSERVICE_TYPES_H_ #define _FAST_DDS_GENERATED_EPROSIMA_FASTDDS_STATISTICS_MONITORSERVICE_TYPES_H_ @@ -30,6 +35,7 @@ #include #include +#include #include #include "types.h" @@ -69,1267 +75,1296 @@ class CdrSizeCalculator; namespace eprosima { - namespace fastdds { - namespace statistics { - /*! - * @brief This class represents the enumeration ConnectionMode defined by the user in the IDL file. - * @ingroup monitorservice_types - */ - enum ConnectionMode : uint32_t - { - DATA_SHARING, - INTRAPROCESS, - TRANSPORT - }; - /*! - * @brief This class represents the structure Connection defined by the user in the IDL file. - * @ingroup monitorservice_types - */ - class Connection - { - public: - - /*! - * @brief Default constructor. - */ - eProsima_user_DllExport Connection(); - - /*! - * @brief Default destructor. - */ - eProsima_user_DllExport ~Connection(); - - /*! - * @brief Copy constructor. - * @param x Reference to the object eprosima::fastdds::statistics::Connection that will be copied. - */ - eProsima_user_DllExport Connection( - const Connection& x); - - /*! - * @brief Move constructor. - * @param x Reference to the object eprosima::fastdds::statistics::Connection that will be copied. - */ - eProsima_user_DllExport Connection( - Connection&& x) noexcept; - - /*! - * @brief Copy assignment. - * @param x Reference to the object eprosima::fastdds::statistics::Connection that will be copied. - */ - eProsima_user_DllExport Connection& operator =( - const Connection& x); - - /*! - * @brief Move assignment. - * @param x Reference to the object eprosima::fastdds::statistics::Connection that will be copied. - */ - eProsima_user_DllExport Connection& operator =( - Connection&& x) noexcept; - - /*! - * @brief Comparison operator. - * @param x eprosima::fastdds::statistics::Connection object to compare. - */ - eProsima_user_DllExport bool operator ==( - const Connection& x) const; - - /*! - * @brief Comparison operator. - * @param x eprosima::fastdds::statistics::Connection object to compare. - */ - eProsima_user_DllExport bool operator !=( - const Connection& x) const; - - /*! - * @brief This function sets a value in member mode - * @param _mode New value for member mode - */ - eProsima_user_DllExport void mode( - eprosima::fastdds::statistics::ConnectionMode _mode); - - /*! - * @brief This function returns the value of member mode - * @return Value of member mode - */ - eProsima_user_DllExport eprosima::fastdds::statistics::ConnectionMode mode() const; - - /*! - * @brief This function returns a reference to member mode - * @return Reference to member mode - */ - eProsima_user_DllExport eprosima::fastdds::statistics::ConnectionMode& mode(); - - - /*! - * @brief This function copies the value in member guid - * @param _guid New value to be copied in member guid - */ - eProsima_user_DllExport void guid( - const eprosima::fastdds::statistics::detail::GUID_s& _guid); - - /*! - * @brief This function moves the value in member guid - * @param _guid New value to be moved in member guid - */ - eProsima_user_DllExport void guid( - eprosima::fastdds::statistics::detail::GUID_s&& _guid); - - /*! - * @brief This function returns a constant reference to member guid - * @return Constant reference to member guid - */ - eProsima_user_DllExport const eprosima::fastdds::statistics::detail::GUID_s& guid() const; - - /*! - * @brief This function returns a reference to member guid - * @return Reference to member guid - */ - eProsima_user_DllExport eprosima::fastdds::statistics::detail::GUID_s& guid(); - - - /*! - * @brief This function copies the value in member announced_locators - * @param _announced_locators New value to be copied in member announced_locators - */ - eProsima_user_DllExport void announced_locators( - const std::vector& _announced_locators); - - /*! - * @brief This function moves the value in member announced_locators - * @param _announced_locators New value to be moved in member announced_locators - */ - eProsima_user_DllExport void announced_locators( - std::vector&& _announced_locators); - - /*! - * @brief This function returns a constant reference to member announced_locators - * @return Constant reference to member announced_locators - */ - eProsima_user_DllExport const std::vector& announced_locators() const; - - /*! - * @brief This function returns a reference to member announced_locators - * @return Reference to member announced_locators - */ - eProsima_user_DllExport std::vector& announced_locators(); - - - /*! - * @brief This function copies the value in member used_locators - * @param _used_locators New value to be copied in member used_locators - */ - eProsima_user_DllExport void used_locators( - const std::vector& _used_locators); - - /*! - * @brief This function moves the value in member used_locators - * @param _used_locators New value to be moved in member used_locators - */ - eProsima_user_DllExport void used_locators( - std::vector&& _used_locators); - - /*! - * @brief This function returns a constant reference to member used_locators - * @return Constant reference to member used_locators - */ - eProsima_user_DllExport const std::vector& used_locators() const; - - /*! - * @brief This function returns a reference to member used_locators - * @return Reference to member used_locators - */ - eProsima_user_DllExport std::vector& used_locators(); - - private: - - eprosima::fastdds::statistics::ConnectionMode m_mode{eprosima::fastdds::statistics::DATA_SHARING}; - eprosima::fastdds::statistics::detail::GUID_s m_guid; - std::vector m_announced_locators; - std::vector m_used_locators; - - }; - /*! - * @brief This class represents the structure QosPolicyCount_s defined by the user in the IDL file. - * @ingroup monitorservice_types - */ - class QosPolicyCount_s - { - public: - - /*! - * @brief Default constructor. - */ - eProsima_user_DllExport QosPolicyCount_s(); - - /*! - * @brief Default destructor. - */ - eProsima_user_DllExport ~QosPolicyCount_s(); - - /*! - * @brief Copy constructor. - * @param x Reference to the object eprosima::fastdds::statistics::QosPolicyCount_s that will be copied. - */ - eProsima_user_DllExport QosPolicyCount_s( - const QosPolicyCount_s& x); - - /*! - * @brief Move constructor. - * @param x Reference to the object eprosima::fastdds::statistics::QosPolicyCount_s that will be copied. - */ - eProsima_user_DllExport QosPolicyCount_s( - QosPolicyCount_s&& x) noexcept; - - /*! - * @brief Copy assignment. - * @param x Reference to the object eprosima::fastdds::statistics::QosPolicyCount_s that will be copied. - */ - eProsima_user_DllExport QosPolicyCount_s& operator =( - const QosPolicyCount_s& x); - - /*! - * @brief Move assignment. - * @param x Reference to the object eprosima::fastdds::statistics::QosPolicyCount_s that will be copied. - */ - eProsima_user_DllExport QosPolicyCount_s& operator =( - QosPolicyCount_s&& x) noexcept; - - /*! - * @brief Comparison operator. - * @param x eprosima::fastdds::statistics::QosPolicyCount_s object to compare. - */ - eProsima_user_DllExport bool operator ==( - const QosPolicyCount_s& x) const; - - /*! - * @brief Comparison operator. - * @param x eprosima::fastdds::statistics::QosPolicyCount_s object to compare. - */ - eProsima_user_DllExport bool operator !=( - const QosPolicyCount_s& x) const; - - /*! - * @brief This function sets a value in member policy_id - * @param _policy_id New value for member policy_id - */ - eProsima_user_DllExport void policy_id( - uint32_t _policy_id); - - /*! - * @brief This function returns the value of member policy_id - * @return Value of member policy_id - */ - eProsima_user_DllExport uint32_t policy_id() const; - - /*! - * @brief This function returns a reference to member policy_id - * @return Reference to member policy_id - */ - eProsima_user_DllExport uint32_t& policy_id(); - - - /*! - * @brief This function sets a value in member count - * @param _count New value for member count - */ - eProsima_user_DllExport void count( - uint32_t _count); - - /*! - * @brief This function returns the value of member count - * @return Value of member count - */ - eProsima_user_DllExport uint32_t count() const; - - /*! - * @brief This function returns a reference to member count - * @return Reference to member count - */ - eProsima_user_DllExport uint32_t& count(); - - private: - - uint32_t m_policy_id{0}; - uint32_t m_count{0}; - - }; - /*! - * @brief This class represents the structure BaseStatus_s defined by the user in the IDL file. - * @ingroup monitorservice_types - */ - class BaseStatus_s - { - public: - - /*! - * @brief Default constructor. - */ - eProsima_user_DllExport BaseStatus_s(); - - /*! - * @brief Default destructor. - */ - eProsima_user_DllExport ~BaseStatus_s(); - - /*! - * @brief Copy constructor. - * @param x Reference to the object eprosima::fastdds::statistics::BaseStatus_s that will be copied. - */ - eProsima_user_DllExport BaseStatus_s( - const BaseStatus_s& x); - - /*! - * @brief Move constructor. - * @param x Reference to the object eprosima::fastdds::statistics::BaseStatus_s that will be copied. - */ - eProsima_user_DllExport BaseStatus_s( - BaseStatus_s&& x) noexcept; - - /*! - * @brief Copy assignment. - * @param x Reference to the object eprosima::fastdds::statistics::BaseStatus_s that will be copied. - */ - eProsima_user_DllExport BaseStatus_s& operator =( - const BaseStatus_s& x); - - /*! - * @brief Move assignment. - * @param x Reference to the object eprosima::fastdds::statistics::BaseStatus_s that will be copied. - */ - eProsima_user_DllExport BaseStatus_s& operator =( - BaseStatus_s&& x) noexcept; - - /*! - * @brief Comparison operator. - * @param x eprosima::fastdds::statistics::BaseStatus_s object to compare. - */ - eProsima_user_DllExport bool operator ==( - const BaseStatus_s& x) const; - - /*! - * @brief Comparison operator. - * @param x eprosima::fastdds::statistics::BaseStatus_s object to compare. - */ - eProsima_user_DllExport bool operator !=( - const BaseStatus_s& x) const; - - /*! - * @brief This function sets a value in member total_count - * @param _total_count New value for member total_count - */ - eProsima_user_DllExport void total_count( - uint32_t _total_count); - - /*! - * @brief This function returns the value of member total_count - * @return Value of member total_count - */ - eProsima_user_DllExport uint32_t total_count() const; - - /*! - * @brief This function returns a reference to member total_count - * @return Reference to member total_count - */ - eProsima_user_DllExport uint32_t& total_count(); - - private: - - uint32_t m_total_count{0}; - - }; - typedef std::vector QosPolicyCountSeq_s; - - /*! - * @brief This class represents the structure IncompatibleQoSStatus_s defined by the user in the IDL file. - * @ingroup monitorservice_types - */ - class IncompatibleQoSStatus_s - { - public: - - /*! - * @brief Default constructor. - */ - eProsima_user_DllExport IncompatibleQoSStatus_s(); - - /*! - * @brief Default destructor. - */ - eProsima_user_DllExport ~IncompatibleQoSStatus_s(); - - /*! - * @brief Copy constructor. - * @param x Reference to the object eprosima::fastdds::statistics::IncompatibleQoSStatus_s that will be copied. - */ - eProsima_user_DllExport IncompatibleQoSStatus_s( - const IncompatibleQoSStatus_s& x); - - /*! - * @brief Move constructor. - * @param x Reference to the object eprosima::fastdds::statistics::IncompatibleQoSStatus_s that will be copied. - */ - eProsima_user_DllExport IncompatibleQoSStatus_s( - IncompatibleQoSStatus_s&& x) noexcept; - - /*! - * @brief Copy assignment. - * @param x Reference to the object eprosima::fastdds::statistics::IncompatibleQoSStatus_s that will be copied. - */ - eProsima_user_DllExport IncompatibleQoSStatus_s& operator =( - const IncompatibleQoSStatus_s& x); - - /*! - * @brief Move assignment. - * @param x Reference to the object eprosima::fastdds::statistics::IncompatibleQoSStatus_s that will be copied. - */ - eProsima_user_DllExport IncompatibleQoSStatus_s& operator =( - IncompatibleQoSStatus_s&& x) noexcept; - - /*! - * @brief Comparison operator. - * @param x eprosima::fastdds::statistics::IncompatibleQoSStatus_s object to compare. - */ - eProsima_user_DllExport bool operator ==( - const IncompatibleQoSStatus_s& x) const; - - /*! - * @brief Comparison operator. - * @param x eprosima::fastdds::statistics::IncompatibleQoSStatus_s object to compare. - */ - eProsima_user_DllExport bool operator !=( - const IncompatibleQoSStatus_s& x) const; - - /*! - * @brief This function sets a value in member total_count - * @param _total_count New value for member total_count - */ - eProsima_user_DllExport void total_count( - uint32_t _total_count); - - /*! - * @brief This function returns the value of member total_count - * @return Value of member total_count - */ - eProsima_user_DllExport uint32_t total_count() const; - - /*! - * @brief This function returns a reference to member total_count - * @return Reference to member total_count - */ - eProsima_user_DllExport uint32_t& total_count(); - - - /*! - * @brief This function sets a value in member last_policy_id - * @param _last_policy_id New value for member last_policy_id - */ - eProsima_user_DllExport void last_policy_id( - uint32_t _last_policy_id); - - /*! - * @brief This function returns the value of member last_policy_id - * @return Value of member last_policy_id - */ - eProsima_user_DllExport uint32_t last_policy_id() const; - - /*! - * @brief This function returns a reference to member last_policy_id - * @return Reference to member last_policy_id - */ - eProsima_user_DllExport uint32_t& last_policy_id(); - - - /*! - * @brief This function copies the value in member policies - * @param _policies New value to be copied in member policies - */ - eProsima_user_DllExport void policies( - const eprosima::fastdds::statistics::QosPolicyCountSeq_s& _policies); - - /*! - * @brief This function moves the value in member policies - * @param _policies New value to be moved in member policies - */ - eProsima_user_DllExport void policies( - eprosima::fastdds::statistics::QosPolicyCountSeq_s&& _policies); - - /*! - * @brief This function returns a constant reference to member policies - * @return Constant reference to member policies - */ - eProsima_user_DllExport const eprosima::fastdds::statistics::QosPolicyCountSeq_s& policies() const; - - /*! - * @brief This function returns a reference to member policies - * @return Reference to member policies - */ - eProsima_user_DllExport eprosima::fastdds::statistics::QosPolicyCountSeq_s& policies(); - - private: - - uint32_t m_total_count{0}; - uint32_t m_last_policy_id{0}; - eprosima::fastdds::statistics::QosPolicyCountSeq_s m_policies; - - }; - /*! - * @brief This class represents the structure LivelinessChangedStatus_s defined by the user in the IDL file. - * @ingroup monitorservice_types - */ - class LivelinessChangedStatus_s - { - public: - - /*! - * @brief Default constructor. - */ - eProsima_user_DllExport LivelinessChangedStatus_s(); - - /*! - * @brief Default destructor. - */ - eProsima_user_DllExport ~LivelinessChangedStatus_s(); - - /*! - * @brief Copy constructor. - * @param x Reference to the object eprosima::fastdds::statistics::LivelinessChangedStatus_s that will be copied. - */ - eProsima_user_DllExport LivelinessChangedStatus_s( - const LivelinessChangedStatus_s& x); - - /*! - * @brief Move constructor. - * @param x Reference to the object eprosima::fastdds::statistics::LivelinessChangedStatus_s that will be copied. - */ - eProsima_user_DllExport LivelinessChangedStatus_s( - LivelinessChangedStatus_s&& x) noexcept; - - /*! - * @brief Copy assignment. - * @param x Reference to the object eprosima::fastdds::statistics::LivelinessChangedStatus_s that will be copied. - */ - eProsima_user_DllExport LivelinessChangedStatus_s& operator =( - const LivelinessChangedStatus_s& x); - - /*! - * @brief Move assignment. - * @param x Reference to the object eprosima::fastdds::statistics::LivelinessChangedStatus_s that will be copied. - */ - eProsima_user_DllExport LivelinessChangedStatus_s& operator =( - LivelinessChangedStatus_s&& x) noexcept; - - /*! - * @brief Comparison operator. - * @param x eprosima::fastdds::statistics::LivelinessChangedStatus_s object to compare. - */ - eProsima_user_DllExport bool operator ==( - const LivelinessChangedStatus_s& x) const; - - /*! - * @brief Comparison operator. - * @param x eprosima::fastdds::statistics::LivelinessChangedStatus_s object to compare. - */ - eProsima_user_DllExport bool operator !=( - const LivelinessChangedStatus_s& x) const; - - /*! - * @brief This function sets a value in member alive_count - * @param _alive_count New value for member alive_count - */ - eProsima_user_DllExport void alive_count( - uint32_t _alive_count); - - /*! - * @brief This function returns the value of member alive_count - * @return Value of member alive_count - */ - eProsima_user_DllExport uint32_t alive_count() const; - - /*! - * @brief This function returns a reference to member alive_count - * @return Reference to member alive_count - */ - eProsima_user_DllExport uint32_t& alive_count(); - - - /*! - * @brief This function sets a value in member not_alive_count - * @param _not_alive_count New value for member not_alive_count - */ - eProsima_user_DllExport void not_alive_count( - uint32_t _not_alive_count); - - /*! - * @brief This function returns the value of member not_alive_count - * @return Value of member not_alive_count - */ - eProsima_user_DllExport uint32_t not_alive_count() const; - - /*! - * @brief This function returns a reference to member not_alive_count - * @return Reference to member not_alive_count - */ - eProsima_user_DllExport uint32_t& 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 - */ - eProsima_user_DllExport void last_publication_handle( - const std::array& _last_publication_handle); - - /*! - * @brief This function moves the value in member last_publication_handle - * @param _last_publication_handle New value to be moved in member last_publication_handle - */ - eProsima_user_DllExport void last_publication_handle( - std::array&& _last_publication_handle); - - /*! - * @brief This function returns a constant reference to member last_publication_handle - * @return Constant reference to member last_publication_handle - */ - eProsima_user_DllExport const std::array& last_publication_handle() const; - - /*! - * @brief This function returns a reference to member last_publication_handle - * @return Reference to member last_publication_handle - */ - eProsima_user_DllExport std::array& last_publication_handle(); - - private: - - uint32_t m_alive_count{0}; - uint32_t m_not_alive_count{0}; - std::array m_last_publication_handle{0}; - - }; - /*! - * @brief This class represents the structure DeadlineMissedStatus_s defined by the user in the IDL file. - * @ingroup monitorservice_types - */ - class DeadlineMissedStatus_s - { - public: - - /*! - * @brief Default constructor. - */ - eProsima_user_DllExport DeadlineMissedStatus_s(); - - /*! - * @brief Default destructor. - */ - eProsima_user_DllExport ~DeadlineMissedStatus_s(); - - /*! - * @brief Copy constructor. - * @param x Reference to the object eprosima::fastdds::statistics::DeadlineMissedStatus_s that will be copied. - */ - eProsima_user_DllExport DeadlineMissedStatus_s( - const DeadlineMissedStatus_s& x); - - /*! - * @brief Move constructor. - * @param x Reference to the object eprosima::fastdds::statistics::DeadlineMissedStatus_s that will be copied. - */ - eProsima_user_DllExport DeadlineMissedStatus_s( - DeadlineMissedStatus_s&& x) noexcept; - - /*! - * @brief Copy assignment. - * @param x Reference to the object eprosima::fastdds::statistics::DeadlineMissedStatus_s that will be copied. - */ - eProsima_user_DllExport DeadlineMissedStatus_s& operator =( - const DeadlineMissedStatus_s& x); - - /*! - * @brief Move assignment. - * @param x Reference to the object eprosima::fastdds::statistics::DeadlineMissedStatus_s that will be copied. - */ - eProsima_user_DllExport DeadlineMissedStatus_s& operator =( - DeadlineMissedStatus_s&& x) noexcept; - - /*! - * @brief Comparison operator. - * @param x eprosima::fastdds::statistics::DeadlineMissedStatus_s object to compare. - */ - eProsima_user_DllExport bool operator ==( - const DeadlineMissedStatus_s& x) const; - - /*! - * @brief Comparison operator. - * @param x eprosima::fastdds::statistics::DeadlineMissedStatus_s object to compare. - */ - eProsima_user_DllExport bool operator !=( - const DeadlineMissedStatus_s& x) const; - - /*! - * @brief This function sets a value in member total_count - * @param _total_count New value for member total_count - */ - eProsima_user_DllExport void total_count( - uint32_t _total_count); - - /*! - * @brief This function returns the value of member total_count - * @return Value of member total_count - */ - eProsima_user_DllExport uint32_t total_count() const; - - /*! - * @brief This function returns a reference to member total_count - * @return Reference to member total_count - */ - eProsima_user_DllExport uint32_t& 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 - */ - eProsima_user_DllExport void last_instance_handle( - const std::array& _last_instance_handle); - - /*! - * @brief This function moves the value in member last_instance_handle - * @param _last_instance_handle New value to be moved in member last_instance_handle - */ - eProsima_user_DllExport void last_instance_handle( - std::array&& _last_instance_handle); - - /*! - * @brief This function returns a constant reference to member last_instance_handle - * @return Constant reference to member last_instance_handle - */ - eProsima_user_DllExport const std::array& last_instance_handle() const; - - /*! - * @brief This function returns a reference to member last_instance_handle - * @return Reference to member last_instance_handle - */ - eProsima_user_DllExport std::array& last_instance_handle(); - - private: - - uint32_t m_total_count{0}; - std::array m_last_instance_handle{0}; - - }; - typedef eprosima::fastdds::statistics::BaseStatus_s LivelinessLostStatus_s; - - typedef eprosima::fastdds::statistics::BaseStatus_s InconsistentTopicStatus_s; - - typedef eprosima::fastdds::statistics::BaseStatus_s SampleLostStatus_s; - - /*! - * @brief This class represents the enumeration StatusKind defined by the user in the IDL file. - * @ingroup monitorservice_types - */ - enum StatusKind : uint32_t - { - PROXY, - CONNECTION_LIST, - INCOMPATIBLE_QOS, - INCONSISTENT_TOPIC, - LIVELINESS_LOST, - LIVELINESS_CHANGED, - DEADLINE_MISSED, - SAMPLE_LOST, - STATUSES_SIZE - }; - /*! - * @brief This class represents the union MonitorServiceData defined by the user in the IDL file. - * @ingroup monitorservice_types - */ - class MonitorServiceData - { - public: - - /*! - * @brief Default constructor. - */ - eProsima_user_DllExport MonitorServiceData(); - - /*! - * @brief Default destructor. - */ - eProsima_user_DllExport ~MonitorServiceData(); - - /*! - * @brief Copy constructor. - * @param x Reference to the object eprosima::fastdds::statistics::MonitorServiceData that will be copied. - */ - eProsima_user_DllExport MonitorServiceData( - const MonitorServiceData& x); - - /*! - * @brief Move constructor. - * @param x Reference to the object eprosima::fastdds::statistics::MonitorServiceData that will be copied. - */ - eProsima_user_DllExport MonitorServiceData( - MonitorServiceData&& x) noexcept; - - /*! - * @brief Copy assignment. - * @param x Reference to the object eprosima::fastdds::statistics::MonitorServiceData that will be copied. - */ - eProsima_user_DllExport MonitorServiceData& operator =( - const MonitorServiceData& x); - - /*! - * @brief Move assignment. - * @param x Reference to the object eprosima::fastdds::statistics::MonitorServiceData that will be copied. - */ - eProsima_user_DllExport MonitorServiceData& operator =( - MonitorServiceData&& x) noexcept; - - /*! - * @brief Comparison operator. - * @param x eprosima::fastdds::statistics::MonitorServiceData object to compare. - */ - eProsima_user_DllExport bool operator ==( - const MonitorServiceData& x) const; - - /*! - * @brief Comparison operator. - * @param x eprosima::fastdds::statistics::MonitorServiceData object to compare. - */ - eProsima_user_DllExport bool operator !=( - const MonitorServiceData& x) const; - - /*! - * @brief This function sets the discriminator value. - * @param __d New value for the discriminator. - * @exception eprosima::fastcdr::BadParamException This exception is thrown if the new value doesn't correspond to the selected union member. - */ - eProsima_user_DllExport void _d( - eprosima::fastdds::statistics::StatusKind __d); - - /*! - * @brief This function returns the value of the discriminator. - * @return Value of the discriminator - */ - eProsima_user_DllExport eprosima::fastdds::statistics::StatusKind _d() const; - - /*! - * @brief This function returns a reference to the discriminator. - * @return Reference to the discriminator. - */ - eProsima_user_DllExport eprosima::fastdds::statistics::StatusKind& _d(); - - /*! - * @brief This function copies the value in member entity_proxy - * @param _entity_proxy New value to be copied in member entity_proxy - */ - eProsima_user_DllExport void entity_proxy( - const std::vector& _entity_proxy); - - /*! - * @brief This function moves the value in member entity_proxy - * @param _entity_proxy New value to be moved in member entity_proxy - */ - eProsima_user_DllExport void entity_proxy( - std::vector&& _entity_proxy); - - /*! - * @brief This function returns a constant reference to member entity_proxy - * @return Constant reference to member entity_proxy - * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. - */ - eProsima_user_DllExport const std::vector& entity_proxy() const; - - /*! - * @brief This function returns a reference to member entity_proxy - * @return Reference to member entity_proxy - * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. - */ - eProsima_user_DllExport std::vector& entity_proxy(); - - - /*! - * @brief This function copies the value in member connection_list - * @param _connection_list New value to be copied in member connection_list - */ - eProsima_user_DllExport void connection_list( - const std::vector& _connection_list); - - /*! - * @brief This function moves the value in member connection_list - * @param _connection_list New value to be moved in member connection_list - */ - eProsima_user_DllExport void connection_list( - std::vector&& _connection_list); - - /*! - * @brief This function returns a constant reference to member connection_list - * @return Constant reference to member connection_list - * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. - */ - eProsima_user_DllExport const std::vector& connection_list() const; - - /*! - * @brief This function returns a reference to member connection_list - * @return Reference to member connection_list - * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. - */ - eProsima_user_DllExport std::vector& 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 - */ - eProsima_user_DllExport void incompatible_qos_status( - const eprosima::fastdds::statistics::IncompatibleQoSStatus_s& _incompatible_qos_status); - - /*! - * @brief This function moves the value in member incompatible_qos_status - * @param _incompatible_qos_status New value to be moved in member incompatible_qos_status - */ - eProsima_user_DllExport void incompatible_qos_status( - eprosima::fastdds::statistics::IncompatibleQoSStatus_s&& _incompatible_qos_status); - - /*! - * @brief This function returns a constant reference to member incompatible_qos_status - * @return Constant reference to member incompatible_qos_status - * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. - */ - eProsima_user_DllExport const eprosima::fastdds::statistics::IncompatibleQoSStatus_s& incompatible_qos_status() const; - - /*! - * @brief This function returns a reference to member incompatible_qos_status - * @return Reference to member incompatible_qos_status - * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. - */ - eProsima_user_DllExport eprosima::fastdds::statistics::IncompatibleQoSStatus_s& 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 - */ - eProsima_user_DllExport void inconsistent_topic_status( - const eprosima::fastdds::statistics::InconsistentTopicStatus_s& _inconsistent_topic_status); - - /*! - * @brief This function moves the value in member inconsistent_topic_status - * @param _inconsistent_topic_status New value to be moved in member inconsistent_topic_status - */ - eProsima_user_DllExport void inconsistent_topic_status( - eprosima::fastdds::statistics::InconsistentTopicStatus_s&& _inconsistent_topic_status); - - /*! - * @brief This function returns a constant reference to member inconsistent_topic_status - * @return Constant reference to member inconsistent_topic_status - * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. - */ - eProsima_user_DllExport const eprosima::fastdds::statistics::InconsistentTopicStatus_s& inconsistent_topic_status() const; - - /*! - * @brief This function returns a reference to member inconsistent_topic_status - * @return Reference to member inconsistent_topic_status - * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. - */ - eProsima_user_DllExport eprosima::fastdds::statistics::InconsistentTopicStatus_s& 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 - */ - eProsima_user_DllExport void liveliness_lost_status( - const eprosima::fastdds::statistics::LivelinessLostStatus_s& _liveliness_lost_status); - - /*! - * @brief This function moves the value in member liveliness_lost_status - * @param _liveliness_lost_status New value to be moved in member liveliness_lost_status - */ - eProsima_user_DllExport void liveliness_lost_status( - eprosima::fastdds::statistics::LivelinessLostStatus_s&& _liveliness_lost_status); - - /*! - * @brief This function returns a constant reference to member liveliness_lost_status - * @return Constant reference to member liveliness_lost_status - * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. - */ - eProsima_user_DllExport const eprosima::fastdds::statistics::LivelinessLostStatus_s& liveliness_lost_status() const; - - /*! - * @brief This function returns a reference to member liveliness_lost_status - * @return Reference to member liveliness_lost_status - * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. - */ - eProsima_user_DllExport eprosima::fastdds::statistics::LivelinessLostStatus_s& 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 - */ - eProsima_user_DllExport void liveliness_changed_status( - const eprosima::fastdds::statistics::LivelinessChangedStatus_s& _liveliness_changed_status); - - /*! - * @brief This function moves the value in member liveliness_changed_status - * @param _liveliness_changed_status New value to be moved in member liveliness_changed_status - */ - eProsima_user_DllExport void liveliness_changed_status( - eprosima::fastdds::statistics::LivelinessChangedStatus_s&& _liveliness_changed_status); - - /*! - * @brief This function returns a constant reference to member liveliness_changed_status - * @return Constant reference to member liveliness_changed_status - * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. - */ - eProsima_user_DllExport const eprosima::fastdds::statistics::LivelinessChangedStatus_s& liveliness_changed_status() const; - - /*! - * @brief This function returns a reference to member liveliness_changed_status - * @return Reference to member liveliness_changed_status - * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. - */ - eProsima_user_DllExport eprosima::fastdds::statistics::LivelinessChangedStatus_s& 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 - */ - eProsima_user_DllExport void deadline_missed_status( - const eprosima::fastdds::statistics::DeadlineMissedStatus_s& _deadline_missed_status); - - /*! - * @brief This function moves the value in member deadline_missed_status - * @param _deadline_missed_status New value to be moved in member deadline_missed_status - */ - eProsima_user_DllExport void deadline_missed_status( - eprosima::fastdds::statistics::DeadlineMissedStatus_s&& _deadline_missed_status); - - /*! - * @brief This function returns a constant reference to member deadline_missed_status - * @return Constant reference to member deadline_missed_status - * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. - */ - eProsima_user_DllExport const eprosima::fastdds::statistics::DeadlineMissedStatus_s& deadline_missed_status() const; - - /*! - * @brief This function returns a reference to member deadline_missed_status - * @return Reference to member deadline_missed_status - * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. - */ - eProsima_user_DllExport eprosima::fastdds::statistics::DeadlineMissedStatus_s& 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 - */ - eProsima_user_DllExport void sample_lost_status( - const eprosima::fastdds::statistics::SampleLostStatus_s& _sample_lost_status); - - /*! - * @brief This function moves the value in member sample_lost_status - * @param _sample_lost_status New value to be moved in member sample_lost_status - */ - eProsima_user_DllExport void sample_lost_status( - eprosima::fastdds::statistics::SampleLostStatus_s&& _sample_lost_status); - - /*! - * @brief This function returns a constant reference to member sample_lost_status - * @return Constant reference to member sample_lost_status - * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. - */ - eProsima_user_DllExport const eprosima::fastdds::statistics::SampleLostStatus_s& sample_lost_status() const; - - /*! - * @brief This function returns a reference to member sample_lost_status - * @return Reference to member sample_lost_status - * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. - */ - eProsima_user_DllExport eprosima::fastdds::statistics::SampleLostStatus_s& sample_lost_status(); - - - /*! - * @brief This function sets a value in member statuses_size - * @param _statuses_size New value for member statuses_size - */ - eProsima_user_DllExport void statuses_size( - uint8_t _statuses_size); - - /*! - * @brief This function returns the value of member statuses_size - * @return Value of member statuses_size - * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. - */ - eProsima_user_DllExport uint8_t statuses_size() const; - - /*! - * @brief This function returns a reference to member statuses_size - * @return Reference to member statuses_size - * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. - */ - eProsima_user_DllExport uint8_t& statuses_size(); - - private: - - eprosima::fastdds::statistics::StatusKind m__d; - - std::vector m_entity_proxy; - std::vector m_connection_list; - eprosima::fastdds::statistics::IncompatibleQoSStatus_s m_incompatible_qos_status; - eprosima::fastdds::statistics::InconsistentTopicStatus_s m_inconsistent_topic_status; - eprosima::fastdds::statistics::LivelinessLostStatus_s m_liveliness_lost_status; - eprosima::fastdds::statistics::LivelinessChangedStatus_s m_liveliness_changed_status; - eprosima::fastdds::statistics::DeadlineMissedStatus_s m_deadline_missed_status; - eprosima::fastdds::statistics::SampleLostStatus_s m_sample_lost_status; - uint8_t m_statuses_size{0}; - }; - /*! - * @brief This class represents the structure MonitorServiceStatusData defined by the user in the IDL file. - * @ingroup monitorservice_types - */ - class MonitorServiceStatusData - { - public: - - /*! - * @brief Default constructor. - */ - eProsima_user_DllExport MonitorServiceStatusData(); - - /*! - * @brief Default destructor. - */ - eProsima_user_DllExport ~MonitorServiceStatusData(); - - /*! - * @brief Copy constructor. - * @param x Reference to the object eprosima::fastdds::statistics::MonitorServiceStatusData that will be copied. - */ - eProsima_user_DllExport MonitorServiceStatusData( - const MonitorServiceStatusData& x); - - /*! - * @brief Move constructor. - * @param x Reference to the object eprosima::fastdds::statistics::MonitorServiceStatusData that will be copied. - */ - eProsima_user_DllExport MonitorServiceStatusData( - MonitorServiceStatusData&& x) noexcept; - - /*! - * @brief Copy assignment. - * @param x Reference to the object eprosima::fastdds::statistics::MonitorServiceStatusData that will be copied. - */ - eProsima_user_DllExport MonitorServiceStatusData& operator =( - const MonitorServiceStatusData& x); - - /*! - * @brief Move assignment. - * @param x Reference to the object eprosima::fastdds::statistics::MonitorServiceStatusData that will be copied. - */ - eProsima_user_DllExport MonitorServiceStatusData& operator =( - MonitorServiceStatusData&& x) noexcept; - - /*! - * @brief Comparison operator. - * @param x eprosima::fastdds::statistics::MonitorServiceStatusData object to compare. - */ - eProsima_user_DllExport bool operator ==( - const MonitorServiceStatusData& x) const; - - /*! - * @brief Comparison operator. - * @param x eprosima::fastdds::statistics::MonitorServiceStatusData object to compare. - */ - eProsima_user_DllExport bool operator !=( - const MonitorServiceStatusData& x) const; - - /*! - * @brief This function copies the value in member local_entity - * @param _local_entity New value to be copied in member local_entity - */ - eProsima_user_DllExport void local_entity( - const eprosima::fastdds::statistics::detail::GUID_s& _local_entity); - - /*! - * @brief This function moves the value in member local_entity - * @param _local_entity New value to be moved in member local_entity - */ - eProsima_user_DllExport void local_entity( - eprosima::fastdds::statistics::detail::GUID_s&& _local_entity); - - /*! - * @brief This function returns a constant reference to member local_entity - * @return Constant reference to member local_entity - */ - eProsima_user_DllExport const eprosima::fastdds::statistics::detail::GUID_s& local_entity() const; - - /*! - * @brief This function returns a reference to member local_entity - * @return Reference to member local_entity - */ - eProsima_user_DllExport eprosima::fastdds::statistics::detail::GUID_s& local_entity(); - - - /*! - * @brief This function sets a value in member status_kind - * @param _status_kind New value for member status_kind - */ - eProsima_user_DllExport void status_kind( - eprosima::fastdds::statistics::StatusKind _status_kind); - - /*! - * @brief This function returns the value of member status_kind - * @return Value of member status_kind - */ - eProsima_user_DllExport eprosima::fastdds::statistics::StatusKind status_kind() const; - - /*! - * @brief This function returns a reference to member status_kind - * @return Reference to member status_kind - */ - eProsima_user_DllExport eprosima::fastdds::statistics::StatusKind& status_kind(); - - - /*! - * @brief This function copies the value in member value - * @param _value New value to be copied in member value - */ - eProsima_user_DllExport void value( - const eprosima::fastdds::statistics::MonitorServiceData& _value); - - /*! - * @brief This function moves the value in member value - * @param _value New value to be moved in member value - */ - eProsima_user_DllExport void value( - eprosima::fastdds::statistics::MonitorServiceData&& _value); - - /*! - * @brief This function returns a constant reference to member value - * @return Constant reference to member value - */ - eProsima_user_DllExport const eprosima::fastdds::statistics::MonitorServiceData& value() const; - - /*! - * @brief This function returns a reference to member value - * @return Reference to member value - */ - eProsima_user_DllExport eprosima::fastdds::statistics::MonitorServiceData& value(); - - private: - - eprosima::fastdds::statistics::detail::GUID_s m_local_entity; - eprosima::fastdds::statistics::StatusKind m_status_kind{eprosima::fastdds::statistics::PROXY}; - eprosima::fastdds::statistics::MonitorServiceData m_value; - - }; - } // namespace statistics - } // namespace fastdds + +namespace fastdds { + +namespace statistics { + +/*! + * @brief This class represents the enumeration ConnectionMode defined by the user in the IDL file. + * @ingroup monitorservice_types + */ +enum ConnectionMode : uint32_t +{ + DATA_SHARING, + INTRAPROCESS, + TRANSPORT +}; + + + + +/*! + * @brief This class represents the structure Connection defined by the user in the IDL file. + * @ingroup monitorservice_types + */ +class Connection +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Connection(); + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Connection(); + + /*! + * @brief Copy constructor. + * @param x Reference to the object eprosima::fastdds::statistics::Connection that will be copied. + */ + eProsima_user_DllExport Connection( + const Connection& x); + + /*! + * @brief Move constructor. + * @param x Reference to the object eprosima::fastdds::statistics::Connection that will be copied. + */ + eProsima_user_DllExport Connection( + Connection&& x) noexcept; + + /*! + * @brief Copy assignment. + * @param x Reference to the object eprosima::fastdds::statistics::Connection that will be copied. + */ + eProsima_user_DllExport Connection& operator =( + const Connection& x); + + /*! + * @brief Move assignment. + * @param x Reference to the object eprosima::fastdds::statistics::Connection that will be copied. + */ + eProsima_user_DllExport Connection& operator =( + Connection&& x) noexcept; + + /*! + * @brief Comparison operator. + * @param x eprosima::fastdds::statistics::Connection object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Connection& x) const; + + /*! + * @brief Comparison operator. + * @param x eprosima::fastdds::statistics::Connection object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Connection& x) const; + + /*! + * @brief This function sets a value in member mode + * @param _mode New value for member mode + */ + eProsima_user_DllExport void mode( + eprosima::fastdds::statistics::ConnectionMode _mode); + + /*! + * @brief This function returns the value of member mode + * @return Value of member mode + */ + eProsima_user_DllExport eprosima::fastdds::statistics::ConnectionMode mode() const; + + /*! + * @brief This function returns a reference to member mode + * @return Reference to member mode + */ + eProsima_user_DllExport eprosima::fastdds::statistics::ConnectionMode& mode(); + + + /*! + * @brief This function copies the value in member guid + * @param _guid New value to be copied in member guid + */ + eProsima_user_DllExport void guid( + const eprosima::fastdds::statistics::detail::GUID_s& _guid); + + /*! + * @brief This function moves the value in member guid + * @param _guid New value to be moved in member guid + */ + eProsima_user_DllExport void guid( + eprosima::fastdds::statistics::detail::GUID_s&& _guid); + + /*! + * @brief This function returns a constant reference to member guid + * @return Constant reference to member guid + */ + eProsima_user_DllExport const eprosima::fastdds::statistics::detail::GUID_s& guid() const; + + /*! + * @brief This function returns a reference to member guid + * @return Reference to member guid + */ + eProsima_user_DllExport eprosima::fastdds::statistics::detail::GUID_s& guid(); + + + /*! + * @brief This function copies the value in member announced_locators + * @param _announced_locators New value to be copied in member announced_locators + */ + eProsima_user_DllExport void announced_locators( + const std::vector& _announced_locators); + + /*! + * @brief This function moves the value in member announced_locators + * @param _announced_locators New value to be moved in member announced_locators + */ + eProsima_user_DllExport void announced_locators( + std::vector&& _announced_locators); + + /*! + * @brief This function returns a constant reference to member announced_locators + * @return Constant reference to member announced_locators + */ + eProsima_user_DllExport const std::vector& announced_locators() const; + + /*! + * @brief This function returns a reference to member announced_locators + * @return Reference to member announced_locators + */ + eProsima_user_DllExport std::vector& announced_locators(); + + + /*! + * @brief This function copies the value in member used_locators + * @param _used_locators New value to be copied in member used_locators + */ + eProsima_user_DllExport void used_locators( + const std::vector& _used_locators); + + /*! + * @brief This function moves the value in member used_locators + * @param _used_locators New value to be moved in member used_locators + */ + eProsima_user_DllExport void used_locators( + std::vector&& _used_locators); + + /*! + * @brief This function returns a constant reference to member used_locators + * @return Constant reference to member used_locators + */ + eProsima_user_DllExport const std::vector& used_locators() const; + + /*! + * @brief This function returns a reference to member used_locators + * @return Reference to member used_locators + */ + eProsima_user_DllExport std::vector& used_locators(); + +private: + + eprosima::fastdds::statistics::ConnectionMode m_mode{eprosima::fastdds::statistics::DATA_SHARING}; + eprosima::fastdds::statistics::detail::GUID_s m_guid; + std::vector m_announced_locators; + std::vector m_used_locators; + +}; + + +/*! + * @brief This class represents the structure QosPolicyCount_s defined by the user in the IDL file. + * @ingroup monitorservice_types + */ +class QosPolicyCount_s +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport QosPolicyCount_s(); + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~QosPolicyCount_s(); + + /*! + * @brief Copy constructor. + * @param x Reference to the object eprosima::fastdds::statistics::QosPolicyCount_s that will be copied. + */ + eProsima_user_DllExport QosPolicyCount_s( + const QosPolicyCount_s& x); + + /*! + * @brief Move constructor. + * @param x Reference to the object eprosima::fastdds::statistics::QosPolicyCount_s that will be copied. + */ + eProsima_user_DllExport QosPolicyCount_s( + QosPolicyCount_s&& x) noexcept; + + /*! + * @brief Copy assignment. + * @param x Reference to the object eprosima::fastdds::statistics::QosPolicyCount_s that will be copied. + */ + eProsima_user_DllExport QosPolicyCount_s& operator =( + const QosPolicyCount_s& x); + + /*! + * @brief Move assignment. + * @param x Reference to the object eprosima::fastdds::statistics::QosPolicyCount_s that will be copied. + */ + eProsima_user_DllExport QosPolicyCount_s& operator =( + QosPolicyCount_s&& x) noexcept; + + /*! + * @brief Comparison operator. + * @param x eprosima::fastdds::statistics::QosPolicyCount_s object to compare. + */ + eProsima_user_DllExport bool operator ==( + const QosPolicyCount_s& x) const; + + /*! + * @brief Comparison operator. + * @param x eprosima::fastdds::statistics::QosPolicyCount_s object to compare. + */ + eProsima_user_DllExport bool operator !=( + const QosPolicyCount_s& x) const; + + /*! + * @brief This function sets a value in member policy_id + * @param _policy_id New value for member policy_id + */ + eProsima_user_DllExport void policy_id( + uint32_t _policy_id); + + /*! + * @brief This function returns the value of member policy_id + * @return Value of member policy_id + */ + eProsima_user_DllExport uint32_t policy_id() const; + + /*! + * @brief This function returns a reference to member policy_id + * @return Reference to member policy_id + */ + eProsima_user_DllExport uint32_t& policy_id(); + + + /*! + * @brief This function sets a value in member count + * @param _count New value for member count + */ + eProsima_user_DllExport void count( + uint32_t _count); + + /*! + * @brief This function returns the value of member count + * @return Value of member count + */ + eProsima_user_DllExport uint32_t count() const; + + /*! + * @brief This function returns a reference to member count + * @return Reference to member count + */ + eProsima_user_DllExport uint32_t& count(); + +private: + + uint32_t m_policy_id{0}; + uint32_t m_count{0}; + +}; + + +/*! + * @brief This class represents the structure BaseStatus_s defined by the user in the IDL file. + * @ingroup monitorservice_types + */ +class BaseStatus_s +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport BaseStatus_s(); + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~BaseStatus_s(); + + /*! + * @brief Copy constructor. + * @param x Reference to the object eprosima::fastdds::statistics::BaseStatus_s that will be copied. + */ + eProsima_user_DllExport BaseStatus_s( + const BaseStatus_s& x); + + /*! + * @brief Move constructor. + * @param x Reference to the object eprosima::fastdds::statistics::BaseStatus_s that will be copied. + */ + eProsima_user_DllExport BaseStatus_s( + BaseStatus_s&& x) noexcept; + + /*! + * @brief Copy assignment. + * @param x Reference to the object eprosima::fastdds::statistics::BaseStatus_s that will be copied. + */ + eProsima_user_DllExport BaseStatus_s& operator =( + const BaseStatus_s& x); + + /*! + * @brief Move assignment. + * @param x Reference to the object eprosima::fastdds::statistics::BaseStatus_s that will be copied. + */ + eProsima_user_DllExport BaseStatus_s& operator =( + BaseStatus_s&& x) noexcept; + + /*! + * @brief Comparison operator. + * @param x eprosima::fastdds::statistics::BaseStatus_s object to compare. + */ + eProsima_user_DllExport bool operator ==( + const BaseStatus_s& x) const; + + /*! + * @brief Comparison operator. + * @param x eprosima::fastdds::statistics::BaseStatus_s object to compare. + */ + eProsima_user_DllExport bool operator !=( + const BaseStatus_s& x) const; + + /*! + * @brief This function sets a value in member total_count + * @param _total_count New value for member total_count + */ + eProsima_user_DllExport void total_count( + uint32_t _total_count); + + /*! + * @brief This function returns the value of member total_count + * @return Value of member total_count + */ + eProsima_user_DllExport uint32_t total_count() const; + + /*! + * @brief This function returns a reference to member total_count + * @return Reference to member total_count + */ + eProsima_user_DllExport uint32_t& total_count(); + +private: + + uint32_t m_total_count{0}; + +}; + + +typedef std::vector QosPolicyCountSeq_s; + + + +/*! + * @brief This class represents the structure IncompatibleQoSStatus_s defined by the user in the IDL file. + * @ingroup monitorservice_types + */ +class IncompatibleQoSStatus_s +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport IncompatibleQoSStatus_s(); + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~IncompatibleQoSStatus_s(); + + /*! + * @brief Copy constructor. + * @param x Reference to the object eprosima::fastdds::statistics::IncompatibleQoSStatus_s that will be copied. + */ + eProsima_user_DllExport IncompatibleQoSStatus_s( + const IncompatibleQoSStatus_s& x); + + /*! + * @brief Move constructor. + * @param x Reference to the object eprosima::fastdds::statistics::IncompatibleQoSStatus_s that will be copied. + */ + eProsima_user_DllExport IncompatibleQoSStatus_s( + IncompatibleQoSStatus_s&& x) noexcept; + + /*! + * @brief Copy assignment. + * @param x Reference to the object eprosima::fastdds::statistics::IncompatibleQoSStatus_s that will be copied. + */ + eProsima_user_DllExport IncompatibleQoSStatus_s& operator =( + const IncompatibleQoSStatus_s& x); + + /*! + * @brief Move assignment. + * @param x Reference to the object eprosima::fastdds::statistics::IncompatibleQoSStatus_s that will be copied. + */ + eProsima_user_DllExport IncompatibleQoSStatus_s& operator =( + IncompatibleQoSStatus_s&& x) noexcept; + + /*! + * @brief Comparison operator. + * @param x eprosima::fastdds::statistics::IncompatibleQoSStatus_s object to compare. + */ + eProsima_user_DllExport bool operator ==( + const IncompatibleQoSStatus_s& x) const; + + /*! + * @brief Comparison operator. + * @param x eprosima::fastdds::statistics::IncompatibleQoSStatus_s object to compare. + */ + eProsima_user_DllExport bool operator !=( + const IncompatibleQoSStatus_s& x) const; + + /*! + * @brief This function sets a value in member total_count + * @param _total_count New value for member total_count + */ + eProsima_user_DllExport void total_count( + uint32_t _total_count); + + /*! + * @brief This function returns the value of member total_count + * @return Value of member total_count + */ + eProsima_user_DllExport uint32_t total_count() const; + + /*! + * @brief This function returns a reference to member total_count + * @return Reference to member total_count + */ + eProsima_user_DllExport uint32_t& total_count(); + + + /*! + * @brief This function sets a value in member last_policy_id + * @param _last_policy_id New value for member last_policy_id + */ + eProsima_user_DllExport void last_policy_id( + uint32_t _last_policy_id); + + /*! + * @brief This function returns the value of member last_policy_id + * @return Value of member last_policy_id + */ + eProsima_user_DllExport uint32_t last_policy_id() const; + + /*! + * @brief This function returns a reference to member last_policy_id + * @return Reference to member last_policy_id + */ + eProsima_user_DllExport uint32_t& last_policy_id(); + + + /*! + * @brief This function copies the value in member policies + * @param _policies New value to be copied in member policies + */ + eProsima_user_DllExport void policies( + const eprosima::fastdds::statistics::QosPolicyCountSeq_s& _policies); + + /*! + * @brief This function moves the value in member policies + * @param _policies New value to be moved in member policies + */ + eProsima_user_DllExport void policies( + eprosima::fastdds::statistics::QosPolicyCountSeq_s&& _policies); + + /*! + * @brief This function returns a constant reference to member policies + * @return Constant reference to member policies + */ + eProsima_user_DllExport const eprosima::fastdds::statistics::QosPolicyCountSeq_s& policies() const; + + /*! + * @brief This function returns a reference to member policies + * @return Reference to member policies + */ + eProsima_user_DllExport eprosima::fastdds::statistics::QosPolicyCountSeq_s& policies(); + +private: + + uint32_t m_total_count{0}; + uint32_t m_last_policy_id{0}; + eprosima::fastdds::statistics::QosPolicyCountSeq_s m_policies; + +}; + + +/*! + * @brief This class represents the structure LivelinessChangedStatus_s defined by the user in the IDL file. + * @ingroup monitorservice_types + */ +class LivelinessChangedStatus_s +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport LivelinessChangedStatus_s(); + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~LivelinessChangedStatus_s(); + + /*! + * @brief Copy constructor. + * @param x Reference to the object eprosima::fastdds::statistics::LivelinessChangedStatus_s that will be copied. + */ + eProsima_user_DllExport LivelinessChangedStatus_s( + const LivelinessChangedStatus_s& x); + + /*! + * @brief Move constructor. + * @param x Reference to the object eprosima::fastdds::statistics::LivelinessChangedStatus_s that will be copied. + */ + eProsima_user_DllExport LivelinessChangedStatus_s( + LivelinessChangedStatus_s&& x) noexcept; + + /*! + * @brief Copy assignment. + * @param x Reference to the object eprosima::fastdds::statistics::LivelinessChangedStatus_s that will be copied. + */ + eProsima_user_DllExport LivelinessChangedStatus_s& operator =( + const LivelinessChangedStatus_s& x); + + /*! + * @brief Move assignment. + * @param x Reference to the object eprosima::fastdds::statistics::LivelinessChangedStatus_s that will be copied. + */ + eProsima_user_DllExport LivelinessChangedStatus_s& operator =( + LivelinessChangedStatus_s&& x) noexcept; + + /*! + * @brief Comparison operator. + * @param x eprosima::fastdds::statistics::LivelinessChangedStatus_s object to compare. + */ + eProsima_user_DllExport bool operator ==( + const LivelinessChangedStatus_s& x) const; + + /*! + * @brief Comparison operator. + * @param x eprosima::fastdds::statistics::LivelinessChangedStatus_s object to compare. + */ + eProsima_user_DllExport bool operator !=( + const LivelinessChangedStatus_s& x) const; + + /*! + * @brief This function sets a value in member alive_count + * @param _alive_count New value for member alive_count + */ + eProsima_user_DllExport void alive_count( + uint32_t _alive_count); + + /*! + * @brief This function returns the value of member alive_count + * @return Value of member alive_count + */ + eProsima_user_DllExport uint32_t alive_count() const; + + /*! + * @brief This function returns a reference to member alive_count + * @return Reference to member alive_count + */ + eProsima_user_DllExport uint32_t& alive_count(); + + + /*! + * @brief This function sets a value in member not_alive_count + * @param _not_alive_count New value for member not_alive_count + */ + eProsima_user_DllExport void not_alive_count( + uint32_t _not_alive_count); + + /*! + * @brief This function returns the value of member not_alive_count + * @return Value of member not_alive_count + */ + eProsima_user_DllExport uint32_t not_alive_count() const; + + /*! + * @brief This function returns a reference to member not_alive_count + * @return Reference to member not_alive_count + */ + eProsima_user_DllExport uint32_t& 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 + */ + eProsima_user_DllExport void last_publication_handle( + const std::array& _last_publication_handle); + + /*! + * @brief This function moves the value in member last_publication_handle + * @param _last_publication_handle New value to be moved in member last_publication_handle + */ + eProsima_user_DllExport void last_publication_handle( + std::array&& _last_publication_handle); + + /*! + * @brief This function returns a constant reference to member last_publication_handle + * @return Constant reference to member last_publication_handle + */ + eProsima_user_DllExport const std::array& last_publication_handle() const; + + /*! + * @brief This function returns a reference to member last_publication_handle + * @return Reference to member last_publication_handle + */ + eProsima_user_DllExport std::array& last_publication_handle(); + +private: + + uint32_t m_alive_count{0}; + uint32_t m_not_alive_count{0}; + std::array m_last_publication_handle{0}; + +}; + + +/*! + * @brief This class represents the structure DeadlineMissedStatus_s defined by the user in the IDL file. + * @ingroup monitorservice_types + */ +class DeadlineMissedStatus_s +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport DeadlineMissedStatus_s(); + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~DeadlineMissedStatus_s(); + + /*! + * @brief Copy constructor. + * @param x Reference to the object eprosima::fastdds::statistics::DeadlineMissedStatus_s that will be copied. + */ + eProsima_user_DllExport DeadlineMissedStatus_s( + const DeadlineMissedStatus_s& x); + + /*! + * @brief Move constructor. + * @param x Reference to the object eprosima::fastdds::statistics::DeadlineMissedStatus_s that will be copied. + */ + eProsima_user_DllExport DeadlineMissedStatus_s( + DeadlineMissedStatus_s&& x) noexcept; + + /*! + * @brief Copy assignment. + * @param x Reference to the object eprosima::fastdds::statistics::DeadlineMissedStatus_s that will be copied. + */ + eProsima_user_DllExport DeadlineMissedStatus_s& operator =( + const DeadlineMissedStatus_s& x); + + /*! + * @brief Move assignment. + * @param x Reference to the object eprosima::fastdds::statistics::DeadlineMissedStatus_s that will be copied. + */ + eProsima_user_DllExport DeadlineMissedStatus_s& operator =( + DeadlineMissedStatus_s&& x) noexcept; + + /*! + * @brief Comparison operator. + * @param x eprosima::fastdds::statistics::DeadlineMissedStatus_s object to compare. + */ + eProsima_user_DllExport bool operator ==( + const DeadlineMissedStatus_s& x) const; + + /*! + * @brief Comparison operator. + * @param x eprosima::fastdds::statistics::DeadlineMissedStatus_s object to compare. + */ + eProsima_user_DllExport bool operator !=( + const DeadlineMissedStatus_s& x) const; + + /*! + * @brief This function sets a value in member total_count + * @param _total_count New value for member total_count + */ + eProsima_user_DllExport void total_count( + uint32_t _total_count); + + /*! + * @brief This function returns the value of member total_count + * @return Value of member total_count + */ + eProsima_user_DllExport uint32_t total_count() const; + + /*! + * @brief This function returns a reference to member total_count + * @return Reference to member total_count + */ + eProsima_user_DllExport uint32_t& 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 + */ + eProsima_user_DllExport void last_instance_handle( + const std::array& _last_instance_handle); + + /*! + * @brief This function moves the value in member last_instance_handle + * @param _last_instance_handle New value to be moved in member last_instance_handle + */ + eProsima_user_DllExport void last_instance_handle( + std::array&& _last_instance_handle); + + /*! + * @brief This function returns a constant reference to member last_instance_handle + * @return Constant reference to member last_instance_handle + */ + eProsima_user_DllExport const std::array& last_instance_handle() const; + + /*! + * @brief This function returns a reference to member last_instance_handle + * @return Reference to member last_instance_handle + */ + eProsima_user_DllExport std::array& last_instance_handle(); + +private: + + uint32_t m_total_count{0}; + std::array m_last_instance_handle{0}; + +}; +typedef eprosima::fastdds::statistics::BaseStatus_s LivelinessLostStatus_s; + +typedef eprosima::fastdds::statistics::BaseStatus_s InconsistentTopicStatus_s; + +typedef eprosima::fastdds::statistics::BaseStatus_s SampleLostStatus_s; + +/*! + * @brief This class represents the enumeration StatusKind defined by the user in the IDL file. + * @ingroup monitorservice_types + */ +enum StatusKind : uint32_t +{ + PROXY, + CONNECTION_LIST, + INCOMPATIBLE_QOS, + INCONSISTENT_TOPIC, + LIVELINESS_LOST, + LIVELINESS_CHANGED, + DEADLINE_MISSED, + SAMPLE_LOST, + STATUSES_SIZE +}; + + +/*! + * @brief This class represents the union MonitorServiceData defined by the user in the IDL file. + * @ingroup monitorservice_types + */ +class MonitorServiceData +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport MonitorServiceData(); + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~MonitorServiceData(); + + /*! + * @brief Copy constructor. + * @param x Reference to the object eprosima::fastdds::statistics::MonitorServiceData that will be copied. + */ + eProsima_user_DllExport MonitorServiceData( + const MonitorServiceData& x); + + /*! + * @brief Move constructor. + * @param x Reference to the object eprosima::fastdds::statistics::MonitorServiceData that will be copied. + */ + eProsima_user_DllExport MonitorServiceData( + MonitorServiceData&& x) noexcept; + + /*! + * @brief Copy assignment. + * @param x Reference to the object eprosima::fastdds::statistics::MonitorServiceData that will be copied. + */ + eProsima_user_DllExport MonitorServiceData& operator =( + const MonitorServiceData& x); + + /*! + * @brief Move assignment. + * @param x Reference to the object eprosima::fastdds::statistics::MonitorServiceData that will be copied. + */ + eProsima_user_DllExport MonitorServiceData& operator =( + MonitorServiceData&& x) noexcept; + + /*! + * @brief Comparison operator. + * @param x eprosima::fastdds::statistics::MonitorServiceData object to compare. + */ + eProsima_user_DllExport bool operator ==( + const MonitorServiceData& x) const; + + /*! + * @brief Comparison operator. + * @param x eprosima::fastdds::statistics::MonitorServiceData object to compare. + */ + eProsima_user_DllExport bool operator !=( + const MonitorServiceData& x) const; + + /*! + * @brief This function sets the discriminator value. + * @param __d New value for the discriminator. + * @exception eprosima::fastcdr::BadParamException This exception is thrown if the new value doesn't correspond to the selected union member. + */ + eProsima_user_DllExport void _d( + eprosima::fastdds::statistics::StatusKind __d); + + /*! + * @brief This function returns the value of the discriminator. + * @return Value of the discriminator + */ + eProsima_user_DllExport eprosima::fastdds::statistics::StatusKind _d() const; + + /*! + * @brief This function returns a reference to the discriminator. + * @return Reference to the discriminator. + */ + eProsima_user_DllExport eprosima::fastdds::statistics::StatusKind& _d(); + + /*! + * @brief This function copies the value in member entity_proxy + * @param _entity_proxy New value to be copied in member entity_proxy + */ + eProsima_user_DllExport void entity_proxy( + const std::vector& _entity_proxy); + + /*! + * @brief This function moves the value in member entity_proxy + * @param _entity_proxy New value to be moved in member entity_proxy + */ + eProsima_user_DllExport void entity_proxy( + std::vector&& _entity_proxy); + + /*! + * @brief This function returns a constant reference to member entity_proxy + * @return Constant reference to member entity_proxy + * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. + */ + eProsima_user_DllExport const std::vector& entity_proxy() const; + + /*! + * @brief This function returns a reference to member entity_proxy + * @return Reference to member entity_proxy + * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. + */ + eProsima_user_DllExport std::vector& entity_proxy(); + + + /*! + * @brief This function copies the value in member connection_list + * @param _connection_list New value to be copied in member connection_list + */ + eProsima_user_DllExport void connection_list( + const std::vector& _connection_list); + + /*! + * @brief This function moves the value in member connection_list + * @param _connection_list New value to be moved in member connection_list + */ + eProsima_user_DllExport void connection_list( + std::vector&& _connection_list); + + /*! + * @brief This function returns a constant reference to member connection_list + * @return Constant reference to member connection_list + * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. + */ + eProsima_user_DllExport const std::vector& connection_list() const; + + /*! + * @brief This function returns a reference to member connection_list + * @return Reference to member connection_list + * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. + */ + eProsima_user_DllExport std::vector& 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 + */ + eProsima_user_DllExport void incompatible_qos_status( + const eprosima::fastdds::statistics::IncompatibleQoSStatus_s& _incompatible_qos_status); + + /*! + * @brief This function moves the value in member incompatible_qos_status + * @param _incompatible_qos_status New value to be moved in member incompatible_qos_status + */ + eProsima_user_DllExport void incompatible_qos_status( + eprosima::fastdds::statistics::IncompatibleQoSStatus_s&& _incompatible_qos_status); + + /*! + * @brief This function returns a constant reference to member incompatible_qos_status + * @return Constant reference to member incompatible_qos_status + * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. + */ + eProsima_user_DllExport const eprosima::fastdds::statistics::IncompatibleQoSStatus_s& incompatible_qos_status() const; + + /*! + * @brief This function returns a reference to member incompatible_qos_status + * @return Reference to member incompatible_qos_status + * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. + */ + eProsima_user_DllExport eprosima::fastdds::statistics::IncompatibleQoSStatus_s& 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 + */ + eProsima_user_DllExport void inconsistent_topic_status( + const eprosima::fastdds::statistics::InconsistentTopicStatus_s& _inconsistent_topic_status); + + /*! + * @brief This function moves the value in member inconsistent_topic_status + * @param _inconsistent_topic_status New value to be moved in member inconsistent_topic_status + */ + eProsima_user_DllExport void inconsistent_topic_status( + eprosima::fastdds::statistics::InconsistentTopicStatus_s&& _inconsistent_topic_status); + + /*! + * @brief This function returns a constant reference to member inconsistent_topic_status + * @return Constant reference to member inconsistent_topic_status + * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. + */ + eProsima_user_DllExport const eprosima::fastdds::statistics::InconsistentTopicStatus_s& inconsistent_topic_status() const; + + /*! + * @brief This function returns a reference to member inconsistent_topic_status + * @return Reference to member inconsistent_topic_status + * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. + */ + eProsima_user_DllExport eprosima::fastdds::statistics::InconsistentTopicStatus_s& 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 + */ + eProsima_user_DllExport void liveliness_lost_status( + const eprosima::fastdds::statistics::LivelinessLostStatus_s& _liveliness_lost_status); + + /*! + * @brief This function moves the value in member liveliness_lost_status + * @param _liveliness_lost_status New value to be moved in member liveliness_lost_status + */ + eProsima_user_DllExport void liveliness_lost_status( + eprosima::fastdds::statistics::LivelinessLostStatus_s&& _liveliness_lost_status); + + /*! + * @brief This function returns a constant reference to member liveliness_lost_status + * @return Constant reference to member liveliness_lost_status + * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. + */ + eProsima_user_DllExport const eprosima::fastdds::statistics::LivelinessLostStatus_s& liveliness_lost_status() const; + + /*! + * @brief This function returns a reference to member liveliness_lost_status + * @return Reference to member liveliness_lost_status + * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. + */ + eProsima_user_DllExport eprosima::fastdds::statistics::LivelinessLostStatus_s& 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 + */ + eProsima_user_DllExport void liveliness_changed_status( + const eprosima::fastdds::statistics::LivelinessChangedStatus_s& _liveliness_changed_status); + + /*! + * @brief This function moves the value in member liveliness_changed_status + * @param _liveliness_changed_status New value to be moved in member liveliness_changed_status + */ + eProsima_user_DllExport void liveliness_changed_status( + eprosima::fastdds::statistics::LivelinessChangedStatus_s&& _liveliness_changed_status); + + /*! + * @brief This function returns a constant reference to member liveliness_changed_status + * @return Constant reference to member liveliness_changed_status + * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. + */ + eProsima_user_DllExport const eprosima::fastdds::statistics::LivelinessChangedStatus_s& liveliness_changed_status() const; + + /*! + * @brief This function returns a reference to member liveliness_changed_status + * @return Reference to member liveliness_changed_status + * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. + */ + eProsima_user_DllExport eprosima::fastdds::statistics::LivelinessChangedStatus_s& 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 + */ + eProsima_user_DllExport void deadline_missed_status( + const eprosima::fastdds::statistics::DeadlineMissedStatus_s& _deadline_missed_status); + + /*! + * @brief This function moves the value in member deadline_missed_status + * @param _deadline_missed_status New value to be moved in member deadline_missed_status + */ + eProsima_user_DllExport void deadline_missed_status( + eprosima::fastdds::statistics::DeadlineMissedStatus_s&& _deadline_missed_status); + + /*! + * @brief This function returns a constant reference to member deadline_missed_status + * @return Constant reference to member deadline_missed_status + * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. + */ + eProsima_user_DllExport const eprosima::fastdds::statistics::DeadlineMissedStatus_s& deadline_missed_status() const; + + /*! + * @brief This function returns a reference to member deadline_missed_status + * @return Reference to member deadline_missed_status + * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. + */ + eProsima_user_DllExport eprosima::fastdds::statistics::DeadlineMissedStatus_s& 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 + */ + eProsima_user_DllExport void sample_lost_status( + const eprosima::fastdds::statistics::SampleLostStatus_s& _sample_lost_status); + + /*! + * @brief This function moves the value in member sample_lost_status + * @param _sample_lost_status New value to be moved in member sample_lost_status + */ + eProsima_user_DllExport void sample_lost_status( + eprosima::fastdds::statistics::SampleLostStatus_s&& _sample_lost_status); + + /*! + * @brief This function returns a constant reference to member sample_lost_status + * @return Constant reference to member sample_lost_status + * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. + */ + eProsima_user_DllExport const eprosima::fastdds::statistics::SampleLostStatus_s& sample_lost_status() const; + + /*! + * @brief This function returns a reference to member sample_lost_status + * @return Reference to member sample_lost_status + * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. + */ + eProsima_user_DllExport eprosima::fastdds::statistics::SampleLostStatus_s& sample_lost_status(); + + + /*! + * @brief This function sets a value in member statuses_size + * @param _statuses_size New value for member statuses_size + */ + eProsima_user_DllExport void statuses_size( + uint8_t _statuses_size); + + /*! + * @brief This function returns the value of member statuses_size + * @return Value of member statuses_size + * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. + */ + eProsima_user_DllExport uint8_t statuses_size() const; + + /*! + * @brief This function returns a reference to member statuses_size + * @return Reference to member statuses_size + * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. + */ + eProsima_user_DllExport uint8_t& statuses_size(); + +private: + + eprosima::fastdds::statistics::StatusKind m__d; + + std::vector m_entity_proxy; + std::vector m_connection_list; + eprosima::fastdds::statistics::IncompatibleQoSStatus_s m_incompatible_qos_status; + eprosima::fastdds::statistics::InconsistentTopicStatus_s m_inconsistent_topic_status; + eprosima::fastdds::statistics::LivelinessLostStatus_s m_liveliness_lost_status; + eprosima::fastdds::statistics::LivelinessChangedStatus_s m_liveliness_changed_status; + eprosima::fastdds::statistics::DeadlineMissedStatus_s m_deadline_missed_status; + eprosima::fastdds::statistics::SampleLostStatus_s m_sample_lost_status; + uint8_t m_statuses_size{0}; +}; + + +/*! + * @brief This class represents the structure MonitorServiceStatusData defined by the user in the IDL file. + * @ingroup monitorservice_types + */ +class MonitorServiceStatusData +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport MonitorServiceStatusData(); + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~MonitorServiceStatusData(); + + /*! + * @brief Copy constructor. + * @param x Reference to the object eprosima::fastdds::statistics::MonitorServiceStatusData that will be copied. + */ + eProsima_user_DllExport MonitorServiceStatusData( + const MonitorServiceStatusData& x); + + /*! + * @brief Move constructor. + * @param x Reference to the object eprosima::fastdds::statistics::MonitorServiceStatusData that will be copied. + */ + eProsima_user_DllExport MonitorServiceStatusData( + MonitorServiceStatusData&& x) noexcept; + + /*! + * @brief Copy assignment. + * @param x Reference to the object eprosima::fastdds::statistics::MonitorServiceStatusData that will be copied. + */ + eProsima_user_DllExport MonitorServiceStatusData& operator =( + const MonitorServiceStatusData& x); + + /*! + * @brief Move assignment. + * @param x Reference to the object eprosima::fastdds::statistics::MonitorServiceStatusData that will be copied. + */ + eProsima_user_DllExport MonitorServiceStatusData& operator =( + MonitorServiceStatusData&& x) noexcept; + + /*! + * @brief Comparison operator. + * @param x eprosima::fastdds::statistics::MonitorServiceStatusData object to compare. + */ + eProsima_user_DllExport bool operator ==( + const MonitorServiceStatusData& x) const; + + /*! + * @brief Comparison operator. + * @param x eprosima::fastdds::statistics::MonitorServiceStatusData object to compare. + */ + eProsima_user_DllExport bool operator !=( + const MonitorServiceStatusData& x) const; + + /*! + * @brief This function copies the value in member local_entity + * @param _local_entity New value to be copied in member local_entity + */ + eProsima_user_DllExport void local_entity( + const eprosima::fastdds::statistics::detail::GUID_s& _local_entity); + + /*! + * @brief This function moves the value in member local_entity + * @param _local_entity New value to be moved in member local_entity + */ + eProsima_user_DllExport void local_entity( + eprosima::fastdds::statistics::detail::GUID_s&& _local_entity); + + /*! + * @brief This function returns a constant reference to member local_entity + * @return Constant reference to member local_entity + */ + eProsima_user_DllExport const eprosima::fastdds::statistics::detail::GUID_s& local_entity() const; + + /*! + * @brief This function returns a reference to member local_entity + * @return Reference to member local_entity + */ + eProsima_user_DllExport eprosima::fastdds::statistics::detail::GUID_s& local_entity(); + + + /*! + * @brief This function sets a value in member status_kind + * @param _status_kind New value for member status_kind + */ + eProsima_user_DllExport void status_kind( + eprosima::fastdds::statistics::StatusKind _status_kind); + + /*! + * @brief This function returns the value of member status_kind + * @return Value of member status_kind + */ + eProsima_user_DllExport eprosima::fastdds::statistics::StatusKind status_kind() const; + + /*! + * @brief This function returns a reference to member status_kind + * @return Reference to member status_kind + */ + eProsima_user_DllExport eprosima::fastdds::statistics::StatusKind& status_kind(); + + + /*! + * @brief This function copies the value in member value + * @param _value New value to be copied in member value + */ + eProsima_user_DllExport void value( + const eprosima::fastdds::statistics::MonitorServiceData& _value); + + /*! + * @brief This function moves the value in member value + * @param _value New value to be moved in member value + */ + eProsima_user_DllExport void value( + eprosima::fastdds::statistics::MonitorServiceData&& _value); + + /*! + * @brief This function returns a constant reference to member value + * @return Constant reference to member value + */ + eProsima_user_DllExport const eprosima::fastdds::statistics::MonitorServiceData& value() const; + + /*! + * @brief This function returns a reference to member value + * @return Reference to member value + */ + eProsima_user_DllExport eprosima::fastdds::statistics::MonitorServiceData& value(); + +private: + + eprosima::fastdds::statistics::detail::GUID_s m_local_entity; + eprosima::fastdds::statistics::StatusKind m_status_kind{eprosima::fastdds::statistics::PROXY}; + eprosima::fastdds::statistics::MonitorServiceData m_value; + +}; + +} // namespace statistics + +} // namespace fastdds + } // namespace eprosima #endif // _FAST_DDS_GENERATED_EPROSIMA_FASTDDS_STATISTICS_MONITORSERVICE_TYPES_H_ + + +#endif // FASTCDR_VERSION_MAJOR > 1 diff --git a/src/cpp/statistics/types/monitorservice_typesCdrAux.hpp b/src/cpp/statistics/types/monitorservice_typesCdrAux.hpp index 8aefbb65c68..f50dc36ec34 100644 --- a/src/cpp/statistics/types/monitorservice_typesCdrAux.hpp +++ b/src/cpp/statistics/types/monitorservice_typesCdrAux.hpp @@ -73,27 +73,44 @@ namespace fastcdr { class Cdr; class CdrSizeCalculator; + + + + eProsima_user_DllExport void serialize_key( eprosima::fastcdr::Cdr& scdr, const eprosima::fastdds::statistics::Connection& data); + + eProsima_user_DllExport void serialize_key( eprosima::fastcdr::Cdr& scdr, const eprosima::fastdds::statistics::QosPolicyCount_s& data); + + eProsima_user_DllExport void serialize_key( eprosima::fastcdr::Cdr& scdr, const eprosima::fastdds::statistics::BaseStatus_s& data); + + + + + eProsima_user_DllExport void serialize_key( eprosima::fastcdr::Cdr& scdr, const eprosima::fastdds::statistics::IncompatibleQoSStatus_s& data); + + eProsima_user_DllExport void serialize_key( eprosima::fastcdr::Cdr& scdr, const eprosima::fastdds::statistics::LivelinessChangedStatus_s& data); + + eProsima_user_DllExport void serialize_key( eprosima::fastcdr::Cdr& scdr, const eprosima::fastdds::statistics::DeadlineMissedStatus_s& data); @@ -103,6 +120,14 @@ eProsima_user_DllExport void serialize_key( + + + + + + + + eProsima_user_DllExport void serialize_key( eprosima::fastcdr::Cdr& scdr, const eprosima::fastdds::statistics::MonitorServiceStatusData& data); @@ -114,4 +139,5 @@ eProsima_user_DllExport void serialize_key( } // namespace fastcdr } // namespace eprosima -#endif // _FAST_DDS_GENERATED_EPROSIMA_FASTDDS_STATISTICS_MONITORSERVICE_TYPESCDRAUX_HPP_ \ No newline at end of file +#endif // _FAST_DDS_GENERATED_EPROSIMA_FASTDDS_STATISTICS_MONITORSERVICE_TYPESCDRAUX_HPP_ + diff --git a/src/cpp/statistics/types/monitorservice_typesCdrAux.ipp b/src/cpp/statistics/types/monitorservice_typesCdrAux.ipp index fe0da4e2b7e..e62bf9d9cee 100644 --- a/src/cpp/statistics/types/monitorservice_typesCdrAux.ipp +++ b/src/cpp/statistics/types/monitorservice_typesCdrAux.ipp @@ -34,12 +34,18 @@ using namespace eprosima::fastcdr::exception; namespace eprosima { namespace fastcdr { + + + + template<> eProsima_user_DllExport size_t calculate_serialized_size( eprosima::fastcdr::CdrSizeCalculator& calculator, const eprosima::fastdds::statistics::Connection& data, size_t& current_alignment) { + using namespace eprosima::fastdds::statistics; + static_cast(data); eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); @@ -73,6 +79,8 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::Cdr& scdr, const eprosima::fastdds::statistics::Connection& data) { + using namespace eprosima::fastdds::statistics; + eprosima::fastcdr::Cdr::state current_state(scdr); scdr.begin_serialize_type(current_state, eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? @@ -85,7 +93,6 @@ eProsima_user_DllExport void serialize( << eprosima::fastcdr::MemberId(2) << data.announced_locators() << eprosima::fastcdr::MemberId(3) << data.used_locators() ; - scdr.end_serialize_type(current_state); } @@ -94,6 +101,8 @@ eProsima_user_DllExport void deserialize( eprosima::fastcdr::Cdr& cdr, eprosima::fastdds::statistics::Connection& data) { + using namespace eprosima::fastdds::statistics; + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, @@ -130,17 +139,23 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const eprosima::fastdds::statistics::Connection& data) { + using namespace eprosima::fastdds::statistics; + static_cast(scdr); static_cast(data); } + + template<> eProsima_user_DllExport size_t calculate_serialized_size( eprosima::fastcdr::CdrSizeCalculator& calculator, const eprosima::fastdds::statistics::QosPolicyCount_s& data, size_t& current_alignment) { + using namespace eprosima::fastdds::statistics; + static_cast(data); eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); @@ -168,6 +183,8 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::Cdr& scdr, const eprosima::fastdds::statistics::QosPolicyCount_s& data) { + using namespace eprosima::fastdds::statistics; + eprosima::fastcdr::Cdr::state current_state(scdr); scdr.begin_serialize_type(current_state, eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? @@ -178,7 +195,6 @@ eProsima_user_DllExport void serialize( << eprosima::fastcdr::MemberId(0) << data.policy_id() << eprosima::fastcdr::MemberId(1) << data.count() ; - scdr.end_serialize_type(current_state); } @@ -187,6 +203,8 @@ eProsima_user_DllExport void deserialize( eprosima::fastcdr::Cdr& cdr, eprosima::fastdds::statistics::QosPolicyCount_s& data) { + using namespace eprosima::fastdds::statistics; + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, @@ -215,17 +233,23 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const eprosima::fastdds::statistics::QosPolicyCount_s& data) { + using namespace eprosima::fastdds::statistics; + static_cast(scdr); static_cast(data); } + + template<> eProsima_user_DllExport size_t calculate_serialized_size( eprosima::fastcdr::CdrSizeCalculator& calculator, const eprosima::fastdds::statistics::BaseStatus_s& data, size_t& current_alignment) { + using namespace eprosima::fastdds::statistics; + static_cast(data); eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); @@ -250,6 +274,8 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::Cdr& scdr, const eprosima::fastdds::statistics::BaseStatus_s& data) { + using namespace eprosima::fastdds::statistics; + eprosima::fastcdr::Cdr::state current_state(scdr); scdr.begin_serialize_type(current_state, eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? @@ -259,7 +285,6 @@ eProsima_user_DllExport void serialize( scdr << eprosima::fastcdr::MemberId(0) << data.total_count() ; - scdr.end_serialize_type(current_state); } @@ -268,6 +293,8 @@ eProsima_user_DllExport void deserialize( eprosima::fastcdr::Cdr& cdr, eprosima::fastdds::statistics::BaseStatus_s& data) { + using namespace eprosima::fastdds::statistics; + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, @@ -292,18 +319,27 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const eprosima::fastdds::statistics::BaseStatus_s& data) { + using namespace eprosima::fastdds::statistics; + static_cast(scdr); static_cast(data); } + + + + + template<> eProsima_user_DllExport size_t calculate_serialized_size( eprosima::fastcdr::CdrSizeCalculator& calculator, const eprosima::fastdds::statistics::IncompatibleQoSStatus_s& data, size_t& current_alignment) { + using namespace eprosima::fastdds::statistics; + static_cast(data); eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); @@ -334,6 +370,8 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::Cdr& scdr, const eprosima::fastdds::statistics::IncompatibleQoSStatus_s& data) { + using namespace eprosima::fastdds::statistics; + eprosima::fastcdr::Cdr::state current_state(scdr); scdr.begin_serialize_type(current_state, eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? @@ -345,7 +383,6 @@ eProsima_user_DllExport void serialize( << eprosima::fastcdr::MemberId(1) << data.last_policy_id() << eprosima::fastcdr::MemberId(2) << data.policies() ; - scdr.end_serialize_type(current_state); } @@ -354,6 +391,8 @@ eProsima_user_DllExport void deserialize( eprosima::fastcdr::Cdr& cdr, eprosima::fastdds::statistics::IncompatibleQoSStatus_s& data) { + using namespace eprosima::fastdds::statistics; + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, @@ -386,17 +425,23 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const eprosima::fastdds::statistics::IncompatibleQoSStatus_s& data) { + using namespace eprosima::fastdds::statistics; + static_cast(scdr); static_cast(data); } + + template<> eProsima_user_DllExport size_t calculate_serialized_size( eprosima::fastcdr::CdrSizeCalculator& calculator, const eprosima::fastdds::statistics::LivelinessChangedStatus_s& data, size_t& current_alignment) { + using namespace eprosima::fastdds::statistics; + static_cast(data); eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); @@ -427,6 +472,8 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::Cdr& scdr, const eprosima::fastdds::statistics::LivelinessChangedStatus_s& data) { + using namespace eprosima::fastdds::statistics; + eprosima::fastcdr::Cdr::state current_state(scdr); scdr.begin_serialize_type(current_state, eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? @@ -438,7 +485,6 @@ eProsima_user_DllExport void serialize( << eprosima::fastcdr::MemberId(1) << data.not_alive_count() << eprosima::fastcdr::MemberId(2) << data.last_publication_handle() ; - scdr.end_serialize_type(current_state); } @@ -447,6 +493,8 @@ eProsima_user_DllExport void deserialize( eprosima::fastcdr::Cdr& cdr, eprosima::fastdds::statistics::LivelinessChangedStatus_s& data) { + using namespace eprosima::fastdds::statistics; + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, @@ -479,17 +527,23 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const eprosima::fastdds::statistics::LivelinessChangedStatus_s& data) { + using namespace eprosima::fastdds::statistics; + static_cast(scdr); static_cast(data); } + + template<> eProsima_user_DllExport size_t calculate_serialized_size( eprosima::fastcdr::CdrSizeCalculator& calculator, const eprosima::fastdds::statistics::DeadlineMissedStatus_s& data, size_t& current_alignment) { + using namespace eprosima::fastdds::statistics; + static_cast(data); eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); @@ -517,6 +571,8 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::Cdr& scdr, const eprosima::fastdds::statistics::DeadlineMissedStatus_s& data) { + using namespace eprosima::fastdds::statistics; + eprosima::fastcdr::Cdr::state current_state(scdr); scdr.begin_serialize_type(current_state, eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? @@ -527,7 +583,6 @@ eProsima_user_DllExport void serialize( << eprosima::fastcdr::MemberId(0) << data.total_count() << eprosima::fastcdr::MemberId(1) << data.last_instance_handle() ; - scdr.end_serialize_type(current_state); } @@ -536,6 +591,8 @@ eProsima_user_DllExport void deserialize( eprosima::fastcdr::Cdr& cdr, eprosima::fastdds::statistics::DeadlineMissedStatus_s& data) { + using namespace eprosima::fastdds::statistics; + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, @@ -564,6 +621,8 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const eprosima::fastdds::statistics::DeadlineMissedStatus_s& data) { + using namespace eprosima::fastdds::statistics; + static_cast(scdr); static_cast(data); } @@ -573,12 +632,19 @@ void serialize_key( + + + + + template<> eProsima_user_DllExport size_t calculate_serialized_size( eprosima::fastcdr::CdrSizeCalculator& calculator, const eprosima::fastdds::statistics::MonitorServiceData& data, size_t& current_alignment) { + using namespace eprosima::fastdds::statistics; + static_cast(data); eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); @@ -638,6 +704,8 @@ eProsima_user_DllExport size_t calculate_serialized_size( data.statuses_size(), current_alignment); break; + default: + break; } calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -651,6 +719,8 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::Cdr& scdr, const eprosima::fastdds::statistics::MonitorServiceData& data) { + using namespace eprosima::fastdds::statistics; + eprosima::fastcdr::Cdr::state current_state(scdr); scdr.begin_serialize_type(current_state, eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? @@ -697,6 +767,8 @@ eProsima_user_DllExport void serialize( scdr << eprosima::fastcdr::MemberId(8) << data.statuses_size(); break; + default: + break; } scdr.end_serialize_type(current_state); @@ -707,6 +779,8 @@ eProsima_user_DllExport void deserialize( eprosima::fastcdr::Cdr& cdr, eprosima::fastdds::statistics::MonitorServiceData& data) { + using namespace eprosima::fastdds::statistics; + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, @@ -757,6 +831,8 @@ eProsima_user_DllExport void deserialize( dcdr >> data.statuses_size(); break; + default: + break; } ret_value = false; break; @@ -765,12 +841,16 @@ eProsima_user_DllExport void deserialize( }); } + + template<> eProsima_user_DllExport size_t calculate_serialized_size( eprosima::fastcdr::CdrSizeCalculator& calculator, const eprosima::fastdds::statistics::MonitorServiceStatusData& data, size_t& current_alignment) { + using namespace eprosima::fastdds::statistics; + static_cast(data); eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); @@ -801,6 +881,8 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::Cdr& scdr, const eprosima::fastdds::statistics::MonitorServiceStatusData& data) { + using namespace eprosima::fastdds::statistics; + eprosima::fastcdr::Cdr::state current_state(scdr); scdr.begin_serialize_type(current_state, eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? @@ -812,7 +894,6 @@ eProsima_user_DllExport void serialize( << eprosima::fastcdr::MemberId(1) << data.status_kind() << eprosima::fastcdr::MemberId(2) << data.value() ; - scdr.end_serialize_type(current_state); } @@ -821,6 +902,8 @@ eProsima_user_DllExport void deserialize( eprosima::fastcdr::Cdr& cdr, eprosima::fastdds::statistics::MonitorServiceStatusData& data) { + using namespace eprosima::fastdds::statistics; + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2 : eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, @@ -853,6 +936,8 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const eprosima::fastdds::statistics::MonitorServiceStatusData& data) { + using namespace eprosima::fastdds::statistics; + static_cast(scdr); static_cast(data); scdr << data.local_entity(); @@ -870,4 +955,5 @@ void serialize_key( } // namespace fastcdr } // namespace eprosima -#endif // _FAST_DDS_GENERATED_EPROSIMA_FASTDDS_STATISTICS_MONITORSERVICE_TYPESCDRAUX_IPP_ \ No newline at end of file +#endif // _FAST_DDS_GENERATED_EPROSIMA_FASTDDS_STATISTICS_MONITORSERVICE_TYPESCDRAUX_IPP_ + diff --git a/src/cpp/statistics/types/monitorservice_typesPubSubTypes.cxx b/src/cpp/statistics/types/monitorservice_typesPubSubTypes.cxx index ded99119407..f43bd3147b2 100644 --- a/src/cpp/statistics/types/monitorservice_typesPubSubTypes.cxx +++ b/src/cpp/statistics/types/monitorservice_typesPubSubTypes.cxx @@ -20,9 +20,7 @@ */ -#include -#include -#include +#include #include "monitorservice_typesPubSubTypes.h" #include "monitorservice_typesCdrAux.hpp" @@ -34,10 +32,19 @@ using DataRepresentationId_t = eprosima::fastdds::dds::DataRepresentationId_t; namespace eprosima { namespace fastdds { namespace statistics { + + + + ConnectionPubSubType::ConnectionPubSubType() { setName("eprosima::fastdds::statistics::Connection"); - uint32_t type_size = eprosima_fastdds_statistics_Connection_max_cdr_typesize; + uint32_t type_size = + #if FASTCDR_VERSION_MAJOR == 1 + static_cast(Connection::getMaxCdrSerializedSize()); + #else + eprosima_fastdds_statistics_Connection_max_cdr_typesize; + #endif type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ m_typeSize = type_size + 4; /*encapsulation*/ m_isGetKeyDefined = false; @@ -68,10 +75,12 @@ namespace eprosima { data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + #if FASTCDR_VERSION_MAJOR > 1 ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); + #endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -86,7 +95,11 @@ namespace eprosima { } // Get the serialized length + #if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); + #else payload->length = static_cast(ser.get_serialized_data_length()); + #endif // FASTCDR_VERSION_MAJOR == 1 return true; } @@ -103,7 +116,11 @@ namespace eprosima { eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN + #if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR + #endif // FASTCDR_VERSION_MAJOR == 1 + ); // Deserialize encapsulation. deser.read_encapsulation(); @@ -126,13 +143,26 @@ namespace eprosima { { return [data, data_representation]() -> uint32_t { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; + #if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; + #else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } + #endif // FASTCDR_VERSION_MAJOR == 1 }; } @@ -164,12 +194,20 @@ namespace eprosima { eprosima_fastdds_statistics_Connection_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS); + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); + #if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); + #else eprosima::fastcdr::serialize_key(ser, *p_type); + #endif // FASTCDR_VERSION_MAJOR == 1 if (force_md5 || eprosima_fastdds_statistics_Connection_max_key_cdr_typesize > 16) { m_md5.init(); + #if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); + #else m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); + #endif // FASTCDR_VERSION_MAJOR == 1 m_md5.finalize(); for (uint8_t i = 0; i < 16; ++i) { @@ -186,10 +224,17 @@ namespace eprosima { return true; } + + QosPolicyCount_sPubSubType::QosPolicyCount_sPubSubType() { setName("eprosima::fastdds::statistics::QosPolicyCount_s"); - uint32_t type_size = eprosima_fastdds_statistics_QosPolicyCount_s_max_cdr_typesize; + uint32_t type_size = + #if FASTCDR_VERSION_MAJOR == 1 + static_cast(QosPolicyCount_s::getMaxCdrSerializedSize()); + #else + eprosima_fastdds_statistics_QosPolicyCount_s_max_cdr_typesize; + #endif type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ m_typeSize = type_size + 4; /*encapsulation*/ m_isGetKeyDefined = false; @@ -220,10 +265,12 @@ namespace eprosima { data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + #if FASTCDR_VERSION_MAJOR > 1 ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); + #endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -238,7 +285,11 @@ namespace eprosima { } // Get the serialized length + #if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); + #else payload->length = static_cast(ser.get_serialized_data_length()); + #endif // FASTCDR_VERSION_MAJOR == 1 return true; } @@ -255,7 +306,11 @@ namespace eprosima { eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN + #if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR + #endif // FASTCDR_VERSION_MAJOR == 1 + ); // Deserialize encapsulation. deser.read_encapsulation(); @@ -278,13 +333,26 @@ namespace eprosima { { return [data, data_representation]() -> uint32_t { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; + #if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; + #else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } + #endif // FASTCDR_VERSION_MAJOR == 1 }; } @@ -316,12 +384,20 @@ namespace eprosima { eprosima_fastdds_statistics_QosPolicyCount_s_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS); + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); + #if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); + #else eprosima::fastcdr::serialize_key(ser, *p_type); + #endif // FASTCDR_VERSION_MAJOR == 1 if (force_md5 || eprosima_fastdds_statistics_QosPolicyCount_s_max_key_cdr_typesize > 16) { m_md5.init(); + #if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); + #else m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); + #endif // FASTCDR_VERSION_MAJOR == 1 m_md5.finalize(); for (uint8_t i = 0; i < 16; ++i) { @@ -338,10 +414,17 @@ namespace eprosima { return true; } + + BaseStatus_sPubSubType::BaseStatus_sPubSubType() { setName("eprosima::fastdds::statistics::BaseStatus_s"); - uint32_t type_size = eprosima_fastdds_statistics_BaseStatus_s_max_cdr_typesize; + uint32_t type_size = + #if FASTCDR_VERSION_MAJOR == 1 + static_cast(BaseStatus_s::getMaxCdrSerializedSize()); + #else + eprosima_fastdds_statistics_BaseStatus_s_max_cdr_typesize; + #endif type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ m_typeSize = type_size + 4; /*encapsulation*/ m_isGetKeyDefined = false; @@ -372,10 +455,12 @@ namespace eprosima { data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + #if FASTCDR_VERSION_MAJOR > 1 ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); + #endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -390,7 +475,11 @@ namespace eprosima { } // Get the serialized length + #if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); + #else payload->length = static_cast(ser.get_serialized_data_length()); + #endif // FASTCDR_VERSION_MAJOR == 1 return true; } @@ -407,7 +496,11 @@ namespace eprosima { eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN + #if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR + #endif // FASTCDR_VERSION_MAJOR == 1 + ); // Deserialize encapsulation. deser.read_encapsulation(); @@ -430,13 +523,26 @@ namespace eprosima { { return [data, data_representation]() -> uint32_t { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; + #if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; + #else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } + #endif // FASTCDR_VERSION_MAJOR == 1 }; } @@ -468,12 +574,20 @@ namespace eprosima { eprosima_fastdds_statistics_BaseStatus_s_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS); + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); + #if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); + #else eprosima::fastcdr::serialize_key(ser, *p_type); + #endif // FASTCDR_VERSION_MAJOR == 1 if (force_md5 || eprosima_fastdds_statistics_BaseStatus_s_max_key_cdr_typesize > 16) { m_md5.init(); + #if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); + #else m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); + #endif // FASTCDR_VERSION_MAJOR == 1 m_md5.finalize(); for (uint8_t i = 0; i < 16; ++i) { @@ -491,10 +605,20 @@ namespace eprosima { } + + + + + IncompatibleQoSStatus_sPubSubType::IncompatibleQoSStatus_sPubSubType() { setName("eprosima::fastdds::statistics::IncompatibleQoSStatus_s"); - uint32_t type_size = eprosima_fastdds_statistics_IncompatibleQoSStatus_s_max_cdr_typesize; + uint32_t type_size = + #if FASTCDR_VERSION_MAJOR == 1 + static_cast(IncompatibleQoSStatus_s::getMaxCdrSerializedSize()); + #else + eprosima_fastdds_statistics_IncompatibleQoSStatus_s_max_cdr_typesize; + #endif type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ m_typeSize = type_size + 4; /*encapsulation*/ m_isGetKeyDefined = false; @@ -525,10 +649,12 @@ namespace eprosima { data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + #if FASTCDR_VERSION_MAJOR > 1 ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); + #endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -543,7 +669,11 @@ namespace eprosima { } // Get the serialized length + #if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); + #else payload->length = static_cast(ser.get_serialized_data_length()); + #endif // FASTCDR_VERSION_MAJOR == 1 return true; } @@ -560,7 +690,11 @@ namespace eprosima { eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN + #if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR + #endif // FASTCDR_VERSION_MAJOR == 1 + ); // Deserialize encapsulation. deser.read_encapsulation(); @@ -583,13 +717,26 @@ namespace eprosima { { return [data, data_representation]() -> uint32_t { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; + #if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; + #else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } + #endif // FASTCDR_VERSION_MAJOR == 1 }; } @@ -621,12 +768,20 @@ namespace eprosima { eprosima_fastdds_statistics_IncompatibleQoSStatus_s_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS); + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); + #if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); + #else eprosima::fastcdr::serialize_key(ser, *p_type); + #endif // FASTCDR_VERSION_MAJOR == 1 if (force_md5 || eprosima_fastdds_statistics_IncompatibleQoSStatus_s_max_key_cdr_typesize > 16) { m_md5.init(); + #if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); + #else m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); + #endif // FASTCDR_VERSION_MAJOR == 1 m_md5.finalize(); for (uint8_t i = 0; i < 16; ++i) { @@ -643,10 +798,17 @@ namespace eprosima { return true; } + + LivelinessChangedStatus_sPubSubType::LivelinessChangedStatus_sPubSubType() { setName("eprosima::fastdds::statistics::LivelinessChangedStatus_s"); - uint32_t type_size = eprosima_fastdds_statistics_LivelinessChangedStatus_s_max_cdr_typesize; + uint32_t type_size = + #if FASTCDR_VERSION_MAJOR == 1 + static_cast(LivelinessChangedStatus_s::getMaxCdrSerializedSize()); + #else + eprosima_fastdds_statistics_LivelinessChangedStatus_s_max_cdr_typesize; + #endif type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ m_typeSize = type_size + 4; /*encapsulation*/ m_isGetKeyDefined = false; @@ -677,10 +839,12 @@ namespace eprosima { data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + #if FASTCDR_VERSION_MAJOR > 1 ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); + #endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -695,7 +859,11 @@ namespace eprosima { } // Get the serialized length + #if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); + #else payload->length = static_cast(ser.get_serialized_data_length()); + #endif // FASTCDR_VERSION_MAJOR == 1 return true; } @@ -712,7 +880,11 @@ namespace eprosima { eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN + #if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR + #endif // FASTCDR_VERSION_MAJOR == 1 + ); // Deserialize encapsulation. deser.read_encapsulation(); @@ -735,13 +907,26 @@ namespace eprosima { { return [data, data_representation]() -> uint32_t { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; + #if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; + #else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } + #endif // FASTCDR_VERSION_MAJOR == 1 }; } @@ -773,12 +958,20 @@ namespace eprosima { eprosima_fastdds_statistics_LivelinessChangedStatus_s_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS); + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); + #if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); + #else eprosima::fastcdr::serialize_key(ser, *p_type); + #endif // FASTCDR_VERSION_MAJOR == 1 if (force_md5 || eprosima_fastdds_statistics_LivelinessChangedStatus_s_max_key_cdr_typesize > 16) { m_md5.init(); + #if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); + #else m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); + #endif // FASTCDR_VERSION_MAJOR == 1 m_md5.finalize(); for (uint8_t i = 0; i < 16; ++i) { @@ -795,10 +988,17 @@ namespace eprosima { return true; } + + DeadlineMissedStatus_sPubSubType::DeadlineMissedStatus_sPubSubType() { setName("eprosima::fastdds::statistics::DeadlineMissedStatus_s"); - uint32_t type_size = eprosima_fastdds_statistics_DeadlineMissedStatus_s_max_cdr_typesize; + uint32_t type_size = + #if FASTCDR_VERSION_MAJOR == 1 + static_cast(DeadlineMissedStatus_s::getMaxCdrSerializedSize()); + #else + eprosima_fastdds_statistics_DeadlineMissedStatus_s_max_cdr_typesize; + #endif type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ m_typeSize = type_size + 4; /*encapsulation*/ m_isGetKeyDefined = false; @@ -829,10 +1029,12 @@ namespace eprosima { data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + #if FASTCDR_VERSION_MAJOR > 1 ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); + #endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -847,7 +1049,11 @@ namespace eprosima { } // Get the serialized length + #if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); + #else payload->length = static_cast(ser.get_serialized_data_length()); + #endif // FASTCDR_VERSION_MAJOR == 1 return true; } @@ -864,7 +1070,11 @@ namespace eprosima { eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN + #if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR + #endif // FASTCDR_VERSION_MAJOR == 1 + ); // Deserialize encapsulation. deser.read_encapsulation(); @@ -887,13 +1097,26 @@ namespace eprosima { { return [data, data_representation]() -> uint32_t { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; + #if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; + #else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } + #endif // FASTCDR_VERSION_MAJOR == 1 }; } @@ -925,12 +1148,20 @@ namespace eprosima { eprosima_fastdds_statistics_DeadlineMissedStatus_s_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS); + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); + #if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); + #else eprosima::fastcdr::serialize_key(ser, *p_type); + #endif // FASTCDR_VERSION_MAJOR == 1 if (force_md5 || eprosima_fastdds_statistics_DeadlineMissedStatus_s_max_key_cdr_typesize > 16) { m_md5.init(); + #if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); + #else m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); + #endif // FASTCDR_VERSION_MAJOR == 1 m_md5.finalize(); for (uint8_t i = 0; i < 16; ++i) { @@ -952,10 +1183,23 @@ namespace eprosima { + + + + + + + + MonitorServiceStatusDataPubSubType::MonitorServiceStatusDataPubSubType() { setName("eprosima::fastdds::statistics::MonitorServiceStatusData"); - uint32_t type_size = eprosima_fastdds_statistics_MonitorServiceStatusData_max_cdr_typesize; + uint32_t type_size = + #if FASTCDR_VERSION_MAJOR == 1 + static_cast(MonitorServiceStatusData::getMaxCdrSerializedSize()); + #else + eprosima_fastdds_statistics_MonitorServiceStatusData_max_cdr_typesize; + #endif type_size += static_cast(eprosima::fastcdr::Cdr::alignment(type_size, 4)); /* possible submessage alignment */ m_typeSize = type_size + 4; /*encapsulation*/ m_isGetKeyDefined = true; @@ -986,10 +1230,12 @@ namespace eprosima { data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::CdrVersion::XCDRv1 : eprosima::fastcdr::CdrVersion::XCDRv2); payload->encapsulation = ser.endianness() == eprosima::fastcdr::Cdr::BIG_ENDIANNESS ? CDR_BE : CDR_LE; + #if FASTCDR_VERSION_MAJOR > 1 ser.set_encoding_flag( data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR : eprosima::fastcdr::EncodingAlgorithmFlag::DELIMIT_CDR2); + #endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -1004,7 +1250,11 @@ namespace eprosima { } // Get the serialized length + #if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); + #else payload->length = static_cast(ser.get_serialized_data_length()); + #endif // FASTCDR_VERSION_MAJOR == 1 return true; } @@ -1021,7 +1271,11 @@ namespace eprosima { eprosima::fastcdr::FastBuffer fastbuffer(reinterpret_cast(payload->data), payload->length); // Object that deserializes the data. - eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN); + eprosima::fastcdr::Cdr deser(fastbuffer, eprosima::fastcdr::Cdr::DEFAULT_ENDIAN + #if FASTCDR_VERSION_MAJOR == 1 + , eprosima::fastcdr::Cdr::CdrType::DDS_CDR + #endif // FASTCDR_VERSION_MAJOR == 1 + ); // Deserialize encapsulation. deser.read_encapsulation(); @@ -1044,13 +1298,26 @@ namespace eprosima { { return [data, data_representation]() -> uint32_t { - eprosima::fastcdr::CdrSizeCalculator calculator( - data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? - eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); - size_t current_alignment {0}; - return static_cast(calculator.calculate_serialized_size( - *static_cast(data), current_alignment)) + - 4u /*encapsulation*/; + #if FASTCDR_VERSION_MAJOR == 1 + static_cast(data_representation); + return static_cast(type::getCdrSerializedSize(*static_cast(data))) + + 4u /*encapsulation*/; + #else + try + { + eprosima::fastcdr::CdrSizeCalculator calculator( + data_representation == DataRepresentationId_t::XCDR_DATA_REPRESENTATION ? + eprosima::fastcdr::CdrVersion::XCDRv1 :eprosima::fastcdr::CdrVersion::XCDRv2); + size_t current_alignment {0}; + return static_cast(calculator.calculate_serialized_size( + *static_cast(data), current_alignment)) + + 4u /*encapsulation*/; + } + catch (eprosima::fastcdr::exception::Exception& /*exception*/) + { + return 0; + } + #endif // FASTCDR_VERSION_MAJOR == 1 }; } @@ -1082,12 +1349,20 @@ namespace eprosima { eprosima_fastdds_statistics_MonitorServiceStatusData_max_key_cdr_typesize); // Object that serializes the data. - eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS); + eprosima::fastcdr::Cdr ser(fastbuffer, eprosima::fastcdr::Cdr::BIG_ENDIANNESS, eprosima::fastcdr::CdrVersion::XCDRv1); + #if FASTCDR_VERSION_MAJOR == 1 + p_type->serializeKey(ser); + #else eprosima::fastcdr::serialize_key(ser, *p_type); + #endif // FASTCDR_VERSION_MAJOR == 1 if (force_md5 || eprosima_fastdds_statistics_MonitorServiceStatusData_max_key_cdr_typesize > 16) { m_md5.init(); + #if FASTCDR_VERSION_MAJOR == 1 + m_md5.update(m_keyBuffer, static_cast(ser.getSerializedDataLength())); + #else m_md5.update(m_keyBuffer, static_cast(ser.get_serialized_data_length())); + #endif // FASTCDR_VERSION_MAJOR == 1 m_md5.finalize(); for (uint8_t i = 0; i < 16; ++i) { diff --git a/src/cpp/statistics/types/monitorservice_typesPubSubTypes.h b/src/cpp/statistics/types/monitorservice_typesPubSubTypes.h index d3245d9d3cd..c5b04255efd 100644 --- a/src/cpp/statistics/types/monitorservice_typesPubSubTypes.h +++ b/src/cpp/statistics/types/monitorservice_typesPubSubTypes.h @@ -45,6 +45,10 @@ namespace eprosima namespace statistics { + + + + /*! * @brief This class represents the TopicDataType of the type Connection defined by the user in the IDL file. * @ingroup monitorservice_types @@ -133,6 +137,8 @@ namespace eprosima }; + + /*! * @brief This class represents the TopicDataType of the type QosPolicyCount_s defined by the user in the IDL file. * @ingroup monitorservice_types @@ -221,6 +227,8 @@ namespace eprosima }; + + /*! * @brief This class represents the TopicDataType of the type BaseStatus_s defined by the user in the IDL file. * @ingroup monitorservice_types @@ -308,8 +316,12 @@ namespace eprosima unsigned char* m_keyBuffer; }; + + 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 @@ -398,6 +410,8 @@ namespace eprosima }; + + /*! * @brief This class represents the TopicDataType of the type LivelinessChangedStatus_s defined by the user in the IDL file. * @ingroup monitorservice_types @@ -486,6 +500,8 @@ namespace eprosima }; + + /*! * @brief This class represents the TopicDataType of the type DeadlineMissedStatus_s defined by the user in the IDL file. * @ingroup monitorservice_types @@ -579,6 +595,11 @@ namespace eprosima + + + + + /*! * @brief This class represents the TopicDataType of the type MonitorServiceStatusData defined by the user in the IDL file. * @ingroup monitorservice_types diff --git a/src/cpp/statistics/types/monitorservice_typesv1.cxx b/src/cpp/statistics/types/monitorservice_typesv1.cxx new file mode 100644 index 00000000000..89494b4018c --- /dev/null +++ b/src/cpp/statistics/types/monitorservice_typesv1.cxx @@ -0,0 +1,3011 @@ +// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima). +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! + * @file monitorservice_types.cpp + * This source file contains the implementation of the described types in the IDL file. + * + * This file was generated by the tool fastddsgen. + */ + +#ifdef _WIN32 +// Remove linker warning LNK4221 on Visual Studio +namespace { +char dummy; +} // namespace +#endif // _WIN32 + +#include "monitorservice_types.h" + +#if FASTCDR_VERSION_MAJOR == 1 + +#include + + +#include +using namespace eprosima::fastcdr::exception; + +#include + +namespace helper { namespace internal { + +enum class Size { + UInt8, + UInt16, + UInt32, + UInt64, +}; + +constexpr Size get_size(int s) { + return (s <= 8 ) ? Size::UInt8: + (s <= 16) ? Size::UInt16: + (s <= 32) ? Size::UInt32: Size::UInt64; +} + +template +struct FindTypeH; + +template<> +struct FindTypeH { + using type = std::uint8_t; +}; + +template<> +struct FindTypeH { + using type = std::uint16_t; +}; + +template<> +struct FindTypeH { + using type = std::uint32_t; +}; + +template<> +struct FindTypeH { + using type = std::uint64_t; +}; +} + +template +struct FindType { + using type = typename internal::FindTypeH::type; +}; +} + +#define eprosima_fastdds_statistics_DiscoveryTime_max_cdr_typesize 852ULL; + +#define eprosima_fastdds_statistics_BaseStatus_s_max_cdr_typesize 8ULL; + + +#define eprosima_fastdds_statistics_detail_SampleIdentity_s_max_cdr_typesize 44ULL; + + + +#define eprosima_fastdds_statistics_DeadlineMissedStatus_s_max_cdr_typesize 24ULL; +#define eprosima_fastdds_statistics_detail_EntityId_s_max_cdr_typesize 8ULL; +#define eprosima_fastdds_statistics_QosPolicyCount_s_max_cdr_typesize 12ULL; +#define eprosima_fastdds_statistics_detail_SequenceNumber_s_max_cdr_typesize 12ULL; + +#define eprosima_fastdds_statistics_MonitorServiceStatusData_max_cdr_typesize 565252ULL; +#define eprosima_fastdds_statistics_PhysicalData_max_cdr_typesize 812ULL; +#define eprosima_fastdds_statistics_detail_Locator_s_max_cdr_typesize 28ULL; +#define eprosima_fastdds_statistics_detail_GuidPrefix_s_max_cdr_typesize 16ULL; +#define eprosima_fastdds_statistics_EntityData_max_cdr_typesize 36ULL; +#define eprosima_fastdds_statistics_Connection_max_cdr_typesize 5652ULL; +#define eprosima_fastdds_statistics_Entity2LocatorTraffic_max_cdr_typesize 82ULL; +#define eprosima_fastdds_statistics_EntityCount_max_cdr_typesize 40ULL; +#define eprosima_fastdds_statistics_IncompatibleQoSStatus_s_max_cdr_typesize 1220ULL; + + +#define eprosima_fastdds_statistics_WriterReaderData_max_cdr_typesize 64ULL; +#define eprosima_fastdds_statistics_SampleIdentityCount_max_cdr_typesize 56ULL; +#define eprosima_fastdds_statistics_Locator2LocatorData_max_cdr_typesize 64ULL; +#define eprosima_fastdds_statistics_detail_GUID_s_max_cdr_typesize 28ULL; +#define eprosima_fastdds_statistics_LivelinessChangedStatus_s_max_cdr_typesize 28ULL; + + +namespace eprosima { + +namespace fastdds { + +namespace statistics { + + + + + +Connection::Connection() +{ + // eprosima::fastdds::statistics::ConnectionMode m_mode + m_mode = eprosima::fastdds::statistics::DATA_SHARING; + // eprosima::fastdds::statistics::detail::GUID_s m_guid + + // sequence m_announced_locators + + // sequence m_used_locators + + +} + +Connection::~Connection() +{ +} + +Connection::Connection( + const Connection& x) +{ + m_mode = x.m_mode; + + + m_guid = x.m_guid; + + + m_announced_locators = x.m_announced_locators; + + + m_used_locators = x.m_used_locators; + +} + +Connection::Connection( + Connection&& x) noexcept +{ + m_mode = x.m_mode; + + + m_guid = std::move(x.m_guid); + + + m_announced_locators = std::move(x.m_announced_locators); + + + m_used_locators = std::move(x.m_used_locators); + +} + +Connection& Connection::operator =( + const Connection& x) +{ + m_mode = x.m_mode; + + + m_guid = x.m_guid; + + + m_announced_locators = x.m_announced_locators; + + + m_used_locators = x.m_used_locators; + + return *this; +} + +Connection& Connection::operator =( + Connection&& x) noexcept +{ + m_mode = x.m_mode; + + + m_guid = std::move(x.m_guid); + + + m_announced_locators = std::move(x.m_announced_locators); + + + m_used_locators = std::move(x.m_used_locators); + + return *this; +} + +bool Connection::operator ==( + 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); +} + +bool Connection::operator !=( + const Connection& x) const +{ + return !(*this == x); +} + +size_t Connection::getMaxCdrSerializedSize( + size_t current_alignment) +{ + static_cast(current_alignment); + return eprosima_fastdds_statistics_Connection_max_cdr_typesize; +} + +size_t Connection::getCdrSerializedSize( + const Connection& data, + size_t current_alignment) +{ + (void)data; + size_t initial_alignment = current_alignment; + + current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); + + + current_alignment += eprosima::fastdds::statistics::detail::GUID_s::getCdrSerializedSize(data.guid(), current_alignment); + + + current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); + + + for(size_t a = 0; a < data.announced_locators().size(); ++a) + { + current_alignment += eprosima::fastdds::statistics::detail::Locator_s::getCdrSerializedSize(data.announced_locators().at(a), current_alignment); + } + + + + current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); + + + for(size_t a = 0; a < data.used_locators().size(); ++a) + { + current_alignment += eprosima::fastdds::statistics::detail::Locator_s::getCdrSerializedSize(data.used_locators().at(a), current_alignment); + } + + + + return current_alignment - initial_alignment; +} + + +void Connection::serialize( + eprosima::fastcdr::Cdr& scdr) const +{ + scdr << (uint32_t)m_mode; + + scdr << m_guid; + + scdr << m_announced_locators; + + + scdr << m_used_locators; + + +} + +void Connection::deserialize( + eprosima::fastcdr::Cdr& dcdr) +{ + { + uint32_t enum_value = 0; + dcdr >> enum_value; + m_mode = (eprosima::fastdds::statistics::ConnectionMode)enum_value; + } + + + + dcdr >> m_guid; + + + + dcdr >> m_announced_locators; + + + + dcdr >> m_used_locators; + + +} + + +bool Connection::isKeyDefined() +{ + return false; +} + +void Connection::serializeKey( + eprosima::fastcdr::Cdr& scdr) const +{ + (void) scdr; +} + +/*! + * @brief This function sets a value in member mode + * @param _mode New value for member mode + */ +void Connection::mode( + eprosima::fastdds::statistics::ConnectionMode _mode) +{ + m_mode = _mode; +} + +/*! + * @brief This function returns the value of member mode + * @return Value of member mode + */ +eprosima::fastdds::statistics::ConnectionMode Connection::mode() const +{ + return m_mode; +} + +/*! + * @brief This function returns a reference to member mode + * @return Reference to member mode + */ +eprosima::fastdds::statistics::ConnectionMode& Connection::mode() +{ + return m_mode; +} + + +/*! + * @brief This function copies the value in member guid + * @param _guid New value to be copied in member guid + */ +void Connection::guid( + const eprosima::fastdds::statistics::detail::GUID_s& _guid) +{ + m_guid = _guid; +} + +/*! + * @brief This function moves the value in member guid + * @param _guid New value to be moved in member guid + */ +void Connection::guid( + eprosima::fastdds::statistics::detail::GUID_s&& _guid) +{ + m_guid = std::move(_guid); +} + +/*! + * @brief This function returns a constant reference to member guid + * @return Constant reference to member guid + */ +const eprosima::fastdds::statistics::detail::GUID_s& Connection::guid() const +{ + return m_guid; +} + +/*! + * @brief This function returns a reference to member guid + * @return Reference to member guid + */ +eprosima::fastdds::statistics::detail::GUID_s& Connection::guid() +{ + 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 + */ +void Connection::announced_locators( + const std::vector& _announced_locators) +{ + m_announced_locators = _announced_locators; +} + +/*! + * @brief This function moves the value in member announced_locators + * @param _announced_locators New value to be moved in member announced_locators + */ +void Connection::announced_locators( + std::vector&& _announced_locators) +{ + m_announced_locators = std::move(_announced_locators); +} + +/*! + * @brief This function returns a constant reference to member announced_locators + * @return Constant reference to member announced_locators + */ +const std::vector& Connection::announced_locators() const +{ + return m_announced_locators; +} + +/*! + * @brief This function returns a reference to member announced_locators + * @return Reference to member announced_locators + */ +std::vector& Connection::announced_locators() +{ + 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 + */ +void Connection::used_locators( + const std::vector& _used_locators) +{ + m_used_locators = _used_locators; +} + +/*! + * @brief This function moves the value in member used_locators + * @param _used_locators New value to be moved in member used_locators + */ +void Connection::used_locators( + std::vector&& _used_locators) +{ + m_used_locators = std::move(_used_locators); +} + +/*! + * @brief This function returns a constant reference to member used_locators + * @return Constant reference to member used_locators + */ +const std::vector& Connection::used_locators() const +{ + return m_used_locators; +} + +/*! + * @brief This function returns a reference to member used_locators + * @return Reference to member used_locators + */ +std::vector& Connection::used_locators() +{ + return m_used_locators; +} + + + + + +QosPolicyCount_s::QosPolicyCount_s() +{ + // unsigned long m_policy_id + m_policy_id = 0; + // unsigned long m_count + m_count = 0; + +} + +QosPolicyCount_s::~QosPolicyCount_s() +{ +} + +QosPolicyCount_s::QosPolicyCount_s( + const QosPolicyCount_s& x) +{ + m_policy_id = x.m_policy_id; + + + m_count = x.m_count; + +} + +QosPolicyCount_s::QosPolicyCount_s( + QosPolicyCount_s&& x) noexcept +{ + m_policy_id = x.m_policy_id; + + + m_count = x.m_count; + +} + +QosPolicyCount_s& QosPolicyCount_s::operator =( + const QosPolicyCount_s& x) +{ + m_policy_id = x.m_policy_id; + + + m_count = x.m_count; + + return *this; +} + +QosPolicyCount_s& QosPolicyCount_s::operator =( + QosPolicyCount_s&& x) noexcept +{ + m_policy_id = x.m_policy_id; + + + m_count = x.m_count; + + return *this; +} + +bool QosPolicyCount_s::operator ==( + const QosPolicyCount_s& x) const +{ + return (m_policy_id == x.m_policy_id && + m_count == x.m_count); +} + +bool QosPolicyCount_s::operator !=( + const QosPolicyCount_s& x) const +{ + return !(*this == x); +} + +size_t QosPolicyCount_s::getMaxCdrSerializedSize( + size_t current_alignment) +{ + static_cast(current_alignment); + return eprosima_fastdds_statistics_QosPolicyCount_s_max_cdr_typesize; +} + +size_t QosPolicyCount_s::getCdrSerializedSize( + const QosPolicyCount_s& data, + size_t current_alignment) +{ + (void)data; + size_t initial_alignment = current_alignment; + + current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); + + + current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); + + + return current_alignment - initial_alignment; +} + + +void QosPolicyCount_s::serialize( + eprosima::fastcdr::Cdr& scdr) const +{ + scdr << m_policy_id; + + scdr << m_count; + +} + +void QosPolicyCount_s::deserialize( + eprosima::fastcdr::Cdr& dcdr) +{ + dcdr >> m_policy_id; + + + + dcdr >> m_count; + + +} + + +bool QosPolicyCount_s::isKeyDefined() +{ + return false; +} + +void QosPolicyCount_s::serializeKey( + eprosima::fastcdr::Cdr& scdr) const +{ + (void) scdr; +} + +/*! + * @brief This function sets a value in member policy_id + * @param _policy_id New value for member policy_id + */ +void QosPolicyCount_s::policy_id( + uint32_t _policy_id) +{ + m_policy_id = _policy_id; +} + +/*! + * @brief This function returns the value of member policy_id + * @return Value of member policy_id + */ +uint32_t QosPolicyCount_s::policy_id() const +{ + return m_policy_id; +} + +/*! + * @brief This function returns a reference to member policy_id + * @return Reference to member policy_id + */ +uint32_t& QosPolicyCount_s::policy_id() +{ + return m_policy_id; +} + + +/*! + * @brief This function sets a value in member count + * @param _count New value for member count + */ +void QosPolicyCount_s::count( + uint32_t _count) +{ + m_count = _count; +} + +/*! + * @brief This function returns the value of member count + * @return Value of member count + */ +uint32_t QosPolicyCount_s::count() const +{ + return m_count; +} + +/*! + * @brief This function returns a reference to member count + * @return Reference to member count + */ +uint32_t& QosPolicyCount_s::count() +{ + return m_count; +} + + + + + +BaseStatus_s::BaseStatus_s() +{ + // unsigned long m_total_count + m_total_count = 0; + +} + +BaseStatus_s::~BaseStatus_s() +{ +} + +BaseStatus_s::BaseStatus_s( + const BaseStatus_s& x) +{ + m_total_count = x.m_total_count; + +} + +BaseStatus_s::BaseStatus_s( + BaseStatus_s&& x) noexcept +{ + m_total_count = x.m_total_count; + +} + +BaseStatus_s& BaseStatus_s::operator =( + const BaseStatus_s& x) +{ + m_total_count = x.m_total_count; + + return *this; +} + +BaseStatus_s& BaseStatus_s::operator =( + BaseStatus_s&& x) noexcept +{ + m_total_count = x.m_total_count; + + return *this; +} + +bool BaseStatus_s::operator ==( + const BaseStatus_s& x) const +{ + return (m_total_count == x.m_total_count); +} + +bool BaseStatus_s::operator !=( + const BaseStatus_s& x) const +{ + return !(*this == x); +} + +size_t BaseStatus_s::getMaxCdrSerializedSize( + size_t current_alignment) +{ + static_cast(current_alignment); + return eprosima_fastdds_statistics_BaseStatus_s_max_cdr_typesize; +} + +size_t BaseStatus_s::getCdrSerializedSize( + const BaseStatus_s& data, + size_t current_alignment) +{ + (void)data; + size_t initial_alignment = current_alignment; + + current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); + + + return current_alignment - initial_alignment; +} + + +void BaseStatus_s::serialize( + eprosima::fastcdr::Cdr& scdr) const +{ + scdr << m_total_count; + +} + +void BaseStatus_s::deserialize( + eprosima::fastcdr::Cdr& dcdr) +{ + dcdr >> m_total_count; + + +} + + +bool BaseStatus_s::isKeyDefined() +{ + return false; +} + +void BaseStatus_s::serializeKey( + eprosima::fastcdr::Cdr& scdr) const +{ + (void) scdr; +} + +/*! + * @brief This function sets a value in member total_count + * @param _total_count New value for member total_count + */ +void BaseStatus_s::total_count( + uint32_t _total_count) +{ + m_total_count = _total_count; +} + +/*! + * @brief This function returns the value of member total_count + * @return Value of member total_count + */ +uint32_t BaseStatus_s::total_count() const +{ + return m_total_count; +} + +/*! + * @brief This function returns a reference to member total_count + * @return Reference to member total_count + */ +uint32_t& BaseStatus_s::total_count() +{ + return m_total_count; +} + + + + + + + + +IncompatibleQoSStatus_s::IncompatibleQoSStatus_s() +{ + // unsigned long m_total_count + m_total_count = 0; + // unsigned long m_last_policy_id + m_last_policy_id = 0; + // eprosima::fastdds::statistics::QosPolicyCountSeq_s m_policies + + +} + +IncompatibleQoSStatus_s::~IncompatibleQoSStatus_s() +{ +} + +IncompatibleQoSStatus_s::IncompatibleQoSStatus_s( + const IncompatibleQoSStatus_s& x) +{ + m_total_count = x.m_total_count; + + + m_last_policy_id = x.m_last_policy_id; + + + m_policies = x.m_policies; + +} + +IncompatibleQoSStatus_s::IncompatibleQoSStatus_s( + IncompatibleQoSStatus_s&& x) noexcept +{ + m_total_count = x.m_total_count; + + + m_last_policy_id = x.m_last_policy_id; + + + m_policies = std::move(x.m_policies); + +} + +IncompatibleQoSStatus_s& IncompatibleQoSStatus_s::operator =( + const IncompatibleQoSStatus_s& x) +{ + m_total_count = x.m_total_count; + + + m_last_policy_id = x.m_last_policy_id; + + + m_policies = x.m_policies; + + return *this; +} + +IncompatibleQoSStatus_s& IncompatibleQoSStatus_s::operator =( + IncompatibleQoSStatus_s&& x) noexcept +{ + m_total_count = x.m_total_count; + + + m_last_policy_id = x.m_last_policy_id; + + + m_policies = std::move(x.m_policies); + + return *this; +} + +bool IncompatibleQoSStatus_s::operator ==( + 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); +} + +bool IncompatibleQoSStatus_s::operator !=( + const IncompatibleQoSStatus_s& x) const +{ + return !(*this == x); +} + +size_t IncompatibleQoSStatus_s::getMaxCdrSerializedSize( + size_t current_alignment) +{ + static_cast(current_alignment); + return eprosima_fastdds_statistics_IncompatibleQoSStatus_s_max_cdr_typesize; +} + +size_t IncompatibleQoSStatus_s::getCdrSerializedSize( + const IncompatibleQoSStatus_s& data, + size_t current_alignment) +{ + (void)data; + size_t initial_alignment = current_alignment; + + current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); + + + current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); + + + current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); + + + for(size_t a = 0; a < data.policies().size(); ++a) + { + current_alignment += eprosima::fastdds::statistics::QosPolicyCount_s::getCdrSerializedSize(data.policies().at(a), current_alignment); + } + + + + return current_alignment - initial_alignment; +} + + +void IncompatibleQoSStatus_s::serialize( + eprosima::fastcdr::Cdr& scdr) const +{ + scdr << m_total_count; + + scdr << m_last_policy_id; + + scdr << m_policies; + + +} + +void IncompatibleQoSStatus_s::deserialize( + eprosima::fastcdr::Cdr& dcdr) +{ + dcdr >> m_total_count; + + + + dcdr >> m_last_policy_id; + + + + dcdr >> m_policies; + + +} + + +bool IncompatibleQoSStatus_s::isKeyDefined() +{ + return false; +} + +void IncompatibleQoSStatus_s::serializeKey( + eprosima::fastcdr::Cdr& scdr) const +{ + (void) scdr; +} + +/*! + * @brief This function sets a value in member total_count + * @param _total_count New value for member total_count + */ +void IncompatibleQoSStatus_s::total_count( + uint32_t _total_count) +{ + m_total_count = _total_count; +} + +/*! + * @brief This function returns the value of member total_count + * @return Value of member total_count + */ +uint32_t IncompatibleQoSStatus_s::total_count() const +{ + return m_total_count; +} + +/*! + * @brief This function returns a reference to member total_count + * @return Reference to member total_count + */ +uint32_t& IncompatibleQoSStatus_s::total_count() +{ + 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 + */ +void IncompatibleQoSStatus_s::last_policy_id( + uint32_t _last_policy_id) +{ + m_last_policy_id = _last_policy_id; +} + +/*! + * @brief This function returns the value of member last_policy_id + * @return Value of member last_policy_id + */ +uint32_t IncompatibleQoSStatus_s::last_policy_id() const +{ + return m_last_policy_id; +} + +/*! + * @brief This function returns a reference to member last_policy_id + * @return Reference to member last_policy_id + */ +uint32_t& IncompatibleQoSStatus_s::last_policy_id() +{ + return m_last_policy_id; +} + + +/*! + * @brief This function copies the value in member policies + * @param _policies New value to be copied in member policies + */ +void IncompatibleQoSStatus_s::policies( + const eprosima::fastdds::statistics::QosPolicyCountSeq_s& _policies) +{ + m_policies = _policies; +} + +/*! + * @brief This function moves the value in member policies + * @param _policies New value to be moved in member policies + */ +void IncompatibleQoSStatus_s::policies( + eprosima::fastdds::statistics::QosPolicyCountSeq_s&& _policies) +{ + m_policies = std::move(_policies); +} + +/*! + * @brief This function returns a constant reference to member policies + * @return Constant reference to member policies + */ +const eprosima::fastdds::statistics::QosPolicyCountSeq_s& IncompatibleQoSStatus_s::policies() const +{ + return m_policies; +} + +/*! + * @brief This function returns a reference to member policies + * @return Reference to member policies + */ +eprosima::fastdds::statistics::QosPolicyCountSeq_s& IncompatibleQoSStatus_s::policies() +{ + return m_policies; +} + + + + + +LivelinessChangedStatus_s::LivelinessChangedStatus_s() +{ + // unsigned long m_alive_count + m_alive_count = 0; + // unsigned long m_not_alive_count + m_not_alive_count = 0; + // octet m_last_publication_handle + memset(&m_last_publication_handle, 0, ((16)) * 1); + +} + +LivelinessChangedStatus_s::~LivelinessChangedStatus_s() +{ +} + +LivelinessChangedStatus_s::LivelinessChangedStatus_s( + const LivelinessChangedStatus_s& x) +{ + 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; + +} + +LivelinessChangedStatus_s::LivelinessChangedStatus_s( + LivelinessChangedStatus_s&& x) noexcept +{ + m_alive_count = x.m_alive_count; + + + m_not_alive_count = x.m_not_alive_count; + + + m_last_publication_handle = std::move(x.m_last_publication_handle); + +} + +LivelinessChangedStatus_s& LivelinessChangedStatus_s::operator =( + const LivelinessChangedStatus_s& x) +{ + 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; + + return *this; +} + +LivelinessChangedStatus_s& LivelinessChangedStatus_s::operator =( + LivelinessChangedStatus_s&& x) noexcept +{ + m_alive_count = x.m_alive_count; + + + m_not_alive_count = x.m_not_alive_count; + + + m_last_publication_handle = std::move(x.m_last_publication_handle); + + return *this; +} + +bool LivelinessChangedStatus_s::operator ==( + 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); +} + +bool LivelinessChangedStatus_s::operator !=( + const LivelinessChangedStatus_s& x) const +{ + return !(*this == x); +} + +size_t LivelinessChangedStatus_s::getMaxCdrSerializedSize( + size_t current_alignment) +{ + static_cast(current_alignment); + return eprosima_fastdds_statistics_LivelinessChangedStatus_s_max_cdr_typesize; +} + +size_t LivelinessChangedStatus_s::getCdrSerializedSize( + const LivelinessChangedStatus_s& data, + size_t current_alignment) +{ + (void)data; + size_t initial_alignment = current_alignment; + + current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); + + + current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); + + + current_alignment += (((16)) * 1) + eprosima::fastcdr::Cdr::alignment(current_alignment, 1); + + + + return current_alignment - initial_alignment; +} + + +void LivelinessChangedStatus_s::serialize( + eprosima::fastcdr::Cdr& scdr) const +{ + scdr << m_alive_count; + + scdr << m_not_alive_count; + + scdr << m_last_publication_handle; + + +} + +void LivelinessChangedStatus_s::deserialize( + eprosima::fastcdr::Cdr& dcdr) +{ + dcdr >> m_alive_count; + + + + dcdr >> m_not_alive_count; + + + + dcdr >> m_last_publication_handle; + + +} + + +bool LivelinessChangedStatus_s::isKeyDefined() +{ + return false; +} + +void LivelinessChangedStatus_s::serializeKey( + eprosima::fastcdr::Cdr& scdr) const +{ + (void) scdr; +} + +/*! + * @brief This function sets a value in member alive_count + * @param _alive_count New value for member alive_count + */ +void LivelinessChangedStatus_s::alive_count( + uint32_t _alive_count) +{ + m_alive_count = _alive_count; +} + +/*! + * @brief This function returns the value of member alive_count + * @return Value of member alive_count + */ +uint32_t LivelinessChangedStatus_s::alive_count() const +{ + return m_alive_count; +} + +/*! + * @brief This function returns a reference to member alive_count + * @return Reference to member alive_count + */ +uint32_t& LivelinessChangedStatus_s::alive_count() +{ + 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 + */ +void LivelinessChangedStatus_s::not_alive_count( + uint32_t _not_alive_count) +{ + m_not_alive_count = _not_alive_count; +} + +/*! + * @brief This function returns the value of member not_alive_count + * @return Value of member not_alive_count + */ +uint32_t LivelinessChangedStatus_s::not_alive_count() const +{ + return m_not_alive_count; +} + +/*! + * @brief This function returns a reference to member not_alive_count + * @return Reference to member not_alive_count + */ +uint32_t& LivelinessChangedStatus_s::not_alive_count() +{ + 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 + */ +void LivelinessChangedStatus_s::last_publication_handle( + const std::array& _last_publication_handle) +{ + m_last_publication_handle = _last_publication_handle; +} + +/*! + * @brief This function moves the value in member last_publication_handle + * @param _last_publication_handle New value to be moved in member last_publication_handle + */ +void LivelinessChangedStatus_s::last_publication_handle( + std::array&& _last_publication_handle) +{ + m_last_publication_handle = std::move(_last_publication_handle); +} + +/*! + * @brief This function returns a constant reference to member last_publication_handle + * @return Constant reference to member last_publication_handle + */ +const std::array& LivelinessChangedStatus_s::last_publication_handle() const +{ + return m_last_publication_handle; +} + +/*! + * @brief This function returns a reference to member last_publication_handle + * @return Reference to member last_publication_handle + */ +std::array& LivelinessChangedStatus_s::last_publication_handle() +{ + return m_last_publication_handle; +} + + + + + +DeadlineMissedStatus_s::DeadlineMissedStatus_s() +{ + // unsigned long m_total_count + m_total_count = 0; + // octet m_last_instance_handle + memset(&m_last_instance_handle, 0, ((16)) * 1); + +} + +DeadlineMissedStatus_s::~DeadlineMissedStatus_s() +{ +} + +DeadlineMissedStatus_s::DeadlineMissedStatus_s( + const DeadlineMissedStatus_s& x) +{ + m_total_count = x.m_total_count; + + + m_last_instance_handle = x.m_last_instance_handle; + +} + +DeadlineMissedStatus_s::DeadlineMissedStatus_s( + DeadlineMissedStatus_s&& x) noexcept +{ + m_total_count = x.m_total_count; + + + m_last_instance_handle = std::move(x.m_last_instance_handle); + +} + +DeadlineMissedStatus_s& DeadlineMissedStatus_s::operator =( + const DeadlineMissedStatus_s& x) +{ + m_total_count = x.m_total_count; + + + m_last_instance_handle = x.m_last_instance_handle; + + return *this; +} + +DeadlineMissedStatus_s& DeadlineMissedStatus_s::operator =( + DeadlineMissedStatus_s&& x) noexcept +{ + m_total_count = x.m_total_count; + + + m_last_instance_handle = std::move(x.m_last_instance_handle); + + return *this; +} + +bool DeadlineMissedStatus_s::operator ==( + const DeadlineMissedStatus_s& x) const +{ + return (m_total_count == x.m_total_count && + m_last_instance_handle == x.m_last_instance_handle); +} + +bool DeadlineMissedStatus_s::operator !=( + const DeadlineMissedStatus_s& x) const +{ + return !(*this == x); +} + +size_t DeadlineMissedStatus_s::getMaxCdrSerializedSize( + size_t current_alignment) +{ + static_cast(current_alignment); + return eprosima_fastdds_statistics_DeadlineMissedStatus_s_max_cdr_typesize; +} + +size_t DeadlineMissedStatus_s::getCdrSerializedSize( + const DeadlineMissedStatus_s& data, + size_t current_alignment) +{ + (void)data; + size_t initial_alignment = current_alignment; + + current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); + + + current_alignment += (((16)) * 1) + eprosima::fastcdr::Cdr::alignment(current_alignment, 1); + + + + return current_alignment - initial_alignment; +} + + +void DeadlineMissedStatus_s::serialize( + eprosima::fastcdr::Cdr& scdr) const +{ + scdr << m_total_count; + + scdr << m_last_instance_handle; + + +} + +void DeadlineMissedStatus_s::deserialize( + eprosima::fastcdr::Cdr& dcdr) +{ + dcdr >> m_total_count; + + + + dcdr >> m_last_instance_handle; + + +} + + +bool DeadlineMissedStatus_s::isKeyDefined() +{ + return false; +} + +void DeadlineMissedStatus_s::serializeKey( + eprosima::fastcdr::Cdr& scdr) const +{ + (void) scdr; +} + +/*! + * @brief This function sets a value in member total_count + * @param _total_count New value for member total_count + */ +void DeadlineMissedStatus_s::total_count( + uint32_t _total_count) +{ + m_total_count = _total_count; +} + +/*! + * @brief This function returns the value of member total_count + * @return Value of member total_count + */ +uint32_t DeadlineMissedStatus_s::total_count() const +{ + return m_total_count; +} + +/*! + * @brief This function returns a reference to member total_count + * @return Reference to member total_count + */ +uint32_t& DeadlineMissedStatus_s::total_count() +{ + 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 + */ +void DeadlineMissedStatus_s::last_instance_handle( + const std::array& _last_instance_handle) +{ + m_last_instance_handle = _last_instance_handle; +} + +/*! + * @brief This function moves the value in member last_instance_handle + * @param _last_instance_handle New value to be moved in member last_instance_handle + */ +void DeadlineMissedStatus_s::last_instance_handle( + std::array&& _last_instance_handle) +{ + m_last_instance_handle = std::move(_last_instance_handle); +} + +/*! + * @brief This function returns a constant reference to member last_instance_handle + * @return Constant reference to member last_instance_handle + */ +const std::array& DeadlineMissedStatus_s::last_instance_handle() const +{ + return m_last_instance_handle; +} + +/*! + * @brief This function returns a reference to member last_instance_handle + * @return Reference to member last_instance_handle + */ +std::array& DeadlineMissedStatus_s::last_instance_handle() +{ + return m_last_instance_handle; +} + + + + + + + + + +MonitorServiceData::MonitorServiceData() +{ + m__d = eprosima::fastdds::statistics::PROXY; + // sequence m_entity_proxy + + // sequence m_connection_list + + // eprosima::fastdds::statistics::IncompatibleQoSStatus_s m_incompatible_qos_status + + // eprosima::fastdds::statistics::InconsistentTopicStatus_s m_inconsistent_topic_status + + // eprosima::fastdds::statistics::LivelinessLostStatus_s m_liveliness_lost_status + + // eprosima::fastdds::statistics::LivelinessChangedStatus_s m_liveliness_changed_status + + // eprosima::fastdds::statistics::DeadlineMissedStatus_s m_deadline_missed_status + + // eprosima::fastdds::statistics::SampleLostStatus_s m_sample_lost_status + + // octet m_statuses_size + m_statuses_size = 0; +} + +MonitorServiceData::~MonitorServiceData() +{ +} + +MonitorServiceData::MonitorServiceData( + const MonitorServiceData& x) +{ + m__d = x.m__d; + + switch(m__d) + { + case eprosima::fastdds::statistics::PROXY: + m_entity_proxy = x.m_entity_proxy; + break; + + + case eprosima::fastdds::statistics::CONNECTION_LIST: + m_connection_list = x.m_connection_list; + break; + + + case eprosima::fastdds::statistics::INCOMPATIBLE_QOS: + m_incompatible_qos_status = x.m_incompatible_qos_status; + break; + + + case eprosima::fastdds::statistics::INCONSISTENT_TOPIC: + m_inconsistent_topic_status = x.m_inconsistent_topic_status; + break; + + + case eprosima::fastdds::statistics::LIVELINESS_LOST: + m_liveliness_lost_status = x.m_liveliness_lost_status; + break; + + + case eprosima::fastdds::statistics::LIVELINESS_CHANGED: + m_liveliness_changed_status = x.m_liveliness_changed_status; + break; + + + case eprosima::fastdds::statistics::DEADLINE_MISSED: + m_deadline_missed_status = x.m_deadline_missed_status; + break; + + + case eprosima::fastdds::statistics::SAMPLE_LOST: + m_sample_lost_status = x.m_sample_lost_status; + break; + + + case eprosima::fastdds::statistics::STATUSES_SIZE: + m_statuses_size = x.m_statuses_size; + break; + + default: + break; + } +} + +MonitorServiceData::MonitorServiceData( + MonitorServiceData&& x) noexcept +{ + m__d = x.m__d; + + switch(m__d) + { + case eprosima::fastdds::statistics::PROXY: + m_entity_proxy = std::move(x.m_entity_proxy); + + break; + + + case eprosima::fastdds::statistics::CONNECTION_LIST: + m_connection_list = std::move(x.m_connection_list); + + break; + + + case eprosima::fastdds::statistics::INCOMPATIBLE_QOS: + m_incompatible_qos_status = std::move(x.m_incompatible_qos_status); + + break; + + + case eprosima::fastdds::statistics::INCONSISTENT_TOPIC: + m_inconsistent_topic_status = std::move(x.m_inconsistent_topic_status); + + break; + + + case eprosima::fastdds::statistics::LIVELINESS_LOST: + m_liveliness_lost_status = std::move(x.m_liveliness_lost_status); + + break; + + + case eprosima::fastdds::statistics::LIVELINESS_CHANGED: + m_liveliness_changed_status = std::move(x.m_liveliness_changed_status); + + break; + + + case eprosima::fastdds::statistics::DEADLINE_MISSED: + m_deadline_missed_status = std::move(x.m_deadline_missed_status); + + break; + + + case eprosima::fastdds::statistics::SAMPLE_LOST: + m_sample_lost_status = std::move(x.m_sample_lost_status); + + break; + + + case eprosima::fastdds::statistics::STATUSES_SIZE: + m_statuses_size = x.m_statuses_size; + break; + + default: + break; + } +} + +MonitorServiceData& MonitorServiceData::operator =( + const MonitorServiceData& x) +{ + m__d = x.m__d; + + switch(m__d) + { + case eprosima::fastdds::statistics::PROXY: + m_entity_proxy = x.m_entity_proxy; + break; + + + case eprosima::fastdds::statistics::CONNECTION_LIST: + m_connection_list = x.m_connection_list; + break; + + + case eprosima::fastdds::statistics::INCOMPATIBLE_QOS: + m_incompatible_qos_status = x.m_incompatible_qos_status; + break; + + + case eprosima::fastdds::statistics::INCONSISTENT_TOPIC: + m_inconsistent_topic_status = x.m_inconsistent_topic_status; + break; + + + case eprosima::fastdds::statistics::LIVELINESS_LOST: + m_liveliness_lost_status = x.m_liveliness_lost_status; + break; + + + case eprosima::fastdds::statistics::LIVELINESS_CHANGED: + m_liveliness_changed_status = x.m_liveliness_changed_status; + break; + + + case eprosima::fastdds::statistics::DEADLINE_MISSED: + m_deadline_missed_status = x.m_deadline_missed_status; + break; + + + case eprosima::fastdds::statistics::SAMPLE_LOST: + m_sample_lost_status = x.m_sample_lost_status; + break; + + + case eprosima::fastdds::statistics::STATUSES_SIZE: + m_statuses_size = x.m_statuses_size; + break; + + default: + break; + } + + return *this; +} + +MonitorServiceData& MonitorServiceData::operator =( + MonitorServiceData&& x) noexcept +{ + m__d = x.m__d; + + switch(m__d) + { + case eprosima::fastdds::statistics::PROXY: + m_entity_proxy = std::move(x.m_entity_proxy); + + break; + + + case eprosima::fastdds::statistics::CONNECTION_LIST: + m_connection_list = std::move(x.m_connection_list); + + break; + + + case eprosima::fastdds::statistics::INCOMPATIBLE_QOS: + m_incompatible_qos_status = std::move(x.m_incompatible_qos_status); + + break; + + + case eprosima::fastdds::statistics::INCONSISTENT_TOPIC: + m_inconsistent_topic_status = std::move(x.m_inconsistent_topic_status); + + break; + + + case eprosima::fastdds::statistics::LIVELINESS_LOST: + m_liveliness_lost_status = std::move(x.m_liveliness_lost_status); + + break; + + + case eprosima::fastdds::statistics::LIVELINESS_CHANGED: + m_liveliness_changed_status = std::move(x.m_liveliness_changed_status); + + break; + + + case eprosima::fastdds::statistics::DEADLINE_MISSED: + m_deadline_missed_status = std::move(x.m_deadline_missed_status); + + break; + + + case eprosima::fastdds::statistics::SAMPLE_LOST: + m_sample_lost_status = std::move(x.m_sample_lost_status); + + break; + + + case eprosima::fastdds::statistics::STATUSES_SIZE: + m_statuses_size = x.m_statuses_size; + break; + + default: + break; + } + + return *this; +} + +bool MonitorServiceData::operator ==( + const MonitorServiceData& x) const +{ + if (m__d != x.m__d) + { + return false; + } + + switch(m__d) + { + case eprosima::fastdds::statistics::PROXY: + return (m_entity_proxy == x.m_entity_proxy); + break; + + + case eprosima::fastdds::statistics::CONNECTION_LIST: + return (m_connection_list == x.m_connection_list); + break; + + + case eprosima::fastdds::statistics::INCOMPATIBLE_QOS: + return (m_incompatible_qos_status == x.m_incompatible_qos_status); + break; + + + case eprosima::fastdds::statistics::INCONSISTENT_TOPIC: + return (m_inconsistent_topic_status == x.m_inconsistent_topic_status); + break; + + + case eprosima::fastdds::statistics::LIVELINESS_LOST: + return (m_liveliness_lost_status == x.m_liveliness_lost_status); + break; + + + case eprosima::fastdds::statistics::LIVELINESS_CHANGED: + return (m_liveliness_changed_status == x.m_liveliness_changed_status); + break; + + + case eprosima::fastdds::statistics::DEADLINE_MISSED: + return (m_deadline_missed_status == x.m_deadline_missed_status); + break; + + + case eprosima::fastdds::statistics::SAMPLE_LOST: + return (m_sample_lost_status == x.m_sample_lost_status); + break; + + + case eprosima::fastdds::statistics::STATUSES_SIZE: + return (m_statuses_size == x.m_statuses_size); + break; + + default: + break; + } + return false; +} + +bool MonitorServiceData::operator !=( + const MonitorServiceData& x) const +{ + return !(*this == x); +} + +void MonitorServiceData::_d( + eprosima::fastdds::statistics::StatusKind __d) +{ + bool b = false; + + switch(m__d) + { + case eprosima::fastdds::statistics::PROXY: + switch(__d) + { + case eprosima::fastdds::statistics::PROXY: + b = true; + break; + default: + break; + } + break; + + + case eprosima::fastdds::statistics::CONNECTION_LIST: + switch(__d) + { + case eprosima::fastdds::statistics::CONNECTION_LIST: + b = true; + break; + default: + break; + } + break; + + + case eprosima::fastdds::statistics::INCOMPATIBLE_QOS: + switch(__d) + { + case eprosima::fastdds::statistics::INCOMPATIBLE_QOS: + b = true; + break; + default: + break; + } + break; + + + case eprosima::fastdds::statistics::INCONSISTENT_TOPIC: + switch(__d) + { + case eprosima::fastdds::statistics::INCONSISTENT_TOPIC: + b = true; + break; + default: + break; + } + break; + + + case eprosima::fastdds::statistics::LIVELINESS_LOST: + switch(__d) + { + case eprosima::fastdds::statistics::LIVELINESS_LOST: + b = true; + break; + default: + break; + } + break; + + + case eprosima::fastdds::statistics::LIVELINESS_CHANGED: + switch(__d) + { + case eprosima::fastdds::statistics::LIVELINESS_CHANGED: + b = true; + break; + default: + break; + } + break; + + + case eprosima::fastdds::statistics::DEADLINE_MISSED: + switch(__d) + { + case eprosima::fastdds::statistics::DEADLINE_MISSED: + b = true; + break; + default: + break; + } + break; + + + case eprosima::fastdds::statistics::SAMPLE_LOST: + switch(__d) + { + case eprosima::fastdds::statistics::SAMPLE_LOST: + b = true; + break; + default: + break; + } + break; + + + case eprosima::fastdds::statistics::STATUSES_SIZE: + switch(__d) + { + case eprosima::fastdds::statistics::STATUSES_SIZE: + b = true; + break; + default: + break; + } + break; + + } + + if(!b) + { + throw BadParamException("Discriminator doesn't correspond with the selected union member"); + } + + m__d = __d; +} + +eprosima::fastdds::statistics::StatusKind MonitorServiceData::_d() const +{ + return m__d; +} + +eprosima::fastdds::statistics::StatusKind& MonitorServiceData::_d() +{ + return m__d; +} + +void MonitorServiceData::entity_proxy( + const std::vector& _entity_proxy) +{ + m_entity_proxy = _entity_proxy; + m__d = eprosima::fastdds::statistics::PROXY; + +} + +void MonitorServiceData::entity_proxy( + std::vector&& _entity_proxy) +{ + m_entity_proxy = std::move(_entity_proxy); + m__d = eprosima::fastdds::statistics::PROXY; + +} + +const std::vector& MonitorServiceData::entity_proxy() const +{ + bool b = false; + + switch(m__d) + { + case eprosima::fastdds::statistics::PROXY: + b = true; + break; + default: + break; + } + + if(!b) + { + throw BadParamException("This member has not been selected"); + } + + return m_entity_proxy; +} + +std::vector& MonitorServiceData::entity_proxy() +{ + bool b = false; + + switch(m__d) + { + case eprosima::fastdds::statistics::PROXY: + b = true; + break; + default: + break; + } + + if(!b) + { + throw BadParamException("This member has not been selected"); + } + + return m_entity_proxy; +} + + +void MonitorServiceData::connection_list( + const std::vector& _connection_list) +{ + m_connection_list = _connection_list; + m__d = eprosima::fastdds::statistics::CONNECTION_LIST; + +} + +void MonitorServiceData::connection_list( + std::vector&& _connection_list) +{ + m_connection_list = std::move(_connection_list); + m__d = eprosima::fastdds::statistics::CONNECTION_LIST; + +} + +const std::vector& MonitorServiceData::connection_list() const +{ + bool b = false; + + switch(m__d) + { + case eprosima::fastdds::statistics::CONNECTION_LIST: + b = true; + break; + default: + break; + } + + if(!b) + { + throw BadParamException("This member has not been selected"); + } + + return m_connection_list; +} + +std::vector& MonitorServiceData::connection_list() +{ + bool b = false; + + switch(m__d) + { + case eprosima::fastdds::statistics::CONNECTION_LIST: + b = true; + break; + default: + break; + } + + if(!b) + { + throw BadParamException("This member has not been selected"); + } + + return m_connection_list; +} + + +void MonitorServiceData::incompatible_qos_status( + const eprosima::fastdds::statistics::IncompatibleQoSStatus_s& _incompatible_qos_status) +{ + m_incompatible_qos_status = _incompatible_qos_status; + m__d = eprosima::fastdds::statistics::INCOMPATIBLE_QOS; + +} + +void MonitorServiceData::incompatible_qos_status( + eprosima::fastdds::statistics::IncompatibleQoSStatus_s&& _incompatible_qos_status) +{ + m_incompatible_qos_status = std::move(_incompatible_qos_status); + m__d = eprosima::fastdds::statistics::INCOMPATIBLE_QOS; + +} + +const eprosima::fastdds::statistics::IncompatibleQoSStatus_s& MonitorServiceData::incompatible_qos_status() const +{ + bool b = false; + + switch(m__d) + { + case eprosima::fastdds::statistics::INCOMPATIBLE_QOS: + b = true; + break; + default: + break; + } + + if(!b) + { + throw BadParamException("This member has not been selected"); + } + + return m_incompatible_qos_status; +} + +eprosima::fastdds::statistics::IncompatibleQoSStatus_s& MonitorServiceData::incompatible_qos_status() +{ + bool b = false; + + switch(m__d) + { + case eprosima::fastdds::statistics::INCOMPATIBLE_QOS: + b = true; + break; + default: + break; + } + + if(!b) + { + throw BadParamException("This member has not been selected"); + } + + return m_incompatible_qos_status; +} + + +void MonitorServiceData::inconsistent_topic_status( + const eprosima::fastdds::statistics::InconsistentTopicStatus_s& _inconsistent_topic_status) +{ + m_inconsistent_topic_status = _inconsistent_topic_status; + m__d = eprosima::fastdds::statistics::INCONSISTENT_TOPIC; + +} + +void MonitorServiceData::inconsistent_topic_status( + eprosima::fastdds::statistics::InconsistentTopicStatus_s&& _inconsistent_topic_status) +{ + m_inconsistent_topic_status = std::move(_inconsistent_topic_status); + m__d = eprosima::fastdds::statistics::INCONSISTENT_TOPIC; + +} + +const eprosima::fastdds::statistics::InconsistentTopicStatus_s& MonitorServiceData::inconsistent_topic_status() const +{ + bool b = false; + + switch(m__d) + { + case eprosima::fastdds::statistics::INCONSISTENT_TOPIC: + b = true; + break; + default: + break; + } + + if(!b) + { + throw BadParamException("This member has not been selected"); + } + + return m_inconsistent_topic_status; +} + +eprosima::fastdds::statistics::InconsistentTopicStatus_s& MonitorServiceData::inconsistent_topic_status() +{ + bool b = false; + + switch(m__d) + { + case eprosima::fastdds::statistics::INCONSISTENT_TOPIC: + b = true; + break; + default: + break; + } + + if(!b) + { + throw BadParamException("This member has not been selected"); + } + + return m_inconsistent_topic_status; +} + + +void MonitorServiceData::liveliness_lost_status( + const eprosima::fastdds::statistics::LivelinessLostStatus_s& _liveliness_lost_status) +{ + m_liveliness_lost_status = _liveliness_lost_status; + m__d = eprosima::fastdds::statistics::LIVELINESS_LOST; + +} + +void MonitorServiceData::liveliness_lost_status( + eprosima::fastdds::statistics::LivelinessLostStatus_s&& _liveliness_lost_status) +{ + m_liveliness_lost_status = std::move(_liveliness_lost_status); + m__d = eprosima::fastdds::statistics::LIVELINESS_LOST; + +} + +const eprosima::fastdds::statistics::LivelinessLostStatus_s& MonitorServiceData::liveliness_lost_status() const +{ + bool b = false; + + switch(m__d) + { + case eprosima::fastdds::statistics::LIVELINESS_LOST: + b = true; + break; + default: + break; + } + + if(!b) + { + throw BadParamException("This member has not been selected"); + } + + return m_liveliness_lost_status; +} + +eprosima::fastdds::statistics::LivelinessLostStatus_s& MonitorServiceData::liveliness_lost_status() +{ + bool b = false; + + switch(m__d) + { + case eprosima::fastdds::statistics::LIVELINESS_LOST: + b = true; + break; + default: + break; + } + + if(!b) + { + throw BadParamException("This member has not been selected"); + } + + return m_liveliness_lost_status; +} + + +void MonitorServiceData::liveliness_changed_status( + const eprosima::fastdds::statistics::LivelinessChangedStatus_s& _liveliness_changed_status) +{ + m_liveliness_changed_status = _liveliness_changed_status; + m__d = eprosima::fastdds::statistics::LIVELINESS_CHANGED; + +} + +void MonitorServiceData::liveliness_changed_status( + eprosima::fastdds::statistics::LivelinessChangedStatus_s&& _liveliness_changed_status) +{ + m_liveliness_changed_status = std::move(_liveliness_changed_status); + m__d = eprosima::fastdds::statistics::LIVELINESS_CHANGED; + +} + +const eprosima::fastdds::statistics::LivelinessChangedStatus_s& MonitorServiceData::liveliness_changed_status() const +{ + bool b = false; + + switch(m__d) + { + case eprosima::fastdds::statistics::LIVELINESS_CHANGED: + b = true; + break; + default: + break; + } + + if(!b) + { + throw BadParamException("This member has not been selected"); + } + + return m_liveliness_changed_status; +} + +eprosima::fastdds::statistics::LivelinessChangedStatus_s& MonitorServiceData::liveliness_changed_status() +{ + bool b = false; + + switch(m__d) + { + case eprosima::fastdds::statistics::LIVELINESS_CHANGED: + b = true; + break; + default: + break; + } + + if(!b) + { + throw BadParamException("This member has not been selected"); + } + + return m_liveliness_changed_status; +} + + +void MonitorServiceData::deadline_missed_status( + const eprosima::fastdds::statistics::DeadlineMissedStatus_s& _deadline_missed_status) +{ + m_deadline_missed_status = _deadline_missed_status; + m__d = eprosima::fastdds::statistics::DEADLINE_MISSED; + +} + +void MonitorServiceData::deadline_missed_status( + eprosima::fastdds::statistics::DeadlineMissedStatus_s&& _deadline_missed_status) +{ + m_deadline_missed_status = std::move(_deadline_missed_status); + m__d = eprosima::fastdds::statistics::DEADLINE_MISSED; + +} + +const eprosima::fastdds::statistics::DeadlineMissedStatus_s& MonitorServiceData::deadline_missed_status() const +{ + bool b = false; + + switch(m__d) + { + case eprosima::fastdds::statistics::DEADLINE_MISSED: + b = true; + break; + default: + break; + } + + if(!b) + { + throw BadParamException("This member has not been selected"); + } + + return m_deadline_missed_status; +} + +eprosima::fastdds::statistics::DeadlineMissedStatus_s& MonitorServiceData::deadline_missed_status() +{ + bool b = false; + + switch(m__d) + { + case eprosima::fastdds::statistics::DEADLINE_MISSED: + b = true; + break; + default: + break; + } + + if(!b) + { + throw BadParamException("This member has not been selected"); + } + + return m_deadline_missed_status; +} + + +void MonitorServiceData::sample_lost_status( + const eprosima::fastdds::statistics::SampleLostStatus_s& _sample_lost_status) +{ + m_sample_lost_status = _sample_lost_status; + m__d = eprosima::fastdds::statistics::SAMPLE_LOST; + +} + +void MonitorServiceData::sample_lost_status( + eprosima::fastdds::statistics::SampleLostStatus_s&& _sample_lost_status) +{ + m_sample_lost_status = std::move(_sample_lost_status); + m__d = eprosima::fastdds::statistics::SAMPLE_LOST; + +} + +const eprosima::fastdds::statistics::SampleLostStatus_s& MonitorServiceData::sample_lost_status() const +{ + bool b = false; + + switch(m__d) + { + case eprosima::fastdds::statistics::SAMPLE_LOST: + b = true; + break; + default: + break; + } + + if(!b) + { + throw BadParamException("This member has not been selected"); + } + + return m_sample_lost_status; +} + +eprosima::fastdds::statistics::SampleLostStatus_s& MonitorServiceData::sample_lost_status() +{ + bool b = false; + + switch(m__d) + { + case eprosima::fastdds::statistics::SAMPLE_LOST: + b = true; + break; + default: + break; + } + + if(!b) + { + throw BadParamException("This member has not been selected"); + } + + return m_sample_lost_status; +} + + +void MonitorServiceData::statuses_size( + uint8_t _statuses_size) +{ + m_statuses_size = _statuses_size; + m__d = eprosima::fastdds::statistics::STATUSES_SIZE; + +} + +uint8_t MonitorServiceData::statuses_size() const +{ + bool b = false; + + switch(m__d) + { + case eprosima::fastdds::statistics::STATUSES_SIZE: + b = true; + break; + default: + break; + } + + if(!b) + { + throw BadParamException("This member has not been selected"); + } + + return m_statuses_size; +} + +uint8_t& MonitorServiceData::statuses_size() +{ + bool b = false; + + switch(m__d) + { + case eprosima::fastdds::statistics::STATUSES_SIZE: + b = true; + break; + default: + break; + } + + if(!b) + { + throw BadParamException("This member has not been selected"); + } + + return m_statuses_size; +} + + +// TODO(Ricardo) Review +size_t MonitorServiceData::getCdrSerializedSize( + const MonitorServiceData& data, + size_t current_alignment) +{ + (void)data; + size_t initial_alignment = current_alignment; + + current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); + + + + switch(data.m__d) + { + case eprosima::fastdds::statistics::PROXY: + current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); + + if (data.entity_proxy().size() > 0) + { + current_alignment += (data.entity_proxy().size() * 1) + eprosima::fastcdr::Cdr::alignment(current_alignment, 1); + } + + + + break; + + + case eprosima::fastdds::statistics::CONNECTION_LIST: + current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); + + + for(size_t a = 0; a < data.connection_list().size(); ++a) + { + current_alignment += eprosima::fastdds::statistics::Connection::getCdrSerializedSize(data.connection_list().at(a), current_alignment); + } + + + break; + + + case eprosima::fastdds::statistics::INCOMPATIBLE_QOS: + current_alignment += eprosima::fastdds::statistics::IncompatibleQoSStatus_s::getCdrSerializedSize(data.incompatible_qos_status(), current_alignment); + + break; + + + case eprosima::fastdds::statistics::INCONSISTENT_TOPIC: + current_alignment += eprosima::fastdds::statistics::InconsistentTopicStatus_s::getCdrSerializedSize(data.inconsistent_topic_status(), current_alignment); + + break; + + + case eprosima::fastdds::statistics::LIVELINESS_LOST: + current_alignment += eprosima::fastdds::statistics::LivelinessLostStatus_s::getCdrSerializedSize(data.liveliness_lost_status(), current_alignment); + + break; + + + case eprosima::fastdds::statistics::LIVELINESS_CHANGED: + current_alignment += eprosima::fastdds::statistics::LivelinessChangedStatus_s::getCdrSerializedSize(data.liveliness_changed_status(), current_alignment); + + break; + + + case eprosima::fastdds::statistics::DEADLINE_MISSED: + current_alignment += eprosima::fastdds::statistics::DeadlineMissedStatus_s::getCdrSerializedSize(data.deadline_missed_status(), current_alignment); + + break; + + + case eprosima::fastdds::statistics::SAMPLE_LOST: + current_alignment += eprosima::fastdds::statistics::SampleLostStatus_s::getCdrSerializedSize(data.sample_lost_status(), current_alignment); + + break; + + + case eprosima::fastdds::statistics::STATUSES_SIZE: + current_alignment += 1 + eprosima::fastcdr::Cdr::alignment(current_alignment, 1); + + break; + + default: + break; + } + + return current_alignment - initial_alignment; +} + + +void MonitorServiceData::serialize( + eprosima::fastcdr::Cdr& scdr) const +{ + scdr << (uint32_t)m__d; + + switch(m__d) + { + case eprosima::fastdds::statistics::PROXY: + scdr << m_entity_proxy; + + + break; + + + case eprosima::fastdds::statistics::CONNECTION_LIST: + scdr << m_connection_list; + + + break; + + + case eprosima::fastdds::statistics::INCOMPATIBLE_QOS: + scdr << m_incompatible_qos_status; + + break; + + + case eprosima::fastdds::statistics::INCONSISTENT_TOPIC: + scdr << m_inconsistent_topic_status; + + break; + + + case eprosima::fastdds::statistics::LIVELINESS_LOST: + scdr << m_liveliness_lost_status; + + break; + + + case eprosima::fastdds::statistics::LIVELINESS_CHANGED: + scdr << m_liveliness_changed_status; + + break; + + + case eprosima::fastdds::statistics::DEADLINE_MISSED: + scdr << m_deadline_missed_status; + + break; + + + case eprosima::fastdds::statistics::SAMPLE_LOST: + scdr << m_sample_lost_status; + + break; + + + case eprosima::fastdds::statistics::STATUSES_SIZE: + scdr << m_statuses_size; + + break; + + default: + break; + } +} + +void MonitorServiceData::deserialize( + eprosima::fastcdr::Cdr& dcdr) +{ + { + uint32_t enum_value = 0; + dcdr >> enum_value; + m__d = (eprosima::fastdds::statistics::StatusKind)enum_value; + } + + + switch(m__d) + { + case eprosima::fastdds::statistics::PROXY: + dcdr >> m_entity_proxy; + + + break; + + + case eprosima::fastdds::statistics::CONNECTION_LIST: + dcdr >> m_connection_list; + + + break; + + + case eprosima::fastdds::statistics::INCOMPATIBLE_QOS: + dcdr >> m_incompatible_qos_status; + + + break; + + + case eprosima::fastdds::statistics::INCONSISTENT_TOPIC: + dcdr >> m_inconsistent_topic_status; + + + break; + + + case eprosima::fastdds::statistics::LIVELINESS_LOST: + dcdr >> m_liveliness_lost_status; + + + break; + + + case eprosima::fastdds::statistics::LIVELINESS_CHANGED: + dcdr >> m_liveliness_changed_status; + + + break; + + + case eprosima::fastdds::statistics::DEADLINE_MISSED: + dcdr >> m_deadline_missed_status; + + + break; + + + case eprosima::fastdds::statistics::SAMPLE_LOST: + dcdr >> m_sample_lost_status; + + + break; + + + case eprosima::fastdds::statistics::STATUSES_SIZE: + dcdr >> m_statuses_size; + + + break; + + default: + break; + } +} + + + + + +MonitorServiceStatusData::MonitorServiceStatusData() +{ + // eprosima::fastdds::statistics::detail::GUID_s m_local_entity + + // eprosima::fastdds::statistics::StatusKind m_status_kind + m_status_kind = eprosima::fastdds::statistics::PROXY; + // eprosima::fastdds::statistics::MonitorServiceData m_value + + +} + +MonitorServiceStatusData::~MonitorServiceStatusData() +{ +} + +MonitorServiceStatusData::MonitorServiceStatusData( + const MonitorServiceStatusData& x) +{ + m_local_entity = x.m_local_entity; + + + m_status_kind = x.m_status_kind; + + + m_value = x.m_value; + +} + +MonitorServiceStatusData::MonitorServiceStatusData( + MonitorServiceStatusData&& x) noexcept +{ + m_local_entity = std::move(x.m_local_entity); + + + m_status_kind = x.m_status_kind; + + + m_value = std::move(x.m_value); + +} + +MonitorServiceStatusData& MonitorServiceStatusData::operator =( + const MonitorServiceStatusData& x) +{ + m_local_entity = x.m_local_entity; + + + m_status_kind = x.m_status_kind; + + + m_value = x.m_value; + + return *this; +} + +MonitorServiceStatusData& MonitorServiceStatusData::operator =( + MonitorServiceStatusData&& x) noexcept +{ + m_local_entity = std::move(x.m_local_entity); + + + m_status_kind = x.m_status_kind; + + + m_value = std::move(x.m_value); + + return *this; +} + +bool MonitorServiceStatusData::operator ==( + const MonitorServiceStatusData& x) const +{ + return (m_local_entity == x.m_local_entity && + m_status_kind == x.m_status_kind && + m_value == x.m_value); +} + +bool MonitorServiceStatusData::operator !=( + const MonitorServiceStatusData& x) const +{ + return !(*this == x); +} + +size_t MonitorServiceStatusData::getMaxCdrSerializedSize( + size_t current_alignment) +{ + static_cast(current_alignment); + return eprosima_fastdds_statistics_MonitorServiceStatusData_max_cdr_typesize; +} + +size_t MonitorServiceStatusData::getCdrSerializedSize( + const MonitorServiceStatusData& data, + size_t current_alignment) +{ + (void)data; + size_t initial_alignment = current_alignment; + + current_alignment += eprosima::fastdds::statistics::detail::GUID_s::getCdrSerializedSize(data.local_entity(), current_alignment); + + + current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); + + + current_alignment += eprosima::fastdds::statistics::MonitorServiceData::getCdrSerializedSize(data.value(), current_alignment); + + + return current_alignment - initial_alignment; +} + + +void MonitorServiceStatusData::serialize( + eprosima::fastcdr::Cdr& scdr) const +{ + scdr << m_local_entity; + + scdr << (uint32_t)m_status_kind; + + scdr << m_value; + +} + +void MonitorServiceStatusData::deserialize( + eprosima::fastcdr::Cdr& dcdr) +{ + dcdr >> m_local_entity; + + + + { + uint32_t enum_value = 0; + dcdr >> enum_value; + m_status_kind = (eprosima::fastdds::statistics::StatusKind)enum_value; + } + + + + dcdr >> m_value; + + +} + + +bool MonitorServiceStatusData::isKeyDefined() +{ + return true; +} + +void MonitorServiceStatusData::serializeKey( + eprosima::fastcdr::Cdr& scdr) const +{ + (void) scdr; + m_local_entity.serialize(scdr); + + scdr << (uint32_t)m_status_kind; + + +} + +/*! + * @brief This function copies the value in member local_entity + * @param _local_entity New value to be copied in member local_entity + */ +void MonitorServiceStatusData::local_entity( + const eprosima::fastdds::statistics::detail::GUID_s& _local_entity) +{ + m_local_entity = _local_entity; +} + +/*! + * @brief This function moves the value in member local_entity + * @param _local_entity New value to be moved in member local_entity + */ +void MonitorServiceStatusData::local_entity( + eprosima::fastdds::statistics::detail::GUID_s&& _local_entity) +{ + m_local_entity = std::move(_local_entity); +} + +/*! + * @brief This function returns a constant reference to member local_entity + * @return Constant reference to member local_entity + */ +const eprosima::fastdds::statistics::detail::GUID_s& MonitorServiceStatusData::local_entity() const +{ + return m_local_entity; +} + +/*! + * @brief This function returns a reference to member local_entity + * @return Reference to member local_entity + */ +eprosima::fastdds::statistics::detail::GUID_s& MonitorServiceStatusData::local_entity() +{ + return m_local_entity; +} + + +/*! + * @brief This function sets a value in member status_kind + * @param _status_kind New value for member status_kind + */ +void MonitorServiceStatusData::status_kind( + eprosima::fastdds::statistics::StatusKind _status_kind) +{ + m_status_kind = _status_kind; +} + +/*! + * @brief This function returns the value of member status_kind + * @return Value of member status_kind + */ +eprosima::fastdds::statistics::StatusKind MonitorServiceStatusData::status_kind() const +{ + return m_status_kind; +} + +/*! + * @brief This function returns a reference to member status_kind + * @return Reference to member status_kind + */ +eprosima::fastdds::statistics::StatusKind& MonitorServiceStatusData::status_kind() +{ + return m_status_kind; +} + + +/*! + * @brief This function copies the value in member value + * @param _value New value to be copied in member value + */ +void MonitorServiceStatusData::value( + const eprosima::fastdds::statistics::MonitorServiceData& _value) +{ + m_value = _value; +} + +/*! + * @brief This function moves the value in member value + * @param _value New value to be moved in member value + */ +void MonitorServiceStatusData::value( + eprosima::fastdds::statistics::MonitorServiceData&& _value) +{ + m_value = std::move(_value); +} + +/*! + * @brief This function returns a constant reference to member value + * @return Constant reference to member value + */ +const eprosima::fastdds::statistics::MonitorServiceData& MonitorServiceStatusData::value() const +{ + return m_value; +} + +/*! + * @brief This function returns a reference to member value + * @return Reference to member value + */ +eprosima::fastdds::statistics::MonitorServiceData& MonitorServiceStatusData::value() +{ + return m_value; +} + + + + + +} // namespace statistics + + +} // namespace fastdds + + +} // namespace eprosima + +#endif // FASTCDR_VERSION_MAJOR == 1 diff --git a/src/cpp/statistics/types/monitorservice_typesv1.h b/src/cpp/statistics/types/monitorservice_typesv1.h new file mode 100644 index 00000000000..fde180bb00b --- /dev/null +++ b/src/cpp/statistics/types/monitorservice_typesv1.h @@ -0,0 +1,1762 @@ +// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima). +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! + * @file monitorservice_types.h + * This header file contains the declaration of the described types in the IDL file. + * + * This file was generated by the tool fastddsgen. + */ + +#include + +#if FASTCDR_VERSION_MAJOR == 1 + +#ifndef _FAST_DDS_GENERATED_EPROSIMA_FASTDDS_STATISTICS_MONITORSERVICE_TYPES_H_ +#define _FAST_DDS_GENERATED_EPROSIMA_FASTDDS_STATISTICS_MONITORSERVICE_TYPES_H_ + +#include "types.h" + +#include + +#include +#include +#include +#include +#include +#include + +#if defined(_WIN32) +#if defined(EPROSIMA_USER_DLL_EXPORT) +#define eProsima_user_DllExport __declspec( dllexport ) +#else +#define eProsima_user_DllExport +#endif // EPROSIMA_USER_DLL_EXPORT +#else +#define eProsima_user_DllExport +#endif // _WIN32 + +#if defined(_WIN32) +#if defined(EPROSIMA_USER_DLL_EXPORT) +#if defined(MONITORSERVICE_TYPES_SOURCE) +#define MONITORSERVICE_TYPES_DllAPI __declspec( dllexport ) +#else +#define MONITORSERVICE_TYPES_DllAPI __declspec( dllimport ) +#endif // MONITORSERVICE_TYPES_SOURCE +#else +#define MONITORSERVICE_TYPES_DllAPI +#endif // EPROSIMA_USER_DLL_EXPORT +#else +#define MONITORSERVICE_TYPES_DllAPI +#endif // _WIN32 + +namespace eprosima { +namespace fastcdr { +class Cdr; +} // namespace fastcdr +} // namespace eprosima + + + +namespace eprosima { + namespace fastdds { + namespace statistics { + /*! + * @brief This class represents the enumeration ConnectionMode defined by the user in the IDL file. + * @ingroup monitorservice_types + */ + enum ConnectionMode : uint32_t + { + DATA_SHARING, + INTRAPROCESS, + TRANSPORT + }; + + + + + /*! + * @brief This class represents the structure Connection defined by the user in the IDL file. + * @ingroup monitorservice_types + */ + class Connection + { + public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Connection(); + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Connection(); + + /*! + * @brief Copy constructor. + * @param x Reference to the object eprosima::fastdds::statistics::Connection that will be copied. + */ + eProsima_user_DllExport Connection( + const Connection& x); + + /*! + * @brief Move constructor. + * @param x Reference to the object eprosima::fastdds::statistics::Connection that will be copied. + */ + eProsima_user_DllExport Connection( + Connection&& x) noexcept; + + /*! + * @brief Copy assignment. + * @param x Reference to the object eprosima::fastdds::statistics::Connection that will be copied. + */ + eProsima_user_DllExport Connection& operator =( + const Connection& x); + + /*! + * @brief Move assignment. + * @param x Reference to the object eprosima::fastdds::statistics::Connection that will be copied. + */ + eProsima_user_DllExport Connection& operator =( + Connection&& x) noexcept; + + /*! + * @brief Comparison operator. + * @param x eprosima::fastdds::statistics::Connection object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Connection& x) const; + + /*! + * @brief Comparison operator. + * @param x eprosima::fastdds::statistics::Connection object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Connection& x) const; + + /*! + * @brief This function sets a value in member mode + * @param _mode New value for member mode + */ + eProsima_user_DllExport void mode( + eprosima::fastdds::statistics::ConnectionMode _mode); + + /*! + * @brief This function returns the value of member mode + * @return Value of member mode + */ + eProsima_user_DllExport eprosima::fastdds::statistics::ConnectionMode mode() const; + + /*! + * @brief This function returns a reference to member mode + * @return Reference to member mode + */ + eProsima_user_DllExport eprosima::fastdds::statistics::ConnectionMode& mode(); + + + /*! + * @brief This function copies the value in member guid + * @param _guid New value to be copied in member guid + */ + eProsima_user_DllExport void guid( + const eprosima::fastdds::statistics::detail::GUID_s& _guid); + + /*! + * @brief This function moves the value in member guid + * @param _guid New value to be moved in member guid + */ + eProsima_user_DllExport void guid( + eprosima::fastdds::statistics::detail::GUID_s&& _guid); + + /*! + * @brief This function returns a constant reference to member guid + * @return Constant reference to member guid + */ + eProsima_user_DllExport const eprosima::fastdds::statistics::detail::GUID_s& guid() const; + + /*! + * @brief This function returns a reference to member guid + * @return Reference to member guid + */ + eProsima_user_DllExport eprosima::fastdds::statistics::detail::GUID_s& guid(); + + + /*! + * @brief This function copies the value in member announced_locators + * @param _announced_locators New value to be copied in member announced_locators + */ + eProsima_user_DllExport void announced_locators( + const std::vector& _announced_locators); + + /*! + * @brief This function moves the value in member announced_locators + * @param _announced_locators New value to be moved in member announced_locators + */ + eProsima_user_DllExport void announced_locators( + std::vector&& _announced_locators); + + /*! + * @brief This function returns a constant reference to member announced_locators + * @return Constant reference to member announced_locators + */ + eProsima_user_DllExport const std::vector& announced_locators() const; + + /*! + * @brief This function returns a reference to member announced_locators + * @return Reference to member announced_locators + */ + eProsima_user_DllExport std::vector& announced_locators(); + + + /*! + * @brief This function copies the value in member used_locators + * @param _used_locators New value to be copied in member used_locators + */ + eProsima_user_DllExport void used_locators( + const std::vector& _used_locators); + + /*! + * @brief This function moves the value in member used_locators + * @param _used_locators New value to be moved in member used_locators + */ + eProsima_user_DllExport void used_locators( + std::vector&& _used_locators); + + /*! + * @brief This function returns a constant reference to member used_locators + * @return Constant reference to member used_locators + */ + eProsima_user_DllExport const std::vector& used_locators() const; + + /*! + * @brief This function returns a reference to member used_locators + * @return Reference to member used_locators + */ + eProsima_user_DllExport std::vector& used_locators(); + + + /*! + * @brief This function returns the maximum serialized size of an object + * depending on the buffer alignment. + * @param current_alignment Buffer alignment. + * @return Maximum serialized size. + */ + eProsima_user_DllExport static size_t getMaxCdrSerializedSize( + size_t current_alignment = 0); + + /*! + * @brief This function returns the serialized size of a data depending on the buffer alignment. + * @param data Data which is calculated its serialized size. + * @param current_alignment Buffer alignment. + * @return Serialized size. + */ + eProsima_user_DllExport static size_t getCdrSerializedSize( + const eprosima::fastdds::statistics::Connection& data, + size_t current_alignment = 0); + + + + /*! + * @brief This function serializes an object using CDR serialization. + * @param cdr CDR serialization object. + */ + eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& cdr) const; + + /*! + * @brief This function deserializes an object using CDR serialization. + * @param cdr CDR serialization object. + */ + eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr); + + + + + /*! + * @brief This function tells you if the Key has been defined for this type + */ + eProsima_user_DllExport static bool isKeyDefined(); + + /*! + * @brief This function serializes the key members of an object using CDR serialization. + * @param cdr CDR serialization object. + */ + eProsima_user_DllExport void serializeKey( + eprosima::fastcdr::Cdr& cdr) const; + + + private: + + eprosima::fastdds::statistics::ConnectionMode m_mode; + eprosima::fastdds::statistics::detail::GUID_s m_guid; + std::vector m_announced_locators; + std::vector m_used_locators; + + }; + + + + /*! + * @brief This class represents the structure QosPolicyCount_s defined by the user in the IDL file. + * @ingroup monitorservice_types + */ + class QosPolicyCount_s + { + public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport QosPolicyCount_s(); + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~QosPolicyCount_s(); + + /*! + * @brief Copy constructor. + * @param x Reference to the object eprosima::fastdds::statistics::QosPolicyCount_s that will be copied. + */ + eProsima_user_DllExport QosPolicyCount_s( + const QosPolicyCount_s& x); + + /*! + * @brief Move constructor. + * @param x Reference to the object eprosima::fastdds::statistics::QosPolicyCount_s that will be copied. + */ + eProsima_user_DllExport QosPolicyCount_s( + QosPolicyCount_s&& x) noexcept; + + /*! + * @brief Copy assignment. + * @param x Reference to the object eprosima::fastdds::statistics::QosPolicyCount_s that will be copied. + */ + eProsima_user_DllExport QosPolicyCount_s& operator =( + const QosPolicyCount_s& x); + + /*! + * @brief Move assignment. + * @param x Reference to the object eprosima::fastdds::statistics::QosPolicyCount_s that will be copied. + */ + eProsima_user_DllExport QosPolicyCount_s& operator =( + QosPolicyCount_s&& x) noexcept; + + /*! + * @brief Comparison operator. + * @param x eprosima::fastdds::statistics::QosPolicyCount_s object to compare. + */ + eProsima_user_DllExport bool operator ==( + const QosPolicyCount_s& x) const; + + /*! + * @brief Comparison operator. + * @param x eprosima::fastdds::statistics::QosPolicyCount_s object to compare. + */ + eProsima_user_DllExport bool operator !=( + const QosPolicyCount_s& x) const; + + /*! + * @brief This function sets a value in member policy_id + * @param _policy_id New value for member policy_id + */ + eProsima_user_DllExport void policy_id( + uint32_t _policy_id); + + /*! + * @brief This function returns the value of member policy_id + * @return Value of member policy_id + */ + eProsima_user_DllExport uint32_t policy_id() const; + + /*! + * @brief This function returns a reference to member policy_id + * @return Reference to member policy_id + */ + eProsima_user_DllExport uint32_t& policy_id(); + + + /*! + * @brief This function sets a value in member count + * @param _count New value for member count + */ + eProsima_user_DllExport void count( + uint32_t _count); + + /*! + * @brief This function returns the value of member count + * @return Value of member count + */ + eProsima_user_DllExport uint32_t count() const; + + /*! + * @brief This function returns a reference to member count + * @return Reference to member count + */ + eProsima_user_DllExport uint32_t& count(); + + + /*! + * @brief This function returns the maximum serialized size of an object + * depending on the buffer alignment. + * @param current_alignment Buffer alignment. + * @return Maximum serialized size. + */ + eProsima_user_DllExport static size_t getMaxCdrSerializedSize( + size_t current_alignment = 0); + + /*! + * @brief This function returns the serialized size of a data depending on the buffer alignment. + * @param data Data which is calculated its serialized size. + * @param current_alignment Buffer alignment. + * @return Serialized size. + */ + eProsima_user_DllExport static size_t getCdrSerializedSize( + const eprosima::fastdds::statistics::QosPolicyCount_s& data, + size_t current_alignment = 0); + + + + /*! + * @brief This function serializes an object using CDR serialization. + * @param cdr CDR serialization object. + */ + eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& cdr) const; + + /*! + * @brief This function deserializes an object using CDR serialization. + * @param cdr CDR serialization object. + */ + eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr); + + + + + /*! + * @brief This function tells you if the Key has been defined for this type + */ + eProsima_user_DllExport static bool isKeyDefined(); + + /*! + * @brief This function serializes the key members of an object using CDR serialization. + * @param cdr CDR serialization object. + */ + eProsima_user_DllExport void serializeKey( + eprosima::fastcdr::Cdr& cdr) const; + + + private: + + uint32_t m_policy_id; + uint32_t m_count; + + }; + + + + /*! + * @brief This class represents the structure BaseStatus_s defined by the user in the IDL file. + * @ingroup monitorservice_types + */ + class BaseStatus_s + { + public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport BaseStatus_s(); + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~BaseStatus_s(); + + /*! + * @brief Copy constructor. + * @param x Reference to the object eprosima::fastdds::statistics::BaseStatus_s that will be copied. + */ + eProsima_user_DllExport BaseStatus_s( + const BaseStatus_s& x); + + /*! + * @brief Move constructor. + * @param x Reference to the object eprosima::fastdds::statistics::BaseStatus_s that will be copied. + */ + eProsima_user_DllExport BaseStatus_s( + BaseStatus_s&& x) noexcept; + + /*! + * @brief Copy assignment. + * @param x Reference to the object eprosima::fastdds::statistics::BaseStatus_s that will be copied. + */ + eProsima_user_DllExport BaseStatus_s& operator =( + const BaseStatus_s& x); + + /*! + * @brief Move assignment. + * @param x Reference to the object eprosima::fastdds::statistics::BaseStatus_s that will be copied. + */ + eProsima_user_DllExport BaseStatus_s& operator =( + BaseStatus_s&& x) noexcept; + + /*! + * @brief Comparison operator. + * @param x eprosima::fastdds::statistics::BaseStatus_s object to compare. + */ + eProsima_user_DllExport bool operator ==( + const BaseStatus_s& x) const; + + /*! + * @brief Comparison operator. + * @param x eprosima::fastdds::statistics::BaseStatus_s object to compare. + */ + eProsima_user_DllExport bool operator !=( + const BaseStatus_s& x) const; + + /*! + * @brief This function sets a value in member total_count + * @param _total_count New value for member total_count + */ + eProsima_user_DllExport void total_count( + uint32_t _total_count); + + /*! + * @brief This function returns the value of member total_count + * @return Value of member total_count + */ + eProsima_user_DllExport uint32_t total_count() const; + + /*! + * @brief This function returns a reference to member total_count + * @return Reference to member total_count + */ + eProsima_user_DllExport uint32_t& total_count(); + + + /*! + * @brief This function returns the maximum serialized size of an object + * depending on the buffer alignment. + * @param current_alignment Buffer alignment. + * @return Maximum serialized size. + */ + eProsima_user_DllExport static size_t getMaxCdrSerializedSize( + size_t current_alignment = 0); + + /*! + * @brief This function returns the serialized size of a data depending on the buffer alignment. + * @param data Data which is calculated its serialized size. + * @param current_alignment Buffer alignment. + * @return Serialized size. + */ + eProsima_user_DllExport static size_t getCdrSerializedSize( + const eprosima::fastdds::statistics::BaseStatus_s& data, + size_t current_alignment = 0); + + + + /*! + * @brief This function serializes an object using CDR serialization. + * @param cdr CDR serialization object. + */ + eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& cdr) const; + + /*! + * @brief This function deserializes an object using CDR serialization. + * @param cdr CDR serialization object. + */ + eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr); + + + + + /*! + * @brief This function tells you if the Key has been defined for this type + */ + eProsima_user_DllExport static bool isKeyDefined(); + + /*! + * @brief This function serializes the key members of an object using CDR serialization. + * @param cdr CDR serialization object. + */ + eProsima_user_DllExport void serializeKey( + eprosima::fastcdr::Cdr& cdr) const; + + + private: + + uint32_t m_total_count; + + }; + + + + typedef std::vector QosPolicyCountSeq_s; + + + + /*! + * @brief This class represents the structure IncompatibleQoSStatus_s defined by the user in the IDL file. + * @ingroup monitorservice_types + */ + class IncompatibleQoSStatus_s + { + public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport IncompatibleQoSStatus_s(); + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~IncompatibleQoSStatus_s(); + + /*! + * @brief Copy constructor. + * @param x Reference to the object eprosima::fastdds::statistics::IncompatibleQoSStatus_s that will be copied. + */ + eProsima_user_DllExport IncompatibleQoSStatus_s( + const IncompatibleQoSStatus_s& x); + + /*! + * @brief Move constructor. + * @param x Reference to the object eprosima::fastdds::statistics::IncompatibleQoSStatus_s that will be copied. + */ + eProsima_user_DllExport IncompatibleQoSStatus_s( + IncompatibleQoSStatus_s&& x) noexcept; + + /*! + * @brief Copy assignment. + * @param x Reference to the object eprosima::fastdds::statistics::IncompatibleQoSStatus_s that will be copied. + */ + eProsima_user_DllExport IncompatibleQoSStatus_s& operator =( + const IncompatibleQoSStatus_s& x); + + /*! + * @brief Move assignment. + * @param x Reference to the object eprosima::fastdds::statistics::IncompatibleQoSStatus_s that will be copied. + */ + eProsima_user_DllExport IncompatibleQoSStatus_s& operator =( + IncompatibleQoSStatus_s&& x) noexcept; + + /*! + * @brief Comparison operator. + * @param x eprosima::fastdds::statistics::IncompatibleQoSStatus_s object to compare. + */ + eProsima_user_DllExport bool operator ==( + const IncompatibleQoSStatus_s& x) const; + + /*! + * @brief Comparison operator. + * @param x eprosima::fastdds::statistics::IncompatibleQoSStatus_s object to compare. + */ + eProsima_user_DllExport bool operator !=( + const IncompatibleQoSStatus_s& x) const; + + /*! + * @brief This function sets a value in member total_count + * @param _total_count New value for member total_count + */ + eProsima_user_DllExport void total_count( + uint32_t _total_count); + + /*! + * @brief This function returns the value of member total_count + * @return Value of member total_count + */ + eProsima_user_DllExport uint32_t total_count() const; + + /*! + * @brief This function returns a reference to member total_count + * @return Reference to member total_count + */ + eProsima_user_DllExport uint32_t& total_count(); + + + /*! + * @brief This function sets a value in member last_policy_id + * @param _last_policy_id New value for member last_policy_id + */ + eProsima_user_DllExport void last_policy_id( + uint32_t _last_policy_id); + + /*! + * @brief This function returns the value of member last_policy_id + * @return Value of member last_policy_id + */ + eProsima_user_DllExport uint32_t last_policy_id() const; + + /*! + * @brief This function returns a reference to member last_policy_id + * @return Reference to member last_policy_id + */ + eProsima_user_DllExport uint32_t& last_policy_id(); + + + /*! + * @brief This function copies the value in member policies + * @param _policies New value to be copied in member policies + */ + eProsima_user_DllExport void policies( + const eprosima::fastdds::statistics::QosPolicyCountSeq_s& _policies); + + /*! + * @brief This function moves the value in member policies + * @param _policies New value to be moved in member policies + */ + eProsima_user_DllExport void policies( + eprosima::fastdds::statistics::QosPolicyCountSeq_s&& _policies); + + /*! + * @brief This function returns a constant reference to member policies + * @return Constant reference to member policies + */ + eProsima_user_DllExport const eprosima::fastdds::statistics::QosPolicyCountSeq_s& policies() const; + + /*! + * @brief This function returns a reference to member policies + * @return Reference to member policies + */ + eProsima_user_DllExport eprosima::fastdds::statistics::QosPolicyCountSeq_s& policies(); + + + /*! + * @brief This function returns the maximum serialized size of an object + * depending on the buffer alignment. + * @param current_alignment Buffer alignment. + * @return Maximum serialized size. + */ + eProsima_user_DllExport static size_t getMaxCdrSerializedSize( + size_t current_alignment = 0); + + /*! + * @brief This function returns the serialized size of a data depending on the buffer alignment. + * @param data Data which is calculated its serialized size. + * @param current_alignment Buffer alignment. + * @return Serialized size. + */ + eProsima_user_DllExport static size_t getCdrSerializedSize( + const eprosima::fastdds::statistics::IncompatibleQoSStatus_s& data, + size_t current_alignment = 0); + + + + /*! + * @brief This function serializes an object using CDR serialization. + * @param cdr CDR serialization object. + */ + eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& cdr) const; + + /*! + * @brief This function deserializes an object using CDR serialization. + * @param cdr CDR serialization object. + */ + eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr); + + + + + /*! + * @brief This function tells you if the Key has been defined for this type + */ + eProsima_user_DllExport static bool isKeyDefined(); + + /*! + * @brief This function serializes the key members of an object using CDR serialization. + * @param cdr CDR serialization object. + */ + eProsima_user_DllExport void serializeKey( + eprosima::fastcdr::Cdr& cdr) const; + + + private: + + uint32_t m_total_count; + uint32_t m_last_policy_id; + eprosima::fastdds::statistics::QosPolicyCountSeq_s m_policies; + + }; + + + + /*! + * @brief This class represents the structure LivelinessChangedStatus_s defined by the user in the IDL file. + * @ingroup monitorservice_types + */ + class LivelinessChangedStatus_s + { + public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport LivelinessChangedStatus_s(); + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~LivelinessChangedStatus_s(); + + /*! + * @brief Copy constructor. + * @param x Reference to the object eprosima::fastdds::statistics::LivelinessChangedStatus_s that will be copied. + */ + eProsima_user_DllExport LivelinessChangedStatus_s( + const LivelinessChangedStatus_s& x); + + /*! + * @brief Move constructor. + * @param x Reference to the object eprosima::fastdds::statistics::LivelinessChangedStatus_s that will be copied. + */ + eProsima_user_DllExport LivelinessChangedStatus_s( + LivelinessChangedStatus_s&& x) noexcept; + + /*! + * @brief Copy assignment. + * @param x Reference to the object eprosima::fastdds::statistics::LivelinessChangedStatus_s that will be copied. + */ + eProsima_user_DllExport LivelinessChangedStatus_s& operator =( + const LivelinessChangedStatus_s& x); + + /*! + * @brief Move assignment. + * @param x Reference to the object eprosima::fastdds::statistics::LivelinessChangedStatus_s that will be copied. + */ + eProsima_user_DllExport LivelinessChangedStatus_s& operator =( + LivelinessChangedStatus_s&& x) noexcept; + + /*! + * @brief Comparison operator. + * @param x eprosima::fastdds::statistics::LivelinessChangedStatus_s object to compare. + */ + eProsima_user_DllExport bool operator ==( + const LivelinessChangedStatus_s& x) const; + + /*! + * @brief Comparison operator. + * @param x eprosima::fastdds::statistics::LivelinessChangedStatus_s object to compare. + */ + eProsima_user_DllExport bool operator !=( + const LivelinessChangedStatus_s& x) const; + + /*! + * @brief This function sets a value in member alive_count + * @param _alive_count New value for member alive_count + */ + eProsima_user_DllExport void alive_count( + uint32_t _alive_count); + + /*! + * @brief This function returns the value of member alive_count + * @return Value of member alive_count + */ + eProsima_user_DllExport uint32_t alive_count() const; + + /*! + * @brief This function returns a reference to member alive_count + * @return Reference to member alive_count + */ + eProsima_user_DllExport uint32_t& alive_count(); + + + /*! + * @brief This function sets a value in member not_alive_count + * @param _not_alive_count New value for member not_alive_count + */ + eProsima_user_DllExport void not_alive_count( + uint32_t _not_alive_count); + + /*! + * @brief This function returns the value of member not_alive_count + * @return Value of member not_alive_count + */ + eProsima_user_DllExport uint32_t not_alive_count() const; + + /*! + * @brief This function returns a reference to member not_alive_count + * @return Reference to member not_alive_count + */ + eProsima_user_DllExport uint32_t& 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 + */ + eProsima_user_DllExport void last_publication_handle( + const std::array& _last_publication_handle); + + /*! + * @brief This function moves the value in member last_publication_handle + * @param _last_publication_handle New value to be moved in member last_publication_handle + */ + eProsima_user_DllExport void last_publication_handle( + std::array&& _last_publication_handle); + + /*! + * @brief This function returns a constant reference to member last_publication_handle + * @return Constant reference to member last_publication_handle + */ + eProsima_user_DllExport const std::array& last_publication_handle() const; + + /*! + * @brief This function returns a reference to member last_publication_handle + * @return Reference to member last_publication_handle + */ + eProsima_user_DllExport std::array& last_publication_handle(); + + + /*! + * @brief This function returns the maximum serialized size of an object + * depending on the buffer alignment. + * @param current_alignment Buffer alignment. + * @return Maximum serialized size. + */ + eProsima_user_DllExport static size_t getMaxCdrSerializedSize( + size_t current_alignment = 0); + + /*! + * @brief This function returns the serialized size of a data depending on the buffer alignment. + * @param data Data which is calculated its serialized size. + * @param current_alignment Buffer alignment. + * @return Serialized size. + */ + eProsima_user_DllExport static size_t getCdrSerializedSize( + const eprosima::fastdds::statistics::LivelinessChangedStatus_s& data, + size_t current_alignment = 0); + + + + /*! + * @brief This function serializes an object using CDR serialization. + * @param cdr CDR serialization object. + */ + eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& cdr) const; + + /*! + * @brief This function deserializes an object using CDR serialization. + * @param cdr CDR serialization object. + */ + eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr); + + + + + /*! + * @brief This function tells you if the Key has been defined for this type + */ + eProsima_user_DllExport static bool isKeyDefined(); + + /*! + * @brief This function serializes the key members of an object using CDR serialization. + * @param cdr CDR serialization object. + */ + eProsima_user_DllExport void serializeKey( + eprosima::fastcdr::Cdr& cdr) const; + + + private: + + uint32_t m_alive_count; + uint32_t m_not_alive_count; + std::array m_last_publication_handle; + + }; + + + + /*! + * @brief This class represents the structure DeadlineMissedStatus_s defined by the user in the IDL file. + * @ingroup monitorservice_types + */ + class DeadlineMissedStatus_s + { + public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport DeadlineMissedStatus_s(); + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~DeadlineMissedStatus_s(); + + /*! + * @brief Copy constructor. + * @param x Reference to the object eprosima::fastdds::statistics::DeadlineMissedStatus_s that will be copied. + */ + eProsima_user_DllExport DeadlineMissedStatus_s( + const DeadlineMissedStatus_s& x); + + /*! + * @brief Move constructor. + * @param x Reference to the object eprosima::fastdds::statistics::DeadlineMissedStatus_s that will be copied. + */ + eProsima_user_DllExport DeadlineMissedStatus_s( + DeadlineMissedStatus_s&& x) noexcept; + + /*! + * @brief Copy assignment. + * @param x Reference to the object eprosima::fastdds::statistics::DeadlineMissedStatus_s that will be copied. + */ + eProsima_user_DllExport DeadlineMissedStatus_s& operator =( + const DeadlineMissedStatus_s& x); + + /*! + * @brief Move assignment. + * @param x Reference to the object eprosima::fastdds::statistics::DeadlineMissedStatus_s that will be copied. + */ + eProsima_user_DllExport DeadlineMissedStatus_s& operator =( + DeadlineMissedStatus_s&& x) noexcept; + + /*! + * @brief Comparison operator. + * @param x eprosima::fastdds::statistics::DeadlineMissedStatus_s object to compare. + */ + eProsima_user_DllExport bool operator ==( + const DeadlineMissedStatus_s& x) const; + + /*! + * @brief Comparison operator. + * @param x eprosima::fastdds::statistics::DeadlineMissedStatus_s object to compare. + */ + eProsima_user_DllExport bool operator !=( + const DeadlineMissedStatus_s& x) const; + + /*! + * @brief This function sets a value in member total_count + * @param _total_count New value for member total_count + */ + eProsima_user_DllExport void total_count( + uint32_t _total_count); + + /*! + * @brief This function returns the value of member total_count + * @return Value of member total_count + */ + eProsima_user_DllExport uint32_t total_count() const; + + /*! + * @brief This function returns a reference to member total_count + * @return Reference to member total_count + */ + eProsima_user_DllExport uint32_t& 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 + */ + eProsima_user_DllExport void last_instance_handle( + const std::array& _last_instance_handle); + + /*! + * @brief This function moves the value in member last_instance_handle + * @param _last_instance_handle New value to be moved in member last_instance_handle + */ + eProsima_user_DllExport void last_instance_handle( + std::array&& _last_instance_handle); + + /*! + * @brief This function returns a constant reference to member last_instance_handle + * @return Constant reference to member last_instance_handle + */ + eProsima_user_DllExport const std::array& last_instance_handle() const; + + /*! + * @brief This function returns a reference to member last_instance_handle + * @return Reference to member last_instance_handle + */ + eProsima_user_DllExport std::array& last_instance_handle(); + + + /*! + * @brief This function returns the maximum serialized size of an object + * depending on the buffer alignment. + * @param current_alignment Buffer alignment. + * @return Maximum serialized size. + */ + eProsima_user_DllExport static size_t getMaxCdrSerializedSize( + size_t current_alignment = 0); + + /*! + * @brief This function returns the serialized size of a data depending on the buffer alignment. + * @param data Data which is calculated its serialized size. + * @param current_alignment Buffer alignment. + * @return Serialized size. + */ + eProsima_user_DllExport static size_t getCdrSerializedSize( + const eprosima::fastdds::statistics::DeadlineMissedStatus_s& data, + size_t current_alignment = 0); + + + + /*! + * @brief This function serializes an object using CDR serialization. + * @param cdr CDR serialization object. + */ + eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& cdr) const; + + /*! + * @brief This function deserializes an object using CDR serialization. + * @param cdr CDR serialization object. + */ + eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr); + + + + + /*! + * @brief This function tells you if the Key has been defined for this type + */ + eProsima_user_DllExport static bool isKeyDefined(); + + /*! + * @brief This function serializes the key members of an object using CDR serialization. + * @param cdr CDR serialization object. + */ + eProsima_user_DllExport void serializeKey( + eprosima::fastcdr::Cdr& cdr) const; + + + private: + + uint32_t m_total_count; + std::array m_last_instance_handle; + + }; + + typedef eprosima::fastdds::statistics::BaseStatus_s LivelinessLostStatus_s; + + typedef eprosima::fastdds::statistics::BaseStatus_s InconsistentTopicStatus_s; + + typedef eprosima::fastdds::statistics::BaseStatus_s SampleLostStatus_s; + + /*! + * @brief This class represents the enumeration StatusKind defined by the user in the IDL file. + * @ingroup monitorservice_types + */ + enum StatusKind : uint32_t + { + PROXY, + CONNECTION_LIST, + INCOMPATIBLE_QOS, + INCONSISTENT_TOPIC, + LIVELINESS_LOST, + LIVELINESS_CHANGED, + DEADLINE_MISSED, + SAMPLE_LOST, + STATUSES_SIZE + }; + + + /*! + * @brief This class represents the union MonitorServiceData defined by the user in the IDL file. + * @ingroup monitorservice_types + */ + class MonitorServiceData + { + public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport MonitorServiceData(); + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~MonitorServiceData(); + + /*! + * @brief Copy constructor. + * @param x Reference to the object eprosima::fastdds::statistics::MonitorServiceData that will be copied. + */ + eProsima_user_DllExport MonitorServiceData( + const MonitorServiceData& x); + + /*! + * @brief Move constructor. + * @param x Reference to the object eprosima::fastdds::statistics::MonitorServiceData that will be copied. + */ + eProsima_user_DllExport MonitorServiceData( + MonitorServiceData&& x) noexcept; + + /*! + * @brief Copy assignment. + * @param x Reference to the object eprosima::fastdds::statistics::MonitorServiceData that will be copied. + */ + eProsima_user_DllExport MonitorServiceData& operator =( + const MonitorServiceData& x); + + /*! + * @brief Move assignment. + * @param x Reference to the object eprosima::fastdds::statistics::MonitorServiceData that will be copied. + */ + eProsima_user_DllExport MonitorServiceData& operator =( + MonitorServiceData&& x) noexcept; + + /*! + * @brief Comparison operator. + * @param x eprosima::fastdds::statistics::MonitorServiceData object to compare. + */ + eProsima_user_DllExport bool operator ==( + const MonitorServiceData& x) const; + + /*! + * @brief Comparison operator. + * @param x eprosima::fastdds::statistics::MonitorServiceData object to compare. + */ + eProsima_user_DllExport bool operator !=( + const MonitorServiceData& x) const; + + /*! + * @brief This function sets the discriminator value. + * @param __d New value for the discriminator. + * @exception eprosima::fastcdr::BadParamException This exception is thrown if the new value doesn't correspond to the selected union member. + */ + eProsima_user_DllExport void _d( + eprosima::fastdds::statistics::StatusKind __d); + + /*! + * @brief This function returns the value of the discriminator. + * @return Value of the discriminator + */ + eProsima_user_DllExport eprosima::fastdds::statistics::StatusKind _d() const; + + /*! + * @brief This function returns a reference to the discriminator. + * @return Reference to the discriminator. + */ + eProsima_user_DllExport eprosima::fastdds::statistics::StatusKind& _d(); + + /*! + * @brief This function copies the value in member entity_proxy + * @param _entity_proxy New value to be copied in member entity_proxy + */ + eProsima_user_DllExport void entity_proxy( + const std::vector& _entity_proxy); + + /*! + * @brief This function moves the value in member entity_proxy + * @param _entity_proxy New value to be moved in member entity_proxy + */ + eProsima_user_DllExport void entity_proxy( + std::vector&& _entity_proxy); + + /*! + * @brief This function returns a constant reference to member entity_proxy + * @return Constant reference to member entity_proxy + * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. + */ + eProsima_user_DllExport const std::vector& entity_proxy() const; + + /*! + * @brief This function returns a reference to member entity_proxy + * @return Reference to member entity_proxy + * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. + */ + eProsima_user_DllExport std::vector& entity_proxy(); + + + /*! + * @brief This function copies the value in member connection_list + * @param _connection_list New value to be copied in member connection_list + */ + eProsima_user_DllExport void connection_list( + const std::vector& _connection_list); + + /*! + * @brief This function moves the value in member connection_list + * @param _connection_list New value to be moved in member connection_list + */ + eProsima_user_DllExport void connection_list( + std::vector&& _connection_list); + + /*! + * @brief This function returns a constant reference to member connection_list + * @return Constant reference to member connection_list + * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. + */ + eProsima_user_DllExport const std::vector& connection_list() const; + + /*! + * @brief This function returns a reference to member connection_list + * @return Reference to member connection_list + * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. + */ + eProsima_user_DllExport std::vector& 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 + */ + eProsima_user_DllExport void incompatible_qos_status( + const eprosima::fastdds::statistics::IncompatibleQoSStatus_s& _incompatible_qos_status); + + /*! + * @brief This function moves the value in member incompatible_qos_status + * @param _incompatible_qos_status New value to be moved in member incompatible_qos_status + */ + eProsima_user_DllExport void incompatible_qos_status( + eprosima::fastdds::statistics::IncompatibleQoSStatus_s&& _incompatible_qos_status); + + /*! + * @brief This function returns a constant reference to member incompatible_qos_status + * @return Constant reference to member incompatible_qos_status + * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. + */ + eProsima_user_DllExport const eprosima::fastdds::statistics::IncompatibleQoSStatus_s& incompatible_qos_status() const; + + /*! + * @brief This function returns a reference to member incompatible_qos_status + * @return Reference to member incompatible_qos_status + * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. + */ + eProsima_user_DllExport eprosima::fastdds::statistics::IncompatibleQoSStatus_s& 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 + */ + eProsima_user_DllExport void inconsistent_topic_status( + const eprosima::fastdds::statistics::InconsistentTopicStatus_s& _inconsistent_topic_status); + + /*! + * @brief This function moves the value in member inconsistent_topic_status + * @param _inconsistent_topic_status New value to be moved in member inconsistent_topic_status + */ + eProsima_user_DllExport void inconsistent_topic_status( + eprosima::fastdds::statistics::InconsistentTopicStatus_s&& _inconsistent_topic_status); + + /*! + * @brief This function returns a constant reference to member inconsistent_topic_status + * @return Constant reference to member inconsistent_topic_status + * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. + */ + eProsima_user_DllExport const eprosima::fastdds::statistics::InconsistentTopicStatus_s& inconsistent_topic_status() const; + + /*! + * @brief This function returns a reference to member inconsistent_topic_status + * @return Reference to member inconsistent_topic_status + * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. + */ + eProsima_user_DllExport eprosima::fastdds::statistics::InconsistentTopicStatus_s& 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 + */ + eProsima_user_DllExport void liveliness_lost_status( + const eprosima::fastdds::statistics::LivelinessLostStatus_s& _liveliness_lost_status); + + /*! + * @brief This function moves the value in member liveliness_lost_status + * @param _liveliness_lost_status New value to be moved in member liveliness_lost_status + */ + eProsima_user_DllExport void liveliness_lost_status( + eprosima::fastdds::statistics::LivelinessLostStatus_s&& _liveliness_lost_status); + + /*! + * @brief This function returns a constant reference to member liveliness_lost_status + * @return Constant reference to member liveliness_lost_status + * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. + */ + eProsima_user_DllExport const eprosima::fastdds::statistics::LivelinessLostStatus_s& liveliness_lost_status() const; + + /*! + * @brief This function returns a reference to member liveliness_lost_status + * @return Reference to member liveliness_lost_status + * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. + */ + eProsima_user_DllExport eprosima::fastdds::statistics::LivelinessLostStatus_s& 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 + */ + eProsima_user_DllExport void liveliness_changed_status( + const eprosima::fastdds::statistics::LivelinessChangedStatus_s& _liveliness_changed_status); + + /*! + * @brief This function moves the value in member liveliness_changed_status + * @param _liveliness_changed_status New value to be moved in member liveliness_changed_status + */ + eProsima_user_DllExport void liveliness_changed_status( + eprosima::fastdds::statistics::LivelinessChangedStatus_s&& _liveliness_changed_status); + + /*! + * @brief This function returns a constant reference to member liveliness_changed_status + * @return Constant reference to member liveliness_changed_status + * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. + */ + eProsima_user_DllExport const eprosima::fastdds::statistics::LivelinessChangedStatus_s& liveliness_changed_status() const; + + /*! + * @brief This function returns a reference to member liveliness_changed_status + * @return Reference to member liveliness_changed_status + * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. + */ + eProsima_user_DllExport eprosima::fastdds::statistics::LivelinessChangedStatus_s& 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 + */ + eProsima_user_DllExport void deadline_missed_status( + const eprosima::fastdds::statistics::DeadlineMissedStatus_s& _deadline_missed_status); + + /*! + * @brief This function moves the value in member deadline_missed_status + * @param _deadline_missed_status New value to be moved in member deadline_missed_status + */ + eProsima_user_DllExport void deadline_missed_status( + eprosima::fastdds::statistics::DeadlineMissedStatus_s&& _deadline_missed_status); + + /*! + * @brief This function returns a constant reference to member deadline_missed_status + * @return Constant reference to member deadline_missed_status + * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. + */ + eProsima_user_DllExport const eprosima::fastdds::statistics::DeadlineMissedStatus_s& deadline_missed_status() const; + + /*! + * @brief This function returns a reference to member deadline_missed_status + * @return Reference to member deadline_missed_status + * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. + */ + eProsima_user_DllExport eprosima::fastdds::statistics::DeadlineMissedStatus_s& 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 + */ + eProsima_user_DllExport void sample_lost_status( + const eprosima::fastdds::statistics::SampleLostStatus_s& _sample_lost_status); + + /*! + * @brief This function moves the value in member sample_lost_status + * @param _sample_lost_status New value to be moved in member sample_lost_status + */ + eProsima_user_DllExport void sample_lost_status( + eprosima::fastdds::statistics::SampleLostStatus_s&& _sample_lost_status); + + /*! + * @brief This function returns a constant reference to member sample_lost_status + * @return Constant reference to member sample_lost_status + * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. + */ + eProsima_user_DllExport const eprosima::fastdds::statistics::SampleLostStatus_s& sample_lost_status() const; + + /*! + * @brief This function returns a reference to member sample_lost_status + * @return Reference to member sample_lost_status + * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. + */ + eProsima_user_DllExport eprosima::fastdds::statistics::SampleLostStatus_s& sample_lost_status(); + + + /*! + * @brief This function sets a value in member statuses_size + * @param _statuses_size New value for member statuses_size + */ + eProsima_user_DllExport void statuses_size( + uint8_t _statuses_size); + + /*! + * @brief This function returns the value of member statuses_size + * @return Value of member statuses_size + * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. + */ + eProsima_user_DllExport uint8_t statuses_size() const; + + /*! + * @brief This function returns a reference to member statuses_size + * @return Reference to member statuses_size + * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. + */ + eProsima_user_DllExport uint8_t& statuses_size(); + + + /*! + * @brief This function returns the serialized size of a data depending on the buffer alignment. + * @param data Data which is calculated its serialized size. + * @param current_alignment Buffer alignment. + * @return Serialized size. + */ + eProsima_user_DllExport static size_t getCdrSerializedSize( + const eprosima::fastdds::statistics::MonitorServiceData& data, + size_t current_alignment = 0); + + + + /*! + * @brief This function serializes an object using CDR serialization. + * @param cdr CDR serialization object. + */ + eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& cdr) const; + + /*! + * @brief This function deserializes an object using CDR serialization. + * @param cdr CDR serialization object. + */ + eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr); + + + + + + private: + + eprosima::fastdds::statistics::StatusKind m__d; + + std::vector m_entity_proxy; + std::vector m_connection_list; + eprosima::fastdds::statistics::IncompatibleQoSStatus_s m_incompatible_qos_status; + eprosima::fastdds::statistics::InconsistentTopicStatus_s m_inconsistent_topic_status; + eprosima::fastdds::statistics::LivelinessLostStatus_s m_liveliness_lost_status; + eprosima::fastdds::statistics::LivelinessChangedStatus_s m_liveliness_changed_status; + eprosima::fastdds::statistics::DeadlineMissedStatus_s m_deadline_missed_status; + eprosima::fastdds::statistics::SampleLostStatus_s m_sample_lost_status; + uint8_t m_statuses_size; + }; + + + + /*! + * @brief This class represents the structure MonitorServiceStatusData defined by the user in the IDL file. + * @ingroup monitorservice_types + */ + class MonitorServiceStatusData + { + public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport MonitorServiceStatusData(); + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~MonitorServiceStatusData(); + + /*! + * @brief Copy constructor. + * @param x Reference to the object eprosima::fastdds::statistics::MonitorServiceStatusData that will be copied. + */ + eProsima_user_DllExport MonitorServiceStatusData( + const MonitorServiceStatusData& x); + + /*! + * @brief Move constructor. + * @param x Reference to the object eprosima::fastdds::statistics::MonitorServiceStatusData that will be copied. + */ + eProsima_user_DllExport MonitorServiceStatusData( + MonitorServiceStatusData&& x) noexcept; + + /*! + * @brief Copy assignment. + * @param x Reference to the object eprosima::fastdds::statistics::MonitorServiceStatusData that will be copied. + */ + eProsima_user_DllExport MonitorServiceStatusData& operator =( + const MonitorServiceStatusData& x); + + /*! + * @brief Move assignment. + * @param x Reference to the object eprosima::fastdds::statistics::MonitorServiceStatusData that will be copied. + */ + eProsima_user_DllExport MonitorServiceStatusData& operator =( + MonitorServiceStatusData&& x) noexcept; + + /*! + * @brief Comparison operator. + * @param x eprosima::fastdds::statistics::MonitorServiceStatusData object to compare. + */ + eProsima_user_DllExport bool operator ==( + const MonitorServiceStatusData& x) const; + + /*! + * @brief Comparison operator. + * @param x eprosima::fastdds::statistics::MonitorServiceStatusData object to compare. + */ + eProsima_user_DllExport bool operator !=( + const MonitorServiceStatusData& x) const; + + /*! + * @brief This function copies the value in member local_entity + * @param _local_entity New value to be copied in member local_entity + */ + eProsima_user_DllExport void local_entity( + const eprosima::fastdds::statistics::detail::GUID_s& _local_entity); + + /*! + * @brief This function moves the value in member local_entity + * @param _local_entity New value to be moved in member local_entity + */ + eProsima_user_DllExport void local_entity( + eprosima::fastdds::statistics::detail::GUID_s&& _local_entity); + + /*! + * @brief This function returns a constant reference to member local_entity + * @return Constant reference to member local_entity + */ + eProsima_user_DllExport const eprosima::fastdds::statistics::detail::GUID_s& local_entity() const; + + /*! + * @brief This function returns a reference to member local_entity + * @return Reference to member local_entity + */ + eProsima_user_DllExport eprosima::fastdds::statistics::detail::GUID_s& local_entity(); + + + /*! + * @brief This function sets a value in member status_kind + * @param _status_kind New value for member status_kind + */ + eProsima_user_DllExport void status_kind( + eprosima::fastdds::statistics::StatusKind _status_kind); + + /*! + * @brief This function returns the value of member status_kind + * @return Value of member status_kind + */ + eProsima_user_DllExport eprosima::fastdds::statistics::StatusKind status_kind() const; + + /*! + * @brief This function returns a reference to member status_kind + * @return Reference to member status_kind + */ + eProsima_user_DllExport eprosima::fastdds::statistics::StatusKind& status_kind(); + + + /*! + * @brief This function copies the value in member value + * @param _value New value to be copied in member value + */ + eProsima_user_DllExport void value( + const eprosima::fastdds::statistics::MonitorServiceData& _value); + + /*! + * @brief This function moves the value in member value + * @param _value New value to be moved in member value + */ + eProsima_user_DllExport void value( + eprosima::fastdds::statistics::MonitorServiceData&& _value); + + /*! + * @brief This function returns a constant reference to member value + * @return Constant reference to member value + */ + eProsima_user_DllExport const eprosima::fastdds::statistics::MonitorServiceData& value() const; + + /*! + * @brief This function returns a reference to member value + * @return Reference to member value + */ + eProsima_user_DllExport eprosima::fastdds::statistics::MonitorServiceData& value(); + + + /*! + * @brief This function returns the maximum serialized size of an object + * depending on the buffer alignment. + * @param current_alignment Buffer alignment. + * @return Maximum serialized size. + */ + eProsima_user_DllExport static size_t getMaxCdrSerializedSize( + size_t current_alignment = 0); + + /*! + * @brief This function returns the serialized size of a data depending on the buffer alignment. + * @param data Data which is calculated its serialized size. + * @param current_alignment Buffer alignment. + * @return Serialized size. + */ + eProsima_user_DllExport static size_t getCdrSerializedSize( + const eprosima::fastdds::statistics::MonitorServiceStatusData& data, + size_t current_alignment = 0); + + + + /*! + * @brief This function serializes an object using CDR serialization. + * @param cdr CDR serialization object. + */ + eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& cdr) const; + + /*! + * @brief This function deserializes an object using CDR serialization. + * @param cdr CDR serialization object. + */ + eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr); + + + + + /*! + * @brief This function tells you if the Key has been defined for this type + */ + eProsima_user_DllExport static bool isKeyDefined(); + + /*! + * @brief This function serializes the key members of an object using CDR serialization. + * @param cdr CDR serialization object. + */ + eProsima_user_DllExport void serializeKey( + eprosima::fastcdr::Cdr& cdr) const; + + + private: + + eprosima::fastdds::statistics::detail::GUID_s m_local_entity; + eprosima::fastdds::statistics::StatusKind m_status_kind; + eprosima::fastdds::statistics::MonitorServiceData m_value; + + }; + + } // namespace statistics + } // namespace fastdds +} // namespace eprosima + +#endif // _FAST_DDS_GENERATED_EPROSIMA_FASTDDS_STATISTICS_MONITORSERVICE_TYPES_H_ + + + +#endif // FASTCDR_VERSION_MAJOR == 1 diff --git a/test/blackbox/CMakeLists.txt b/test/blackbox/CMakeLists.txt index 4ea74469574..68e89478a3e 100644 --- a/test/blackbox/CMakeLists.txt +++ b/test/blackbox/CMakeLists.txt @@ -234,6 +234,7 @@ if(FASTDDS_PIM_API_TESTS) ${PROJECT_SOURCE_DIR}/src/cpp/statistics/types/typesPubSubTypes.cxx ${PROJECT_SOURCE_DIR}/src/cpp/statistics/types/monitorservice_typesPubSubTypes.cxx ${PROJECT_SOURCE_DIR}/src/cpp/statistics/types/monitorservice_types.cxx + ${PROJECT_SOURCE_DIR}/src/cpp/statistics/types/monitorservice_typesv1.cxx ) list(APPEND BLACKBOXTESTS_FASTDDS_PIM_SOURCE ${statistics_sources}) diff --git a/test/unittest/dds/publisher/CMakeLists.txt b/test/unittest/dds/publisher/CMakeLists.txt index 1d3bcf59846..466eb5eaa78 100644 --- a/test/unittest/dds/publisher/CMakeLists.txt +++ b/test/unittest/dds/publisher/CMakeLists.txt @@ -229,6 +229,7 @@ set(DATAWRITERTESTS_SOURCE DataWriterTests.cpp ${PROJECT_SOURCE_DIR}/src/cpp/statistics/types/typesPubSubTypes.cxx ${PROJECT_SOURCE_DIR}/src/cpp/statistics/types/monitorservice_typesPubSubTypes.cxx ${PROJECT_SOURCE_DIR}/src/cpp/statistics/types/monitorservice_types.cxx + ${PROJECT_SOURCE_DIR}/src/cpp/statistics/types/monitorservice_typesv1.cxx ) list(APPEND DATAWRITERTESTS_SOURCE ${statistics_sources}) diff --git a/test/unittest/dds/status/CMakeLists.txt b/test/unittest/dds/status/CMakeLists.txt index 0fb6d47704e..9b6ba70c388 100644 --- a/test/unittest/dds/status/CMakeLists.txt +++ b/test/unittest/dds/status/CMakeLists.txt @@ -117,6 +117,7 @@ if (FASTDDS_STATISTICS) ${PROJECT_SOURCE_DIR}/src/cpp/statistics/types/typesPubSubTypes.cxx ${PROJECT_SOURCE_DIR}/src/cpp/statistics/types/monitorservice_typesPubSubTypes.cxx ${PROJECT_SOURCE_DIR}/src/cpp/statistics/types/monitorservice_types.cxx + ${PROJECT_SOURCE_DIR}/src/cpp/statistics/types/monitorservice_typesv1.cxx ) list(APPEND LISTENERTESTS_SOURCE ${statistics_sources}) diff --git a/test/unittest/statistics/dds/CMakeLists.txt b/test/unittest/statistics/dds/CMakeLists.txt index be87cbadfbd..23237f2ae0d 100644 --- a/test/unittest/statistics/dds/CMakeLists.txt +++ b/test/unittest/statistics/dds/CMakeLists.txt @@ -29,7 +29,8 @@ set(STATISTICS_DOMAINPARTICIPANT_TESTS_SOURCE ${PROJECT_SOURCE_DIR}/src/cpp/statistics/types/types.cxx ${PROJECT_SOURCE_DIR}/src/cpp/statistics/types/typesv1.cxx ${PROJECT_SOURCE_DIR}/src/cpp/statistics/types/monitorservice_typesPubSubTypes.cxx - ${PROJECT_SOURCE_DIR}/src/cpp/statistics/types/monitorservice_types.cxx) + ${PROJECT_SOURCE_DIR}/src/cpp/statistics/types/monitorservice_types.cxx + ${PROJECT_SOURCE_DIR}/src/cpp/statistics/types/monitorservice_typesv1.cxx) add_executable(StatisticsDomainParticipantTests ${STATISTICS_DOMAINPARTICIPANT_TESTS_SOURCE}) target_compile_definitions(StatisticsDomainParticipantTests PRIVATE @@ -77,6 +78,7 @@ if (FASTDDS_STATISTICS) ${PROJECT_SOURCE_DIR}/src/cpp/statistics/types/typesv1.cxx ${PROJECT_SOURCE_DIR}/src/cpp/statistics/types/monitorservice_typesPubSubTypes.cxx ${PROJECT_SOURCE_DIR}/src/cpp/statistics/types/monitorservice_types.cxx + ${PROJECT_SOURCE_DIR}/src/cpp/statistics/types/monitorservice_typesv1.cxx ${PROJECT_SOURCE_DIR}/src/cpp/rtps/common/Time_t.cpp ${PROJECT_SOURCE_DIR}/src/cpp/utils/md5.cpp ${TINYXML2_SOURCES} @@ -282,6 +284,7 @@ if (SQLITE3_SUPPORT AND FASTDDS_STATISTICS AND NOT QNX) ${PROJECT_SOURCE_DIR}/src/cpp/statistics/types/typesPubSubTypes.cxx ${PROJECT_SOURCE_DIR}/src/cpp/statistics/types/monitorservice_typesPubSubTypes.cxx ${PROJECT_SOURCE_DIR}/src/cpp/statistics/types/monitorservice_types.cxx + ${PROJECT_SOURCE_DIR}/src/cpp/statistics/types/monitorservice_typesv1.cxx ${PROJECT_SOURCE_DIR}/src/cpp/utils/IPFinder.cpp ${PROJECT_SOURCE_DIR}/src/cpp/utils/IPLocator.cpp ${PROJECT_SOURCE_DIR}/src/cpp/utils/md5.cpp @@ -365,6 +368,7 @@ if (SQLITE3_SUPPORT AND FASTDDS_STATISTICS AND NOT QNX) ${PROJECT_SOURCE_DIR}/src/cpp/rtps/DataSharing/DataSharingPayloadPool.cpp ${PROJECT_SOURCE_DIR}/src/cpp/rtps/RTPSDomain.cpp ${PROJECT_SOURCE_DIR}/src/cpp/rtps/attributes/PropertyPolicy.cpp + ${PROJECT_SOURCE_DIR}/src/cpp/rtps/attributes/ThreadSettings.cpp ${PROJECT_SOURCE_DIR}/src/cpp/rtps/builtin/BuiltinProtocols.cpp ${PROJECT_SOURCE_DIR}/src/cpp/rtps/builtin/data/ParticipantProxyData.cpp ${PROJECT_SOURCE_DIR}/src/cpp/rtps/builtin/data/ReaderProxyData.cpp @@ -472,6 +476,7 @@ if (SQLITE3_SUPPORT AND FASTDDS_STATISTICS AND NOT QNX) ${PROJECT_SOURCE_DIR}/src/cpp/statistics/types/typesPubSubTypes.cxx ${PROJECT_SOURCE_DIR}/src/cpp/statistics/types/monitorservice_typesPubSubTypes.cxx ${PROJECT_SOURCE_DIR}/src/cpp/statistics/types/monitorservice_types.cxx + ${PROJECT_SOURCE_DIR}/src/cpp/statistics/types/monitorservice_typesv1.cxx ${PROJECT_SOURCE_DIR}/src/cpp/utils/IPFinder.cpp ${PROJECT_SOURCE_DIR}/src/cpp/utils/IPLocator.cpp ${PROJECT_SOURCE_DIR}/src/cpp/utils/md5.cpp @@ -506,7 +511,6 @@ if (SQLITE3_SUPPORT AND FASTDDS_STATISTICS AND NOT QNX) # Security Support if(SECURITY) list(APPEND STATISTICS_DOMAINPARTICIPANT_MOCK_TESTS_SOURCE - ${PROJECT_SOURCE_DIR}/src/cpp/rtps/attributes/ThreadSettings.cpp ${PROJECT_SOURCE_DIR}/src/cpp/rtps/exceptions/Exception.cpp ${PROJECT_SOURCE_DIR}/src/cpp/rtps/common/Token.cpp ${PROJECT_SOURCE_DIR}/src/cpp/rtps/security/exceptions/SecurityException.cpp @@ -534,7 +538,6 @@ if (SQLITE3_SUPPORT AND FASTDDS_STATISTICS AND NOT QNX) ${PROJECT_SOURCE_DIR}/src/cpp/security/logging/LogTopic.cpp ) list(APPEND STATISTICS_DOMAINPARTICIPANT_STATUS_QUERYABLE_TESTS_SOURCE - ${PROJECT_SOURCE_DIR}/src/cpp/rtps/attributes/ThreadSettings.cpp ${PROJECT_SOURCE_DIR}/src/cpp/rtps/exceptions/Exception.cpp ${PROJECT_SOURCE_DIR}/src/cpp/rtps/common/Token.cpp ${PROJECT_SOURCE_DIR}/src/cpp/rtps/security/exceptions/SecurityException.cpp diff --git a/test/unittest/statistics/rtps/CMakeLists.txt b/test/unittest/statistics/rtps/CMakeLists.txt index 9b0b3f1d349..fc7408e1ea9 100644 --- a/test/unittest/statistics/rtps/CMakeLists.txt +++ b/test/unittest/statistics/rtps/CMakeLists.txt @@ -19,6 +19,7 @@ endif() set(STATISTICS_RTPS_TESTS_SOURCE RTPSStatisticsTests.cpp ${PROJECT_SOURCE_DIR}/src/cpp/statistics/types/monitorservice_types.cxx + ${PROJECT_SOURCE_DIR}/src/cpp/statistics/types/monitorservice_typesv1.cxx ${PROJECT_SOURCE_DIR}/src/cpp/statistics/types/types.cxx ${PROJECT_SOURCE_DIR}/src/cpp/statistics/types/typesv1.cxx ) @@ -100,7 +101,9 @@ set(STATISTICS_RTPS_MONITORSERVICETESTS_SOURCE ${PROJECT_SOURCE_DIR}/src/cpp/statistics/rtps/monitor-service/MonitorServiceListener.cpp ${PROJECT_SOURCE_DIR}/src/cpp/statistics/types/monitorservice_typesPubSubTypes.cxx ${PROJECT_SOURCE_DIR}/src/cpp/statistics/types/monitorservice_types.cxx + ${PROJECT_SOURCE_DIR}/src/cpp/statistics/types/monitorservice_typesv1.cxx ${PROJECT_SOURCE_DIR}/src/cpp/statistics/types/types.cxx + ${PROJECT_SOURCE_DIR}/src/cpp/statistics/types/typesv1.cxx ) add_executable(MonitorServiceTests ${STATISTICS_RTPS_MONITORSERVICETESTS_SOURCE})