diff --git a/examples/cpp/HelloWorldExample/HelloWorld.cxx b/examples/cpp/HelloWorldExample/HelloWorld.cxx index bcda56fb4..4b415d677 100644 --- a/examples/cpp/HelloWorldExample/HelloWorld.cxx +++ b/examples/cpp/HelloWorldExample/HelloWorld.cxx @@ -27,6 +27,9 @@ char dummy; #endif // _WIN32 #include "HelloWorld.h" + +#if FASTCDR_VERSION_MAJOR > 1 + #include @@ -36,9 +39,10 @@ using namespace eprosima::fastcdr::exception; #include + + HelloWorld::HelloWorld() { - } HelloWorld::~HelloWorld() @@ -65,7 +69,6 @@ HelloWorld& HelloWorld::operator =( m_index = x.m_index; m_message = x.m_message; - return *this; } @@ -75,7 +78,6 @@ HelloWorld& HelloWorld::operator =( m_index = x.m_index; m_message = std::move(x.m_message); - return *this; } @@ -162,3 +164,5 @@ std::string& HelloWorld::message() // Include auxiliary functions like for serializing/deserializing. #include "HelloWorldCdrAux.ipp" + +#endif // FASTCDR_VERSION_MAJOR > 1 diff --git a/examples/cpp/HelloWorldExample/HelloWorld.h b/examples/cpp/HelloWorldExample/HelloWorld.h index 0c6d09801..5cd0ddba5 100644 --- a/examples/cpp/HelloWorldExample/HelloWorld.h +++ b/examples/cpp/HelloWorldExample/HelloWorld.h @@ -19,6 +19,11 @@ * This file was generated by the tool fastddsgen. */ +#include +#include "HelloWorldv1.h" + +#if FASTCDR_VERSION_MAJOR > 1 + #ifndef _FAST_DDS_GENERATED_HELLOWORLD_H_ #define _FAST_DDS_GENERATED_HELLOWORLD_H_ @@ -30,6 +35,7 @@ #include #include +#include #include @@ -67,6 +73,8 @@ class CdrSizeCalculator; + + /*! * @brief This class represents the structure HelloWorld defined by the user in the IDL file. * @ingroup HelloWorld @@ -182,3 +190,6 @@ class HelloWorld #endif // _FAST_DDS_GENERATED_HELLOWORLD_H_ + + +#endif // FASTCDR_VERSION_MAJOR > 1 diff --git a/examples/cpp/HelloWorldExample/HelloWorldCdrAux.hpp b/examples/cpp/HelloWorldExample/HelloWorldCdrAux.hpp index 6b7c293c9..c6ec50b41 100644 --- a/examples/cpp/HelloWorldExample/HelloWorldCdrAux.hpp +++ b/examples/cpp/HelloWorldExample/HelloWorldCdrAux.hpp @@ -34,6 +34,8 @@ namespace fastcdr { class Cdr; class CdrSizeCalculator; + + eProsima_user_DllExport void serialize_key( eprosima::fastcdr::Cdr& scdr, const HelloWorld& data); @@ -42,4 +44,5 @@ eProsima_user_DllExport void serialize_key( } // namespace fastcdr } // namespace eprosima -#endif // _FAST_DDS_GENERATED_HELLOWORLDCDRAUX_HPP_ \ No newline at end of file +#endif // _FAST_DDS_GENERATED_HELLOWORLDCDRAUX_HPP_ + diff --git a/examples/cpp/HelloWorldExample/HelloWorldCdrAux.ipp b/examples/cpp/HelloWorldExample/HelloWorldCdrAux.ipp index c0cabcbe4..b46c646b5 100644 --- a/examples/cpp/HelloWorldExample/HelloWorldCdrAux.ipp +++ b/examples/cpp/HelloWorldExample/HelloWorldCdrAux.ipp @@ -34,6 +34,8 @@ using namespace eprosima::fastcdr::exception; namespace eprosima { namespace fastcdr { + + template<> eProsima_user_DllExport size_t calculate_serialized_size( eprosima::fastcdr::CdrSizeCalculator& calculator, @@ -77,7 +79,6 @@ eProsima_user_DllExport void serialize( << eprosima::fastcdr::MemberId(0) << data.index() << eprosima::fastcdr::MemberId(1) << data.message() ; - scdr.end_serialize_type(current_state); } @@ -123,4 +124,5 @@ void serialize_key( } // namespace fastcdr } // namespace eprosima -#endif // _FAST_DDS_GENERATED_HELLOWORLDCDRAUX_IPP_ \ No newline at end of file +#endif // _FAST_DDS_GENERATED_HELLOWORLDCDRAUX_IPP_ + diff --git a/examples/cpp/HelloWorldExample/HelloWorldPubSubTypes.cxx b/examples/cpp/HelloWorldExample/HelloWorldPubSubTypes.cxx index 26ca191ad..f454edead 100644 --- a/examples/cpp/HelloWorldExample/HelloWorldPubSubTypes.cxx +++ b/examples/cpp/HelloWorldExample/HelloWorldPubSubTypes.cxx @@ -20,9 +20,7 @@ */ -#include -#include -#include +#include #include "HelloWorldPubSubTypes.h" #include "HelloWorldCdrAux.hpp" @@ -31,10 +29,17 @@ using SerializedPayload_t = eprosima::fastrtps::rtps::SerializedPayload_t; using InstanceHandle_t = eprosima::fastrtps::rtps::InstanceHandle_t; using DataRepresentationId_t = eprosima::fastdds::dds::DataRepresentationId_t; + + HelloWorldPubSubType::HelloWorldPubSubType() { setName("HelloWorld"); - uint32_t type_size = HelloWorld_max_cdr_typesize; + uint32_t type_size = +#if FASTCDR_VERSION_MAJOR == 1 + HelloWorld::getMaxCdrSerializedSize(); +#else + HelloWorld_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; @@ -65,10 +70,12 @@ bool HelloWorldPubSubType::serialize( data_representation == DataRepresentationId_t::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::PLAIN_CDR2); +#endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -83,7 +90,11 @@ bool HelloWorldPubSubType::serialize( } // Get the serialized length +#if FASTCDR_VERSION_MAJOR == 1 + payload->length = static_cast(ser.getSerializedDataLength()); +#else payload->length = static_cast(ser.get_serialized_data_length()); +#endif // FASTCDR_VERSION_MAJOR == 1 return true; } @@ -100,7 +111,11 @@ bool HelloWorldPubSubType::deserialize( eprosima::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(); @@ -123,13 +138,25 @@ std::function HelloWorldPubSubType::getSerializedSizeProvider( { 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 + 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 }; } @@ -161,12 +188,20 @@ bool HelloWorldPubSubType::getKey( HelloWorld_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 || HelloWorld_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/examples/cpp/HelloWorldExample/HelloWorldPubSubTypes.h b/examples/cpp/HelloWorldExample/HelloWorldPubSubTypes.h index f6c88d5c1..cb61cd6ba 100644 --- a/examples/cpp/HelloWorldExample/HelloWorldPubSubTypes.h +++ b/examples/cpp/HelloWorldExample/HelloWorldPubSubTypes.h @@ -38,6 +38,8 @@ #endif // GEN_API_VER + + /*! * @brief This class represents the TopicDataType of the type HelloWorld defined by the user in the IDL file. * @ingroup HelloWorld diff --git a/examples/cpp/HelloWorldExample/HelloWorldv1.cxx b/examples/cpp/HelloWorldExample/HelloWorldv1.cxx new file mode 100644 index 000000000..1a133a1e2 --- /dev/null +++ b/examples/cpp/HelloWorldExample/HelloWorldv1.cxx @@ -0,0 +1,286 @@ +// 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 HelloWorld.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 "HelloWorld.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 HelloWorld_max_cdr_typesize 264ULL; + + + + +HelloWorld::HelloWorld() +{ + // unsigned long m_index + m_index = 0; + // /type_d() m_message + + +} + +HelloWorld::~HelloWorld() +{ +} + +HelloWorld::HelloWorld( + const HelloWorld& x) +{ + m_index = x.m_index; + + + m_message = x.m_message; + +} + +HelloWorld::HelloWorld( + HelloWorld&& x) noexcept +{ + m_index = x.m_index; + + + m_message = std::move(x.m_message); + +} + +HelloWorld& HelloWorld::operator =( + const HelloWorld& x) +{ + m_index = x.m_index; + + + m_message = x.m_message; + + return *this; +} + +HelloWorld& HelloWorld::operator =( + HelloWorld&& x) noexcept +{ + m_index = x.m_index; + + + m_message = std::move(x.m_message); + + return *this; +} + +bool HelloWorld::operator ==( + const HelloWorld& x) const +{ + return (m_index == x.m_index && + m_message == x.m_message); +} + +bool HelloWorld::operator !=( + const HelloWorld& x) const +{ + return !(*this == x); +} + +size_t HelloWorld::getMaxCdrSerializedSize( + size_t current_alignment) +{ + static_cast(current_alignment); + return HelloWorld_max_cdr_typesize; +} + +size_t HelloWorld::getCdrSerializedSize( + const HelloWorld& 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) + data.message().size() + 1; + + + return current_alignment - initial_alignment; +} + + +void HelloWorld::serialize( + eprosima::fastcdr::Cdr& scdr) const +{ + scdr << m_index; + + scdr << m_message.c_str(); + +} + +void HelloWorld::deserialize( + eprosima::fastcdr::Cdr& dcdr) +{ + dcdr >> m_index; + + + + dcdr >> m_message; + + +} + + +bool HelloWorld::isKeyDefined() +{ + return false; +} + +void HelloWorld::serializeKey( + eprosima::fastcdr::Cdr& scdr) const +{ + (void) scdr; +} + +/*! + * @brief This function sets a value in member index + * @param _index New value for member index + */ +void HelloWorld::index( + uint32_t _index) +{ + m_index = _index; +} + +/*! + * @brief This function returns the value of member index + * @return Value of member index + */ +uint32_t HelloWorld::index() const +{ + return m_index; +} + +/*! + * @brief This function returns a reference to member index + * @return Reference to member index + */ +uint32_t& HelloWorld::index() +{ + return m_index; +} + + +/*! + * @brief This function copies the value in member message + * @param _message New value to be copied in member message + */ +void HelloWorld::message( + const std::string& _message) +{ + m_message = _message; +} + +/*! + * @brief This function moves the value in member message + * @param _message New value to be moved in member message + */ +void HelloWorld::message( + std::string&& _message) +{ + m_message = std::move(_message); +} + +/*! + * @brief This function returns a constant reference to member message + * @return Constant reference to member message + */ +const std::string& HelloWorld::message() const +{ + return m_message; +} + +/*! + * @brief This function returns a reference to member message + * @return Reference to member message + */ +std::string& HelloWorld::message() +{ + return m_message; +} + + + + +#endif // FASTCDR_VERSION_MAJOR == 1 diff --git a/examples/cpp/HelloWorldExample/HelloWorldv1.h b/examples/cpp/HelloWorldExample/HelloWorldv1.h new file mode 100644 index 000000000..7758cd793 --- /dev/null +++ b/examples/cpp/HelloWorldExample/HelloWorldv1.h @@ -0,0 +1,243 @@ +// 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 HelloWorld.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_HELLOWORLD_H_ +#define _FAST_DDS_GENERATED_HELLOWORLD_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(HELLOWORLD_SOURCE) +#define HELLOWORLD_DllAPI __declspec( dllexport ) +#else +#define HELLOWORLD_DllAPI __declspec( dllimport ) +#endif // HELLOWORLD_SOURCE +#else +#define HELLOWORLD_DllAPI +#endif // EPROSIMA_USER_DLL_EXPORT +#else +#define HELLOWORLD_DllAPI +#endif // _WIN32 + +namespace eprosima { +namespace fastcdr { +class Cdr; +} // namespace fastcdr +} // namespace eprosima + + + + + +/*! + * @brief This class represents the structure HelloWorld defined by the user in the IDL file. + * @ingroup HelloWorld + */ +class HelloWorld +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport HelloWorld(); + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~HelloWorld(); + + /*! + * @brief Copy constructor. + * @param x Reference to the object HelloWorld that will be copied. + */ + eProsima_user_DllExport HelloWorld( + const HelloWorld& x); + + /*! + * @brief Move constructor. + * @param x Reference to the object HelloWorld that will be copied. + */ + eProsima_user_DllExport HelloWorld( + HelloWorld&& x) noexcept; + + /*! + * @brief Copy assignment. + * @param x Reference to the object HelloWorld that will be copied. + */ + eProsima_user_DllExport HelloWorld& operator =( + const HelloWorld& x); + + /*! + * @brief Move assignment. + * @param x Reference to the object HelloWorld that will be copied. + */ + eProsima_user_DllExport HelloWorld& operator =( + HelloWorld&& x) noexcept; + + /*! + * @brief Comparison operator. + * @param x HelloWorld object to compare. + */ + eProsima_user_DllExport bool operator ==( + const HelloWorld& x) const; + + /*! + * @brief Comparison operator. + * @param x HelloWorld object to compare. + */ + eProsima_user_DllExport bool operator !=( + const HelloWorld& x) const; + + /*! + * @brief This function sets a value in member index + * @param _index New value for member index + */ + eProsima_user_DllExport void index( + uint32_t _index); + + /*! + * @brief This function returns the value of member index + * @return Value of member index + */ + eProsima_user_DllExport uint32_t index() const; + + /*! + * @brief This function returns a reference to member index + * @return Reference to member index + */ + eProsima_user_DllExport uint32_t& index(); + + + /*! + * @brief This function copies the value in member message + * @param _message New value to be copied in member message + */ + eProsima_user_DllExport void message( + const std::string& _message); + + /*! + * @brief This function moves the value in member message + * @param _message New value to be moved in member message + */ + eProsima_user_DllExport void message( + std::string&& _message); + + /*! + * @brief This function returns a constant reference to member message + * @return Constant reference to member message + */ + eProsima_user_DllExport const std::string& message() const; + + /*! + * @brief This function returns a reference to member message + * @return Reference to member message + */ + eProsima_user_DllExport std::string& message(); + + + /*! + * @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 HelloWorld& 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_index; + std::string m_message; + +}; + + +#endif // _FAST_DDS_GENERATED_HELLOWORLD_H_ + + + +#endif // FASTCDR_VERSION_MAJOR == 1 diff --git a/src/cpp/CMakeLists.txt b/src/cpp/CMakeLists.txt index 3dbcbc4b1..8decb4b01 100644 --- a/src/cpp/CMakeLists.txt +++ b/src/cpp/CMakeLists.txt @@ -35,6 +35,7 @@ set(${PROJECT_NAME}_SOURCES subscriber/StatisticsParticipantListener.cpp subscriber/StatisticsReaderListener.cpp topic_types/types.cxx + topic_types/typesv1.cxx topic_types/typesPubSubTypes.cxx types/EntityId.cpp ) @@ -58,9 +59,9 @@ if(MSVC) target_compile_definitions(${PROJECT_NAME} INTERFACE _CRT_DECLARE_NONSTDC_NAMES=0 - PRIVATE + PRIVATE EPROSIMA_USER_DLL_EXPORT - WIN32_WINNT=0x0603 + WIN32_WINNT=0x0603 _CRT_DECLARE_NONSTDC_NAMES=0 ) endif(MSVC) diff --git a/src/cpp/topic_types/types.cxx b/src/cpp/topic_types/types.cxx index bf6b1c9ee..9dcb86ef6 100644 --- a/src/cpp/topic_types/types.cxx +++ b/src/cpp/topic_types/types.cxx @@ -27,6 +27,9 @@ char dummy; #endif // _WIN32 #include "types.h" + +#if FASTCDR_VERSION_MAJOR > 1 + #include @@ -36,52 +39,59 @@ using namespace eprosima::fastcdr::exception; #include -eprosima::fastdds::statistics::detail::EntityId_s::EntityId_s() -{ +namespace eprosima { + +namespace fastdds { + +namespace statistics { + +namespace detail { + + +EntityId_s::EntityId_s() +{ } -eprosima::fastdds::statistics::detail::EntityId_s::~EntityId_s() +EntityId_s::~EntityId_s() { } -eprosima::fastdds::statistics::detail::EntityId_s::EntityId_s( +EntityId_s::EntityId_s( const EntityId_s& x) { m_value = x.m_value; } -eprosima::fastdds::statistics::detail::EntityId_s::EntityId_s( +EntityId_s::EntityId_s( EntityId_s&& x) noexcept { m_value = std::move(x.m_value); } -eprosima::fastdds::statistics::detail::EntityId_s& eprosima::fastdds::statistics::detail::EntityId_s::operator =( +EntityId_s& EntityId_s::operator =( const EntityId_s& x) { m_value = x.m_value; - return *this; } -eprosima::fastdds::statistics::detail::EntityId_s& eprosima::fastdds::statistics::detail::EntityId_s::operator =( +EntityId_s& EntityId_s::operator =( EntityId_s&& x) noexcept { m_value = std::move(x.m_value); - return *this; } -bool eprosima::fastdds::statistics::detail::EntityId_s::operator ==( +bool EntityId_s::operator ==( const EntityId_s& x) const { return (m_value == x.m_value); } -bool eprosima::fastdds::statistics::detail::EntityId_s::operator !=( +bool EntityId_s::operator !=( const EntityId_s& x) const { return !(*this == x); @@ -91,7 +101,7 @@ bool eprosima::fastdds::statistics::detail::EntityId_s::operator !=( * @brief This function copies the value in member value * @param _value New value to be copied in member value */ -void eprosima::fastdds::statistics::detail::EntityId_s::value( +void EntityId_s::value( const std::array& _value) { m_value = _value; @@ -101,7 +111,7 @@ void eprosima::fastdds::statistics::detail::EntityId_s::value( * @brief This function moves the value in member value * @param _value New value to be moved in member value */ -void eprosima::fastdds::statistics::detail::EntityId_s::value( +void EntityId_s::value( std::array&& _value) { m_value = std::move(_value); @@ -111,7 +121,7 @@ void eprosima::fastdds::statistics::detail::EntityId_s::value( * @brief This function returns a constant reference to member value * @return Constant reference to member value */ -const std::array& eprosima::fastdds::statistics::detail::EntityId_s::value() const +const std::array& EntityId_s::value() const { return m_value; } @@ -120,58 +130,57 @@ const std::array& eprosima::fastdds::statistics::detail::EntityId_s: * @brief This function returns a reference to member value * @return Reference to member value */ -std::array& eprosima::fastdds::statistics::detail::EntityId_s::value() +std::array& EntityId_s::value() { return m_value; } -eprosima::fastdds::statistics::detail::GuidPrefix_s::GuidPrefix_s() -{ + +GuidPrefix_s::GuidPrefix_s() +{ } -eprosima::fastdds::statistics::detail::GuidPrefix_s::~GuidPrefix_s() +GuidPrefix_s::~GuidPrefix_s() { } -eprosima::fastdds::statistics::detail::GuidPrefix_s::GuidPrefix_s( +GuidPrefix_s::GuidPrefix_s( const GuidPrefix_s& x) { m_value = x.m_value; } -eprosima::fastdds::statistics::detail::GuidPrefix_s::GuidPrefix_s( +GuidPrefix_s::GuidPrefix_s( GuidPrefix_s&& x) noexcept { m_value = std::move(x.m_value); } -eprosima::fastdds::statistics::detail::GuidPrefix_s& eprosima::fastdds::statistics::detail::GuidPrefix_s::operator =( +GuidPrefix_s& GuidPrefix_s::operator =( const GuidPrefix_s& x) { m_value = x.m_value; - return *this; } -eprosima::fastdds::statistics::detail::GuidPrefix_s& eprosima::fastdds::statistics::detail::GuidPrefix_s::operator =( +GuidPrefix_s& GuidPrefix_s::operator =( GuidPrefix_s&& x) noexcept { m_value = std::move(x.m_value); - return *this; } -bool eprosima::fastdds::statistics::detail::GuidPrefix_s::operator ==( +bool GuidPrefix_s::operator ==( const GuidPrefix_s& x) const { return (m_value == x.m_value); } -bool eprosima::fastdds::statistics::detail::GuidPrefix_s::operator !=( +bool GuidPrefix_s::operator !=( const GuidPrefix_s& x) const { return !(*this == x); @@ -181,7 +190,7 @@ bool eprosima::fastdds::statistics::detail::GuidPrefix_s::operator !=( * @brief This function copies the value in member value * @param _value New value to be copied in member value */ -void eprosima::fastdds::statistics::detail::GuidPrefix_s::value( +void GuidPrefix_s::value( const std::array& _value) { m_value = _value; @@ -191,7 +200,7 @@ void eprosima::fastdds::statistics::detail::GuidPrefix_s::value( * @brief This function moves the value in member value * @param _value New value to be moved in member value */ -void eprosima::fastdds::statistics::detail::GuidPrefix_s::value( +void GuidPrefix_s::value( std::array&& _value) { m_value = std::move(_value); @@ -201,7 +210,7 @@ void eprosima::fastdds::statistics::detail::GuidPrefix_s::value( * @brief This function returns a constant reference to member value * @return Constant reference to member value */ -const std::array& eprosima::fastdds::statistics::detail::GuidPrefix_s::value() const +const std::array& GuidPrefix_s::value() const { return m_value; } @@ -210,63 +219,62 @@ const std::array& eprosima::fastdds::statistics::detail::GuidPrefix * @brief This function returns a reference to member value * @return Reference to member value */ -std::array& eprosima::fastdds::statistics::detail::GuidPrefix_s::value() +std::array& GuidPrefix_s::value() { return m_value; } -eprosima::fastdds::statistics::detail::GUID_s::GUID_s() -{ + +GUID_s::GUID_s() +{ } -eprosima::fastdds::statistics::detail::GUID_s::~GUID_s() +GUID_s::~GUID_s() { } -eprosima::fastdds::statistics::detail::GUID_s::GUID_s( +GUID_s::GUID_s( const GUID_s& x) { m_guidPrefix = x.m_guidPrefix; m_entityId = x.m_entityId; } -eprosima::fastdds::statistics::detail::GUID_s::GUID_s( +GUID_s::GUID_s( GUID_s&& x) noexcept { m_guidPrefix = std::move(x.m_guidPrefix); m_entityId = std::move(x.m_entityId); } -eprosima::fastdds::statistics::detail::GUID_s& eprosima::fastdds::statistics::detail::GUID_s::operator =( +GUID_s& GUID_s::operator =( const GUID_s& x) { m_guidPrefix = x.m_guidPrefix; m_entityId = x.m_entityId; - return *this; } -eprosima::fastdds::statistics::detail::GUID_s& eprosima::fastdds::statistics::detail::GUID_s::operator =( +GUID_s& GUID_s::operator =( GUID_s&& x) noexcept { m_guidPrefix = std::move(x.m_guidPrefix); m_entityId = std::move(x.m_entityId); - return *this; } -bool eprosima::fastdds::statistics::detail::GUID_s::operator ==( +bool GUID_s::operator ==( const GUID_s& x) const { return (m_guidPrefix == x.m_guidPrefix && m_entityId == x.m_entityId); } -bool eprosima::fastdds::statistics::detail::GUID_s::operator !=( +bool GUID_s::operator !=( const GUID_s& x) const { return !(*this == x); @@ -276,7 +284,7 @@ bool eprosima::fastdds::statistics::detail::GUID_s::operator !=( * @brief This function copies the value in member guidPrefix * @param _guidPrefix New value to be copied in member guidPrefix */ -void eprosima::fastdds::statistics::detail::GUID_s::guidPrefix( +void GUID_s::guidPrefix( const eprosima::fastdds::statistics::detail::GuidPrefix_s& _guidPrefix) { m_guidPrefix = _guidPrefix; @@ -286,7 +294,7 @@ void eprosima::fastdds::statistics::detail::GUID_s::guidPrefix( * @brief This function moves the value in member guidPrefix * @param _guidPrefix New value to be moved in member guidPrefix */ -void eprosima::fastdds::statistics::detail::GUID_s::guidPrefix( +void GUID_s::guidPrefix( eprosima::fastdds::statistics::detail::GuidPrefix_s&& _guidPrefix) { m_guidPrefix = std::move(_guidPrefix); @@ -296,7 +304,7 @@ void eprosima::fastdds::statistics::detail::GUID_s::guidPrefix( * @brief This function returns a constant reference to member guidPrefix * @return Constant reference to member guidPrefix */ -const eprosima::fastdds::statistics::detail::GuidPrefix_s& eprosima::fastdds::statistics::detail::GUID_s::guidPrefix() const +const eprosima::fastdds::statistics::detail::GuidPrefix_s& GUID_s::guidPrefix() const { return m_guidPrefix; } @@ -305,7 +313,7 @@ const eprosima::fastdds::statistics::detail::GuidPrefix_s& eprosima::fastdds::st * @brief This function returns a reference to member guidPrefix * @return Reference to member guidPrefix */ -eprosima::fastdds::statistics::detail::GuidPrefix_s& eprosima::fastdds::statistics::detail::GUID_s::guidPrefix() +eprosima::fastdds::statistics::detail::GuidPrefix_s& GUID_s::guidPrefix() { return m_guidPrefix; } @@ -315,7 +323,7 @@ eprosima::fastdds::statistics::detail::GuidPrefix_s& eprosima::fastdds::statisti * @brief This function copies the value in member entityId * @param _entityId New value to be copied in member entityId */ -void eprosima::fastdds::statistics::detail::GUID_s::entityId( +void GUID_s::entityId( const eprosima::fastdds::statistics::detail::EntityId_s& _entityId) { m_entityId = _entityId; @@ -325,7 +333,7 @@ void eprosima::fastdds::statistics::detail::GUID_s::entityId( * @brief This function moves the value in member entityId * @param _entityId New value to be moved in member entityId */ -void eprosima::fastdds::statistics::detail::GUID_s::entityId( +void GUID_s::entityId( eprosima::fastdds::statistics::detail::EntityId_s&& _entityId) { m_entityId = std::move(_entityId); @@ -335,7 +343,7 @@ void eprosima::fastdds::statistics::detail::GUID_s::entityId( * @brief This function returns a constant reference to member entityId * @return Constant reference to member entityId */ -const eprosima::fastdds::statistics::detail::EntityId_s& eprosima::fastdds::statistics::detail::GUID_s::entityId() const +const eprosima::fastdds::statistics::detail::EntityId_s& GUID_s::entityId() const { return m_entityId; } @@ -344,63 +352,62 @@ const eprosima::fastdds::statistics::detail::EntityId_s& eprosima::fastdds::stat * @brief This function returns a reference to member entityId * @return Reference to member entityId */ -eprosima::fastdds::statistics::detail::EntityId_s& eprosima::fastdds::statistics::detail::GUID_s::entityId() +eprosima::fastdds::statistics::detail::EntityId_s& GUID_s::entityId() { return m_entityId; } -eprosima::fastdds::statistics::detail::SequenceNumber_s::SequenceNumber_s() -{ + +SequenceNumber_s::SequenceNumber_s() +{ } -eprosima::fastdds::statistics::detail::SequenceNumber_s::~SequenceNumber_s() +SequenceNumber_s::~SequenceNumber_s() { } -eprosima::fastdds::statistics::detail::SequenceNumber_s::SequenceNumber_s( +SequenceNumber_s::SequenceNumber_s( const SequenceNumber_s& x) { m_high = x.m_high; m_low = x.m_low; } -eprosima::fastdds::statistics::detail::SequenceNumber_s::SequenceNumber_s( +SequenceNumber_s::SequenceNumber_s( SequenceNumber_s&& x) noexcept { m_high = x.m_high; m_low = x.m_low; } -eprosima::fastdds::statistics::detail::SequenceNumber_s& eprosima::fastdds::statistics::detail::SequenceNumber_s::operator =( +SequenceNumber_s& SequenceNumber_s::operator =( const SequenceNumber_s& x) { m_high = x.m_high; m_low = x.m_low; - return *this; } -eprosima::fastdds::statistics::detail::SequenceNumber_s& eprosima::fastdds::statistics::detail::SequenceNumber_s::operator =( +SequenceNumber_s& SequenceNumber_s::operator =( SequenceNumber_s&& x) noexcept { m_high = x.m_high; m_low = x.m_low; - return *this; } -bool eprosima::fastdds::statistics::detail::SequenceNumber_s::operator ==( +bool SequenceNumber_s::operator ==( const SequenceNumber_s& x) const { return (m_high == x.m_high && m_low == x.m_low); } -bool eprosima::fastdds::statistics::detail::SequenceNumber_s::operator !=( +bool SequenceNumber_s::operator !=( const SequenceNumber_s& x) const { return !(*this == x); @@ -410,7 +417,7 @@ bool eprosima::fastdds::statistics::detail::SequenceNumber_s::operator !=( * @brief This function sets a value in member high * @param _high New value for member high */ -void eprosima::fastdds::statistics::detail::SequenceNumber_s::high( +void SequenceNumber_s::high( int32_t _high) { m_high = _high; @@ -420,7 +427,7 @@ void eprosima::fastdds::statistics::detail::SequenceNumber_s::high( * @brief This function returns the value of member high * @return Value of member high */ -int32_t eprosima::fastdds::statistics::detail::SequenceNumber_s::high() const +int32_t SequenceNumber_s::high() const { return m_high; } @@ -429,7 +436,7 @@ int32_t eprosima::fastdds::statistics::detail::SequenceNumber_s::high() const * @brief This function returns a reference to member high * @return Reference to member high */ -int32_t& eprosima::fastdds::statistics::detail::SequenceNumber_s::high() +int32_t& SequenceNumber_s::high() { return m_high; } @@ -439,7 +446,7 @@ int32_t& eprosima::fastdds::statistics::detail::SequenceNumber_s::high() * @brief This function sets a value in member low * @param _low New value for member low */ -void eprosima::fastdds::statistics::detail::SequenceNumber_s::low( +void SequenceNumber_s::low( uint32_t _low) { m_low = _low; @@ -449,7 +456,7 @@ void eprosima::fastdds::statistics::detail::SequenceNumber_s::low( * @brief This function returns the value of member low * @return Value of member low */ -uint32_t eprosima::fastdds::statistics::detail::SequenceNumber_s::low() const +uint32_t SequenceNumber_s::low() const { return m_low; } @@ -458,63 +465,62 @@ uint32_t eprosima::fastdds::statistics::detail::SequenceNumber_s::low() const * @brief This function returns a reference to member low * @return Reference to member low */ -uint32_t& eprosima::fastdds::statistics::detail::SequenceNumber_s::low() +uint32_t& SequenceNumber_s::low() { return m_low; } -eprosima::fastdds::statistics::detail::SampleIdentity_s::SampleIdentity_s() -{ + +SampleIdentity_s::SampleIdentity_s() +{ } -eprosima::fastdds::statistics::detail::SampleIdentity_s::~SampleIdentity_s() +SampleIdentity_s::~SampleIdentity_s() { } -eprosima::fastdds::statistics::detail::SampleIdentity_s::SampleIdentity_s( +SampleIdentity_s::SampleIdentity_s( const SampleIdentity_s& x) { m_writer_guid = x.m_writer_guid; m_sequence_number = x.m_sequence_number; } -eprosima::fastdds::statistics::detail::SampleIdentity_s::SampleIdentity_s( +SampleIdentity_s::SampleIdentity_s( SampleIdentity_s&& x) noexcept { m_writer_guid = std::move(x.m_writer_guid); m_sequence_number = std::move(x.m_sequence_number); } -eprosima::fastdds::statistics::detail::SampleIdentity_s& eprosima::fastdds::statistics::detail::SampleIdentity_s::operator =( +SampleIdentity_s& SampleIdentity_s::operator =( const SampleIdentity_s& x) { m_writer_guid = x.m_writer_guid; m_sequence_number = x.m_sequence_number; - return *this; } -eprosima::fastdds::statistics::detail::SampleIdentity_s& eprosima::fastdds::statistics::detail::SampleIdentity_s::operator =( +SampleIdentity_s& SampleIdentity_s::operator =( SampleIdentity_s&& x) noexcept { m_writer_guid = std::move(x.m_writer_guid); m_sequence_number = std::move(x.m_sequence_number); - return *this; } -bool eprosima::fastdds::statistics::detail::SampleIdentity_s::operator ==( +bool SampleIdentity_s::operator ==( const SampleIdentity_s& x) const { return (m_writer_guid == x.m_writer_guid && m_sequence_number == x.m_sequence_number); } -bool eprosima::fastdds::statistics::detail::SampleIdentity_s::operator !=( +bool SampleIdentity_s::operator !=( const SampleIdentity_s& x) const { return !(*this == x); @@ -524,7 +530,7 @@ bool eprosima::fastdds::statistics::detail::SampleIdentity_s::operator !=( * @brief This function copies the value in member writer_guid * @param _writer_guid New value to be copied in member writer_guid */ -void eprosima::fastdds::statistics::detail::SampleIdentity_s::writer_guid( +void SampleIdentity_s::writer_guid( const eprosima::fastdds::statistics::detail::GUID_s& _writer_guid) { m_writer_guid = _writer_guid; @@ -534,7 +540,7 @@ void eprosima::fastdds::statistics::detail::SampleIdentity_s::writer_guid( * @brief This function moves the value in member writer_guid * @param _writer_guid New value to be moved in member writer_guid */ -void eprosima::fastdds::statistics::detail::SampleIdentity_s::writer_guid( +void SampleIdentity_s::writer_guid( eprosima::fastdds::statistics::detail::GUID_s&& _writer_guid) { m_writer_guid = std::move(_writer_guid); @@ -544,7 +550,7 @@ void eprosima::fastdds::statistics::detail::SampleIdentity_s::writer_guid( * @brief This function returns a constant reference to member writer_guid * @return Constant reference to member writer_guid */ -const eprosima::fastdds::statistics::detail::GUID_s& eprosima::fastdds::statistics::detail::SampleIdentity_s::writer_guid() const +const eprosima::fastdds::statistics::detail::GUID_s& SampleIdentity_s::writer_guid() const { return m_writer_guid; } @@ -553,7 +559,7 @@ const eprosima::fastdds::statistics::detail::GUID_s& eprosima::fastdds::statisti * @brief This function returns a reference to member writer_guid * @return Reference to member writer_guid */ -eprosima::fastdds::statistics::detail::GUID_s& eprosima::fastdds::statistics::detail::SampleIdentity_s::writer_guid() +eprosima::fastdds::statistics::detail::GUID_s& SampleIdentity_s::writer_guid() { return m_writer_guid; } @@ -563,7 +569,7 @@ eprosima::fastdds::statistics::detail::GUID_s& eprosima::fastdds::statistics::de * @brief This function copies the value in member sequence_number * @param _sequence_number New value to be copied in member sequence_number */ -void eprosima::fastdds::statistics::detail::SampleIdentity_s::sequence_number( +void SampleIdentity_s::sequence_number( const eprosima::fastdds::statistics::detail::SequenceNumber_s& _sequence_number) { m_sequence_number = _sequence_number; @@ -573,7 +579,7 @@ void eprosima::fastdds::statistics::detail::SampleIdentity_s::sequence_number( * @brief This function moves the value in member sequence_number * @param _sequence_number New value to be moved in member sequence_number */ -void eprosima::fastdds::statistics::detail::SampleIdentity_s::sequence_number( +void SampleIdentity_s::sequence_number( eprosima::fastdds::statistics::detail::SequenceNumber_s&& _sequence_number) { m_sequence_number = std::move(_sequence_number); @@ -583,7 +589,7 @@ void eprosima::fastdds::statistics::detail::SampleIdentity_s::sequence_number( * @brief This function returns a constant reference to member sequence_number * @return Constant reference to member sequence_number */ -const eprosima::fastdds::statistics::detail::SequenceNumber_s& eprosima::fastdds::statistics::detail::SampleIdentity_s::sequence_number() const +const eprosima::fastdds::statistics::detail::SequenceNumber_s& SampleIdentity_s::sequence_number() const { return m_sequence_number; } @@ -592,22 +598,23 @@ const eprosima::fastdds::statistics::detail::SequenceNumber_s& eprosima::fastdds * @brief This function returns a reference to member sequence_number * @return Reference to member sequence_number */ -eprosima::fastdds::statistics::detail::SequenceNumber_s& eprosima::fastdds::statistics::detail::SampleIdentity_s::sequence_number() +eprosima::fastdds::statistics::detail::SequenceNumber_s& SampleIdentity_s::sequence_number() { return m_sequence_number; } -eprosima::fastdds::statistics::detail::Locator_s::Locator_s() -{ + +Locator_s::Locator_s() +{ } -eprosima::fastdds::statistics::detail::Locator_s::~Locator_s() +Locator_s::~Locator_s() { } -eprosima::fastdds::statistics::detail::Locator_s::Locator_s( +Locator_s::Locator_s( const Locator_s& x) { m_kind = x.m_kind; @@ -615,7 +622,7 @@ eprosima::fastdds::statistics::detail::Locator_s::Locator_s( m_address = x.m_address; } -eprosima::fastdds::statistics::detail::Locator_s::Locator_s( +Locator_s::Locator_s( Locator_s&& x) noexcept { m_kind = x.m_kind; @@ -623,29 +630,27 @@ eprosima::fastdds::statistics::detail::Locator_s::Locator_s( m_address = std::move(x.m_address); } -eprosima::fastdds::statistics::detail::Locator_s& eprosima::fastdds::statistics::detail::Locator_s::operator =( +Locator_s& Locator_s::operator =( const Locator_s& x) { m_kind = x.m_kind; m_port = x.m_port; m_address = x.m_address; - return *this; } -eprosima::fastdds::statistics::detail::Locator_s& eprosima::fastdds::statistics::detail::Locator_s::operator =( +Locator_s& Locator_s::operator =( Locator_s&& x) noexcept { m_kind = x.m_kind; m_port = x.m_port; m_address = std::move(x.m_address); - return *this; } -bool eprosima::fastdds::statistics::detail::Locator_s::operator ==( +bool Locator_s::operator ==( const Locator_s& x) const { return (m_kind == x.m_kind && @@ -653,7 +658,7 @@ bool eprosima::fastdds::statistics::detail::Locator_s::operator ==( m_address == x.m_address); } -bool eprosima::fastdds::statistics::detail::Locator_s::operator !=( +bool Locator_s::operator !=( const Locator_s& x) const { return !(*this == x); @@ -663,7 +668,7 @@ bool eprosima::fastdds::statistics::detail::Locator_s::operator !=( * @brief This function sets a value in member kind * @param _kind New value for member kind */ -void eprosima::fastdds::statistics::detail::Locator_s::kind( +void Locator_s::kind( int32_t _kind) { m_kind = _kind; @@ -673,7 +678,7 @@ void eprosima::fastdds::statistics::detail::Locator_s::kind( * @brief This function returns the value of member kind * @return Value of member kind */ -int32_t eprosima::fastdds::statistics::detail::Locator_s::kind() const +int32_t Locator_s::kind() const { return m_kind; } @@ -682,7 +687,7 @@ int32_t eprosima::fastdds::statistics::detail::Locator_s::kind() const * @brief This function returns a reference to member kind * @return Reference to member kind */ -int32_t& eprosima::fastdds::statistics::detail::Locator_s::kind() +int32_t& Locator_s::kind() { return m_kind; } @@ -692,7 +697,7 @@ int32_t& eprosima::fastdds::statistics::detail::Locator_s::kind() * @brief This function sets a value in member port * @param _port New value for member port */ -void eprosima::fastdds::statistics::detail::Locator_s::port( +void Locator_s::port( uint32_t _port) { m_port = _port; @@ -702,7 +707,7 @@ void eprosima::fastdds::statistics::detail::Locator_s::port( * @brief This function returns the value of member port * @return Value of member port */ -uint32_t eprosima::fastdds::statistics::detail::Locator_s::port() const +uint32_t Locator_s::port() const { return m_port; } @@ -711,7 +716,7 @@ uint32_t eprosima::fastdds::statistics::detail::Locator_s::port() const * @brief This function returns a reference to member port * @return Reference to member port */ -uint32_t& eprosima::fastdds::statistics::detail::Locator_s::port() +uint32_t& Locator_s::port() { return m_port; } @@ -721,7 +726,7 @@ uint32_t& eprosima::fastdds::statistics::detail::Locator_s::port() * @brief This function copies the value in member address * @param _address New value to be copied in member address */ -void eprosima::fastdds::statistics::detail::Locator_s::address( +void Locator_s::address( const std::array& _address) { m_address = _address; @@ -731,7 +736,7 @@ void eprosima::fastdds::statistics::detail::Locator_s::address( * @brief This function moves the value in member address * @param _address New value to be moved in member address */ -void eprosima::fastdds::statistics::detail::Locator_s::address( +void Locator_s::address( std::array&& _address) { m_address = std::move(_address); @@ -741,7 +746,7 @@ void eprosima::fastdds::statistics::detail::Locator_s::address( * @brief This function returns a constant reference to member address * @return Constant reference to member address */ -const std::array& eprosima::fastdds::statistics::detail::Locator_s::address() const +const std::array& Locator_s::address() const { return m_address; } @@ -750,23 +755,26 @@ const std::array& eprosima::fastdds::statistics::detail::Locator_s: * @brief This function returns a reference to member address * @return Reference to member address */ -std::array& eprosima::fastdds::statistics::detail::Locator_s::address() +std::array& Locator_s::address() { return m_address; } -eprosima::fastdds::statistics::DiscoveryTime::DiscoveryTime() -{ +} // namespace detail + + +DiscoveryTime::DiscoveryTime() +{ } -eprosima::fastdds::statistics::DiscoveryTime::~DiscoveryTime() +DiscoveryTime::~DiscoveryTime() { } -eprosima::fastdds::statistics::DiscoveryTime::DiscoveryTime( +DiscoveryTime::DiscoveryTime( const DiscoveryTime& x) { m_local_participant_guid = x.m_local_participant_guid; @@ -777,7 +785,7 @@ eprosima::fastdds::statistics::DiscoveryTime::DiscoveryTime( m_process = x.m_process; } -eprosima::fastdds::statistics::DiscoveryTime::DiscoveryTime( +DiscoveryTime::DiscoveryTime( DiscoveryTime&& x) noexcept { m_local_participant_guid = std::move(x.m_local_participant_guid); @@ -788,7 +796,7 @@ eprosima::fastdds::statistics::DiscoveryTime::DiscoveryTime( m_process = std::move(x.m_process); } -eprosima::fastdds::statistics::DiscoveryTime& eprosima::fastdds::statistics::DiscoveryTime::operator =( +DiscoveryTime& DiscoveryTime::operator =( const DiscoveryTime& x) { @@ -798,11 +806,10 @@ eprosima::fastdds::statistics::DiscoveryTime& eprosima::fastdds::statistics::Dis m_host = x.m_host; m_user = x.m_user; m_process = x.m_process; - return *this; } -eprosima::fastdds::statistics::DiscoveryTime& eprosima::fastdds::statistics::DiscoveryTime::operator =( +DiscoveryTime& DiscoveryTime::operator =( DiscoveryTime&& x) noexcept { @@ -812,11 +819,10 @@ eprosima::fastdds::statistics::DiscoveryTime& eprosima::fastdds::statistics::Dis m_host = std::move(x.m_host); m_user = std::move(x.m_user); m_process = std::move(x.m_process); - return *this; } -bool eprosima::fastdds::statistics::DiscoveryTime::operator ==( +bool DiscoveryTime::operator ==( const DiscoveryTime& x) const { return (m_local_participant_guid == x.m_local_participant_guid && @@ -827,7 +833,7 @@ bool eprosima::fastdds::statistics::DiscoveryTime::operator ==( m_process == x.m_process); } -bool eprosima::fastdds::statistics::DiscoveryTime::operator !=( +bool DiscoveryTime::operator !=( const DiscoveryTime& x) const { return !(*this == x); @@ -837,7 +843,7 @@ bool eprosima::fastdds::statistics::DiscoveryTime::operator !=( * @brief This function copies the value in member local_participant_guid * @param _local_participant_guid New value to be copied in member local_participant_guid */ -void eprosima::fastdds::statistics::DiscoveryTime::local_participant_guid( +void DiscoveryTime::local_participant_guid( const eprosima::fastdds::statistics::detail::GUID_s& _local_participant_guid) { m_local_participant_guid = _local_participant_guid; @@ -847,7 +853,7 @@ void eprosima::fastdds::statistics::DiscoveryTime::local_participant_guid( * @brief This function moves the value in member local_participant_guid * @param _local_participant_guid New value to be moved in member local_participant_guid */ -void eprosima::fastdds::statistics::DiscoveryTime::local_participant_guid( +void DiscoveryTime::local_participant_guid( eprosima::fastdds::statistics::detail::GUID_s&& _local_participant_guid) { m_local_participant_guid = std::move(_local_participant_guid); @@ -857,7 +863,7 @@ void eprosima::fastdds::statistics::DiscoveryTime::local_participant_guid( * @brief This function returns a constant reference to member local_participant_guid * @return Constant reference to member local_participant_guid */ -const eprosima::fastdds::statistics::detail::GUID_s& eprosima::fastdds::statistics::DiscoveryTime::local_participant_guid() const +const eprosima::fastdds::statistics::detail::GUID_s& DiscoveryTime::local_participant_guid() const { return m_local_participant_guid; } @@ -866,7 +872,7 @@ const eprosima::fastdds::statistics::detail::GUID_s& eprosima::fastdds::statisti * @brief This function returns a reference to member local_participant_guid * @return Reference to member local_participant_guid */ -eprosima::fastdds::statistics::detail::GUID_s& eprosima::fastdds::statistics::DiscoveryTime::local_participant_guid() +eprosima::fastdds::statistics::detail::GUID_s& DiscoveryTime::local_participant_guid() { return m_local_participant_guid; } @@ -876,7 +882,7 @@ eprosima::fastdds::statistics::detail::GUID_s& eprosima::fastdds::statistics::Di * @brief This function copies the value in member remote_entity_guid * @param _remote_entity_guid New value to be copied in member remote_entity_guid */ -void eprosima::fastdds::statistics::DiscoveryTime::remote_entity_guid( +void DiscoveryTime::remote_entity_guid( const eprosima::fastdds::statistics::detail::GUID_s& _remote_entity_guid) { m_remote_entity_guid = _remote_entity_guid; @@ -886,7 +892,7 @@ void eprosima::fastdds::statistics::DiscoveryTime::remote_entity_guid( * @brief This function moves the value in member remote_entity_guid * @param _remote_entity_guid New value to be moved in member remote_entity_guid */ -void eprosima::fastdds::statistics::DiscoveryTime::remote_entity_guid( +void DiscoveryTime::remote_entity_guid( eprosima::fastdds::statistics::detail::GUID_s&& _remote_entity_guid) { m_remote_entity_guid = std::move(_remote_entity_guid); @@ -896,7 +902,7 @@ void eprosima::fastdds::statistics::DiscoveryTime::remote_entity_guid( * @brief This function returns a constant reference to member remote_entity_guid * @return Constant reference to member remote_entity_guid */ -const eprosima::fastdds::statistics::detail::GUID_s& eprosima::fastdds::statistics::DiscoveryTime::remote_entity_guid() const +const eprosima::fastdds::statistics::detail::GUID_s& DiscoveryTime::remote_entity_guid() const { return m_remote_entity_guid; } @@ -905,7 +911,7 @@ const eprosima::fastdds::statistics::detail::GUID_s& eprosima::fastdds::statisti * @brief This function returns a reference to member remote_entity_guid * @return Reference to member remote_entity_guid */ -eprosima::fastdds::statistics::detail::GUID_s& eprosima::fastdds::statistics::DiscoveryTime::remote_entity_guid() +eprosima::fastdds::statistics::detail::GUID_s& DiscoveryTime::remote_entity_guid() { return m_remote_entity_guid; } @@ -915,7 +921,7 @@ eprosima::fastdds::statistics::detail::GUID_s& eprosima::fastdds::statistics::Di * @brief This function sets a value in member time * @param _time New value for member time */ -void eprosima::fastdds::statistics::DiscoveryTime::time( +void DiscoveryTime::time( uint64_t _time) { m_time = _time; @@ -925,7 +931,7 @@ void eprosima::fastdds::statistics::DiscoveryTime::time( * @brief This function returns the value of member time * @return Value of member time */ -uint64_t eprosima::fastdds::statistics::DiscoveryTime::time() const +uint64_t DiscoveryTime::time() const { return m_time; } @@ -934,7 +940,7 @@ uint64_t eprosima::fastdds::statistics::DiscoveryTime::time() const * @brief This function returns a reference to member time * @return Reference to member time */ -uint64_t& eprosima::fastdds::statistics::DiscoveryTime::time() +uint64_t& DiscoveryTime::time() { return m_time; } @@ -944,7 +950,7 @@ uint64_t& eprosima::fastdds::statistics::DiscoveryTime::time() * @brief This function copies the value in member host * @param _host New value to be copied in member host */ -void eprosima::fastdds::statistics::DiscoveryTime::host( +void DiscoveryTime::host( const std::string& _host) { m_host = _host; @@ -954,7 +960,7 @@ void eprosima::fastdds::statistics::DiscoveryTime::host( * @brief This function moves the value in member host * @param _host New value to be moved in member host */ -void eprosima::fastdds::statistics::DiscoveryTime::host( +void DiscoveryTime::host( std::string&& _host) { m_host = std::move(_host); @@ -964,7 +970,7 @@ void eprosima::fastdds::statistics::DiscoveryTime::host( * @brief This function returns a constant reference to member host * @return Constant reference to member host */ -const std::string& eprosima::fastdds::statistics::DiscoveryTime::host() const +const std::string& DiscoveryTime::host() const { return m_host; } @@ -973,7 +979,7 @@ const std::string& eprosima::fastdds::statistics::DiscoveryTime::host() const * @brief This function returns a reference to member host * @return Reference to member host */ -std::string& eprosima::fastdds::statistics::DiscoveryTime::host() +std::string& DiscoveryTime::host() { return m_host; } @@ -983,7 +989,7 @@ std::string& eprosima::fastdds::statistics::DiscoveryTime::host() * @brief This function copies the value in member user * @param _user New value to be copied in member user */ -void eprosima::fastdds::statistics::DiscoveryTime::user( +void DiscoveryTime::user( const std::string& _user) { m_user = _user; @@ -993,7 +999,7 @@ void eprosima::fastdds::statistics::DiscoveryTime::user( * @brief This function moves the value in member user * @param _user New value to be moved in member user */ -void eprosima::fastdds::statistics::DiscoveryTime::user( +void DiscoveryTime::user( std::string&& _user) { m_user = std::move(_user); @@ -1003,7 +1009,7 @@ void eprosima::fastdds::statistics::DiscoveryTime::user( * @brief This function returns a constant reference to member user * @return Constant reference to member user */ -const std::string& eprosima::fastdds::statistics::DiscoveryTime::user() const +const std::string& DiscoveryTime::user() const { return m_user; } @@ -1012,7 +1018,7 @@ const std::string& eprosima::fastdds::statistics::DiscoveryTime::user() const * @brief This function returns a reference to member user * @return Reference to member user */ -std::string& eprosima::fastdds::statistics::DiscoveryTime::user() +std::string& DiscoveryTime::user() { return m_user; } @@ -1022,7 +1028,7 @@ std::string& eprosima::fastdds::statistics::DiscoveryTime::user() * @brief This function copies the value in member process * @param _process New value to be copied in member process */ -void eprosima::fastdds::statistics::DiscoveryTime::process( +void DiscoveryTime::process( const std::string& _process) { m_process = _process; @@ -1032,7 +1038,7 @@ void eprosima::fastdds::statistics::DiscoveryTime::process( * @brief This function moves the value in member process * @param _process New value to be moved in member process */ -void eprosima::fastdds::statistics::DiscoveryTime::process( +void DiscoveryTime::process( std::string&& _process) { m_process = std::move(_process); @@ -1042,7 +1048,7 @@ void eprosima::fastdds::statistics::DiscoveryTime::process( * @brief This function returns a constant reference to member process * @return Constant reference to member process */ -const std::string& eprosima::fastdds::statistics::DiscoveryTime::process() const +const std::string& DiscoveryTime::process() const { return m_process; } @@ -1051,63 +1057,62 @@ const std::string& eprosima::fastdds::statistics::DiscoveryTime::process() const * @brief This function returns a reference to member process * @return Reference to member process */ -std::string& eprosima::fastdds::statistics::DiscoveryTime::process() +std::string& DiscoveryTime::process() { return m_process; } -eprosima::fastdds::statistics::EntityCount::EntityCount() -{ + +EntityCount::EntityCount() +{ } -eprosima::fastdds::statistics::EntityCount::~EntityCount() +EntityCount::~EntityCount() { } -eprosima::fastdds::statistics::EntityCount::EntityCount( +EntityCount::EntityCount( const EntityCount& x) { m_guid = x.m_guid; m_count = x.m_count; } -eprosima::fastdds::statistics::EntityCount::EntityCount( +EntityCount::EntityCount( EntityCount&& x) noexcept { m_guid = std::move(x.m_guid); m_count = x.m_count; } -eprosima::fastdds::statistics::EntityCount& eprosima::fastdds::statistics::EntityCount::operator =( +EntityCount& EntityCount::operator =( const EntityCount& x) { m_guid = x.m_guid; m_count = x.m_count; - return *this; } -eprosima::fastdds::statistics::EntityCount& eprosima::fastdds::statistics::EntityCount::operator =( +EntityCount& EntityCount::operator =( EntityCount&& x) noexcept { m_guid = std::move(x.m_guid); m_count = x.m_count; - return *this; } -bool eprosima::fastdds::statistics::EntityCount::operator ==( +bool EntityCount::operator ==( const EntityCount& x) const { return (m_guid == x.m_guid && m_count == x.m_count); } -bool eprosima::fastdds::statistics::EntityCount::operator !=( +bool EntityCount::operator !=( const EntityCount& x) const { return !(*this == x); @@ -1117,7 +1122,7 @@ bool eprosima::fastdds::statistics::EntityCount::operator !=( * @brief This function copies the value in member guid * @param _guid New value to be copied in member guid */ -void eprosima::fastdds::statistics::EntityCount::guid( +void EntityCount::guid( const eprosima::fastdds::statistics::detail::GUID_s& _guid) { m_guid = _guid; @@ -1127,7 +1132,7 @@ void eprosima::fastdds::statistics::EntityCount::guid( * @brief This function moves the value in member guid * @param _guid New value to be moved in member guid */ -void eprosima::fastdds::statistics::EntityCount::guid( +void EntityCount::guid( eprosima::fastdds::statistics::detail::GUID_s&& _guid) { m_guid = std::move(_guid); @@ -1137,7 +1142,7 @@ void eprosima::fastdds::statistics::EntityCount::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::EntityCount::guid() const +const eprosima::fastdds::statistics::detail::GUID_s& EntityCount::guid() const { return m_guid; } @@ -1146,7 +1151,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::EntityCount::guid() +eprosima::fastdds::statistics::detail::GUID_s& EntityCount::guid() { return m_guid; } @@ -1156,7 +1161,7 @@ eprosima::fastdds::statistics::detail::GUID_s& eprosima::fastdds::statistics::En * @brief This function sets a value in member count * @param _count New value for member count */ -void eprosima::fastdds::statistics::EntityCount::count( +void EntityCount::count( uint64_t _count) { m_count = _count; @@ -1166,7 +1171,7 @@ void eprosima::fastdds::statistics::EntityCount::count( * @brief This function returns the value of member count * @return Value of member count */ -uint64_t eprosima::fastdds::statistics::EntityCount::count() const +uint64_t EntityCount::count() const { return m_count; } @@ -1175,63 +1180,62 @@ uint64_t eprosima::fastdds::statistics::EntityCount::count() const * @brief This function returns a reference to member count * @return Reference to member count */ -uint64_t& eprosima::fastdds::statistics::EntityCount::count() +uint64_t& EntityCount::count() { return m_count; } -eprosima::fastdds::statistics::SampleIdentityCount::SampleIdentityCount() -{ + +SampleIdentityCount::SampleIdentityCount() +{ } -eprosima::fastdds::statistics::SampleIdentityCount::~SampleIdentityCount() +SampleIdentityCount::~SampleIdentityCount() { } -eprosima::fastdds::statistics::SampleIdentityCount::SampleIdentityCount( +SampleIdentityCount::SampleIdentityCount( const SampleIdentityCount& x) { m_sample_id = x.m_sample_id; m_count = x.m_count; } -eprosima::fastdds::statistics::SampleIdentityCount::SampleIdentityCount( +SampleIdentityCount::SampleIdentityCount( SampleIdentityCount&& x) noexcept { m_sample_id = std::move(x.m_sample_id); m_count = x.m_count; } -eprosima::fastdds::statistics::SampleIdentityCount& eprosima::fastdds::statistics::SampleIdentityCount::operator =( +SampleIdentityCount& SampleIdentityCount::operator =( const SampleIdentityCount& x) { m_sample_id = x.m_sample_id; m_count = x.m_count; - return *this; } -eprosima::fastdds::statistics::SampleIdentityCount& eprosima::fastdds::statistics::SampleIdentityCount::operator =( +SampleIdentityCount& SampleIdentityCount::operator =( SampleIdentityCount&& x) noexcept { m_sample_id = std::move(x.m_sample_id); m_count = x.m_count; - return *this; } -bool eprosima::fastdds::statistics::SampleIdentityCount::operator ==( +bool SampleIdentityCount::operator ==( const SampleIdentityCount& x) const { return (m_sample_id == x.m_sample_id && m_count == x.m_count); } -bool eprosima::fastdds::statistics::SampleIdentityCount::operator !=( +bool SampleIdentityCount::operator !=( const SampleIdentityCount& x) const { return !(*this == x); @@ -1241,7 +1245,7 @@ bool eprosima::fastdds::statistics::SampleIdentityCount::operator !=( * @brief This function copies the value in member sample_id * @param _sample_id New value to be copied in member sample_id */ -void eprosima::fastdds::statistics::SampleIdentityCount::sample_id( +void SampleIdentityCount::sample_id( const eprosima::fastdds::statistics::detail::SampleIdentity_s& _sample_id) { m_sample_id = _sample_id; @@ -1251,7 +1255,7 @@ void eprosima::fastdds::statistics::SampleIdentityCount::sample_id( * @brief This function moves the value in member sample_id * @param _sample_id New value to be moved in member sample_id */ -void eprosima::fastdds::statistics::SampleIdentityCount::sample_id( +void SampleIdentityCount::sample_id( eprosima::fastdds::statistics::detail::SampleIdentity_s&& _sample_id) { m_sample_id = std::move(_sample_id); @@ -1261,7 +1265,7 @@ void eprosima::fastdds::statistics::SampleIdentityCount::sample_id( * @brief This function returns a constant reference to member sample_id * @return Constant reference to member sample_id */ -const eprosima::fastdds::statistics::detail::SampleIdentity_s& eprosima::fastdds::statistics::SampleIdentityCount::sample_id() const +const eprosima::fastdds::statistics::detail::SampleIdentity_s& SampleIdentityCount::sample_id() const { return m_sample_id; } @@ -1270,7 +1274,7 @@ const eprosima::fastdds::statistics::detail::SampleIdentity_s& eprosima::fastdds * @brief This function returns a reference to member sample_id * @return Reference to member sample_id */ -eprosima::fastdds::statistics::detail::SampleIdentity_s& eprosima::fastdds::statistics::SampleIdentityCount::sample_id() +eprosima::fastdds::statistics::detail::SampleIdentity_s& SampleIdentityCount::sample_id() { return m_sample_id; } @@ -1280,7 +1284,7 @@ eprosima::fastdds::statistics::detail::SampleIdentity_s& eprosima::fastdds::stat * @brief This function sets a value in member count * @param _count New value for member count */ -void eprosima::fastdds::statistics::SampleIdentityCount::count( +void SampleIdentityCount::count( uint64_t _count) { m_count = _count; @@ -1290,7 +1294,7 @@ void eprosima::fastdds::statistics::SampleIdentityCount::count( * @brief This function returns the value of member count * @return Value of member count */ -uint64_t eprosima::fastdds::statistics::SampleIdentityCount::count() const +uint64_t SampleIdentityCount::count() const { return m_count; } @@ -1299,22 +1303,23 @@ uint64_t eprosima::fastdds::statistics::SampleIdentityCount::count() const * @brief This function returns a reference to member count * @return Reference to member count */ -uint64_t& eprosima::fastdds::statistics::SampleIdentityCount::count() +uint64_t& SampleIdentityCount::count() { return m_count; } -eprosima::fastdds::statistics::Entity2LocatorTraffic::Entity2LocatorTraffic() -{ + +Entity2LocatorTraffic::Entity2LocatorTraffic() +{ } -eprosima::fastdds::statistics::Entity2LocatorTraffic::~Entity2LocatorTraffic() +Entity2LocatorTraffic::~Entity2LocatorTraffic() { } -eprosima::fastdds::statistics::Entity2LocatorTraffic::Entity2LocatorTraffic( +Entity2LocatorTraffic::Entity2LocatorTraffic( const Entity2LocatorTraffic& x) { m_src_guid = x.m_src_guid; @@ -1324,7 +1329,7 @@ eprosima::fastdds::statistics::Entity2LocatorTraffic::Entity2LocatorTraffic( m_byte_magnitude_order = x.m_byte_magnitude_order; } -eprosima::fastdds::statistics::Entity2LocatorTraffic::Entity2LocatorTraffic( +Entity2LocatorTraffic::Entity2LocatorTraffic( Entity2LocatorTraffic&& x) noexcept { m_src_guid = std::move(x.m_src_guid); @@ -1334,7 +1339,7 @@ eprosima::fastdds::statistics::Entity2LocatorTraffic::Entity2LocatorTraffic( m_byte_magnitude_order = x.m_byte_magnitude_order; } -eprosima::fastdds::statistics::Entity2LocatorTraffic& eprosima::fastdds::statistics::Entity2LocatorTraffic::operator =( +Entity2LocatorTraffic& Entity2LocatorTraffic::operator =( const Entity2LocatorTraffic& x) { @@ -1343,11 +1348,10 @@ eprosima::fastdds::statistics::Entity2LocatorTraffic& eprosima::fastdds::statist m_packet_count = x.m_packet_count; m_byte_count = x.m_byte_count; m_byte_magnitude_order = x.m_byte_magnitude_order; - return *this; } -eprosima::fastdds::statistics::Entity2LocatorTraffic& eprosima::fastdds::statistics::Entity2LocatorTraffic::operator =( +Entity2LocatorTraffic& Entity2LocatorTraffic::operator =( Entity2LocatorTraffic&& x) noexcept { @@ -1356,11 +1360,10 @@ eprosima::fastdds::statistics::Entity2LocatorTraffic& eprosima::fastdds::statist m_packet_count = x.m_packet_count; m_byte_count = x.m_byte_count; m_byte_magnitude_order = x.m_byte_magnitude_order; - return *this; } -bool eprosima::fastdds::statistics::Entity2LocatorTraffic::operator ==( +bool Entity2LocatorTraffic::operator ==( const Entity2LocatorTraffic& x) const { return (m_src_guid == x.m_src_guid && @@ -1370,7 +1373,7 @@ bool eprosima::fastdds::statistics::Entity2LocatorTraffic::operator ==( m_byte_magnitude_order == x.m_byte_magnitude_order); } -bool eprosima::fastdds::statistics::Entity2LocatorTraffic::operator !=( +bool Entity2LocatorTraffic::operator !=( const Entity2LocatorTraffic& x) const { return !(*this == x); @@ -1380,7 +1383,7 @@ bool eprosima::fastdds::statistics::Entity2LocatorTraffic::operator !=( * @brief This function copies the value in member src_guid * @param _src_guid New value to be copied in member src_guid */ -void eprosima::fastdds::statistics::Entity2LocatorTraffic::src_guid( +void Entity2LocatorTraffic::src_guid( const eprosima::fastdds::statistics::detail::GUID_s& _src_guid) { m_src_guid = _src_guid; @@ -1390,7 +1393,7 @@ void eprosima::fastdds::statistics::Entity2LocatorTraffic::src_guid( * @brief This function moves the value in member src_guid * @param _src_guid New value to be moved in member src_guid */ -void eprosima::fastdds::statistics::Entity2LocatorTraffic::src_guid( +void Entity2LocatorTraffic::src_guid( eprosima::fastdds::statistics::detail::GUID_s&& _src_guid) { m_src_guid = std::move(_src_guid); @@ -1400,7 +1403,7 @@ void eprosima::fastdds::statistics::Entity2LocatorTraffic::src_guid( * @brief This function returns a constant reference to member src_guid * @return Constant reference to member src_guid */ -const eprosima::fastdds::statistics::detail::GUID_s& eprosima::fastdds::statistics::Entity2LocatorTraffic::src_guid() const +const eprosima::fastdds::statistics::detail::GUID_s& Entity2LocatorTraffic::src_guid() const { return m_src_guid; } @@ -1409,7 +1412,7 @@ const eprosima::fastdds::statistics::detail::GUID_s& eprosima::fastdds::statisti * @brief This function returns a reference to member src_guid * @return Reference to member src_guid */ -eprosima::fastdds::statistics::detail::GUID_s& eprosima::fastdds::statistics::Entity2LocatorTraffic::src_guid() +eprosima::fastdds::statistics::detail::GUID_s& Entity2LocatorTraffic::src_guid() { return m_src_guid; } @@ -1419,7 +1422,7 @@ eprosima::fastdds::statistics::detail::GUID_s& eprosima::fastdds::statistics::En * @brief This function copies the value in member dst_locator * @param _dst_locator New value to be copied in member dst_locator */ -void eprosima::fastdds::statistics::Entity2LocatorTraffic::dst_locator( +void Entity2LocatorTraffic::dst_locator( const eprosima::fastdds::statistics::detail::Locator_s& _dst_locator) { m_dst_locator = _dst_locator; @@ -1429,7 +1432,7 @@ void eprosima::fastdds::statistics::Entity2LocatorTraffic::dst_locator( * @brief This function moves the value in member dst_locator * @param _dst_locator New value to be moved in member dst_locator */ -void eprosima::fastdds::statistics::Entity2LocatorTraffic::dst_locator( +void Entity2LocatorTraffic::dst_locator( eprosima::fastdds::statistics::detail::Locator_s&& _dst_locator) { m_dst_locator = std::move(_dst_locator); @@ -1439,7 +1442,7 @@ void eprosima::fastdds::statistics::Entity2LocatorTraffic::dst_locator( * @brief This function returns a constant reference to member dst_locator * @return Constant reference to member dst_locator */ -const eprosima::fastdds::statistics::detail::Locator_s& eprosima::fastdds::statistics::Entity2LocatorTraffic::dst_locator() const +const eprosima::fastdds::statistics::detail::Locator_s& Entity2LocatorTraffic::dst_locator() const { return m_dst_locator; } @@ -1448,7 +1451,7 @@ const eprosima::fastdds::statistics::detail::Locator_s& eprosima::fastdds::stati * @brief This function returns a reference to member dst_locator * @return Reference to member dst_locator */ -eprosima::fastdds::statistics::detail::Locator_s& eprosima::fastdds::statistics::Entity2LocatorTraffic::dst_locator() +eprosima::fastdds::statistics::detail::Locator_s& Entity2LocatorTraffic::dst_locator() { return m_dst_locator; } @@ -1458,7 +1461,7 @@ eprosima::fastdds::statistics::detail::Locator_s& eprosima::fastdds::statistics: * @brief This function sets a value in member packet_count * @param _packet_count New value for member packet_count */ -void eprosima::fastdds::statistics::Entity2LocatorTraffic::packet_count( +void Entity2LocatorTraffic::packet_count( uint64_t _packet_count) { m_packet_count = _packet_count; @@ -1468,7 +1471,7 @@ void eprosima::fastdds::statistics::Entity2LocatorTraffic::packet_count( * @brief This function returns the value of member packet_count * @return Value of member packet_count */ -uint64_t eprosima::fastdds::statistics::Entity2LocatorTraffic::packet_count() const +uint64_t Entity2LocatorTraffic::packet_count() const { return m_packet_count; } @@ -1477,7 +1480,7 @@ uint64_t eprosima::fastdds::statistics::Entity2LocatorTraffic::packet_count() co * @brief This function returns a reference to member packet_count * @return Reference to member packet_count */ -uint64_t& eprosima::fastdds::statistics::Entity2LocatorTraffic::packet_count() +uint64_t& Entity2LocatorTraffic::packet_count() { return m_packet_count; } @@ -1487,7 +1490,7 @@ uint64_t& eprosima::fastdds::statistics::Entity2LocatorTraffic::packet_count() * @brief This function sets a value in member byte_count * @param _byte_count New value for member byte_count */ -void eprosima::fastdds::statistics::Entity2LocatorTraffic::byte_count( +void Entity2LocatorTraffic::byte_count( uint64_t _byte_count) { m_byte_count = _byte_count; @@ -1497,7 +1500,7 @@ void eprosima::fastdds::statistics::Entity2LocatorTraffic::byte_count( * @brief This function returns the value of member byte_count * @return Value of member byte_count */ -uint64_t eprosima::fastdds::statistics::Entity2LocatorTraffic::byte_count() const +uint64_t Entity2LocatorTraffic::byte_count() const { return m_byte_count; } @@ -1506,7 +1509,7 @@ uint64_t eprosima::fastdds::statistics::Entity2LocatorTraffic::byte_count() cons * @brief This function returns a reference to member byte_count * @return Reference to member byte_count */ -uint64_t& eprosima::fastdds::statistics::Entity2LocatorTraffic::byte_count() +uint64_t& Entity2LocatorTraffic::byte_count() { return m_byte_count; } @@ -1516,7 +1519,7 @@ uint64_t& eprosima::fastdds::statistics::Entity2LocatorTraffic::byte_count() * @brief This function sets a value in member byte_magnitude_order * @param _byte_magnitude_order New value for member byte_magnitude_order */ -void eprosima::fastdds::statistics::Entity2LocatorTraffic::byte_magnitude_order( +void Entity2LocatorTraffic::byte_magnitude_order( int16_t _byte_magnitude_order) { m_byte_magnitude_order = _byte_magnitude_order; @@ -1526,7 +1529,7 @@ void eprosima::fastdds::statistics::Entity2LocatorTraffic::byte_magnitude_order( * @brief This function returns the value of member byte_magnitude_order * @return Value of member byte_magnitude_order */ -int16_t eprosima::fastdds::statistics::Entity2LocatorTraffic::byte_magnitude_order() const +int16_t Entity2LocatorTraffic::byte_magnitude_order() const { return m_byte_magnitude_order; } @@ -1535,22 +1538,23 @@ int16_t eprosima::fastdds::statistics::Entity2LocatorTraffic::byte_magnitude_ord * @brief This function returns a reference to member byte_magnitude_order * @return Reference to member byte_magnitude_order */ -int16_t& eprosima::fastdds::statistics::Entity2LocatorTraffic::byte_magnitude_order() +int16_t& Entity2LocatorTraffic::byte_magnitude_order() { return m_byte_magnitude_order; } -eprosima::fastdds::statistics::WriterReaderData::WriterReaderData() -{ + +WriterReaderData::WriterReaderData() +{ } -eprosima::fastdds::statistics::WriterReaderData::~WriterReaderData() +WriterReaderData::~WriterReaderData() { } -eprosima::fastdds::statistics::WriterReaderData::WriterReaderData( +WriterReaderData::WriterReaderData( const WriterReaderData& x) { m_writer_guid = x.m_writer_guid; @@ -1558,7 +1562,7 @@ eprosima::fastdds::statistics::WriterReaderData::WriterReaderData( m_data = x.m_data; } -eprosima::fastdds::statistics::WriterReaderData::WriterReaderData( +WriterReaderData::WriterReaderData( WriterReaderData&& x) noexcept { m_writer_guid = std::move(x.m_writer_guid); @@ -1566,29 +1570,27 @@ eprosima::fastdds::statistics::WriterReaderData::WriterReaderData( m_data = x.m_data; } -eprosima::fastdds::statistics::WriterReaderData& eprosima::fastdds::statistics::WriterReaderData::operator =( +WriterReaderData& WriterReaderData::operator =( const WriterReaderData& x) { m_writer_guid = x.m_writer_guid; m_reader_guid = x.m_reader_guid; m_data = x.m_data; - return *this; } -eprosima::fastdds::statistics::WriterReaderData& eprosima::fastdds::statistics::WriterReaderData::operator =( +WriterReaderData& WriterReaderData::operator =( WriterReaderData&& x) noexcept { m_writer_guid = std::move(x.m_writer_guid); m_reader_guid = std::move(x.m_reader_guid); m_data = x.m_data; - return *this; } -bool eprosima::fastdds::statistics::WriterReaderData::operator ==( +bool WriterReaderData::operator ==( const WriterReaderData& x) const { return (m_writer_guid == x.m_writer_guid && @@ -1596,7 +1598,7 @@ bool eprosima::fastdds::statistics::WriterReaderData::operator ==( m_data == x.m_data); } -bool eprosima::fastdds::statistics::WriterReaderData::operator !=( +bool WriterReaderData::operator !=( const WriterReaderData& x) const { return !(*this == x); @@ -1606,7 +1608,7 @@ bool eprosima::fastdds::statistics::WriterReaderData::operator !=( * @brief This function copies the value in member writer_guid * @param _writer_guid New value to be copied in member writer_guid */ -void eprosima::fastdds::statistics::WriterReaderData::writer_guid( +void WriterReaderData::writer_guid( const eprosima::fastdds::statistics::detail::GUID_s& _writer_guid) { m_writer_guid = _writer_guid; @@ -1616,7 +1618,7 @@ void eprosima::fastdds::statistics::WriterReaderData::writer_guid( * @brief This function moves the value in member writer_guid * @param _writer_guid New value to be moved in member writer_guid */ -void eprosima::fastdds::statistics::WriterReaderData::writer_guid( +void WriterReaderData::writer_guid( eprosima::fastdds::statistics::detail::GUID_s&& _writer_guid) { m_writer_guid = std::move(_writer_guid); @@ -1626,7 +1628,7 @@ void eprosima::fastdds::statistics::WriterReaderData::writer_guid( * @brief This function returns a constant reference to member writer_guid * @return Constant reference to member writer_guid */ -const eprosima::fastdds::statistics::detail::GUID_s& eprosima::fastdds::statistics::WriterReaderData::writer_guid() const +const eprosima::fastdds::statistics::detail::GUID_s& WriterReaderData::writer_guid() const { return m_writer_guid; } @@ -1635,7 +1637,7 @@ const eprosima::fastdds::statistics::detail::GUID_s& eprosima::fastdds::statisti * @brief This function returns a reference to member writer_guid * @return Reference to member writer_guid */ -eprosima::fastdds::statistics::detail::GUID_s& eprosima::fastdds::statistics::WriterReaderData::writer_guid() +eprosima::fastdds::statistics::detail::GUID_s& WriterReaderData::writer_guid() { return m_writer_guid; } @@ -1645,7 +1647,7 @@ eprosima::fastdds::statistics::detail::GUID_s& eprosima::fastdds::statistics::Wr * @brief This function copies the value in member reader_guid * @param _reader_guid New value to be copied in member reader_guid */ -void eprosima::fastdds::statistics::WriterReaderData::reader_guid( +void WriterReaderData::reader_guid( const eprosima::fastdds::statistics::detail::GUID_s& _reader_guid) { m_reader_guid = _reader_guid; @@ -1655,7 +1657,7 @@ void eprosima::fastdds::statistics::WriterReaderData::reader_guid( * @brief This function moves the value in member reader_guid * @param _reader_guid New value to be moved in member reader_guid */ -void eprosima::fastdds::statistics::WriterReaderData::reader_guid( +void WriterReaderData::reader_guid( eprosima::fastdds::statistics::detail::GUID_s&& _reader_guid) { m_reader_guid = std::move(_reader_guid); @@ -1665,7 +1667,7 @@ void eprosima::fastdds::statistics::WriterReaderData::reader_guid( * @brief This function returns a constant reference to member reader_guid * @return Constant reference to member reader_guid */ -const eprosima::fastdds::statistics::detail::GUID_s& eprosima::fastdds::statistics::WriterReaderData::reader_guid() const +const eprosima::fastdds::statistics::detail::GUID_s& WriterReaderData::reader_guid() const { return m_reader_guid; } @@ -1674,7 +1676,7 @@ const eprosima::fastdds::statistics::detail::GUID_s& eprosima::fastdds::statisti * @brief This function returns a reference to member reader_guid * @return Reference to member reader_guid */ -eprosima::fastdds::statistics::detail::GUID_s& eprosima::fastdds::statistics::WriterReaderData::reader_guid() +eprosima::fastdds::statistics::detail::GUID_s& WriterReaderData::reader_guid() { return m_reader_guid; } @@ -1684,7 +1686,7 @@ eprosima::fastdds::statistics::detail::GUID_s& eprosima::fastdds::statistics::Wr * @brief This function sets a value in member data * @param _data New value for member data */ -void eprosima::fastdds::statistics::WriterReaderData::data( +void WriterReaderData::data( float _data) { m_data = _data; @@ -1694,7 +1696,7 @@ void eprosima::fastdds::statistics::WriterReaderData::data( * @brief This function returns the value of member data * @return Value of member data */ -float eprosima::fastdds::statistics::WriterReaderData::data() const +float WriterReaderData::data() const { return m_data; } @@ -1703,22 +1705,23 @@ float eprosima::fastdds::statistics::WriterReaderData::data() const * @brief This function returns a reference to member data * @return Reference to member data */ -float& eprosima::fastdds::statistics::WriterReaderData::data() +float& WriterReaderData::data() { return m_data; } -eprosima::fastdds::statistics::Locator2LocatorData::Locator2LocatorData() -{ + +Locator2LocatorData::Locator2LocatorData() +{ } -eprosima::fastdds::statistics::Locator2LocatorData::~Locator2LocatorData() +Locator2LocatorData::~Locator2LocatorData() { } -eprosima::fastdds::statistics::Locator2LocatorData::Locator2LocatorData( +Locator2LocatorData::Locator2LocatorData( const Locator2LocatorData& x) { m_src_locator = x.m_src_locator; @@ -1726,7 +1729,7 @@ eprosima::fastdds::statistics::Locator2LocatorData::Locator2LocatorData( m_data = x.m_data; } -eprosima::fastdds::statistics::Locator2LocatorData::Locator2LocatorData( +Locator2LocatorData::Locator2LocatorData( Locator2LocatorData&& x) noexcept { m_src_locator = std::move(x.m_src_locator); @@ -1734,29 +1737,27 @@ eprosima::fastdds::statistics::Locator2LocatorData::Locator2LocatorData( m_data = x.m_data; } -eprosima::fastdds::statistics::Locator2LocatorData& eprosima::fastdds::statistics::Locator2LocatorData::operator =( +Locator2LocatorData& Locator2LocatorData::operator =( const Locator2LocatorData& x) { m_src_locator = x.m_src_locator; m_dst_locator = x.m_dst_locator; m_data = x.m_data; - return *this; } -eprosima::fastdds::statistics::Locator2LocatorData& eprosima::fastdds::statistics::Locator2LocatorData::operator =( +Locator2LocatorData& Locator2LocatorData::operator =( Locator2LocatorData&& x) noexcept { m_src_locator = std::move(x.m_src_locator); m_dst_locator = std::move(x.m_dst_locator); m_data = x.m_data; - return *this; } -bool eprosima::fastdds::statistics::Locator2LocatorData::operator ==( +bool Locator2LocatorData::operator ==( const Locator2LocatorData& x) const { return (m_src_locator == x.m_src_locator && @@ -1764,7 +1765,7 @@ bool eprosima::fastdds::statistics::Locator2LocatorData::operator ==( m_data == x.m_data); } -bool eprosima::fastdds::statistics::Locator2LocatorData::operator !=( +bool Locator2LocatorData::operator !=( const Locator2LocatorData& x) const { return !(*this == x); @@ -1774,7 +1775,7 @@ bool eprosima::fastdds::statistics::Locator2LocatorData::operator !=( * @brief This function copies the value in member src_locator * @param _src_locator New value to be copied in member src_locator */ -void eprosima::fastdds::statistics::Locator2LocatorData::src_locator( +void Locator2LocatorData::src_locator( const eprosima::fastdds::statistics::detail::Locator_s& _src_locator) { m_src_locator = _src_locator; @@ -1784,7 +1785,7 @@ void eprosima::fastdds::statistics::Locator2LocatorData::src_locator( * @brief This function moves the value in member src_locator * @param _src_locator New value to be moved in member src_locator */ -void eprosima::fastdds::statistics::Locator2LocatorData::src_locator( +void Locator2LocatorData::src_locator( eprosima::fastdds::statistics::detail::Locator_s&& _src_locator) { m_src_locator = std::move(_src_locator); @@ -1794,7 +1795,7 @@ void eprosima::fastdds::statistics::Locator2LocatorData::src_locator( * @brief This function returns a constant reference to member src_locator * @return Constant reference to member src_locator */ -const eprosima::fastdds::statistics::detail::Locator_s& eprosima::fastdds::statistics::Locator2LocatorData::src_locator() const +const eprosima::fastdds::statistics::detail::Locator_s& Locator2LocatorData::src_locator() const { return m_src_locator; } @@ -1803,7 +1804,7 @@ const eprosima::fastdds::statistics::detail::Locator_s& eprosima::fastdds::stati * @brief This function returns a reference to member src_locator * @return Reference to member src_locator */ -eprosima::fastdds::statistics::detail::Locator_s& eprosima::fastdds::statistics::Locator2LocatorData::src_locator() +eprosima::fastdds::statistics::detail::Locator_s& Locator2LocatorData::src_locator() { return m_src_locator; } @@ -1813,7 +1814,7 @@ eprosima::fastdds::statistics::detail::Locator_s& eprosima::fastdds::statistics: * @brief This function copies the value in member dst_locator * @param _dst_locator New value to be copied in member dst_locator */ -void eprosima::fastdds::statistics::Locator2LocatorData::dst_locator( +void Locator2LocatorData::dst_locator( const eprosima::fastdds::statistics::detail::Locator_s& _dst_locator) { m_dst_locator = _dst_locator; @@ -1823,7 +1824,7 @@ void eprosima::fastdds::statistics::Locator2LocatorData::dst_locator( * @brief This function moves the value in member dst_locator * @param _dst_locator New value to be moved in member dst_locator */ -void eprosima::fastdds::statistics::Locator2LocatorData::dst_locator( +void Locator2LocatorData::dst_locator( eprosima::fastdds::statistics::detail::Locator_s&& _dst_locator) { m_dst_locator = std::move(_dst_locator); @@ -1833,7 +1834,7 @@ void eprosima::fastdds::statistics::Locator2LocatorData::dst_locator( * @brief This function returns a constant reference to member dst_locator * @return Constant reference to member dst_locator */ -const eprosima::fastdds::statistics::detail::Locator_s& eprosima::fastdds::statistics::Locator2LocatorData::dst_locator() const +const eprosima::fastdds::statistics::detail::Locator_s& Locator2LocatorData::dst_locator() const { return m_dst_locator; } @@ -1842,7 +1843,7 @@ const eprosima::fastdds::statistics::detail::Locator_s& eprosima::fastdds::stati * @brief This function returns a reference to member dst_locator * @return Reference to member dst_locator */ -eprosima::fastdds::statistics::detail::Locator_s& eprosima::fastdds::statistics::Locator2LocatorData::dst_locator() +eprosima::fastdds::statistics::detail::Locator_s& Locator2LocatorData::dst_locator() { return m_dst_locator; } @@ -1852,7 +1853,7 @@ eprosima::fastdds::statistics::detail::Locator_s& eprosima::fastdds::statistics: * @brief This function sets a value in member data * @param _data New value for member data */ -void eprosima::fastdds::statistics::Locator2LocatorData::data( +void Locator2LocatorData::data( float _data) { m_data = _data; @@ -1862,7 +1863,7 @@ void eprosima::fastdds::statistics::Locator2LocatorData::data( * @brief This function returns the value of member data * @return Value of member data */ -float eprosima::fastdds::statistics::Locator2LocatorData::data() const +float Locator2LocatorData::data() const { return m_data; } @@ -1871,63 +1872,62 @@ float eprosima::fastdds::statistics::Locator2LocatorData::data() const * @brief This function returns a reference to member data * @return Reference to member data */ -float& eprosima::fastdds::statistics::Locator2LocatorData::data() +float& Locator2LocatorData::data() { return m_data; } -eprosima::fastdds::statistics::EntityData::EntityData() -{ + +EntityData::EntityData() +{ } -eprosima::fastdds::statistics::EntityData::~EntityData() +EntityData::~EntityData() { } -eprosima::fastdds::statistics::EntityData::EntityData( +EntityData::EntityData( const EntityData& x) { m_guid = x.m_guid; m_data = x.m_data; } -eprosima::fastdds::statistics::EntityData::EntityData( +EntityData::EntityData( EntityData&& x) noexcept { m_guid = std::move(x.m_guid); m_data = x.m_data; } -eprosima::fastdds::statistics::EntityData& eprosima::fastdds::statistics::EntityData::operator =( +EntityData& EntityData::operator =( const EntityData& x) { m_guid = x.m_guid; m_data = x.m_data; - return *this; } -eprosima::fastdds::statistics::EntityData& eprosima::fastdds::statistics::EntityData::operator =( +EntityData& EntityData::operator =( EntityData&& x) noexcept { m_guid = std::move(x.m_guid); m_data = x.m_data; - return *this; } -bool eprosima::fastdds::statistics::EntityData::operator ==( +bool EntityData::operator ==( const EntityData& x) const { return (m_guid == x.m_guid && m_data == x.m_data); } -bool eprosima::fastdds::statistics::EntityData::operator !=( +bool EntityData::operator !=( const EntityData& x) const { return !(*this == x); @@ -1937,7 +1937,7 @@ bool eprosima::fastdds::statistics::EntityData::operator !=( * @brief This function copies the value in member guid * @param _guid New value to be copied in member guid */ -void eprosima::fastdds::statistics::EntityData::guid( +void EntityData::guid( const eprosima::fastdds::statistics::detail::GUID_s& _guid) { m_guid = _guid; @@ -1947,7 +1947,7 @@ void eprosima::fastdds::statistics::EntityData::guid( * @brief This function moves the value in member guid * @param _guid New value to be moved in member guid */ -void eprosima::fastdds::statistics::EntityData::guid( +void EntityData::guid( eprosima::fastdds::statistics::detail::GUID_s&& _guid) { m_guid = std::move(_guid); @@ -1957,7 +1957,7 @@ void eprosima::fastdds::statistics::EntityData::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::EntityData::guid() const +const eprosima::fastdds::statistics::detail::GUID_s& EntityData::guid() const { return m_guid; } @@ -1966,7 +1966,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::EntityData::guid() +eprosima::fastdds::statistics::detail::GUID_s& EntityData::guid() { return m_guid; } @@ -1976,7 +1976,7 @@ eprosima::fastdds::statistics::detail::GUID_s& eprosima::fastdds::statistics::En * @brief This function sets a value in member data * @param _data New value for member data */ -void eprosima::fastdds::statistics::EntityData::data( +void EntityData::data( float _data) { m_data = _data; @@ -1986,7 +1986,7 @@ void eprosima::fastdds::statistics::EntityData::data( * @brief This function returns the value of member data * @return Value of member data */ -float eprosima::fastdds::statistics::EntityData::data() const +float EntityData::data() const { return m_data; } @@ -1995,22 +1995,23 @@ float eprosima::fastdds::statistics::EntityData::data() const * @brief This function returns a reference to member data * @return Reference to member data */ -float& eprosima::fastdds::statistics::EntityData::data() +float& EntityData::data() { return m_data; } -eprosima::fastdds::statistics::PhysicalData::PhysicalData() -{ + +PhysicalData::PhysicalData() +{ } -eprosima::fastdds::statistics::PhysicalData::~PhysicalData() +PhysicalData::~PhysicalData() { } -eprosima::fastdds::statistics::PhysicalData::PhysicalData( +PhysicalData::PhysicalData( const PhysicalData& x) { m_participant_guid = x.m_participant_guid; @@ -2019,7 +2020,7 @@ eprosima::fastdds::statistics::PhysicalData::PhysicalData( m_process = x.m_process; } -eprosima::fastdds::statistics::PhysicalData::PhysicalData( +PhysicalData::PhysicalData( PhysicalData&& x) noexcept { m_participant_guid = std::move(x.m_participant_guid); @@ -2028,7 +2029,7 @@ eprosima::fastdds::statistics::PhysicalData::PhysicalData( m_process = std::move(x.m_process); } -eprosima::fastdds::statistics::PhysicalData& eprosima::fastdds::statistics::PhysicalData::operator =( +PhysicalData& PhysicalData::operator =( const PhysicalData& x) { @@ -2036,11 +2037,10 @@ eprosima::fastdds::statistics::PhysicalData& eprosima::fastdds::statistics::Phys m_host = x.m_host; m_user = x.m_user; m_process = x.m_process; - return *this; } -eprosima::fastdds::statistics::PhysicalData& eprosima::fastdds::statistics::PhysicalData::operator =( +PhysicalData& PhysicalData::operator =( PhysicalData&& x) noexcept { @@ -2048,11 +2048,10 @@ eprosima::fastdds::statistics::PhysicalData& eprosima::fastdds::statistics::Phys m_host = std::move(x.m_host); m_user = std::move(x.m_user); m_process = std::move(x.m_process); - return *this; } -bool eprosima::fastdds::statistics::PhysicalData::operator ==( +bool PhysicalData::operator ==( const PhysicalData& x) const { return (m_participant_guid == x.m_participant_guid && @@ -2061,7 +2060,7 @@ bool eprosima::fastdds::statistics::PhysicalData::operator ==( m_process == x.m_process); } -bool eprosima::fastdds::statistics::PhysicalData::operator !=( +bool PhysicalData::operator !=( const PhysicalData& x) const { return !(*this == x); @@ -2071,7 +2070,7 @@ bool eprosima::fastdds::statistics::PhysicalData::operator !=( * @brief This function copies the value in member participant_guid * @param _participant_guid New value to be copied in member participant_guid */ -void eprosima::fastdds::statistics::PhysicalData::participant_guid( +void PhysicalData::participant_guid( const eprosima::fastdds::statistics::detail::GUID_s& _participant_guid) { m_participant_guid = _participant_guid; @@ -2081,7 +2080,7 @@ void eprosima::fastdds::statistics::PhysicalData::participant_guid( * @brief This function moves the value in member participant_guid * @param _participant_guid New value to be moved in member participant_guid */ -void eprosima::fastdds::statistics::PhysicalData::participant_guid( +void PhysicalData::participant_guid( eprosima::fastdds::statistics::detail::GUID_s&& _participant_guid) { m_participant_guid = std::move(_participant_guid); @@ -2091,7 +2090,7 @@ void eprosima::fastdds::statistics::PhysicalData::participant_guid( * @brief This function returns a constant reference to member participant_guid * @return Constant reference to member participant_guid */ -const eprosima::fastdds::statistics::detail::GUID_s& eprosima::fastdds::statistics::PhysicalData::participant_guid() const +const eprosima::fastdds::statistics::detail::GUID_s& PhysicalData::participant_guid() const { return m_participant_guid; } @@ -2100,7 +2099,7 @@ const eprosima::fastdds::statistics::detail::GUID_s& eprosima::fastdds::statisti * @brief This function returns a reference to member participant_guid * @return Reference to member participant_guid */ -eprosima::fastdds::statistics::detail::GUID_s& eprosima::fastdds::statistics::PhysicalData::participant_guid() +eprosima::fastdds::statistics::detail::GUID_s& PhysicalData::participant_guid() { return m_participant_guid; } @@ -2110,7 +2109,7 @@ eprosima::fastdds::statistics::detail::GUID_s& eprosima::fastdds::statistics::Ph * @brief This function copies the value in member host * @param _host New value to be copied in member host */ -void eprosima::fastdds::statistics::PhysicalData::host( +void PhysicalData::host( const std::string& _host) { m_host = _host; @@ -2120,7 +2119,7 @@ void eprosima::fastdds::statistics::PhysicalData::host( * @brief This function moves the value in member host * @param _host New value to be moved in member host */ -void eprosima::fastdds::statistics::PhysicalData::host( +void PhysicalData::host( std::string&& _host) { m_host = std::move(_host); @@ -2130,7 +2129,7 @@ void eprosima::fastdds::statistics::PhysicalData::host( * @brief This function returns a constant reference to member host * @return Constant reference to member host */ -const std::string& eprosima::fastdds::statistics::PhysicalData::host() const +const std::string& PhysicalData::host() const { return m_host; } @@ -2139,7 +2138,7 @@ const std::string& eprosima::fastdds::statistics::PhysicalData::host() const * @brief This function returns a reference to member host * @return Reference to member host */ -std::string& eprosima::fastdds::statistics::PhysicalData::host() +std::string& PhysicalData::host() { return m_host; } @@ -2149,7 +2148,7 @@ std::string& eprosima::fastdds::statistics::PhysicalData::host() * @brief This function copies the value in member user * @param _user New value to be copied in member user */ -void eprosima::fastdds::statistics::PhysicalData::user( +void PhysicalData::user( const std::string& _user) { m_user = _user; @@ -2159,7 +2158,7 @@ void eprosima::fastdds::statistics::PhysicalData::user( * @brief This function moves the value in member user * @param _user New value to be moved in member user */ -void eprosima::fastdds::statistics::PhysicalData::user( +void PhysicalData::user( std::string&& _user) { m_user = std::move(_user); @@ -2169,7 +2168,7 @@ void eprosima::fastdds::statistics::PhysicalData::user( * @brief This function returns a constant reference to member user * @return Constant reference to member user */ -const std::string& eprosima::fastdds::statistics::PhysicalData::user() const +const std::string& PhysicalData::user() const { return m_user; } @@ -2178,7 +2177,7 @@ const std::string& eprosima::fastdds::statistics::PhysicalData::user() const * @brief This function returns a reference to member user * @return Reference to member user */ -std::string& eprosima::fastdds::statistics::PhysicalData::user() +std::string& PhysicalData::user() { return m_user; } @@ -2188,7 +2187,7 @@ std::string& eprosima::fastdds::statistics::PhysicalData::user() * @brief This function copies the value in member process * @param _process New value to be copied in member process */ -void eprosima::fastdds::statistics::PhysicalData::process( +void PhysicalData::process( const std::string& _process) { m_process = _process; @@ -2198,7 +2197,7 @@ void eprosima::fastdds::statistics::PhysicalData::process( * @brief This function moves the value in member process * @param _process New value to be moved in member process */ -void eprosima::fastdds::statistics::PhysicalData::process( +void PhysicalData::process( std::string&& _process) { m_process = std::move(_process); @@ -2208,7 +2207,7 @@ void eprosima::fastdds::statistics::PhysicalData::process( * @brief This function returns a constant reference to member process * @return Constant reference to member process */ -const std::string& eprosima::fastdds::statistics::PhysicalData::process() const +const std::string& PhysicalData::process() const { return m_process; } @@ -2217,23 +2216,25 @@ const std::string& eprosima::fastdds::statistics::PhysicalData::process() const * @brief This function returns a reference to member process * @return Reference to member process */ -std::string& eprosima::fastdds::statistics::PhysicalData::process() +std::string& PhysicalData::process() { return m_process; } -eprosima::fastdds::statistics::Data::Data() + + +Data::Data() { m__d = eprosima::fastdds::statistics::HISTORY2HISTORY_LATENCY; } -eprosima::fastdds::statistics::Data::~Data() +Data::~Data() { } -eprosima::fastdds::statistics::Data::Data( +Data::Data( const Data& x) { m__d = x.m__d; @@ -2293,7 +2294,7 @@ eprosima::fastdds::statistics::Data::Data( } } -eprosima::fastdds::statistics::Data::Data( +Data::Data( Data&& x) noexcept { m__d = x.m__d; @@ -2361,7 +2362,7 @@ eprosima::fastdds::statistics::Data::Data( } } -eprosima::fastdds::statistics::Data& eprosima::fastdds::statistics::Data::operator =( +Data& Data::operator =( const Data& x) { m__d = x.m__d; @@ -2423,7 +2424,7 @@ eprosima::fastdds::statistics::Data& eprosima::fastdds::statistics::Data::operat return *this; } -eprosima::fastdds::statistics::Data& eprosima::fastdds::statistics::Data::operator =( +Data& Data::operator =( Data&& x) noexcept { m__d = x.m__d; @@ -2493,7 +2494,7 @@ eprosima::fastdds::statistics::Data& eprosima::fastdds::statistics::Data::operat return *this; } -bool eprosima::fastdds::statistics::Data::operator ==( +bool Data::operator ==( const Data& x) const { if (m__d != x.m__d) @@ -2557,13 +2558,13 @@ bool eprosima::fastdds::statistics::Data::operator ==( return false; } -bool eprosima::fastdds::statistics::Data::operator !=( +bool Data::operator !=( const Data& x) const { return !(*this == x); } -void eprosima::fastdds::statistics::Data::_d( +void Data::_d( eprosima::fastdds::statistics::EventKind __d) { bool b = false; @@ -2683,6 +2684,8 @@ void eprosima::fastdds::statistics::Data::_d( } break; + default: + break; } if (!b) @@ -2693,17 +2696,17 @@ void eprosima::fastdds::statistics::Data::_d( m__d = __d; } -eprosima::fastdds::statistics::EventKind eprosima::fastdds::statistics::Data::_d() const +eprosima::fastdds::statistics::EventKind Data::_d() const { return m__d; } -eprosima::fastdds::statistics::EventKind& eprosima::fastdds::statistics::Data::_d() +eprosima::fastdds::statistics::EventKind& Data::_d() { return m__d; } -void eprosima::fastdds::statistics::Data::writer_reader_data( +void Data::writer_reader_data( const eprosima::fastdds::statistics::WriterReaderData& _writer_reader_data) { m_writer_reader_data = _writer_reader_data; @@ -2711,7 +2714,7 @@ void eprosima::fastdds::statistics::Data::writer_reader_data( } -void eprosima::fastdds::statistics::Data::writer_reader_data( +void Data::writer_reader_data( eprosima::fastdds::statistics::WriterReaderData&& _writer_reader_data) { m_writer_reader_data = std::move(_writer_reader_data); @@ -2719,7 +2722,7 @@ void eprosima::fastdds::statistics::Data::writer_reader_data( } -const eprosima::fastdds::statistics::WriterReaderData& eprosima::fastdds::statistics::Data::writer_reader_data() const +const eprosima::fastdds::statistics::WriterReaderData& Data::writer_reader_data() const { bool b = false; @@ -2740,7 +2743,7 @@ const eprosima::fastdds::statistics::WriterReaderData& eprosima::fastdds::statis return m_writer_reader_data; } -eprosima::fastdds::statistics::WriterReaderData& eprosima::fastdds::statistics::Data::writer_reader_data() +eprosima::fastdds::statistics::WriterReaderData& Data::writer_reader_data() { bool b = false; @@ -2762,7 +2765,7 @@ eprosima::fastdds::statistics::WriterReaderData& eprosima::fastdds::statistics:: } -void eprosima::fastdds::statistics::Data::locator2locator_data( +void Data::locator2locator_data( const eprosima::fastdds::statistics::Locator2LocatorData& _locator2locator_data) { m_locator2locator_data = _locator2locator_data; @@ -2770,7 +2773,7 @@ void eprosima::fastdds::statistics::Data::locator2locator_data( } -void eprosima::fastdds::statistics::Data::locator2locator_data( +void Data::locator2locator_data( eprosima::fastdds::statistics::Locator2LocatorData&& _locator2locator_data) { m_locator2locator_data = std::move(_locator2locator_data); @@ -2778,7 +2781,7 @@ void eprosima::fastdds::statistics::Data::locator2locator_data( } -const eprosima::fastdds::statistics::Locator2LocatorData& eprosima::fastdds::statistics::Data::locator2locator_data() const +const eprosima::fastdds::statistics::Locator2LocatorData& Data::locator2locator_data() const { bool b = false; @@ -2799,7 +2802,7 @@ const eprosima::fastdds::statistics::Locator2LocatorData& eprosima::fastdds::sta return m_locator2locator_data; } -eprosima::fastdds::statistics::Locator2LocatorData& eprosima::fastdds::statistics::Data::locator2locator_data() +eprosima::fastdds::statistics::Locator2LocatorData& Data::locator2locator_data() { bool b = false; @@ -2821,7 +2824,7 @@ eprosima::fastdds::statistics::Locator2LocatorData& eprosima::fastdds::statistic } -void eprosima::fastdds::statistics::Data::entity_data( +void Data::entity_data( const eprosima::fastdds::statistics::EntityData& _entity_data) { m_entity_data = _entity_data; @@ -2829,7 +2832,7 @@ void eprosima::fastdds::statistics::Data::entity_data( } -void eprosima::fastdds::statistics::Data::entity_data( +void Data::entity_data( eprosima::fastdds::statistics::EntityData&& _entity_data) { m_entity_data = std::move(_entity_data); @@ -2837,7 +2840,7 @@ void eprosima::fastdds::statistics::Data::entity_data( } -const eprosima::fastdds::statistics::EntityData& eprosima::fastdds::statistics::Data::entity_data() const +const eprosima::fastdds::statistics::EntityData& Data::entity_data() const { bool b = false; @@ -2859,7 +2862,7 @@ const eprosima::fastdds::statistics::EntityData& eprosima::fastdds::statistics:: return m_entity_data; } -eprosima::fastdds::statistics::EntityData& eprosima::fastdds::statistics::Data::entity_data() +eprosima::fastdds::statistics::EntityData& Data::entity_data() { bool b = false; @@ -2882,7 +2885,7 @@ eprosima::fastdds::statistics::EntityData& eprosima::fastdds::statistics::Data:: } -void eprosima::fastdds::statistics::Data::entity2locator_traffic( +void Data::entity2locator_traffic( const eprosima::fastdds::statistics::Entity2LocatorTraffic& _entity2locator_traffic) { m_entity2locator_traffic = _entity2locator_traffic; @@ -2890,7 +2893,7 @@ void eprosima::fastdds::statistics::Data::entity2locator_traffic( } -void eprosima::fastdds::statistics::Data::entity2locator_traffic( +void Data::entity2locator_traffic( eprosima::fastdds::statistics::Entity2LocatorTraffic&& _entity2locator_traffic) { m_entity2locator_traffic = std::move(_entity2locator_traffic); @@ -2898,7 +2901,7 @@ void eprosima::fastdds::statistics::Data::entity2locator_traffic( } -const eprosima::fastdds::statistics::Entity2LocatorTraffic& eprosima::fastdds::statistics::Data::entity2locator_traffic() const +const eprosima::fastdds::statistics::Entity2LocatorTraffic& Data::entity2locator_traffic() const { bool b = false; @@ -2920,7 +2923,7 @@ const eprosima::fastdds::statistics::Entity2LocatorTraffic& eprosima::fastdds::s return m_entity2locator_traffic; } -eprosima::fastdds::statistics::Entity2LocatorTraffic& eprosima::fastdds::statistics::Data::entity2locator_traffic() +eprosima::fastdds::statistics::Entity2LocatorTraffic& Data::entity2locator_traffic() { bool b = false; @@ -2943,7 +2946,7 @@ eprosima::fastdds::statistics::Entity2LocatorTraffic& eprosima::fastdds::statist } -void eprosima::fastdds::statistics::Data::entity_count( +void Data::entity_count( const eprosima::fastdds::statistics::EntityCount& _entity_count) { m_entity_count = _entity_count; @@ -2951,7 +2954,7 @@ void eprosima::fastdds::statistics::Data::entity_count( } -void eprosima::fastdds::statistics::Data::entity_count( +void Data::entity_count( eprosima::fastdds::statistics::EntityCount&& _entity_count) { m_entity_count = std::move(_entity_count); @@ -2959,7 +2962,7 @@ void eprosima::fastdds::statistics::Data::entity_count( } -const eprosima::fastdds::statistics::EntityCount& eprosima::fastdds::statistics::Data::entity_count() const +const eprosima::fastdds::statistics::EntityCount& Data::entity_count() const { bool b = false; @@ -2987,7 +2990,7 @@ const eprosima::fastdds::statistics::EntityCount& eprosima::fastdds::statistics: return m_entity_count; } -eprosima::fastdds::statistics::EntityCount& eprosima::fastdds::statistics::Data::entity_count() +eprosima::fastdds::statistics::EntityCount& Data::entity_count() { bool b = false; @@ -3016,7 +3019,7 @@ eprosima::fastdds::statistics::EntityCount& eprosima::fastdds::statistics::Data: } -void eprosima::fastdds::statistics::Data::discovery_time( +void Data::discovery_time( const eprosima::fastdds::statistics::DiscoveryTime& _discovery_time) { m_discovery_time = _discovery_time; @@ -3024,7 +3027,7 @@ void eprosima::fastdds::statistics::Data::discovery_time( } -void eprosima::fastdds::statistics::Data::discovery_time( +void Data::discovery_time( eprosima::fastdds::statistics::DiscoveryTime&& _discovery_time) { m_discovery_time = std::move(_discovery_time); @@ -3032,7 +3035,7 @@ void eprosima::fastdds::statistics::Data::discovery_time( } -const eprosima::fastdds::statistics::DiscoveryTime& eprosima::fastdds::statistics::Data::discovery_time() const +const eprosima::fastdds::statistics::DiscoveryTime& Data::discovery_time() const { bool b = false; @@ -3053,7 +3056,7 @@ const eprosima::fastdds::statistics::DiscoveryTime& eprosima::fastdds::statistic return m_discovery_time; } -eprosima::fastdds::statistics::DiscoveryTime& eprosima::fastdds::statistics::Data::discovery_time() +eprosima::fastdds::statistics::DiscoveryTime& Data::discovery_time() { bool b = false; @@ -3075,7 +3078,7 @@ eprosima::fastdds::statistics::DiscoveryTime& eprosima::fastdds::statistics::Dat } -void eprosima::fastdds::statistics::Data::sample_identity_count( +void Data::sample_identity_count( const eprosima::fastdds::statistics::SampleIdentityCount& _sample_identity_count) { m_sample_identity_count = _sample_identity_count; @@ -3083,7 +3086,7 @@ void eprosima::fastdds::statistics::Data::sample_identity_count( } -void eprosima::fastdds::statistics::Data::sample_identity_count( +void Data::sample_identity_count( eprosima::fastdds::statistics::SampleIdentityCount&& _sample_identity_count) { m_sample_identity_count = std::move(_sample_identity_count); @@ -3091,7 +3094,7 @@ void eprosima::fastdds::statistics::Data::sample_identity_count( } -const eprosima::fastdds::statistics::SampleIdentityCount& eprosima::fastdds::statistics::Data::sample_identity_count() const +const eprosima::fastdds::statistics::SampleIdentityCount& Data::sample_identity_count() const { bool b = false; @@ -3112,7 +3115,7 @@ const eprosima::fastdds::statistics::SampleIdentityCount& eprosima::fastdds::sta return m_sample_identity_count; } -eprosima::fastdds::statistics::SampleIdentityCount& eprosima::fastdds::statistics::Data::sample_identity_count() +eprosima::fastdds::statistics::SampleIdentityCount& Data::sample_identity_count() { bool b = false; @@ -3134,7 +3137,7 @@ eprosima::fastdds::statistics::SampleIdentityCount& eprosima::fastdds::statistic } -void eprosima::fastdds::statistics::Data::physical_data( +void Data::physical_data( const eprosima::fastdds::statistics::PhysicalData& _physical_data) { m_physical_data = _physical_data; @@ -3142,7 +3145,7 @@ void eprosima::fastdds::statistics::Data::physical_data( } -void eprosima::fastdds::statistics::Data::physical_data( +void Data::physical_data( eprosima::fastdds::statistics::PhysicalData&& _physical_data) { m_physical_data = std::move(_physical_data); @@ -3150,7 +3153,7 @@ void eprosima::fastdds::statistics::Data::physical_data( } -const eprosima::fastdds::statistics::PhysicalData& eprosima::fastdds::statistics::Data::physical_data() const +const eprosima::fastdds::statistics::PhysicalData& Data::physical_data() const { bool b = false; @@ -3171,7 +3174,7 @@ const eprosima::fastdds::statistics::PhysicalData& eprosima::fastdds::statistics return m_physical_data; } -eprosima::fastdds::statistics::PhysicalData& eprosima::fastdds::statistics::Data::physical_data() +eprosima::fastdds::statistics::PhysicalData& Data::physical_data() { bool b = false; @@ -3195,6 +3198,14 @@ eprosima::fastdds::statistics::PhysicalData& eprosima::fastdds::statistics::Data +} // namespace statistics + + +} // namespace fastdds + +} // namespace eprosima // Include auxiliary functions like for serializing/deserializing. #include "typesCdrAux.ipp" + +#endif // FASTCDR_VERSION_MAJOR > 1 diff --git a/src/cpp/topic_types/types.h b/src/cpp/topic_types/types.h index fe4fbc112..c51a79f20 100644 --- a/src/cpp/topic_types/types.h +++ b/src/cpp/topic_types/types.h @@ -19,6 +19,11 @@ * This file was generated by the tool fastddsgen. */ +#include +#include "typesv1.h" + +#if FASTCDR_VERSION_MAJOR > 1 + #ifndef _FAST_DDS_GENERATED_EPROSIMA_FASTDDS_STATISTICS_TYPES_H_ #define _FAST_DDS_GENERATED_EPROSIMA_FASTDDS_STATISTICS_TYPES_H_ @@ -30,6 +35,7 @@ #include #include +#include #include @@ -68,2217 +74,2258 @@ class CdrSizeCalculator; namespace eprosima { - namespace fastdds { - namespace statistics { - namespace detail { - /*! - * @brief This class represents the structure EntityId_s defined by the user in the IDL file. - * @ingroup types - */ - class EntityId_s - { - public: - - /*! - * @brief Default constructor. - */ - eProsima_user_DllExport EntityId_s(); - - /*! - * @brief Default destructor. - */ - eProsima_user_DllExport ~EntityId_s(); - - /*! - * @brief Copy constructor. - * @param x Reference to the object eprosima::fastdds::statistics::detail::EntityId_s that will be copied. - */ - eProsima_user_DllExport EntityId_s( - const EntityId_s& x); - - /*! - * @brief Move constructor. - * @param x Reference to the object eprosima::fastdds::statistics::detail::EntityId_s that will be copied. - */ - eProsima_user_DllExport EntityId_s( - EntityId_s&& x) noexcept; - - /*! - * @brief Copy assignment. - * @param x Reference to the object eprosima::fastdds::statistics::detail::EntityId_s that will be copied. - */ - eProsima_user_DllExport EntityId_s& operator =( - const EntityId_s& x); - - /*! - * @brief Move assignment. - * @param x Reference to the object eprosima::fastdds::statistics::detail::EntityId_s that will be copied. - */ - eProsima_user_DllExport EntityId_s& operator =( - EntityId_s&& x) noexcept; - - /*! - * @brief Comparison operator. - * @param x eprosima::fastdds::statistics::detail::EntityId_s object to compare. - */ - eProsima_user_DllExport bool operator ==( - const EntityId_s& x) const; - - /*! - * @brief Comparison operator. - * @param x eprosima::fastdds::statistics::detail::EntityId_s object to compare. - */ - eProsima_user_DllExport bool operator !=( - const EntityId_s& x) const; - - /*! - * @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 std::array& _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( - std::array&& _value); - - /*! - * @brief This function returns a constant reference to member value - * @return Constant reference to member value - */ - eProsima_user_DllExport const std::array& value() const; - - /*! - * @brief This function returns a reference to member value - * @return Reference to member value - */ - eProsima_user_DllExport std::array& value(); - - private: - - std::array m_value{0}; - - }; - /*! - * @brief This class represents the structure GuidPrefix_s defined by the user in the IDL file. - * @ingroup types - */ - class GuidPrefix_s - { - public: - - /*! - * @brief Default constructor. - */ - eProsima_user_DllExport GuidPrefix_s(); - - /*! - * @brief Default destructor. - */ - eProsima_user_DllExport ~GuidPrefix_s(); - - /*! - * @brief Copy constructor. - * @param x Reference to the object eprosima::fastdds::statistics::detail::GuidPrefix_s that will be copied. - */ - eProsima_user_DllExport GuidPrefix_s( - const GuidPrefix_s& x); - - /*! - * @brief Move constructor. - * @param x Reference to the object eprosima::fastdds::statistics::detail::GuidPrefix_s that will be copied. - */ - eProsima_user_DllExport GuidPrefix_s( - GuidPrefix_s&& x) noexcept; - - /*! - * @brief Copy assignment. - * @param x Reference to the object eprosima::fastdds::statistics::detail::GuidPrefix_s that will be copied. - */ - eProsima_user_DllExport GuidPrefix_s& operator =( - const GuidPrefix_s& x); - - /*! - * @brief Move assignment. - * @param x Reference to the object eprosima::fastdds::statistics::detail::GuidPrefix_s that will be copied. - */ - eProsima_user_DllExport GuidPrefix_s& operator =( - GuidPrefix_s&& x) noexcept; - - /*! - * @brief Comparison operator. - * @param x eprosima::fastdds::statistics::detail::GuidPrefix_s object to compare. - */ - eProsima_user_DllExport bool operator ==( - const GuidPrefix_s& x) const; - - /*! - * @brief Comparison operator. - * @param x eprosima::fastdds::statistics::detail::GuidPrefix_s object to compare. - */ - eProsima_user_DllExport bool operator !=( - const GuidPrefix_s& x) const; - - /*! - * @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 std::array& _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( - std::array&& _value); - - /*! - * @brief This function returns a constant reference to member value - * @return Constant reference to member value - */ - eProsima_user_DllExport const std::array& value() const; - - /*! - * @brief This function returns a reference to member value - * @return Reference to member value - */ - eProsima_user_DllExport std::array& value(); - - private: - - std::array m_value{0}; - - }; - /*! - * @brief This class represents the structure GUID_s defined by the user in the IDL file. - * @ingroup types - */ - class GUID_s - { - public: - - /*! - * @brief Default constructor. - */ - eProsima_user_DllExport GUID_s(); - - /*! - * @brief Default destructor. - */ - eProsima_user_DllExport ~GUID_s(); - - /*! - * @brief Copy constructor. - * @param x Reference to the object eprosima::fastdds::statistics::detail::GUID_s that will be copied. - */ - eProsima_user_DllExport GUID_s( - const GUID_s& x); - - /*! - * @brief Move constructor. - * @param x Reference to the object eprosima::fastdds::statistics::detail::GUID_s that will be copied. - */ - eProsima_user_DllExport GUID_s( - GUID_s&& x) noexcept; - - /*! - * @brief Copy assignment. - * @param x Reference to the object eprosima::fastdds::statistics::detail::GUID_s that will be copied. - */ - eProsima_user_DllExport GUID_s& operator =( - const GUID_s& x); - - /*! - * @brief Move assignment. - * @param x Reference to the object eprosima::fastdds::statistics::detail::GUID_s that will be copied. - */ - eProsima_user_DllExport GUID_s& operator =( - GUID_s&& x) noexcept; - - /*! - * @brief Comparison operator. - * @param x eprosima::fastdds::statistics::detail::GUID_s object to compare. - */ - eProsima_user_DllExport bool operator ==( - const GUID_s& x) const; - - /*! - * @brief Comparison operator. - * @param x eprosima::fastdds::statistics::detail::GUID_s object to compare. - */ - eProsima_user_DllExport bool operator !=( - const GUID_s& x) const; - - /*! - * @brief This function copies the value in member guidPrefix - * @param _guidPrefix New value to be copied in member guidPrefix - */ - eProsima_user_DllExport void guidPrefix( - const eprosima::fastdds::statistics::detail::GuidPrefix_s& _guidPrefix); - - /*! - * @brief This function moves the value in member guidPrefix - * @param _guidPrefix New value to be moved in member guidPrefix - */ - eProsima_user_DllExport void guidPrefix( - eprosima::fastdds::statistics::detail::GuidPrefix_s&& _guidPrefix); - - /*! - * @brief This function returns a constant reference to member guidPrefix - * @return Constant reference to member guidPrefix - */ - eProsima_user_DllExport const eprosima::fastdds::statistics::detail::GuidPrefix_s& guidPrefix() const; - - /*! - * @brief This function returns a reference to member guidPrefix - * @return Reference to member guidPrefix - */ - eProsima_user_DllExport eprosima::fastdds::statistics::detail::GuidPrefix_s& guidPrefix(); - - - /*! - * @brief This function copies the value in member entityId - * @param _entityId New value to be copied in member entityId - */ - eProsima_user_DllExport void entityId( - const eprosima::fastdds::statistics::detail::EntityId_s& _entityId); - - /*! - * @brief This function moves the value in member entityId - * @param _entityId New value to be moved in member entityId - */ - eProsima_user_DllExport void entityId( - eprosima::fastdds::statistics::detail::EntityId_s&& _entityId); - - /*! - * @brief This function returns a constant reference to member entityId - * @return Constant reference to member entityId - */ - eProsima_user_DllExport const eprosima::fastdds::statistics::detail::EntityId_s& entityId() const; - - /*! - * @brief This function returns a reference to member entityId - * @return Reference to member entityId - */ - eProsima_user_DllExport eprosima::fastdds::statistics::detail::EntityId_s& entityId(); - - private: - - eprosima::fastdds::statistics::detail::GuidPrefix_s m_guidPrefix; - eprosima::fastdds::statistics::detail::EntityId_s m_entityId; - - }; - /*! - * @brief This class represents the structure SequenceNumber_s defined by the user in the IDL file. - * @ingroup types - */ - class SequenceNumber_s - { - public: - - /*! - * @brief Default constructor. - */ - eProsima_user_DllExport SequenceNumber_s(); - - /*! - * @brief Default destructor. - */ - eProsima_user_DllExport ~SequenceNumber_s(); - - /*! - * @brief Copy constructor. - * @param x Reference to the object eprosima::fastdds::statistics::detail::SequenceNumber_s that will be copied. - */ - eProsima_user_DllExport SequenceNumber_s( - const SequenceNumber_s& x); - - /*! - * @brief Move constructor. - * @param x Reference to the object eprosima::fastdds::statistics::detail::SequenceNumber_s that will be copied. - */ - eProsima_user_DllExport SequenceNumber_s( - SequenceNumber_s&& x) noexcept; - - /*! - * @brief Copy assignment. - * @param x Reference to the object eprosima::fastdds::statistics::detail::SequenceNumber_s that will be copied. - */ - eProsima_user_DllExport SequenceNumber_s& operator =( - const SequenceNumber_s& x); - - /*! - * @brief Move assignment. - * @param x Reference to the object eprosima::fastdds::statistics::detail::SequenceNumber_s that will be copied. - */ - eProsima_user_DllExport SequenceNumber_s& operator =( - SequenceNumber_s&& x) noexcept; - - /*! - * @brief Comparison operator. - * @param x eprosima::fastdds::statistics::detail::SequenceNumber_s object to compare. - */ - eProsima_user_DllExport bool operator ==( - const SequenceNumber_s& x) const; - - /*! - * @brief Comparison operator. - * @param x eprosima::fastdds::statistics::detail::SequenceNumber_s object to compare. - */ - eProsima_user_DllExport bool operator !=( - const SequenceNumber_s& x) const; - - /*! - * @brief This function sets a value in member high - * @param _high New value for member high - */ - eProsima_user_DllExport void high( - int32_t _high); - - /*! - * @brief This function returns the value of member high - * @return Value of member high - */ - eProsima_user_DllExport int32_t high() const; - - /*! - * @brief This function returns a reference to member high - * @return Reference to member high - */ - eProsima_user_DllExport int32_t& high(); - - - /*! - * @brief This function sets a value in member low - * @param _low New value for member low - */ - eProsima_user_DllExport void low( - uint32_t _low); - - /*! - * @brief This function returns the value of member low - * @return Value of member low - */ - eProsima_user_DllExport uint32_t low() const; - - /*! - * @brief This function returns a reference to member low - * @return Reference to member low - */ - eProsima_user_DllExport uint32_t& low(); - - private: - - int32_t m_high{0}; - uint32_t m_low{0}; - - }; - /*! - * @brief This class represents the structure SampleIdentity_s defined by the user in the IDL file. - * @ingroup types - */ - class SampleIdentity_s - { - public: - - /*! - * @brief Default constructor. - */ - eProsima_user_DllExport SampleIdentity_s(); - - /*! - * @brief Default destructor. - */ - eProsima_user_DllExport ~SampleIdentity_s(); - - /*! - * @brief Copy constructor. - * @param x Reference to the object eprosima::fastdds::statistics::detail::SampleIdentity_s that will be copied. - */ - eProsima_user_DllExport SampleIdentity_s( - const SampleIdentity_s& x); - - /*! - * @brief Move constructor. - * @param x Reference to the object eprosima::fastdds::statistics::detail::SampleIdentity_s that will be copied. - */ - eProsima_user_DllExport SampleIdentity_s( - SampleIdentity_s&& x) noexcept; - - /*! - * @brief Copy assignment. - * @param x Reference to the object eprosima::fastdds::statistics::detail::SampleIdentity_s that will be copied. - */ - eProsima_user_DllExport SampleIdentity_s& operator =( - const SampleIdentity_s& x); - - /*! - * @brief Move assignment. - * @param x Reference to the object eprosima::fastdds::statistics::detail::SampleIdentity_s that will be copied. - */ - eProsima_user_DllExport SampleIdentity_s& operator =( - SampleIdentity_s&& x) noexcept; - - /*! - * @brief Comparison operator. - * @param x eprosima::fastdds::statistics::detail::SampleIdentity_s object to compare. - */ - eProsima_user_DllExport bool operator ==( - const SampleIdentity_s& x) const; - - /*! - * @brief Comparison operator. - * @param x eprosima::fastdds::statistics::detail::SampleIdentity_s object to compare. - */ - eProsima_user_DllExport bool operator !=( - const SampleIdentity_s& x) const; - - /*! - * @brief This function copies the value in member writer_guid - * @param _writer_guid New value to be copied in member writer_guid - */ - eProsima_user_DllExport void writer_guid( - const eprosima::fastdds::statistics::detail::GUID_s& _writer_guid); - - /*! - * @brief This function moves the value in member writer_guid - * @param _writer_guid New value to be moved in member writer_guid - */ - eProsima_user_DllExport void writer_guid( - eprosima::fastdds::statistics::detail::GUID_s&& _writer_guid); - - /*! - * @brief This function returns a constant reference to member writer_guid - * @return Constant reference to member writer_guid - */ - eProsima_user_DllExport const eprosima::fastdds::statistics::detail::GUID_s& writer_guid() const; - - /*! - * @brief This function returns a reference to member writer_guid - * @return Reference to member writer_guid - */ - eProsima_user_DllExport eprosima::fastdds::statistics::detail::GUID_s& writer_guid(); - - - /*! - * @brief This function copies the value in member sequence_number - * @param _sequence_number New value to be copied in member sequence_number - */ - eProsima_user_DllExport void sequence_number( - const eprosima::fastdds::statistics::detail::SequenceNumber_s& _sequence_number); - - /*! - * @brief This function moves the value in member sequence_number - * @param _sequence_number New value to be moved in member sequence_number - */ - eProsima_user_DllExport void sequence_number( - eprosima::fastdds::statistics::detail::SequenceNumber_s&& _sequence_number); - - /*! - * @brief This function returns a constant reference to member sequence_number - * @return Constant reference to member sequence_number - */ - eProsima_user_DllExport const eprosima::fastdds::statistics::detail::SequenceNumber_s& sequence_number() const; - - /*! - * @brief This function returns a reference to member sequence_number - * @return Reference to member sequence_number - */ - eProsima_user_DllExport eprosima::fastdds::statistics::detail::SequenceNumber_s& sequence_number(); - - private: - - eprosima::fastdds::statistics::detail::GUID_s m_writer_guid; - eprosima::fastdds::statistics::detail::SequenceNumber_s m_sequence_number; - - }; - /*! - * @brief This class represents the structure Locator_s defined by the user in the IDL file. - * @ingroup types - */ - class Locator_s - { - public: - - /*! - * @brief Default constructor. - */ - eProsima_user_DllExport Locator_s(); - - /*! - * @brief Default destructor. - */ - eProsima_user_DllExport ~Locator_s(); - - /*! - * @brief Copy constructor. - * @param x Reference to the object eprosima::fastdds::statistics::detail::Locator_s that will be copied. - */ - eProsima_user_DllExport Locator_s( - const Locator_s& x); - - /*! - * @brief Move constructor. - * @param x Reference to the object eprosima::fastdds::statistics::detail::Locator_s that will be copied. - */ - eProsima_user_DllExport Locator_s( - Locator_s&& x) noexcept; - - /*! - * @brief Copy assignment. - * @param x Reference to the object eprosima::fastdds::statistics::detail::Locator_s that will be copied. - */ - eProsima_user_DllExport Locator_s& operator =( - const Locator_s& x); - - /*! - * @brief Move assignment. - * @param x Reference to the object eprosima::fastdds::statistics::detail::Locator_s that will be copied. - */ - eProsima_user_DllExport Locator_s& operator =( - Locator_s&& x) noexcept; - - /*! - * @brief Comparison operator. - * @param x eprosima::fastdds::statistics::detail::Locator_s object to compare. - */ - eProsima_user_DllExport bool operator ==( - const Locator_s& x) const; - - /*! - * @brief Comparison operator. - * @param x eprosima::fastdds::statistics::detail::Locator_s object to compare. - */ - eProsima_user_DllExport bool operator !=( - const Locator_s& x) const; - - /*! - * @brief This function sets a value in member kind - * @param _kind New value for member kind - */ - eProsima_user_DllExport void kind( - int32_t _kind); - - /*! - * @brief This function returns the value of member kind - * @return Value of member kind - */ - eProsima_user_DllExport int32_t kind() const; - - /*! - * @brief This function returns a reference to member kind - * @return Reference to member kind - */ - eProsima_user_DllExport int32_t& kind(); - - - /*! - * @brief This function sets a value in member port - * @param _port New value for member port - */ - eProsima_user_DllExport void port( - uint32_t _port); - - /*! - * @brief This function returns the value of member port - * @return Value of member port - */ - eProsima_user_DllExport uint32_t port() const; - - /*! - * @brief This function returns a reference to member port - * @return Reference to member port - */ - eProsima_user_DllExport uint32_t& port(); - - - /*! - * @brief This function copies the value in member address - * @param _address New value to be copied in member address - */ - eProsima_user_DllExport void address( - const std::array& _address); - - /*! - * @brief This function moves the value in member address - * @param _address New value to be moved in member address - */ - eProsima_user_DllExport void address( - std::array&& _address); - - /*! - * @brief This function returns a constant reference to member address - * @return Constant reference to member address - */ - eProsima_user_DllExport const std::array& address() const; - - /*! - * @brief This function returns a reference to member address - * @return Reference to member address - */ - eProsima_user_DllExport std::array& address(); - - private: - - int32_t m_kind{0}; - uint32_t m_port{0}; - std::array m_address{0}; - - }; - } // namespace detail - /*! - * @brief This class represents the structure DiscoveryTime defined by the user in the IDL file. - * @ingroup types - */ - class DiscoveryTime - { - public: - - /*! - * @brief Default constructor. - */ - eProsima_user_DllExport DiscoveryTime(); - - /*! - * @brief Default destructor. - */ - eProsima_user_DllExport ~DiscoveryTime(); - - /*! - * @brief Copy constructor. - * @param x Reference to the object eprosima::fastdds::statistics::DiscoveryTime that will be copied. - */ - eProsima_user_DllExport DiscoveryTime( - const DiscoveryTime& x); - - /*! - * @brief Move constructor. - * @param x Reference to the object eprosima::fastdds::statistics::DiscoveryTime that will be copied. - */ - eProsima_user_DllExport DiscoveryTime( - DiscoveryTime&& x) noexcept; - - /*! - * @brief Copy assignment. - * @param x Reference to the object eprosima::fastdds::statistics::DiscoveryTime that will be copied. - */ - eProsima_user_DllExport DiscoveryTime& operator =( - const DiscoveryTime& x); - - /*! - * @brief Move assignment. - * @param x Reference to the object eprosima::fastdds::statistics::DiscoveryTime that will be copied. - */ - eProsima_user_DllExport DiscoveryTime& operator =( - DiscoveryTime&& x) noexcept; - - /*! - * @brief Comparison operator. - * @param x eprosima::fastdds::statistics::DiscoveryTime object to compare. - */ - eProsima_user_DllExport bool operator ==( - const DiscoveryTime& x) const; - - /*! - * @brief Comparison operator. - * @param x eprosima::fastdds::statistics::DiscoveryTime object to compare. - */ - eProsima_user_DllExport bool operator !=( - const DiscoveryTime& x) const; - - /*! - * @brief This function copies the value in member local_participant_guid - * @param _local_participant_guid New value to be copied in member local_participant_guid - */ - eProsima_user_DllExport void local_participant_guid( - const eprosima::fastdds::statistics::detail::GUID_s& _local_participant_guid); - - /*! - * @brief This function moves the value in member local_participant_guid - * @param _local_participant_guid New value to be moved in member local_participant_guid - */ - eProsima_user_DllExport void local_participant_guid( - eprosima::fastdds::statistics::detail::GUID_s&& _local_participant_guid); - - /*! - * @brief This function returns a constant reference to member local_participant_guid - * @return Constant reference to member local_participant_guid - */ - eProsima_user_DllExport const eprosima::fastdds::statistics::detail::GUID_s& local_participant_guid() const; - - /*! - * @brief This function returns a reference to member local_participant_guid - * @return Reference to member local_participant_guid - */ - eProsima_user_DllExport eprosima::fastdds::statistics::detail::GUID_s& local_participant_guid(); - - - /*! - * @brief This function copies the value in member remote_entity_guid - * @param _remote_entity_guid New value to be copied in member remote_entity_guid - */ - eProsima_user_DllExport void remote_entity_guid( - const eprosima::fastdds::statistics::detail::GUID_s& _remote_entity_guid); - - /*! - * @brief This function moves the value in member remote_entity_guid - * @param _remote_entity_guid New value to be moved in member remote_entity_guid - */ - eProsima_user_DllExport void remote_entity_guid( - eprosima::fastdds::statistics::detail::GUID_s&& _remote_entity_guid); - - /*! - * @brief This function returns a constant reference to member remote_entity_guid - * @return Constant reference to member remote_entity_guid - */ - eProsima_user_DllExport const eprosima::fastdds::statistics::detail::GUID_s& remote_entity_guid() const; - - /*! - * @brief This function returns a reference to member remote_entity_guid - * @return Reference to member remote_entity_guid - */ - eProsima_user_DllExport eprosima::fastdds::statistics::detail::GUID_s& remote_entity_guid(); - - - /*! - * @brief This function sets a value in member time - * @param _time New value for member time - */ - eProsima_user_DllExport void time( - uint64_t _time); - - /*! - * @brief This function returns the value of member time - * @return Value of member time - */ - eProsima_user_DllExport uint64_t time() const; - - /*! - * @brief This function returns a reference to member time - * @return Reference to member time - */ - eProsima_user_DllExport uint64_t& time(); - - - /*! - * @brief This function copies the value in member host - * @param _host New value to be copied in member host - */ - eProsima_user_DllExport void host( - const std::string& _host); - - /*! - * @brief This function moves the value in member host - * @param _host New value to be moved in member host - */ - eProsima_user_DllExport void host( - std::string&& _host); - - /*! - * @brief This function returns a constant reference to member host - * @return Constant reference to member host - */ - eProsima_user_DllExport const std::string& host() const; - - /*! - * @brief This function returns a reference to member host - * @return Reference to member host - */ - eProsima_user_DllExport std::string& host(); - - - /*! - * @brief This function copies the value in member user - * @param _user New value to be copied in member user - */ - eProsima_user_DllExport void user( - const std::string& _user); - - /*! - * @brief This function moves the value in member user - * @param _user New value to be moved in member user - */ - eProsima_user_DllExport void user( - std::string&& _user); - - /*! - * @brief This function returns a constant reference to member user - * @return Constant reference to member user - */ - eProsima_user_DllExport const std::string& user() const; - - /*! - * @brief This function returns a reference to member user - * @return Reference to member user - */ - eProsima_user_DllExport std::string& user(); - - - /*! - * @brief This function copies the value in member process - * @param _process New value to be copied in member process - */ - eProsima_user_DllExport void process( - const std::string& _process); - - /*! - * @brief This function moves the value in member process - * @param _process New value to be moved in member process - */ - eProsima_user_DllExport void process( - std::string&& _process); - - /*! - * @brief This function returns a constant reference to member process - * @return Constant reference to member process - */ - eProsima_user_DllExport const std::string& process() const; - - /*! - * @brief This function returns a reference to member process - * @return Reference to member process - */ - eProsima_user_DllExport std::string& process(); - - private: - - eprosima::fastdds::statistics::detail::GUID_s m_local_participant_guid; - eprosima::fastdds::statistics::detail::GUID_s m_remote_entity_guid; - uint64_t m_time{0}; - std::string m_host; - std::string m_user; - std::string m_process; - - }; - /*! - * @brief This class represents the structure EntityCount defined by the user in the IDL file. - * @ingroup types - */ - class EntityCount - { - public: - - /*! - * @brief Default constructor. - */ - eProsima_user_DllExport EntityCount(); - - /*! - * @brief Default destructor. - */ - eProsima_user_DllExport ~EntityCount(); - - /*! - * @brief Copy constructor. - * @param x Reference to the object eprosima::fastdds::statistics::EntityCount that will be copied. - */ - eProsima_user_DllExport EntityCount( - const EntityCount& x); - - /*! - * @brief Move constructor. - * @param x Reference to the object eprosima::fastdds::statistics::EntityCount that will be copied. - */ - eProsima_user_DllExport EntityCount( - EntityCount&& x) noexcept; - - /*! - * @brief Copy assignment. - * @param x Reference to the object eprosima::fastdds::statistics::EntityCount that will be copied. - */ - eProsima_user_DllExport EntityCount& operator =( - const EntityCount& x); - - /*! - * @brief Move assignment. - * @param x Reference to the object eprosima::fastdds::statistics::EntityCount that will be copied. - */ - eProsima_user_DllExport EntityCount& operator =( - EntityCount&& x) noexcept; - - /*! - * @brief Comparison operator. - * @param x eprosima::fastdds::statistics::EntityCount object to compare. - */ - eProsima_user_DllExport bool operator ==( - const EntityCount& x) const; - - /*! - * @brief Comparison operator. - * @param x eprosima::fastdds::statistics::EntityCount object to compare. - */ - eProsima_user_DllExport bool operator !=( - const EntityCount& x) const; - - /*! - * @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 sets a value in member count - * @param _count New value for member count - */ - eProsima_user_DllExport void count( - uint64_t _count); - - /*! - * @brief This function returns the value of member count - * @return Value of member count - */ - eProsima_user_DllExport uint64_t count() const; - - /*! - * @brief This function returns a reference to member count - * @return Reference to member count - */ - eProsima_user_DllExport uint64_t& count(); - - private: - - eprosima::fastdds::statistics::detail::GUID_s m_guid; - uint64_t m_count{0}; - - }; - /*! - * @brief This class represents the structure SampleIdentityCount defined by the user in the IDL file. - * @ingroup types - */ - class SampleIdentityCount - { - public: - - /*! - * @brief Default constructor. - */ - eProsima_user_DllExport SampleIdentityCount(); - - /*! - * @brief Default destructor. - */ - eProsima_user_DllExport ~SampleIdentityCount(); - - /*! - * @brief Copy constructor. - * @param x Reference to the object eprosima::fastdds::statistics::SampleIdentityCount that will be copied. - */ - eProsima_user_DllExport SampleIdentityCount( - const SampleIdentityCount& x); - - /*! - * @brief Move constructor. - * @param x Reference to the object eprosima::fastdds::statistics::SampleIdentityCount that will be copied. - */ - eProsima_user_DllExport SampleIdentityCount( - SampleIdentityCount&& x) noexcept; - - /*! - * @brief Copy assignment. - * @param x Reference to the object eprosima::fastdds::statistics::SampleIdentityCount that will be copied. - */ - eProsima_user_DllExport SampleIdentityCount& operator =( - const SampleIdentityCount& x); - - /*! - * @brief Move assignment. - * @param x Reference to the object eprosima::fastdds::statistics::SampleIdentityCount that will be copied. - */ - eProsima_user_DllExport SampleIdentityCount& operator =( - SampleIdentityCount&& x) noexcept; - - /*! - * @brief Comparison operator. - * @param x eprosima::fastdds::statistics::SampleIdentityCount object to compare. - */ - eProsima_user_DllExport bool operator ==( - const SampleIdentityCount& x) const; - - /*! - * @brief Comparison operator. - * @param x eprosima::fastdds::statistics::SampleIdentityCount object to compare. - */ - eProsima_user_DllExport bool operator !=( - const SampleIdentityCount& x) const; - - /*! - * @brief This function copies the value in member sample_id - * @param _sample_id New value to be copied in member sample_id - */ - eProsima_user_DllExport void sample_id( - const eprosima::fastdds::statistics::detail::SampleIdentity_s& _sample_id); - - /*! - * @brief This function moves the value in member sample_id - * @param _sample_id New value to be moved in member sample_id - */ - eProsima_user_DllExport void sample_id( - eprosima::fastdds::statistics::detail::SampleIdentity_s&& _sample_id); - - /*! - * @brief This function returns a constant reference to member sample_id - * @return Constant reference to member sample_id - */ - eProsima_user_DllExport const eprosima::fastdds::statistics::detail::SampleIdentity_s& sample_id() const; - - /*! - * @brief This function returns a reference to member sample_id - * @return Reference to member sample_id - */ - eProsima_user_DllExport eprosima::fastdds::statistics::detail::SampleIdentity_s& sample_id(); - - - /*! - * @brief This function sets a value in member count - * @param _count New value for member count - */ - eProsima_user_DllExport void count( - uint64_t _count); - - /*! - * @brief This function returns the value of member count - * @return Value of member count - */ - eProsima_user_DllExport uint64_t count() const; - - /*! - * @brief This function returns a reference to member count - * @return Reference to member count - */ - eProsima_user_DllExport uint64_t& count(); - - private: - - eprosima::fastdds::statistics::detail::SampleIdentity_s m_sample_id; - uint64_t m_count{0}; - - }; - /*! - * @brief This class represents the structure Entity2LocatorTraffic defined by the user in the IDL file. - * @ingroup types - */ - class Entity2LocatorTraffic - { - public: - - /*! - * @brief Default constructor. - */ - eProsima_user_DllExport Entity2LocatorTraffic(); - - /*! - * @brief Default destructor. - */ - eProsima_user_DllExport ~Entity2LocatorTraffic(); - - /*! - * @brief Copy constructor. - * @param x Reference to the object eprosima::fastdds::statistics::Entity2LocatorTraffic that will be copied. - */ - eProsima_user_DllExport Entity2LocatorTraffic( - const Entity2LocatorTraffic& x); - - /*! - * @brief Move constructor. - * @param x Reference to the object eprosima::fastdds::statistics::Entity2LocatorTraffic that will be copied. - */ - eProsima_user_DllExport Entity2LocatorTraffic( - Entity2LocatorTraffic&& x) noexcept; - - /*! - * @brief Copy assignment. - * @param x Reference to the object eprosima::fastdds::statistics::Entity2LocatorTraffic that will be copied. - */ - eProsima_user_DllExport Entity2LocatorTraffic& operator =( - const Entity2LocatorTraffic& x); - - /*! - * @brief Move assignment. - * @param x Reference to the object eprosima::fastdds::statistics::Entity2LocatorTraffic that will be copied. - */ - eProsima_user_DllExport Entity2LocatorTraffic& operator =( - Entity2LocatorTraffic&& x) noexcept; - - /*! - * @brief Comparison operator. - * @param x eprosima::fastdds::statistics::Entity2LocatorTraffic object to compare. - */ - eProsima_user_DllExport bool operator ==( - const Entity2LocatorTraffic& x) const; - - /*! - * @brief Comparison operator. - * @param x eprosima::fastdds::statistics::Entity2LocatorTraffic object to compare. - */ - eProsima_user_DllExport bool operator !=( - const Entity2LocatorTraffic& x) const; - - /*! - * @brief This function copies the value in member src_guid - * @param _src_guid New value to be copied in member src_guid - */ - eProsima_user_DllExport void src_guid( - const eprosima::fastdds::statistics::detail::GUID_s& _src_guid); - - /*! - * @brief This function moves the value in member src_guid - * @param _src_guid New value to be moved in member src_guid - */ - eProsima_user_DllExport void src_guid( - eprosima::fastdds::statistics::detail::GUID_s&& _src_guid); - - /*! - * @brief This function returns a constant reference to member src_guid - * @return Constant reference to member src_guid - */ - eProsima_user_DllExport const eprosima::fastdds::statistics::detail::GUID_s& src_guid() const; - - /*! - * @brief This function returns a reference to member src_guid - * @return Reference to member src_guid - */ - eProsima_user_DllExport eprosima::fastdds::statistics::detail::GUID_s& src_guid(); - - - /*! - * @brief This function copies the value in member dst_locator - * @param _dst_locator New value to be copied in member dst_locator - */ - eProsima_user_DllExport void dst_locator( - const eprosima::fastdds::statistics::detail::Locator_s& _dst_locator); - - /*! - * @brief This function moves the value in member dst_locator - * @param _dst_locator New value to be moved in member dst_locator - */ - eProsima_user_DllExport void dst_locator( - eprosima::fastdds::statistics::detail::Locator_s&& _dst_locator); - - /*! - * @brief This function returns a constant reference to member dst_locator - * @return Constant reference to member dst_locator - */ - eProsima_user_DllExport const eprosima::fastdds::statistics::detail::Locator_s& dst_locator() const; - - /*! - * @brief This function returns a reference to member dst_locator - * @return Reference to member dst_locator - */ - eProsima_user_DllExport eprosima::fastdds::statistics::detail::Locator_s& dst_locator(); - - - /*! - * @brief This function sets a value in member packet_count - * @param _packet_count New value for member packet_count - */ - eProsima_user_DllExport void packet_count( - uint64_t _packet_count); - - /*! - * @brief This function returns the value of member packet_count - * @return Value of member packet_count - */ - eProsima_user_DllExport uint64_t packet_count() const; - - /*! - * @brief This function returns a reference to member packet_count - * @return Reference to member packet_count - */ - eProsima_user_DllExport uint64_t& packet_count(); - - - /*! - * @brief This function sets a value in member byte_count - * @param _byte_count New value for member byte_count - */ - eProsima_user_DllExport void byte_count( - uint64_t _byte_count); - - /*! - * @brief This function returns the value of member byte_count - * @return Value of member byte_count - */ - eProsima_user_DllExport uint64_t byte_count() const; - - /*! - * @brief This function returns a reference to member byte_count - * @return Reference to member byte_count - */ - eProsima_user_DllExport uint64_t& byte_count(); - - - /*! - * @brief This function sets a value in member byte_magnitude_order - * @param _byte_magnitude_order New value for member byte_magnitude_order - */ - eProsima_user_DllExport void byte_magnitude_order( - int16_t _byte_magnitude_order); - - /*! - * @brief This function returns the value of member byte_magnitude_order - * @return Value of member byte_magnitude_order - */ - eProsima_user_DllExport int16_t byte_magnitude_order() const; - - /*! - * @brief This function returns a reference to member byte_magnitude_order - * @return Reference to member byte_magnitude_order - */ - eProsima_user_DllExport int16_t& byte_magnitude_order(); - - private: - - eprosima::fastdds::statistics::detail::GUID_s m_src_guid; - eprosima::fastdds::statistics::detail::Locator_s m_dst_locator; - uint64_t m_packet_count{0}; - uint64_t m_byte_count{0}; - int16_t m_byte_magnitude_order{0}; - - }; - /*! - * @brief This class represents the structure WriterReaderData defined by the user in the IDL file. - * @ingroup types - */ - class WriterReaderData - { - public: - - /*! - * @brief Default constructor. - */ - eProsima_user_DllExport WriterReaderData(); - - /*! - * @brief Default destructor. - */ - eProsima_user_DllExport ~WriterReaderData(); - - /*! - * @brief Copy constructor. - * @param x Reference to the object eprosima::fastdds::statistics::WriterReaderData that will be copied. - */ - eProsima_user_DllExport WriterReaderData( - const WriterReaderData& x); - - /*! - * @brief Move constructor. - * @param x Reference to the object eprosima::fastdds::statistics::WriterReaderData that will be copied. - */ - eProsima_user_DllExport WriterReaderData( - WriterReaderData&& x) noexcept; - - /*! - * @brief Copy assignment. - * @param x Reference to the object eprosima::fastdds::statistics::WriterReaderData that will be copied. - */ - eProsima_user_DllExport WriterReaderData& operator =( - const WriterReaderData& x); - - /*! - * @brief Move assignment. - * @param x Reference to the object eprosima::fastdds::statistics::WriterReaderData that will be copied. - */ - eProsima_user_DllExport WriterReaderData& operator =( - WriterReaderData&& x) noexcept; - - /*! - * @brief Comparison operator. - * @param x eprosima::fastdds::statistics::WriterReaderData object to compare. - */ - eProsima_user_DllExport bool operator ==( - const WriterReaderData& x) const; - - /*! - * @brief Comparison operator. - * @param x eprosima::fastdds::statistics::WriterReaderData object to compare. - */ - eProsima_user_DllExport bool operator !=( - const WriterReaderData& x) const; - - /*! - * @brief This function copies the value in member writer_guid - * @param _writer_guid New value to be copied in member writer_guid - */ - eProsima_user_DllExport void writer_guid( - const eprosima::fastdds::statistics::detail::GUID_s& _writer_guid); - - /*! - * @brief This function moves the value in member writer_guid - * @param _writer_guid New value to be moved in member writer_guid - */ - eProsima_user_DllExport void writer_guid( - eprosima::fastdds::statistics::detail::GUID_s&& _writer_guid); - - /*! - * @brief This function returns a constant reference to member writer_guid - * @return Constant reference to member writer_guid - */ - eProsima_user_DllExport const eprosima::fastdds::statistics::detail::GUID_s& writer_guid() const; - - /*! - * @brief This function returns a reference to member writer_guid - * @return Reference to member writer_guid - */ - eProsima_user_DllExport eprosima::fastdds::statistics::detail::GUID_s& writer_guid(); - - - /*! - * @brief This function copies the value in member reader_guid - * @param _reader_guid New value to be copied in member reader_guid - */ - eProsima_user_DllExport void reader_guid( - const eprosima::fastdds::statistics::detail::GUID_s& _reader_guid); - - /*! - * @brief This function moves the value in member reader_guid - * @param _reader_guid New value to be moved in member reader_guid - */ - eProsima_user_DllExport void reader_guid( - eprosima::fastdds::statistics::detail::GUID_s&& _reader_guid); - - /*! - * @brief This function returns a constant reference to member reader_guid - * @return Constant reference to member reader_guid - */ - eProsima_user_DllExport const eprosima::fastdds::statistics::detail::GUID_s& reader_guid() const; - - /*! - * @brief This function returns a reference to member reader_guid - * @return Reference to member reader_guid - */ - eProsima_user_DllExport eprosima::fastdds::statistics::detail::GUID_s& reader_guid(); - - - /*! - * @brief This function sets a value in member data - * @param _data New value for member data - */ - eProsima_user_DllExport void data( - float _data); - - /*! - * @brief This function returns the value of member data - * @return Value of member data - */ - eProsima_user_DllExport float data() const; - - /*! - * @brief This function returns a reference to member data - * @return Reference to member data - */ - eProsima_user_DllExport float& data(); - - private: - - eprosima::fastdds::statistics::detail::GUID_s m_writer_guid; - eprosima::fastdds::statistics::detail::GUID_s m_reader_guid; - float m_data{0.0}; - - }; - /*! - * @brief This class represents the structure Locator2LocatorData defined by the user in the IDL file. - * @ingroup types - */ - class Locator2LocatorData - { - public: - - /*! - * @brief Default constructor. - */ - eProsima_user_DllExport Locator2LocatorData(); - - /*! - * @brief Default destructor. - */ - eProsima_user_DllExport ~Locator2LocatorData(); - - /*! - * @brief Copy constructor. - * @param x Reference to the object eprosima::fastdds::statistics::Locator2LocatorData that will be copied. - */ - eProsima_user_DllExport Locator2LocatorData( - const Locator2LocatorData& x); - - /*! - * @brief Move constructor. - * @param x Reference to the object eprosima::fastdds::statistics::Locator2LocatorData that will be copied. - */ - eProsima_user_DllExport Locator2LocatorData( - Locator2LocatorData&& x) noexcept; - - /*! - * @brief Copy assignment. - * @param x Reference to the object eprosima::fastdds::statistics::Locator2LocatorData that will be copied. - */ - eProsima_user_DllExport Locator2LocatorData& operator =( - const Locator2LocatorData& x); - - /*! - * @brief Move assignment. - * @param x Reference to the object eprosima::fastdds::statistics::Locator2LocatorData that will be copied. - */ - eProsima_user_DllExport Locator2LocatorData& operator =( - Locator2LocatorData&& x) noexcept; - - /*! - * @brief Comparison operator. - * @param x eprosima::fastdds::statistics::Locator2LocatorData object to compare. - */ - eProsima_user_DllExport bool operator ==( - const Locator2LocatorData& x) const; - - /*! - * @brief Comparison operator. - * @param x eprosima::fastdds::statistics::Locator2LocatorData object to compare. - */ - eProsima_user_DllExport bool operator !=( - const Locator2LocatorData& x) const; - - /*! - * @brief This function copies the value in member src_locator - * @param _src_locator New value to be copied in member src_locator - */ - eProsima_user_DllExport void src_locator( - const eprosima::fastdds::statistics::detail::Locator_s& _src_locator); - - /*! - * @brief This function moves the value in member src_locator - * @param _src_locator New value to be moved in member src_locator - */ - eProsima_user_DllExport void src_locator( - eprosima::fastdds::statistics::detail::Locator_s&& _src_locator); - - /*! - * @brief This function returns a constant reference to member src_locator - * @return Constant reference to member src_locator - */ - eProsima_user_DllExport const eprosima::fastdds::statistics::detail::Locator_s& src_locator() const; - - /*! - * @brief This function returns a reference to member src_locator - * @return Reference to member src_locator - */ - eProsima_user_DllExport eprosima::fastdds::statistics::detail::Locator_s& src_locator(); - - - /*! - * @brief This function copies the value in member dst_locator - * @param _dst_locator New value to be copied in member dst_locator - */ - eProsima_user_DllExport void dst_locator( - const eprosima::fastdds::statistics::detail::Locator_s& _dst_locator); - - /*! - * @brief This function moves the value in member dst_locator - * @param _dst_locator New value to be moved in member dst_locator - */ - eProsima_user_DllExport void dst_locator( - eprosima::fastdds::statistics::detail::Locator_s&& _dst_locator); - - /*! - * @brief This function returns a constant reference to member dst_locator - * @return Constant reference to member dst_locator - */ - eProsima_user_DllExport const eprosima::fastdds::statistics::detail::Locator_s& dst_locator() const; - - /*! - * @brief This function returns a reference to member dst_locator - * @return Reference to member dst_locator - */ - eProsima_user_DllExport eprosima::fastdds::statistics::detail::Locator_s& dst_locator(); - - - /*! - * @brief This function sets a value in member data - * @param _data New value for member data - */ - eProsima_user_DllExport void data( - float _data); - - /*! - * @brief This function returns the value of member data - * @return Value of member data - */ - eProsima_user_DllExport float data() const; - - /*! - * @brief This function returns a reference to member data - * @return Reference to member data - */ - eProsima_user_DllExport float& data(); - - private: - - eprosima::fastdds::statistics::detail::Locator_s m_src_locator; - eprosima::fastdds::statistics::detail::Locator_s m_dst_locator; - float m_data{0.0}; - - }; - /*! - * @brief This class represents the structure EntityData defined by the user in the IDL file. - * @ingroup types - */ - class EntityData - { - public: - - /*! - * @brief Default constructor. - */ - eProsima_user_DllExport EntityData(); - - /*! - * @brief Default destructor. - */ - eProsima_user_DllExport ~EntityData(); - - /*! - * @brief Copy constructor. - * @param x Reference to the object eprosima::fastdds::statistics::EntityData that will be copied. - */ - eProsima_user_DllExport EntityData( - const EntityData& x); - - /*! - * @brief Move constructor. - * @param x Reference to the object eprosima::fastdds::statistics::EntityData that will be copied. - */ - eProsima_user_DllExport EntityData( - EntityData&& x) noexcept; - - /*! - * @brief Copy assignment. - * @param x Reference to the object eprosima::fastdds::statistics::EntityData that will be copied. - */ - eProsima_user_DllExport EntityData& operator =( - const EntityData& x); - - /*! - * @brief Move assignment. - * @param x Reference to the object eprosima::fastdds::statistics::EntityData that will be copied. - */ - eProsima_user_DllExport EntityData& operator =( - EntityData&& x) noexcept; - - /*! - * @brief Comparison operator. - * @param x eprosima::fastdds::statistics::EntityData object to compare. - */ - eProsima_user_DllExport bool operator ==( - const EntityData& x) const; - - /*! - * @brief Comparison operator. - * @param x eprosima::fastdds::statistics::EntityData object to compare. - */ - eProsima_user_DllExport bool operator !=( - const EntityData& x) const; - - /*! - * @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 sets a value in member data - * @param _data New value for member data - */ - eProsima_user_DllExport void data( - float _data); - - /*! - * @brief This function returns the value of member data - * @return Value of member data - */ - eProsima_user_DllExport float data() const; - - /*! - * @brief This function returns a reference to member data - * @return Reference to member data - */ - eProsima_user_DllExport float& data(); - - private: - - eprosima::fastdds::statistics::detail::GUID_s m_guid; - float m_data{0.0}; - - }; - /*! - * @brief This class represents the structure PhysicalData defined by the user in the IDL file. - * @ingroup types - */ - class PhysicalData - { - public: - - /*! - * @brief Default constructor. - */ - eProsima_user_DllExport PhysicalData(); - - /*! - * @brief Default destructor. - */ - eProsima_user_DllExport ~PhysicalData(); - - /*! - * @brief Copy constructor. - * @param x Reference to the object eprosima::fastdds::statistics::PhysicalData that will be copied. - */ - eProsima_user_DllExport PhysicalData( - const PhysicalData& x); - - /*! - * @brief Move constructor. - * @param x Reference to the object eprosima::fastdds::statistics::PhysicalData that will be copied. - */ - eProsima_user_DllExport PhysicalData( - PhysicalData&& x) noexcept; - - /*! - * @brief Copy assignment. - * @param x Reference to the object eprosima::fastdds::statistics::PhysicalData that will be copied. - */ - eProsima_user_DllExport PhysicalData& operator =( - const PhysicalData& x); - - /*! - * @brief Move assignment. - * @param x Reference to the object eprosima::fastdds::statistics::PhysicalData that will be copied. - */ - eProsima_user_DllExport PhysicalData& operator =( - PhysicalData&& x) noexcept; - - /*! - * @brief Comparison operator. - * @param x eprosima::fastdds::statistics::PhysicalData object to compare. - */ - eProsima_user_DllExport bool operator ==( - const PhysicalData& x) const; - - /*! - * @brief Comparison operator. - * @param x eprosima::fastdds::statistics::PhysicalData object to compare. - */ - eProsima_user_DllExport bool operator !=( - const PhysicalData& x) const; - - /*! - * @brief This function copies the value in member participant_guid - * @param _participant_guid New value to be copied in member participant_guid - */ - eProsima_user_DllExport void participant_guid( - const eprosima::fastdds::statistics::detail::GUID_s& _participant_guid); - - /*! - * @brief This function moves the value in member participant_guid - * @param _participant_guid New value to be moved in member participant_guid - */ - eProsima_user_DllExport void participant_guid( - eprosima::fastdds::statistics::detail::GUID_s&& _participant_guid); - - /*! - * @brief This function returns a constant reference to member participant_guid - * @return Constant reference to member participant_guid - */ - eProsima_user_DllExport const eprosima::fastdds::statistics::detail::GUID_s& participant_guid() const; - - /*! - * @brief This function returns a reference to member participant_guid - * @return Reference to member participant_guid - */ - eProsima_user_DllExport eprosima::fastdds::statistics::detail::GUID_s& participant_guid(); - - - /*! - * @brief This function copies the value in member host - * @param _host New value to be copied in member host - */ - eProsima_user_DllExport void host( - const std::string& _host); - - /*! - * @brief This function moves the value in member host - * @param _host New value to be moved in member host - */ - eProsima_user_DllExport void host( - std::string&& _host); - - /*! - * @brief This function returns a constant reference to member host - * @return Constant reference to member host - */ - eProsima_user_DllExport const std::string& host() const; - - /*! - * @brief This function returns a reference to member host - * @return Reference to member host - */ - eProsima_user_DllExport std::string& host(); - - - /*! - * @brief This function copies the value in member user - * @param _user New value to be copied in member user - */ - eProsima_user_DllExport void user( - const std::string& _user); - - /*! - * @brief This function moves the value in member user - * @param _user New value to be moved in member user - */ - eProsima_user_DllExport void user( - std::string&& _user); - - /*! - * @brief This function returns a constant reference to member user - * @return Constant reference to member user - */ - eProsima_user_DllExport const std::string& user() const; - - /*! - * @brief This function returns a reference to member user - * @return Reference to member user - */ - eProsima_user_DllExport std::string& user(); - - - /*! - * @brief This function copies the value in member process - * @param _process New value to be copied in member process - */ - eProsima_user_DllExport void process( - const std::string& _process); - - /*! - * @brief This function moves the value in member process - * @param _process New value to be moved in member process - */ - eProsima_user_DllExport void process( - std::string&& _process); - - /*! - * @brief This function returns a constant reference to member process - * @return Constant reference to member process - */ - eProsima_user_DllExport const std::string& process() const; - - /*! - * @brief This function returns a reference to member process - * @return Reference to member process - */ - eProsima_user_DllExport std::string& process(); - - private: - - eprosima::fastdds::statistics::detail::GUID_s m_participant_guid; - std::string m_host; - std::string m_user; - std::string m_process; - - }; - /*! - * @brief This enumeration represents the EventKind bitflags defined by the user in the IDL file. - * @ingroup types - */ - enum EventKindBits : uint32_t - { - HISTORY2HISTORY_LATENCY = 0x01ull << 0, - NETWORK_LATENCY = 0x01ull << 1, - PUBLICATION_THROUGHPUT = 0x01ull << 2, - SUBSCRIPTION_THROUGHPUT = 0x01ull << 3, - RTPS_SENT = 0x01ull << 4, - RTPS_LOST = 0x01ull << 5, - RESENT_DATAS = 0x01ull << 6, - HEARTBEAT_COUNT = 0x01ull << 7, - ACKNACK_COUNT = 0x01ull << 8, - NACKFRAG_COUNT = 0x01ull << 9, - GAP_COUNT = 0x01ull << 10, - DATA_COUNT = 0x01ull << 11, - PDP_PACKETS = 0x01ull << 12, - EDP_PACKETS = 0x01ull << 13, - DISCOVERED_ENTITY = 0x01ull << 14, - SAMPLE_DATAS = 0x01ull << 15, - PHYSICAL_DATA = 0x01ull << 16 - }; - typedef uint32_t EventKind; - /*! - * @brief This class represents the union Data defined by the user in the IDL file. - * @ingroup types - */ - class Data - { - public: - - /*! - * @brief Default constructor. - */ - eProsima_user_DllExport Data(); - - /*! - * @brief Default destructor. - */ - eProsima_user_DllExport ~Data(); - - /*! - * @brief Copy constructor. - * @param x Reference to the object eprosima::fastdds::statistics::Data that will be copied. - */ - eProsima_user_DllExport Data( - const Data& x); - - /*! - * @brief Move constructor. - * @param x Reference to the object eprosima::fastdds::statistics::Data that will be copied. - */ - eProsima_user_DllExport Data( - Data&& x) noexcept; - - /*! - * @brief Copy assignment. - * @param x Reference to the object eprosima::fastdds::statistics::Data that will be copied. - */ - eProsima_user_DllExport Data& operator =( - const Data& x); - - /*! - * @brief Move assignment. - * @param x Reference to the object eprosima::fastdds::statistics::Data that will be copied. - */ - eProsima_user_DllExport Data& operator =( - Data&& x) noexcept; - - /*! - * @brief Comparison operator. - * @param x eprosima::fastdds::statistics::Data object to compare. - */ - eProsima_user_DllExport bool operator ==( - const Data& x) const; - - /*! - * @brief Comparison operator. - * @param x eprosima::fastdds::statistics::Data object to compare. - */ - eProsima_user_DllExport bool operator !=( - const Data& 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::EventKind __d); - - /*! - * @brief This function returns the value of the discriminator. - * @return Value of the discriminator - */ - eProsima_user_DllExport eprosima::fastdds::statistics::EventKind _d() const; - - /*! - * @brief This function returns a reference to the discriminator. - * @return Reference to the discriminator. - */ - eProsima_user_DllExport eprosima::fastdds::statistics::EventKind& _d(); - - /*! - * @brief This function copies the value in member writer_reader_data - * @param _writer_reader_data New value to be copied in member writer_reader_data - */ - eProsima_user_DllExport void writer_reader_data( - const eprosima::fastdds::statistics::WriterReaderData& _writer_reader_data); - - /*! - * @brief This function moves the value in member writer_reader_data - * @param _writer_reader_data New value to be moved in member writer_reader_data - */ - eProsima_user_DllExport void writer_reader_data( - eprosima::fastdds::statistics::WriterReaderData&& _writer_reader_data); - - /*! - * @brief This function returns a constant reference to member writer_reader_data - * @return Constant reference to member writer_reader_data - * @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::WriterReaderData& writer_reader_data() const; - - /*! - * @brief This function returns a reference to member writer_reader_data - * @return Reference to member writer_reader_data - * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. - */ - eProsima_user_DllExport eprosima::fastdds::statistics::WriterReaderData& writer_reader_data(); - - - /*! - * @brief This function copies the value in member locator2locator_data - * @param _locator2locator_data New value to be copied in member locator2locator_data - */ - eProsima_user_DllExport void locator2locator_data( - const eprosima::fastdds::statistics::Locator2LocatorData& _locator2locator_data); - - /*! - * @brief This function moves the value in member locator2locator_data - * @param _locator2locator_data New value to be moved in member locator2locator_data - */ - eProsima_user_DllExport void locator2locator_data( - eprosima::fastdds::statistics::Locator2LocatorData&& _locator2locator_data); - - /*! - * @brief This function returns a constant reference to member locator2locator_data - * @return Constant reference to member locator2locator_data - * @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::Locator2LocatorData& locator2locator_data() const; - - /*! - * @brief This function returns a reference to member locator2locator_data - * @return Reference to member locator2locator_data - * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. - */ - eProsima_user_DllExport eprosima::fastdds::statistics::Locator2LocatorData& locator2locator_data(); - - - /*! - * @brief This function copies the value in member entity_data - * @param _entity_data New value to be copied in member entity_data - */ - eProsima_user_DllExport void entity_data( - const eprosima::fastdds::statistics::EntityData& _entity_data); - - /*! - * @brief This function moves the value in member entity_data - * @param _entity_data New value to be moved in member entity_data - */ - eProsima_user_DllExport void entity_data( - eprosima::fastdds::statistics::EntityData&& _entity_data); - - /*! - * @brief This function returns a constant reference to member entity_data - * @return Constant reference to member entity_data - * @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::EntityData& entity_data() const; - - /*! - * @brief This function returns a reference to member entity_data - * @return Reference to member entity_data - * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. - */ - eProsima_user_DllExport eprosima::fastdds::statistics::EntityData& entity_data(); - - - /*! - * @brief This function copies the value in member entity2locator_traffic - * @param _entity2locator_traffic New value to be copied in member entity2locator_traffic - */ - eProsima_user_DllExport void entity2locator_traffic( - const eprosima::fastdds::statistics::Entity2LocatorTraffic& _entity2locator_traffic); - - /*! - * @brief This function moves the value in member entity2locator_traffic - * @param _entity2locator_traffic New value to be moved in member entity2locator_traffic - */ - eProsima_user_DllExport void entity2locator_traffic( - eprosima::fastdds::statistics::Entity2LocatorTraffic&& _entity2locator_traffic); - - /*! - * @brief This function returns a constant reference to member entity2locator_traffic - * @return Constant reference to member entity2locator_traffic - * @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::Entity2LocatorTraffic& entity2locator_traffic() const; - - /*! - * @brief This function returns a reference to member entity2locator_traffic - * @return Reference to member entity2locator_traffic - * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. - */ - eProsima_user_DllExport eprosima::fastdds::statistics::Entity2LocatorTraffic& entity2locator_traffic(); - - - /*! - * @brief This function copies the value in member entity_count - * @param _entity_count New value to be copied in member entity_count - */ - eProsima_user_DllExport void entity_count( - const eprosima::fastdds::statistics::EntityCount& _entity_count); - - /*! - * @brief This function moves the value in member entity_count - * @param _entity_count New value to be moved in member entity_count - */ - eProsima_user_DllExport void entity_count( - eprosima::fastdds::statistics::EntityCount&& _entity_count); - - /*! - * @brief This function returns a constant reference to member entity_count - * @return Constant reference to member entity_count - * @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::EntityCount& entity_count() const; - - /*! - * @brief This function returns a reference to member entity_count - * @return Reference to member entity_count - * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. - */ - eProsima_user_DllExport eprosima::fastdds::statistics::EntityCount& entity_count(); - - - /*! - * @brief This function copies the value in member discovery_time - * @param _discovery_time New value to be copied in member discovery_time - */ - eProsima_user_DllExport void discovery_time( - const eprosima::fastdds::statistics::DiscoveryTime& _discovery_time); - - /*! - * @brief This function moves the value in member discovery_time - * @param _discovery_time New value to be moved in member discovery_time - */ - eProsima_user_DllExport void discovery_time( - eprosima::fastdds::statistics::DiscoveryTime&& _discovery_time); - - /*! - * @brief This function returns a constant reference to member discovery_time - * @return Constant reference to member discovery_time - * @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::DiscoveryTime& discovery_time() const; - - /*! - * @brief This function returns a reference to member discovery_time - * @return Reference to member discovery_time - * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. - */ - eProsima_user_DllExport eprosima::fastdds::statistics::DiscoveryTime& discovery_time(); - - - /*! - * @brief This function copies the value in member sample_identity_count - * @param _sample_identity_count New value to be copied in member sample_identity_count - */ - eProsima_user_DllExport void sample_identity_count( - const eprosima::fastdds::statistics::SampleIdentityCount& _sample_identity_count); - - /*! - * @brief This function moves the value in member sample_identity_count - * @param _sample_identity_count New value to be moved in member sample_identity_count - */ - eProsima_user_DllExport void sample_identity_count( - eprosima::fastdds::statistics::SampleIdentityCount&& _sample_identity_count); - - /*! - * @brief This function returns a constant reference to member sample_identity_count - * @return Constant reference to member sample_identity_count - * @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::SampleIdentityCount& sample_identity_count() const; - - /*! - * @brief This function returns a reference to member sample_identity_count - * @return Reference to member sample_identity_count - * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. - */ - eProsima_user_DllExport eprosima::fastdds::statistics::SampleIdentityCount& sample_identity_count(); - - - /*! - * @brief This function copies the value in member physical_data - * @param _physical_data New value to be copied in member physical_data - */ - eProsima_user_DllExport void physical_data( - const eprosima::fastdds::statistics::PhysicalData& _physical_data); - - /*! - * @brief This function moves the value in member physical_data - * @param _physical_data New value to be moved in member physical_data - */ - eProsima_user_DllExport void physical_data( - eprosima::fastdds::statistics::PhysicalData&& _physical_data); - - /*! - * @brief This function returns a constant reference to member physical_data - * @return Constant reference to member physical_data - * @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::PhysicalData& physical_data() const; - - /*! - * @brief This function returns a reference to member physical_data - * @return Reference to member physical_data - * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. - */ - eProsima_user_DllExport eprosima::fastdds::statistics::PhysicalData& physical_data(); - - private: - - eprosima::fastdds::statistics::EventKind m__d; - - eprosima::fastdds::statistics::WriterReaderData m_writer_reader_data; - eprosima::fastdds::statistics::Locator2LocatorData m_locator2locator_data; - eprosima::fastdds::statistics::EntityData m_entity_data; - eprosima::fastdds::statistics::Entity2LocatorTraffic m_entity2locator_traffic; - eprosima::fastdds::statistics::EntityCount m_entity_count; - eprosima::fastdds::statistics::DiscoveryTime m_discovery_time; - eprosima::fastdds::statistics::SampleIdentityCount m_sample_identity_count; - eprosima::fastdds::statistics::PhysicalData m_physical_data; - }; - } // namespace statistics - } // namespace fastdds + +namespace fastdds { + +namespace statistics { + +namespace detail { + + + +/*! + * @brief This class represents the structure EntityId_s defined by the user in the IDL file. + * @ingroup types + */ +class EntityId_s +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport EntityId_s(); + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~EntityId_s(); + + /*! + * @brief Copy constructor. + * @param x Reference to the object eprosima::fastdds::statistics::detail::EntityId_s that will be copied. + */ + eProsima_user_DllExport EntityId_s( + const EntityId_s& x); + + /*! + * @brief Move constructor. + * @param x Reference to the object eprosima::fastdds::statistics::detail::EntityId_s that will be copied. + */ + eProsima_user_DllExport EntityId_s( + EntityId_s&& x) noexcept; + + /*! + * @brief Copy assignment. + * @param x Reference to the object eprosima::fastdds::statistics::detail::EntityId_s that will be copied. + */ + eProsima_user_DllExport EntityId_s& operator =( + const EntityId_s& x); + + /*! + * @brief Move assignment. + * @param x Reference to the object eprosima::fastdds::statistics::detail::EntityId_s that will be copied. + */ + eProsima_user_DllExport EntityId_s& operator =( + EntityId_s&& x) noexcept; + + /*! + * @brief Comparison operator. + * @param x eprosima::fastdds::statistics::detail::EntityId_s object to compare. + */ + eProsima_user_DllExport bool operator ==( + const EntityId_s& x) const; + + /*! + * @brief Comparison operator. + * @param x eprosima::fastdds::statistics::detail::EntityId_s object to compare. + */ + eProsima_user_DllExport bool operator !=( + const EntityId_s& x) const; + + /*! + * @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 std::array& _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( + std::array&& _value); + + /*! + * @brief This function returns a constant reference to member value + * @return Constant reference to member value + */ + eProsima_user_DllExport const std::array& value() const; + + /*! + * @brief This function returns a reference to member value + * @return Reference to member value + */ + eProsima_user_DllExport std::array& value(); + +private: + + std::array m_value{0}; + +}; + + +/*! + * @brief This class represents the structure GuidPrefix_s defined by the user in the IDL file. + * @ingroup types + */ +class GuidPrefix_s +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport GuidPrefix_s(); + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~GuidPrefix_s(); + + /*! + * @brief Copy constructor. + * @param x Reference to the object eprosima::fastdds::statistics::detail::GuidPrefix_s that will be copied. + */ + eProsima_user_DllExport GuidPrefix_s( + const GuidPrefix_s& x); + + /*! + * @brief Move constructor. + * @param x Reference to the object eprosima::fastdds::statistics::detail::GuidPrefix_s that will be copied. + */ + eProsima_user_DllExport GuidPrefix_s( + GuidPrefix_s&& x) noexcept; + + /*! + * @brief Copy assignment. + * @param x Reference to the object eprosima::fastdds::statistics::detail::GuidPrefix_s that will be copied. + */ + eProsima_user_DllExport GuidPrefix_s& operator =( + const GuidPrefix_s& x); + + /*! + * @brief Move assignment. + * @param x Reference to the object eprosima::fastdds::statistics::detail::GuidPrefix_s that will be copied. + */ + eProsima_user_DllExport GuidPrefix_s& operator =( + GuidPrefix_s&& x) noexcept; + + /*! + * @brief Comparison operator. + * @param x eprosima::fastdds::statistics::detail::GuidPrefix_s object to compare. + */ + eProsima_user_DllExport bool operator ==( + const GuidPrefix_s& x) const; + + /*! + * @brief Comparison operator. + * @param x eprosima::fastdds::statistics::detail::GuidPrefix_s object to compare. + */ + eProsima_user_DllExport bool operator !=( + const GuidPrefix_s& x) const; + + /*! + * @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 std::array& _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( + std::array&& _value); + + /*! + * @brief This function returns a constant reference to member value + * @return Constant reference to member value + */ + eProsima_user_DllExport const std::array& value() const; + + /*! + * @brief This function returns a reference to member value + * @return Reference to member value + */ + eProsima_user_DllExport std::array& value(); + +private: + + std::array m_value{0}; + +}; + + +/*! + * @brief This class represents the structure GUID_s defined by the user in the IDL file. + * @ingroup types + */ +class GUID_s +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport GUID_s(); + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~GUID_s(); + + /*! + * @brief Copy constructor. + * @param x Reference to the object eprosima::fastdds::statistics::detail::GUID_s that will be copied. + */ + eProsima_user_DllExport GUID_s( + const GUID_s& x); + + /*! + * @brief Move constructor. + * @param x Reference to the object eprosima::fastdds::statistics::detail::GUID_s that will be copied. + */ + eProsima_user_DllExport GUID_s( + GUID_s&& x) noexcept; + + /*! + * @brief Copy assignment. + * @param x Reference to the object eprosima::fastdds::statistics::detail::GUID_s that will be copied. + */ + eProsima_user_DllExport GUID_s& operator =( + const GUID_s& x); + + /*! + * @brief Move assignment. + * @param x Reference to the object eprosima::fastdds::statistics::detail::GUID_s that will be copied. + */ + eProsima_user_DllExport GUID_s& operator =( + GUID_s&& x) noexcept; + + /*! + * @brief Comparison operator. + * @param x eprosima::fastdds::statistics::detail::GUID_s object to compare. + */ + eProsima_user_DllExport bool operator ==( + const GUID_s& x) const; + + /*! + * @brief Comparison operator. + * @param x eprosima::fastdds::statistics::detail::GUID_s object to compare. + */ + eProsima_user_DllExport bool operator !=( + const GUID_s& x) const; + + /*! + * @brief This function copies the value in member guidPrefix + * @param _guidPrefix New value to be copied in member guidPrefix + */ + eProsima_user_DllExport void guidPrefix( + const eprosima::fastdds::statistics::detail::GuidPrefix_s& _guidPrefix); + + /*! + * @brief This function moves the value in member guidPrefix + * @param _guidPrefix New value to be moved in member guidPrefix + */ + eProsima_user_DllExport void guidPrefix( + eprosima::fastdds::statistics::detail::GuidPrefix_s&& _guidPrefix); + + /*! + * @brief This function returns a constant reference to member guidPrefix + * @return Constant reference to member guidPrefix + */ + eProsima_user_DllExport const eprosima::fastdds::statistics::detail::GuidPrefix_s& guidPrefix() const; + + /*! + * @brief This function returns a reference to member guidPrefix + * @return Reference to member guidPrefix + */ + eProsima_user_DllExport eprosima::fastdds::statistics::detail::GuidPrefix_s& guidPrefix(); + + + /*! + * @brief This function copies the value in member entityId + * @param _entityId New value to be copied in member entityId + */ + eProsima_user_DllExport void entityId( + const eprosima::fastdds::statistics::detail::EntityId_s& _entityId); + + /*! + * @brief This function moves the value in member entityId + * @param _entityId New value to be moved in member entityId + */ + eProsima_user_DllExport void entityId( + eprosima::fastdds::statistics::detail::EntityId_s&& _entityId); + + /*! + * @brief This function returns a constant reference to member entityId + * @return Constant reference to member entityId + */ + eProsima_user_DllExport const eprosima::fastdds::statistics::detail::EntityId_s& entityId() const; + + /*! + * @brief This function returns a reference to member entityId + * @return Reference to member entityId + */ + eProsima_user_DllExport eprosima::fastdds::statistics::detail::EntityId_s& entityId(); + +private: + + eprosima::fastdds::statistics::detail::GuidPrefix_s m_guidPrefix; + eprosima::fastdds::statistics::detail::EntityId_s m_entityId; + +}; + + +/*! + * @brief This class represents the structure SequenceNumber_s defined by the user in the IDL file. + * @ingroup types + */ +class SequenceNumber_s +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport SequenceNumber_s(); + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~SequenceNumber_s(); + + /*! + * @brief Copy constructor. + * @param x Reference to the object eprosima::fastdds::statistics::detail::SequenceNumber_s that will be copied. + */ + eProsima_user_DllExport SequenceNumber_s( + const SequenceNumber_s& x); + + /*! + * @brief Move constructor. + * @param x Reference to the object eprosima::fastdds::statistics::detail::SequenceNumber_s that will be copied. + */ + eProsima_user_DllExport SequenceNumber_s( + SequenceNumber_s&& x) noexcept; + + /*! + * @brief Copy assignment. + * @param x Reference to the object eprosima::fastdds::statistics::detail::SequenceNumber_s that will be copied. + */ + eProsima_user_DllExport SequenceNumber_s& operator =( + const SequenceNumber_s& x); + + /*! + * @brief Move assignment. + * @param x Reference to the object eprosima::fastdds::statistics::detail::SequenceNumber_s that will be copied. + */ + eProsima_user_DllExport SequenceNumber_s& operator =( + SequenceNumber_s&& x) noexcept; + + /*! + * @brief Comparison operator. + * @param x eprosima::fastdds::statistics::detail::SequenceNumber_s object to compare. + */ + eProsima_user_DllExport bool operator ==( + const SequenceNumber_s& x) const; + + /*! + * @brief Comparison operator. + * @param x eprosima::fastdds::statistics::detail::SequenceNumber_s object to compare. + */ + eProsima_user_DllExport bool operator !=( + const SequenceNumber_s& x) const; + + /*! + * @brief This function sets a value in member high + * @param _high New value for member high + */ + eProsima_user_DllExport void high( + int32_t _high); + + /*! + * @brief This function returns the value of member high + * @return Value of member high + */ + eProsima_user_DllExport int32_t high() const; + + /*! + * @brief This function returns a reference to member high + * @return Reference to member high + */ + eProsima_user_DllExport int32_t& high(); + + + /*! + * @brief This function sets a value in member low + * @param _low New value for member low + */ + eProsima_user_DllExport void low( + uint32_t _low); + + /*! + * @brief This function returns the value of member low + * @return Value of member low + */ + eProsima_user_DllExport uint32_t low() const; + + /*! + * @brief This function returns a reference to member low + * @return Reference to member low + */ + eProsima_user_DllExport uint32_t& low(); + +private: + + int32_t m_high{0}; + uint32_t m_low{0}; + +}; + + +/*! + * @brief This class represents the structure SampleIdentity_s defined by the user in the IDL file. + * @ingroup types + */ +class SampleIdentity_s +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport SampleIdentity_s(); + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~SampleIdentity_s(); + + /*! + * @brief Copy constructor. + * @param x Reference to the object eprosima::fastdds::statistics::detail::SampleIdentity_s that will be copied. + */ + eProsima_user_DllExport SampleIdentity_s( + const SampleIdentity_s& x); + + /*! + * @brief Move constructor. + * @param x Reference to the object eprosima::fastdds::statistics::detail::SampleIdentity_s that will be copied. + */ + eProsima_user_DllExport SampleIdentity_s( + SampleIdentity_s&& x) noexcept; + + /*! + * @brief Copy assignment. + * @param x Reference to the object eprosima::fastdds::statistics::detail::SampleIdentity_s that will be copied. + */ + eProsima_user_DllExport SampleIdentity_s& operator =( + const SampleIdentity_s& x); + + /*! + * @brief Move assignment. + * @param x Reference to the object eprosima::fastdds::statistics::detail::SampleIdentity_s that will be copied. + */ + eProsima_user_DllExport SampleIdentity_s& operator =( + SampleIdentity_s&& x) noexcept; + + /*! + * @brief Comparison operator. + * @param x eprosima::fastdds::statistics::detail::SampleIdentity_s object to compare. + */ + eProsima_user_DllExport bool operator ==( + const SampleIdentity_s& x) const; + + /*! + * @brief Comparison operator. + * @param x eprosima::fastdds::statistics::detail::SampleIdentity_s object to compare. + */ + eProsima_user_DllExport bool operator !=( + const SampleIdentity_s& x) const; + + /*! + * @brief This function copies the value in member writer_guid + * @param _writer_guid New value to be copied in member writer_guid + */ + eProsima_user_DllExport void writer_guid( + const eprosima::fastdds::statistics::detail::GUID_s& _writer_guid); + + /*! + * @brief This function moves the value in member writer_guid + * @param _writer_guid New value to be moved in member writer_guid + */ + eProsima_user_DllExport void writer_guid( + eprosima::fastdds::statistics::detail::GUID_s&& _writer_guid); + + /*! + * @brief This function returns a constant reference to member writer_guid + * @return Constant reference to member writer_guid + */ + eProsima_user_DllExport const eprosima::fastdds::statistics::detail::GUID_s& writer_guid() const; + + /*! + * @brief This function returns a reference to member writer_guid + * @return Reference to member writer_guid + */ + eProsima_user_DllExport eprosima::fastdds::statistics::detail::GUID_s& writer_guid(); + + + /*! + * @brief This function copies the value in member sequence_number + * @param _sequence_number New value to be copied in member sequence_number + */ + eProsima_user_DllExport void sequence_number( + const eprosima::fastdds::statistics::detail::SequenceNumber_s& _sequence_number); + + /*! + * @brief This function moves the value in member sequence_number + * @param _sequence_number New value to be moved in member sequence_number + */ + eProsima_user_DllExport void sequence_number( + eprosima::fastdds::statistics::detail::SequenceNumber_s&& _sequence_number); + + /*! + * @brief This function returns a constant reference to member sequence_number + * @return Constant reference to member sequence_number + */ + eProsima_user_DllExport const eprosima::fastdds::statistics::detail::SequenceNumber_s& sequence_number() const; + + /*! + * @brief This function returns a reference to member sequence_number + * @return Reference to member sequence_number + */ + eProsima_user_DllExport eprosima::fastdds::statistics::detail::SequenceNumber_s& sequence_number(); + +private: + + eprosima::fastdds::statistics::detail::GUID_s m_writer_guid; + eprosima::fastdds::statistics::detail::SequenceNumber_s m_sequence_number; + +}; + + +/*! + * @brief This class represents the structure Locator_s defined by the user in the IDL file. + * @ingroup types + */ +class Locator_s +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Locator_s(); + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Locator_s(); + + /*! + * @brief Copy constructor. + * @param x Reference to the object eprosima::fastdds::statistics::detail::Locator_s that will be copied. + */ + eProsima_user_DllExport Locator_s( + const Locator_s& x); + + /*! + * @brief Move constructor. + * @param x Reference to the object eprosima::fastdds::statistics::detail::Locator_s that will be copied. + */ + eProsima_user_DllExport Locator_s( + Locator_s&& x) noexcept; + + /*! + * @brief Copy assignment. + * @param x Reference to the object eprosima::fastdds::statistics::detail::Locator_s that will be copied. + */ + eProsima_user_DllExport Locator_s& operator =( + const Locator_s& x); + + /*! + * @brief Move assignment. + * @param x Reference to the object eprosima::fastdds::statistics::detail::Locator_s that will be copied. + */ + eProsima_user_DllExport Locator_s& operator =( + Locator_s&& x) noexcept; + + /*! + * @brief Comparison operator. + * @param x eprosima::fastdds::statistics::detail::Locator_s object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Locator_s& x) const; + + /*! + * @brief Comparison operator. + * @param x eprosima::fastdds::statistics::detail::Locator_s object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Locator_s& x) const; + + /*! + * @brief This function sets a value in member kind + * @param _kind New value for member kind + */ + eProsima_user_DllExport void kind( + int32_t _kind); + + /*! + * @brief This function returns the value of member kind + * @return Value of member kind + */ + eProsima_user_DllExport int32_t kind() const; + + /*! + * @brief This function returns a reference to member kind + * @return Reference to member kind + */ + eProsima_user_DllExport int32_t& kind(); + + + /*! + * @brief This function sets a value in member port + * @param _port New value for member port + */ + eProsima_user_DllExport void port( + uint32_t _port); + + /*! + * @brief This function returns the value of member port + * @return Value of member port + */ + eProsima_user_DllExport uint32_t port() const; + + /*! + * @brief This function returns a reference to member port + * @return Reference to member port + */ + eProsima_user_DllExport uint32_t& port(); + + + /*! + * @brief This function copies the value in member address + * @param _address New value to be copied in member address + */ + eProsima_user_DllExport void address( + const std::array& _address); + + /*! + * @brief This function moves the value in member address + * @param _address New value to be moved in member address + */ + eProsima_user_DllExport void address( + std::array&& _address); + + /*! + * @brief This function returns a constant reference to member address + * @return Constant reference to member address + */ + eProsima_user_DllExport const std::array& address() const; + + /*! + * @brief This function returns a reference to member address + * @return Reference to member address + */ + eProsima_user_DllExport std::array& address(); + +private: + + int32_t m_kind{0}; + uint32_t m_port{0}; + std::array m_address{0}; + +}; + +} // namespace detail + + +/*! + * @brief This class represents the structure DiscoveryTime defined by the user in the IDL file. + * @ingroup types + */ +class DiscoveryTime +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport DiscoveryTime(); + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~DiscoveryTime(); + + /*! + * @brief Copy constructor. + * @param x Reference to the object eprosima::fastdds::statistics::DiscoveryTime that will be copied. + */ + eProsima_user_DllExport DiscoveryTime( + const DiscoveryTime& x); + + /*! + * @brief Move constructor. + * @param x Reference to the object eprosima::fastdds::statistics::DiscoveryTime that will be copied. + */ + eProsima_user_DllExport DiscoveryTime( + DiscoveryTime&& x) noexcept; + + /*! + * @brief Copy assignment. + * @param x Reference to the object eprosima::fastdds::statistics::DiscoveryTime that will be copied. + */ + eProsima_user_DllExport DiscoveryTime& operator =( + const DiscoveryTime& x); + + /*! + * @brief Move assignment. + * @param x Reference to the object eprosima::fastdds::statistics::DiscoveryTime that will be copied. + */ + eProsima_user_DllExport DiscoveryTime& operator =( + DiscoveryTime&& x) noexcept; + + /*! + * @brief Comparison operator. + * @param x eprosima::fastdds::statistics::DiscoveryTime object to compare. + */ + eProsima_user_DllExport bool operator ==( + const DiscoveryTime& x) const; + + /*! + * @brief Comparison operator. + * @param x eprosima::fastdds::statistics::DiscoveryTime object to compare. + */ + eProsima_user_DllExport bool operator !=( + const DiscoveryTime& x) const; + + /*! + * @brief This function copies the value in member local_participant_guid + * @param _local_participant_guid New value to be copied in member local_participant_guid + */ + eProsima_user_DllExport void local_participant_guid( + const eprosima::fastdds::statistics::detail::GUID_s& _local_participant_guid); + + /*! + * @brief This function moves the value in member local_participant_guid + * @param _local_participant_guid New value to be moved in member local_participant_guid + */ + eProsima_user_DllExport void local_participant_guid( + eprosima::fastdds::statistics::detail::GUID_s&& _local_participant_guid); + + /*! + * @brief This function returns a constant reference to member local_participant_guid + * @return Constant reference to member local_participant_guid + */ + eProsima_user_DllExport const eprosima::fastdds::statistics::detail::GUID_s& local_participant_guid() const; + + /*! + * @brief This function returns a reference to member local_participant_guid + * @return Reference to member local_participant_guid + */ + eProsima_user_DllExport eprosima::fastdds::statistics::detail::GUID_s& local_participant_guid(); + + + /*! + * @brief This function copies the value in member remote_entity_guid + * @param _remote_entity_guid New value to be copied in member remote_entity_guid + */ + eProsima_user_DllExport void remote_entity_guid( + const eprosima::fastdds::statistics::detail::GUID_s& _remote_entity_guid); + + /*! + * @brief This function moves the value in member remote_entity_guid + * @param _remote_entity_guid New value to be moved in member remote_entity_guid + */ + eProsima_user_DllExport void remote_entity_guid( + eprosima::fastdds::statistics::detail::GUID_s&& _remote_entity_guid); + + /*! + * @brief This function returns a constant reference to member remote_entity_guid + * @return Constant reference to member remote_entity_guid + */ + eProsima_user_DllExport const eprosima::fastdds::statistics::detail::GUID_s& remote_entity_guid() const; + + /*! + * @brief This function returns a reference to member remote_entity_guid + * @return Reference to member remote_entity_guid + */ + eProsima_user_DllExport eprosima::fastdds::statistics::detail::GUID_s& remote_entity_guid(); + + + /*! + * @brief This function sets a value in member time + * @param _time New value for member time + */ + eProsima_user_DllExport void time( + uint64_t _time); + + /*! + * @brief This function returns the value of member time + * @return Value of member time + */ + eProsima_user_DllExport uint64_t time() const; + + /*! + * @brief This function returns a reference to member time + * @return Reference to member time + */ + eProsima_user_DllExport uint64_t& time(); + + + /*! + * @brief This function copies the value in member host + * @param _host New value to be copied in member host + */ + eProsima_user_DllExport void host( + const std::string& _host); + + /*! + * @brief This function moves the value in member host + * @param _host New value to be moved in member host + */ + eProsima_user_DllExport void host( + std::string&& _host); + + /*! + * @brief This function returns a constant reference to member host + * @return Constant reference to member host + */ + eProsima_user_DllExport const std::string& host() const; + + /*! + * @brief This function returns a reference to member host + * @return Reference to member host + */ + eProsima_user_DllExport std::string& host(); + + + /*! + * @brief This function copies the value in member user + * @param _user New value to be copied in member user + */ + eProsima_user_DllExport void user( + const std::string& _user); + + /*! + * @brief This function moves the value in member user + * @param _user New value to be moved in member user + */ + eProsima_user_DllExport void user( + std::string&& _user); + + /*! + * @brief This function returns a constant reference to member user + * @return Constant reference to member user + */ + eProsima_user_DllExport const std::string& user() const; + + /*! + * @brief This function returns a reference to member user + * @return Reference to member user + */ + eProsima_user_DllExport std::string& user(); + + + /*! + * @brief This function copies the value in member process + * @param _process New value to be copied in member process + */ + eProsima_user_DllExport void process( + const std::string& _process); + + /*! + * @brief This function moves the value in member process + * @param _process New value to be moved in member process + */ + eProsima_user_DllExport void process( + std::string&& _process); + + /*! + * @brief This function returns a constant reference to member process + * @return Constant reference to member process + */ + eProsima_user_DllExport const std::string& process() const; + + /*! + * @brief This function returns a reference to member process + * @return Reference to member process + */ + eProsima_user_DllExport std::string& process(); + +private: + + eprosima::fastdds::statistics::detail::GUID_s m_local_participant_guid; + eprosima::fastdds::statistics::detail::GUID_s m_remote_entity_guid; + uint64_t m_time{0}; + std::string m_host; + std::string m_user; + std::string m_process; + +}; + + +/*! + * @brief This class represents the structure EntityCount defined by the user in the IDL file. + * @ingroup types + */ +class EntityCount +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport EntityCount(); + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~EntityCount(); + + /*! + * @brief Copy constructor. + * @param x Reference to the object eprosima::fastdds::statistics::EntityCount that will be copied. + */ + eProsima_user_DllExport EntityCount( + const EntityCount& x); + + /*! + * @brief Move constructor. + * @param x Reference to the object eprosima::fastdds::statistics::EntityCount that will be copied. + */ + eProsima_user_DllExport EntityCount( + EntityCount&& x) noexcept; + + /*! + * @brief Copy assignment. + * @param x Reference to the object eprosima::fastdds::statistics::EntityCount that will be copied. + */ + eProsima_user_DllExport EntityCount& operator =( + const EntityCount& x); + + /*! + * @brief Move assignment. + * @param x Reference to the object eprosima::fastdds::statistics::EntityCount that will be copied. + */ + eProsima_user_DllExport EntityCount& operator =( + EntityCount&& x) noexcept; + + /*! + * @brief Comparison operator. + * @param x eprosima::fastdds::statistics::EntityCount object to compare. + */ + eProsima_user_DllExport bool operator ==( + const EntityCount& x) const; + + /*! + * @brief Comparison operator. + * @param x eprosima::fastdds::statistics::EntityCount object to compare. + */ + eProsima_user_DllExport bool operator !=( + const EntityCount& x) const; + + /*! + * @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 sets a value in member count + * @param _count New value for member count + */ + eProsima_user_DllExport void count( + uint64_t _count); + + /*! + * @brief This function returns the value of member count + * @return Value of member count + */ + eProsima_user_DllExport uint64_t count() const; + + /*! + * @brief This function returns a reference to member count + * @return Reference to member count + */ + eProsima_user_DllExport uint64_t& count(); + +private: + + eprosima::fastdds::statistics::detail::GUID_s m_guid; + uint64_t m_count{0}; + +}; + + +/*! + * @brief This class represents the structure SampleIdentityCount defined by the user in the IDL file. + * @ingroup types + */ +class SampleIdentityCount +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport SampleIdentityCount(); + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~SampleIdentityCount(); + + /*! + * @brief Copy constructor. + * @param x Reference to the object eprosima::fastdds::statistics::SampleIdentityCount that will be copied. + */ + eProsima_user_DllExport SampleIdentityCount( + const SampleIdentityCount& x); + + /*! + * @brief Move constructor. + * @param x Reference to the object eprosima::fastdds::statistics::SampleIdentityCount that will be copied. + */ + eProsima_user_DllExport SampleIdentityCount( + SampleIdentityCount&& x) noexcept; + + /*! + * @brief Copy assignment. + * @param x Reference to the object eprosima::fastdds::statistics::SampleIdentityCount that will be copied. + */ + eProsima_user_DllExport SampleIdentityCount& operator =( + const SampleIdentityCount& x); + + /*! + * @brief Move assignment. + * @param x Reference to the object eprosima::fastdds::statistics::SampleIdentityCount that will be copied. + */ + eProsima_user_DllExport SampleIdentityCount& operator =( + SampleIdentityCount&& x) noexcept; + + /*! + * @brief Comparison operator. + * @param x eprosima::fastdds::statistics::SampleIdentityCount object to compare. + */ + eProsima_user_DllExport bool operator ==( + const SampleIdentityCount& x) const; + + /*! + * @brief Comparison operator. + * @param x eprosima::fastdds::statistics::SampleIdentityCount object to compare. + */ + eProsima_user_DllExport bool operator !=( + const SampleIdentityCount& x) const; + + /*! + * @brief This function copies the value in member sample_id + * @param _sample_id New value to be copied in member sample_id + */ + eProsima_user_DllExport void sample_id( + const eprosima::fastdds::statistics::detail::SampleIdentity_s& _sample_id); + + /*! + * @brief This function moves the value in member sample_id + * @param _sample_id New value to be moved in member sample_id + */ + eProsima_user_DllExport void sample_id( + eprosima::fastdds::statistics::detail::SampleIdentity_s&& _sample_id); + + /*! + * @brief This function returns a constant reference to member sample_id + * @return Constant reference to member sample_id + */ + eProsima_user_DllExport const eprosima::fastdds::statistics::detail::SampleIdentity_s& sample_id() const; + + /*! + * @brief This function returns a reference to member sample_id + * @return Reference to member sample_id + */ + eProsima_user_DllExport eprosima::fastdds::statistics::detail::SampleIdentity_s& sample_id(); + + + /*! + * @brief This function sets a value in member count + * @param _count New value for member count + */ + eProsima_user_DllExport void count( + uint64_t _count); + + /*! + * @brief This function returns the value of member count + * @return Value of member count + */ + eProsima_user_DllExport uint64_t count() const; + + /*! + * @brief This function returns a reference to member count + * @return Reference to member count + */ + eProsima_user_DllExport uint64_t& count(); + +private: + + eprosima::fastdds::statistics::detail::SampleIdentity_s m_sample_id; + uint64_t m_count{0}; + +}; + + +/*! + * @brief This class represents the structure Entity2LocatorTraffic defined by the user in the IDL file. + * @ingroup types + */ +class Entity2LocatorTraffic +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Entity2LocatorTraffic(); + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Entity2LocatorTraffic(); + + /*! + * @brief Copy constructor. + * @param x Reference to the object eprosima::fastdds::statistics::Entity2LocatorTraffic that will be copied. + */ + eProsima_user_DllExport Entity2LocatorTraffic( + const Entity2LocatorTraffic& x); + + /*! + * @brief Move constructor. + * @param x Reference to the object eprosima::fastdds::statistics::Entity2LocatorTraffic that will be copied. + */ + eProsima_user_DllExport Entity2LocatorTraffic( + Entity2LocatorTraffic&& x) noexcept; + + /*! + * @brief Copy assignment. + * @param x Reference to the object eprosima::fastdds::statistics::Entity2LocatorTraffic that will be copied. + */ + eProsima_user_DllExport Entity2LocatorTraffic& operator =( + const Entity2LocatorTraffic& x); + + /*! + * @brief Move assignment. + * @param x Reference to the object eprosima::fastdds::statistics::Entity2LocatorTraffic that will be copied. + */ + eProsima_user_DllExport Entity2LocatorTraffic& operator =( + Entity2LocatorTraffic&& x) noexcept; + + /*! + * @brief Comparison operator. + * @param x eprosima::fastdds::statistics::Entity2LocatorTraffic object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Entity2LocatorTraffic& x) const; + + /*! + * @brief Comparison operator. + * @param x eprosima::fastdds::statistics::Entity2LocatorTraffic object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Entity2LocatorTraffic& x) const; + + /*! + * @brief This function copies the value in member src_guid + * @param _src_guid New value to be copied in member src_guid + */ + eProsima_user_DllExport void src_guid( + const eprosima::fastdds::statistics::detail::GUID_s& _src_guid); + + /*! + * @brief This function moves the value in member src_guid + * @param _src_guid New value to be moved in member src_guid + */ + eProsima_user_DllExport void src_guid( + eprosima::fastdds::statistics::detail::GUID_s&& _src_guid); + + /*! + * @brief This function returns a constant reference to member src_guid + * @return Constant reference to member src_guid + */ + eProsima_user_DllExport const eprosima::fastdds::statistics::detail::GUID_s& src_guid() const; + + /*! + * @brief This function returns a reference to member src_guid + * @return Reference to member src_guid + */ + eProsima_user_DllExport eprosima::fastdds::statistics::detail::GUID_s& src_guid(); + + + /*! + * @brief This function copies the value in member dst_locator + * @param _dst_locator New value to be copied in member dst_locator + */ + eProsima_user_DllExport void dst_locator( + const eprosima::fastdds::statistics::detail::Locator_s& _dst_locator); + + /*! + * @brief This function moves the value in member dst_locator + * @param _dst_locator New value to be moved in member dst_locator + */ + eProsima_user_DllExport void dst_locator( + eprosima::fastdds::statistics::detail::Locator_s&& _dst_locator); + + /*! + * @brief This function returns a constant reference to member dst_locator + * @return Constant reference to member dst_locator + */ + eProsima_user_DllExport const eprosima::fastdds::statistics::detail::Locator_s& dst_locator() const; + + /*! + * @brief This function returns a reference to member dst_locator + * @return Reference to member dst_locator + */ + eProsima_user_DllExport eprosima::fastdds::statistics::detail::Locator_s& dst_locator(); + + + /*! + * @brief This function sets a value in member packet_count + * @param _packet_count New value for member packet_count + */ + eProsima_user_DllExport void packet_count( + uint64_t _packet_count); + + /*! + * @brief This function returns the value of member packet_count + * @return Value of member packet_count + */ + eProsima_user_DllExport uint64_t packet_count() const; + + /*! + * @brief This function returns a reference to member packet_count + * @return Reference to member packet_count + */ + eProsima_user_DllExport uint64_t& packet_count(); + + + /*! + * @brief This function sets a value in member byte_count + * @param _byte_count New value for member byte_count + */ + eProsima_user_DllExport void byte_count( + uint64_t _byte_count); + + /*! + * @brief This function returns the value of member byte_count + * @return Value of member byte_count + */ + eProsima_user_DllExport uint64_t byte_count() const; + + /*! + * @brief This function returns a reference to member byte_count + * @return Reference to member byte_count + */ + eProsima_user_DllExport uint64_t& byte_count(); + + + /*! + * @brief This function sets a value in member byte_magnitude_order + * @param _byte_magnitude_order New value for member byte_magnitude_order + */ + eProsima_user_DllExport void byte_magnitude_order( + int16_t _byte_magnitude_order); + + /*! + * @brief This function returns the value of member byte_magnitude_order + * @return Value of member byte_magnitude_order + */ + eProsima_user_DllExport int16_t byte_magnitude_order() const; + + /*! + * @brief This function returns a reference to member byte_magnitude_order + * @return Reference to member byte_magnitude_order + */ + eProsima_user_DllExport int16_t& byte_magnitude_order(); + +private: + + eprosima::fastdds::statistics::detail::GUID_s m_src_guid; + eprosima::fastdds::statistics::detail::Locator_s m_dst_locator; + uint64_t m_packet_count{0}; + uint64_t m_byte_count{0}; + int16_t m_byte_magnitude_order{0}; + +}; + + +/*! + * @brief This class represents the structure WriterReaderData defined by the user in the IDL file. + * @ingroup types + */ +class WriterReaderData +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport WriterReaderData(); + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~WriterReaderData(); + + /*! + * @brief Copy constructor. + * @param x Reference to the object eprosima::fastdds::statistics::WriterReaderData that will be copied. + */ + eProsima_user_DllExport WriterReaderData( + const WriterReaderData& x); + + /*! + * @brief Move constructor. + * @param x Reference to the object eprosima::fastdds::statistics::WriterReaderData that will be copied. + */ + eProsima_user_DllExport WriterReaderData( + WriterReaderData&& x) noexcept; + + /*! + * @brief Copy assignment. + * @param x Reference to the object eprosima::fastdds::statistics::WriterReaderData that will be copied. + */ + eProsima_user_DllExport WriterReaderData& operator =( + const WriterReaderData& x); + + /*! + * @brief Move assignment. + * @param x Reference to the object eprosima::fastdds::statistics::WriterReaderData that will be copied. + */ + eProsima_user_DllExport WriterReaderData& operator =( + WriterReaderData&& x) noexcept; + + /*! + * @brief Comparison operator. + * @param x eprosima::fastdds::statistics::WriterReaderData object to compare. + */ + eProsima_user_DllExport bool operator ==( + const WriterReaderData& x) const; + + /*! + * @brief Comparison operator. + * @param x eprosima::fastdds::statistics::WriterReaderData object to compare. + */ + eProsima_user_DllExport bool operator !=( + const WriterReaderData& x) const; + + /*! + * @brief This function copies the value in member writer_guid + * @param _writer_guid New value to be copied in member writer_guid + */ + eProsima_user_DllExport void writer_guid( + const eprosima::fastdds::statistics::detail::GUID_s& _writer_guid); + + /*! + * @brief This function moves the value in member writer_guid + * @param _writer_guid New value to be moved in member writer_guid + */ + eProsima_user_DllExport void writer_guid( + eprosima::fastdds::statistics::detail::GUID_s&& _writer_guid); + + /*! + * @brief This function returns a constant reference to member writer_guid + * @return Constant reference to member writer_guid + */ + eProsima_user_DllExport const eprosima::fastdds::statistics::detail::GUID_s& writer_guid() const; + + /*! + * @brief This function returns a reference to member writer_guid + * @return Reference to member writer_guid + */ + eProsima_user_DllExport eprosima::fastdds::statistics::detail::GUID_s& writer_guid(); + + + /*! + * @brief This function copies the value in member reader_guid + * @param _reader_guid New value to be copied in member reader_guid + */ + eProsima_user_DllExport void reader_guid( + const eprosima::fastdds::statistics::detail::GUID_s& _reader_guid); + + /*! + * @brief This function moves the value in member reader_guid + * @param _reader_guid New value to be moved in member reader_guid + */ + eProsima_user_DllExport void reader_guid( + eprosima::fastdds::statistics::detail::GUID_s&& _reader_guid); + + /*! + * @brief This function returns a constant reference to member reader_guid + * @return Constant reference to member reader_guid + */ + eProsima_user_DllExport const eprosima::fastdds::statistics::detail::GUID_s& reader_guid() const; + + /*! + * @brief This function returns a reference to member reader_guid + * @return Reference to member reader_guid + */ + eProsima_user_DllExport eprosima::fastdds::statistics::detail::GUID_s& reader_guid(); + + + /*! + * @brief This function sets a value in member data + * @param _data New value for member data + */ + eProsima_user_DllExport void data( + float _data); + + /*! + * @brief This function returns the value of member data + * @return Value of member data + */ + eProsima_user_DllExport float data() const; + + /*! + * @brief This function returns a reference to member data + * @return Reference to member data + */ + eProsima_user_DllExport float& data(); + +private: + + eprosima::fastdds::statistics::detail::GUID_s m_writer_guid; + eprosima::fastdds::statistics::detail::GUID_s m_reader_guid; + float m_data{0.0}; + +}; + + +/*! + * @brief This class represents the structure Locator2LocatorData defined by the user in the IDL file. + * @ingroup types + */ +class Locator2LocatorData +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Locator2LocatorData(); + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Locator2LocatorData(); + + /*! + * @brief Copy constructor. + * @param x Reference to the object eprosima::fastdds::statistics::Locator2LocatorData that will be copied. + */ + eProsima_user_DllExport Locator2LocatorData( + const Locator2LocatorData& x); + + /*! + * @brief Move constructor. + * @param x Reference to the object eprosima::fastdds::statistics::Locator2LocatorData that will be copied. + */ + eProsima_user_DllExport Locator2LocatorData( + Locator2LocatorData&& x) noexcept; + + /*! + * @brief Copy assignment. + * @param x Reference to the object eprosima::fastdds::statistics::Locator2LocatorData that will be copied. + */ + eProsima_user_DllExport Locator2LocatorData& operator =( + const Locator2LocatorData& x); + + /*! + * @brief Move assignment. + * @param x Reference to the object eprosima::fastdds::statistics::Locator2LocatorData that will be copied. + */ + eProsima_user_DllExport Locator2LocatorData& operator =( + Locator2LocatorData&& x) noexcept; + + /*! + * @brief Comparison operator. + * @param x eprosima::fastdds::statistics::Locator2LocatorData object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Locator2LocatorData& x) const; + + /*! + * @brief Comparison operator. + * @param x eprosima::fastdds::statistics::Locator2LocatorData object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Locator2LocatorData& x) const; + + /*! + * @brief This function copies the value in member src_locator + * @param _src_locator New value to be copied in member src_locator + */ + eProsima_user_DllExport void src_locator( + const eprosima::fastdds::statistics::detail::Locator_s& _src_locator); + + /*! + * @brief This function moves the value in member src_locator + * @param _src_locator New value to be moved in member src_locator + */ + eProsima_user_DllExport void src_locator( + eprosima::fastdds::statistics::detail::Locator_s&& _src_locator); + + /*! + * @brief This function returns a constant reference to member src_locator + * @return Constant reference to member src_locator + */ + eProsima_user_DllExport const eprosima::fastdds::statistics::detail::Locator_s& src_locator() const; + + /*! + * @brief This function returns a reference to member src_locator + * @return Reference to member src_locator + */ + eProsima_user_DllExport eprosima::fastdds::statistics::detail::Locator_s& src_locator(); + + + /*! + * @brief This function copies the value in member dst_locator + * @param _dst_locator New value to be copied in member dst_locator + */ + eProsima_user_DllExport void dst_locator( + const eprosima::fastdds::statistics::detail::Locator_s& _dst_locator); + + /*! + * @brief This function moves the value in member dst_locator + * @param _dst_locator New value to be moved in member dst_locator + */ + eProsima_user_DllExport void dst_locator( + eprosima::fastdds::statistics::detail::Locator_s&& _dst_locator); + + /*! + * @brief This function returns a constant reference to member dst_locator + * @return Constant reference to member dst_locator + */ + eProsima_user_DllExport const eprosima::fastdds::statistics::detail::Locator_s& dst_locator() const; + + /*! + * @brief This function returns a reference to member dst_locator + * @return Reference to member dst_locator + */ + eProsima_user_DllExport eprosima::fastdds::statistics::detail::Locator_s& dst_locator(); + + + /*! + * @brief This function sets a value in member data + * @param _data New value for member data + */ + eProsima_user_DllExport void data( + float _data); + + /*! + * @brief This function returns the value of member data + * @return Value of member data + */ + eProsima_user_DllExport float data() const; + + /*! + * @brief This function returns a reference to member data + * @return Reference to member data + */ + eProsima_user_DllExport float& data(); + +private: + + eprosima::fastdds::statistics::detail::Locator_s m_src_locator; + eprosima::fastdds::statistics::detail::Locator_s m_dst_locator; + float m_data{0.0}; + +}; + + +/*! + * @brief This class represents the structure EntityData defined by the user in the IDL file. + * @ingroup types + */ +class EntityData +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport EntityData(); + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~EntityData(); + + /*! + * @brief Copy constructor. + * @param x Reference to the object eprosima::fastdds::statistics::EntityData that will be copied. + */ + eProsima_user_DllExport EntityData( + const EntityData& x); + + /*! + * @brief Move constructor. + * @param x Reference to the object eprosima::fastdds::statistics::EntityData that will be copied. + */ + eProsima_user_DllExport EntityData( + EntityData&& x) noexcept; + + /*! + * @brief Copy assignment. + * @param x Reference to the object eprosima::fastdds::statistics::EntityData that will be copied. + */ + eProsima_user_DllExport EntityData& operator =( + const EntityData& x); + + /*! + * @brief Move assignment. + * @param x Reference to the object eprosima::fastdds::statistics::EntityData that will be copied. + */ + eProsima_user_DllExport EntityData& operator =( + EntityData&& x) noexcept; + + /*! + * @brief Comparison operator. + * @param x eprosima::fastdds::statistics::EntityData object to compare. + */ + eProsima_user_DllExport bool operator ==( + const EntityData& x) const; + + /*! + * @brief Comparison operator. + * @param x eprosima::fastdds::statistics::EntityData object to compare. + */ + eProsima_user_DllExport bool operator !=( + const EntityData& x) const; + + /*! + * @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 sets a value in member data + * @param _data New value for member data + */ + eProsima_user_DllExport void data( + float _data); + + /*! + * @brief This function returns the value of member data + * @return Value of member data + */ + eProsima_user_DllExport float data() const; + + /*! + * @brief This function returns a reference to member data + * @return Reference to member data + */ + eProsima_user_DllExport float& data(); + +private: + + eprosima::fastdds::statistics::detail::GUID_s m_guid; + float m_data{0.0}; + +}; + + +/*! + * @brief This class represents the structure PhysicalData defined by the user in the IDL file. + * @ingroup types + */ +class PhysicalData +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport PhysicalData(); + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~PhysicalData(); + + /*! + * @brief Copy constructor. + * @param x Reference to the object eprosima::fastdds::statistics::PhysicalData that will be copied. + */ + eProsima_user_DllExport PhysicalData( + const PhysicalData& x); + + /*! + * @brief Move constructor. + * @param x Reference to the object eprosima::fastdds::statistics::PhysicalData that will be copied. + */ + eProsima_user_DllExport PhysicalData( + PhysicalData&& x) noexcept; + + /*! + * @brief Copy assignment. + * @param x Reference to the object eprosima::fastdds::statistics::PhysicalData that will be copied. + */ + eProsima_user_DllExport PhysicalData& operator =( + const PhysicalData& x); + + /*! + * @brief Move assignment. + * @param x Reference to the object eprosima::fastdds::statistics::PhysicalData that will be copied. + */ + eProsima_user_DllExport PhysicalData& operator =( + PhysicalData&& x) noexcept; + + /*! + * @brief Comparison operator. + * @param x eprosima::fastdds::statistics::PhysicalData object to compare. + */ + eProsima_user_DllExport bool operator ==( + const PhysicalData& x) const; + + /*! + * @brief Comparison operator. + * @param x eprosima::fastdds::statistics::PhysicalData object to compare. + */ + eProsima_user_DllExport bool operator !=( + const PhysicalData& x) const; + + /*! + * @brief This function copies the value in member participant_guid + * @param _participant_guid New value to be copied in member participant_guid + */ + eProsima_user_DllExport void participant_guid( + const eprosima::fastdds::statistics::detail::GUID_s& _participant_guid); + + /*! + * @brief This function moves the value in member participant_guid + * @param _participant_guid New value to be moved in member participant_guid + */ + eProsima_user_DllExport void participant_guid( + eprosima::fastdds::statistics::detail::GUID_s&& _participant_guid); + + /*! + * @brief This function returns a constant reference to member participant_guid + * @return Constant reference to member participant_guid + */ + eProsima_user_DllExport const eprosima::fastdds::statistics::detail::GUID_s& participant_guid() const; + + /*! + * @brief This function returns a reference to member participant_guid + * @return Reference to member participant_guid + */ + eProsima_user_DllExport eprosima::fastdds::statistics::detail::GUID_s& participant_guid(); + + + /*! + * @brief This function copies the value in member host + * @param _host New value to be copied in member host + */ + eProsima_user_DllExport void host( + const std::string& _host); + + /*! + * @brief This function moves the value in member host + * @param _host New value to be moved in member host + */ + eProsima_user_DllExport void host( + std::string&& _host); + + /*! + * @brief This function returns a constant reference to member host + * @return Constant reference to member host + */ + eProsima_user_DllExport const std::string& host() const; + + /*! + * @brief This function returns a reference to member host + * @return Reference to member host + */ + eProsima_user_DllExport std::string& host(); + + + /*! + * @brief This function copies the value in member user + * @param _user New value to be copied in member user + */ + eProsima_user_DllExport void user( + const std::string& _user); + + /*! + * @brief This function moves the value in member user + * @param _user New value to be moved in member user + */ + eProsima_user_DllExport void user( + std::string&& _user); + + /*! + * @brief This function returns a constant reference to member user + * @return Constant reference to member user + */ + eProsima_user_DllExport const std::string& user() const; + + /*! + * @brief This function returns a reference to member user + * @return Reference to member user + */ + eProsima_user_DllExport std::string& user(); + + + /*! + * @brief This function copies the value in member process + * @param _process New value to be copied in member process + */ + eProsima_user_DllExport void process( + const std::string& _process); + + /*! + * @brief This function moves the value in member process + * @param _process New value to be moved in member process + */ + eProsima_user_DllExport void process( + std::string&& _process); + + /*! + * @brief This function returns a constant reference to member process + * @return Constant reference to member process + */ + eProsima_user_DllExport const std::string& process() const; + + /*! + * @brief This function returns a reference to member process + * @return Reference to member process + */ + eProsima_user_DllExport std::string& process(); + +private: + + eprosima::fastdds::statistics::detail::GUID_s m_participant_guid; + std::string m_host; + std::string m_user; + std::string m_process; + +}; +/*! + * @brief This enumeration represents the EventKind bitflags defined by the user in the IDL file. + * @ingroup types + */ +enum EventKindBits : uint32_t +{ + HISTORY2HISTORY_LATENCY = 0x01ull << 0, + NETWORK_LATENCY = 0x01ull << 1, + PUBLICATION_THROUGHPUT = 0x01ull << 2, + SUBSCRIPTION_THROUGHPUT = 0x01ull << 3, + RTPS_SENT = 0x01ull << 4, + RTPS_LOST = 0x01ull << 5, + RESENT_DATAS = 0x01ull << 6, + HEARTBEAT_COUNT = 0x01ull << 7, + ACKNACK_COUNT = 0x01ull << 8, + NACKFRAG_COUNT = 0x01ull << 9, + GAP_COUNT = 0x01ull << 10, + DATA_COUNT = 0x01ull << 11, + PDP_PACKETS = 0x01ull << 12, + EDP_PACKETS = 0x01ull << 13, + DISCOVERED_ENTITY = 0x01ull << 14, + SAMPLE_DATAS = 0x01ull << 15, + PHYSICAL_DATA = 0x01ull << 16 +}; +typedef uint32_t EventKind; + + +/*! + * @brief This class represents the union Data defined by the user in the IDL file. + * @ingroup types + */ +class Data +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Data(); + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Data(); + + /*! + * @brief Copy constructor. + * @param x Reference to the object eprosima::fastdds::statistics::Data that will be copied. + */ + eProsima_user_DllExport Data( + const Data& x); + + /*! + * @brief Move constructor. + * @param x Reference to the object eprosima::fastdds::statistics::Data that will be copied. + */ + eProsima_user_DllExport Data( + Data&& x) noexcept; + + /*! + * @brief Copy assignment. + * @param x Reference to the object eprosima::fastdds::statistics::Data that will be copied. + */ + eProsima_user_DllExport Data& operator =( + const Data& x); + + /*! + * @brief Move assignment. + * @param x Reference to the object eprosima::fastdds::statistics::Data that will be copied. + */ + eProsima_user_DllExport Data& operator =( + Data&& x) noexcept; + + /*! + * @brief Comparison operator. + * @param x eprosima::fastdds::statistics::Data object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Data& x) const; + + /*! + * @brief Comparison operator. + * @param x eprosima::fastdds::statistics::Data object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Data& 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::EventKind __d); + + /*! + * @brief This function returns the value of the discriminator. + * @return Value of the discriminator + */ + eProsima_user_DllExport eprosima::fastdds::statistics::EventKind _d() const; + + /*! + * @brief This function returns a reference to the discriminator. + * @return Reference to the discriminator. + */ + eProsima_user_DllExport eprosima::fastdds::statistics::EventKind& _d(); + + /*! + * @brief This function copies the value in member writer_reader_data + * @param _writer_reader_data New value to be copied in member writer_reader_data + */ + eProsima_user_DllExport void writer_reader_data( + const eprosima::fastdds::statistics::WriterReaderData& _writer_reader_data); + + /*! + * @brief This function moves the value in member writer_reader_data + * @param _writer_reader_data New value to be moved in member writer_reader_data + */ + eProsima_user_DllExport void writer_reader_data( + eprosima::fastdds::statistics::WriterReaderData&& _writer_reader_data); + + /*! + * @brief This function returns a constant reference to member writer_reader_data + * @return Constant reference to member writer_reader_data + * @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::WriterReaderData& writer_reader_data() const; + + /*! + * @brief This function returns a reference to member writer_reader_data + * @return Reference to member writer_reader_data + * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. + */ + eProsima_user_DllExport eprosima::fastdds::statistics::WriterReaderData& writer_reader_data(); + + + /*! + * @brief This function copies the value in member locator2locator_data + * @param _locator2locator_data New value to be copied in member locator2locator_data + */ + eProsima_user_DllExport void locator2locator_data( + const eprosima::fastdds::statistics::Locator2LocatorData& _locator2locator_data); + + /*! + * @brief This function moves the value in member locator2locator_data + * @param _locator2locator_data New value to be moved in member locator2locator_data + */ + eProsima_user_DllExport void locator2locator_data( + eprosima::fastdds::statistics::Locator2LocatorData&& _locator2locator_data); + + /*! + * @brief This function returns a constant reference to member locator2locator_data + * @return Constant reference to member locator2locator_data + * @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::Locator2LocatorData& locator2locator_data() const; + + /*! + * @brief This function returns a reference to member locator2locator_data + * @return Reference to member locator2locator_data + * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. + */ + eProsima_user_DllExport eprosima::fastdds::statistics::Locator2LocatorData& locator2locator_data(); + + + /*! + * @brief This function copies the value in member entity_data + * @param _entity_data New value to be copied in member entity_data + */ + eProsima_user_DllExport void entity_data( + const eprosima::fastdds::statistics::EntityData& _entity_data); + + /*! + * @brief This function moves the value in member entity_data + * @param _entity_data New value to be moved in member entity_data + */ + eProsima_user_DllExport void entity_data( + eprosima::fastdds::statistics::EntityData&& _entity_data); + + /*! + * @brief This function returns a constant reference to member entity_data + * @return Constant reference to member entity_data + * @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::EntityData& entity_data() const; + + /*! + * @brief This function returns a reference to member entity_data + * @return Reference to member entity_data + * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. + */ + eProsima_user_DllExport eprosima::fastdds::statistics::EntityData& entity_data(); + + + /*! + * @brief This function copies the value in member entity2locator_traffic + * @param _entity2locator_traffic New value to be copied in member entity2locator_traffic + */ + eProsima_user_DllExport void entity2locator_traffic( + const eprosima::fastdds::statistics::Entity2LocatorTraffic& _entity2locator_traffic); + + /*! + * @brief This function moves the value in member entity2locator_traffic + * @param _entity2locator_traffic New value to be moved in member entity2locator_traffic + */ + eProsima_user_DllExport void entity2locator_traffic( + eprosima::fastdds::statistics::Entity2LocatorTraffic&& _entity2locator_traffic); + + /*! + * @brief This function returns a constant reference to member entity2locator_traffic + * @return Constant reference to member entity2locator_traffic + * @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::Entity2LocatorTraffic& entity2locator_traffic() const; + + /*! + * @brief This function returns a reference to member entity2locator_traffic + * @return Reference to member entity2locator_traffic + * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. + */ + eProsima_user_DllExport eprosima::fastdds::statistics::Entity2LocatorTraffic& entity2locator_traffic(); + + + /*! + * @brief This function copies the value in member entity_count + * @param _entity_count New value to be copied in member entity_count + */ + eProsima_user_DllExport void entity_count( + const eprosima::fastdds::statistics::EntityCount& _entity_count); + + /*! + * @brief This function moves the value in member entity_count + * @param _entity_count New value to be moved in member entity_count + */ + eProsima_user_DllExport void entity_count( + eprosima::fastdds::statistics::EntityCount&& _entity_count); + + /*! + * @brief This function returns a constant reference to member entity_count + * @return Constant reference to member entity_count + * @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::EntityCount& entity_count() const; + + /*! + * @brief This function returns a reference to member entity_count + * @return Reference to member entity_count + * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. + */ + eProsima_user_DllExport eprosima::fastdds::statistics::EntityCount& entity_count(); + + + /*! + * @brief This function copies the value in member discovery_time + * @param _discovery_time New value to be copied in member discovery_time + */ + eProsima_user_DllExport void discovery_time( + const eprosima::fastdds::statistics::DiscoveryTime& _discovery_time); + + /*! + * @brief This function moves the value in member discovery_time + * @param _discovery_time New value to be moved in member discovery_time + */ + eProsima_user_DllExport void discovery_time( + eprosima::fastdds::statistics::DiscoveryTime&& _discovery_time); + + /*! + * @brief This function returns a constant reference to member discovery_time + * @return Constant reference to member discovery_time + * @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::DiscoveryTime& discovery_time() const; + + /*! + * @brief This function returns a reference to member discovery_time + * @return Reference to member discovery_time + * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. + */ + eProsima_user_DllExport eprosima::fastdds::statistics::DiscoveryTime& discovery_time(); + + + /*! + * @brief This function copies the value in member sample_identity_count + * @param _sample_identity_count New value to be copied in member sample_identity_count + */ + eProsima_user_DllExport void sample_identity_count( + const eprosima::fastdds::statistics::SampleIdentityCount& _sample_identity_count); + + /*! + * @brief This function moves the value in member sample_identity_count + * @param _sample_identity_count New value to be moved in member sample_identity_count + */ + eProsima_user_DllExport void sample_identity_count( + eprosima::fastdds::statistics::SampleIdentityCount&& _sample_identity_count); + + /*! + * @brief This function returns a constant reference to member sample_identity_count + * @return Constant reference to member sample_identity_count + * @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::SampleIdentityCount& sample_identity_count() const; + + /*! + * @brief This function returns a reference to member sample_identity_count + * @return Reference to member sample_identity_count + * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. + */ + eProsima_user_DllExport eprosima::fastdds::statistics::SampleIdentityCount& sample_identity_count(); + + + /*! + * @brief This function copies the value in member physical_data + * @param _physical_data New value to be copied in member physical_data + */ + eProsima_user_DllExport void physical_data( + const eprosima::fastdds::statistics::PhysicalData& _physical_data); + + /*! + * @brief This function moves the value in member physical_data + * @param _physical_data New value to be moved in member physical_data + */ + eProsima_user_DllExport void physical_data( + eprosima::fastdds::statistics::PhysicalData&& _physical_data); + + /*! + * @brief This function returns a constant reference to member physical_data + * @return Constant reference to member physical_data + * @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::PhysicalData& physical_data() const; + + /*! + * @brief This function returns a reference to member physical_data + * @return Reference to member physical_data + * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. + */ + eProsima_user_DllExport eprosima::fastdds::statistics::PhysicalData& physical_data(); + +private: + + eprosima::fastdds::statistics::EventKind m__d; + + eprosima::fastdds::statistics::WriterReaderData m_writer_reader_data; + eprosima::fastdds::statistics::Locator2LocatorData m_locator2locator_data; + eprosima::fastdds::statistics::EntityData m_entity_data; + eprosima::fastdds::statistics::Entity2LocatorTraffic m_entity2locator_traffic; + eprosima::fastdds::statistics::EntityCount m_entity_count; + eprosima::fastdds::statistics::DiscoveryTime m_discovery_time; + eprosima::fastdds::statistics::SampleIdentityCount m_sample_identity_count; + eprosima::fastdds::statistics::PhysicalData m_physical_data; +}; + +} // namespace statistics + +} // namespace fastdds + } // namespace eprosima #endif // _FAST_DDS_GENERATED_EPROSIMA_FASTDDS_STATISTICS_TYPES_H_ + + +#endif // FASTCDR_VERSION_MAJOR > 1 diff --git a/src/cpp/topic_types/typesCdrAux.hpp b/src/cpp/topic_types/typesCdrAux.hpp index e26c1b178..a71ccfb55 100644 --- a/src/cpp/topic_types/typesCdrAux.hpp +++ b/src/cpp/topic_types/typesCdrAux.hpp @@ -75,59 +75,87 @@ namespace fastcdr { class Cdr; class CdrSizeCalculator; + + eProsima_user_DllExport void serialize_key( eprosima::fastcdr::Cdr& scdr, const eprosima::fastdds::statistics::detail::EntityId_s& data); + + eProsima_user_DllExport void serialize_key( eprosima::fastcdr::Cdr& scdr, const eprosima::fastdds::statistics::detail::GuidPrefix_s& data); + + eProsima_user_DllExport void serialize_key( eprosima::fastcdr::Cdr& scdr, const eprosima::fastdds::statistics::detail::GUID_s& data); + + eProsima_user_DllExport void serialize_key( eprosima::fastcdr::Cdr& scdr, const eprosima::fastdds::statistics::detail::SequenceNumber_s& data); + + eProsima_user_DllExport void serialize_key( eprosima::fastcdr::Cdr& scdr, const eprosima::fastdds::statistics::detail::SampleIdentity_s& data); + + eProsima_user_DllExport void serialize_key( eprosima::fastcdr::Cdr& scdr, const eprosima::fastdds::statistics::detail::Locator_s& data); + + eProsima_user_DllExport void serialize_key( eprosima::fastcdr::Cdr& scdr, const eprosima::fastdds::statistics::DiscoveryTime& data); + + eProsima_user_DllExport void serialize_key( eprosima::fastcdr::Cdr& scdr, const eprosima::fastdds::statistics::EntityCount& data); + + eProsima_user_DllExport void serialize_key( eprosima::fastcdr::Cdr& scdr, const eprosima::fastdds::statistics::SampleIdentityCount& data); + + eProsima_user_DllExport void serialize_key( eprosima::fastcdr::Cdr& scdr, const eprosima::fastdds::statistics::Entity2LocatorTraffic& data); + + eProsima_user_DllExport void serialize_key( eprosima::fastcdr::Cdr& scdr, const eprosima::fastdds::statistics::WriterReaderData& data); + + eProsima_user_DllExport void serialize_key( eprosima::fastcdr::Cdr& scdr, const eprosima::fastdds::statistics::Locator2LocatorData& data); + + eProsima_user_DllExport void serialize_key( eprosima::fastcdr::Cdr& scdr, const eprosima::fastdds::statistics::EntityData& data); + + eProsima_user_DllExport void serialize_key( eprosima::fastcdr::Cdr& scdr, const eprosima::fastdds::statistics::PhysicalData& data); @@ -138,7 +166,11 @@ eProsima_user_DllExport void serialize_key( + + + } // namespace fastcdr } // namespace eprosima -#endif // _FAST_DDS_GENERATED_EPROSIMA_FASTDDS_STATISTICS_TYPESCDRAUX_HPP_ \ No newline at end of file +#endif // _FAST_DDS_GENERATED_EPROSIMA_FASTDDS_STATISTICS_TYPESCDRAUX_HPP_ + diff --git a/src/cpp/topic_types/typesCdrAux.ipp b/src/cpp/topic_types/typesCdrAux.ipp index 65d117cdd..b95de46bd 100644 --- a/src/cpp/topic_types/typesCdrAux.ipp +++ b/src/cpp/topic_types/typesCdrAux.ipp @@ -34,12 +34,16 @@ 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::detail::EntityId_s& data, size_t& current_alignment) { + using namespace eprosima::fastdds::statistics::detail; + static_cast(data); eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); @@ -64,6 +68,8 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::Cdr& scdr, const eprosima::fastdds::statistics::detail::EntityId_s& data) { + using namespace eprosima::fastdds::statistics::detail; + eprosima::fastcdr::Cdr::state current_state(scdr); scdr.begin_serialize_type(current_state, eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? @@ -73,7 +79,6 @@ eProsima_user_DllExport void serialize( scdr << eprosima::fastcdr::MemberId(0) << data.value() ; - scdr.end_serialize_type(current_state); } @@ -82,6 +87,8 @@ eProsima_user_DllExport void deserialize( eprosima::fastcdr::Cdr& cdr, eprosima::fastdds::statistics::detail::EntityId_s& data) { + using namespace eprosima::fastdds::statistics::detail; + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2 : eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, @@ -106,17 +113,23 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const eprosima::fastdds::statistics::detail::EntityId_s& data) { + using namespace eprosima::fastdds::statistics::detail; + static_cast(scdr); static_cast(data); } + + template<> eProsima_user_DllExport size_t calculate_serialized_size( eprosima::fastcdr::CdrSizeCalculator& calculator, const eprosima::fastdds::statistics::detail::GuidPrefix_s& data, size_t& current_alignment) { + using namespace eprosima::fastdds::statistics::detail; + static_cast(data); eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); @@ -141,6 +154,8 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::Cdr& scdr, const eprosima::fastdds::statistics::detail::GuidPrefix_s& data) { + using namespace eprosima::fastdds::statistics::detail; + eprosima::fastcdr::Cdr::state current_state(scdr); scdr.begin_serialize_type(current_state, eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? @@ -150,7 +165,6 @@ eProsima_user_DllExport void serialize( scdr << eprosima::fastcdr::MemberId(0) << data.value() ; - scdr.end_serialize_type(current_state); } @@ -159,6 +173,8 @@ eProsima_user_DllExport void deserialize( eprosima::fastcdr::Cdr& cdr, eprosima::fastdds::statistics::detail::GuidPrefix_s& data) { + using namespace eprosima::fastdds::statistics::detail; + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2 : eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, @@ -183,17 +199,23 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const eprosima::fastdds::statistics::detail::GuidPrefix_s& data) { + using namespace eprosima::fastdds::statistics::detail; + static_cast(scdr); static_cast(data); } + + template<> eProsima_user_DllExport size_t calculate_serialized_size( eprosima::fastcdr::CdrSizeCalculator& calculator, const eprosima::fastdds::statistics::detail::GUID_s& data, size_t& current_alignment) { + using namespace eprosima::fastdds::statistics::detail; + static_cast(data); eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); @@ -221,6 +243,8 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::Cdr& scdr, const eprosima::fastdds::statistics::detail::GUID_s& data) { + using namespace eprosima::fastdds::statistics::detail; + eprosima::fastcdr::Cdr::state current_state(scdr); scdr.begin_serialize_type(current_state, eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? @@ -231,7 +255,6 @@ eProsima_user_DllExport void serialize( << eprosima::fastcdr::MemberId(0) << data.guidPrefix() << eprosima::fastcdr::MemberId(1) << data.entityId() ; - scdr.end_serialize_type(current_state); } @@ -240,6 +263,8 @@ eProsima_user_DllExport void deserialize( eprosima::fastcdr::Cdr& cdr, eprosima::fastdds::statistics::detail::GUID_s& data) { + using namespace eprosima::fastdds::statistics::detail; + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2 : eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, @@ -268,17 +293,23 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const eprosima::fastdds::statistics::detail::GUID_s& data) { + using namespace eprosima::fastdds::statistics::detail; + static_cast(scdr); static_cast(data); } + + template<> eProsima_user_DllExport size_t calculate_serialized_size( eprosima::fastcdr::CdrSizeCalculator& calculator, const eprosima::fastdds::statistics::detail::SequenceNumber_s& data, size_t& current_alignment) { + using namespace eprosima::fastdds::statistics::detail; + static_cast(data); eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); @@ -306,6 +337,8 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::Cdr& scdr, const eprosima::fastdds::statistics::detail::SequenceNumber_s& data) { + using namespace eprosima::fastdds::statistics::detail; + eprosima::fastcdr::Cdr::state current_state(scdr); scdr.begin_serialize_type(current_state, eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? @@ -316,7 +349,6 @@ eProsima_user_DllExport void serialize( << eprosima::fastcdr::MemberId(0) << data.high() << eprosima::fastcdr::MemberId(1) << data.low() ; - scdr.end_serialize_type(current_state); } @@ -325,6 +357,8 @@ eProsima_user_DllExport void deserialize( eprosima::fastcdr::Cdr& cdr, eprosima::fastdds::statistics::detail::SequenceNumber_s& data) { + using namespace eprosima::fastdds::statistics::detail; + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2 : eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, @@ -353,17 +387,23 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const eprosima::fastdds::statistics::detail::SequenceNumber_s& data) { + using namespace eprosima::fastdds::statistics::detail; + static_cast(scdr); static_cast(data); } + + template<> eProsima_user_DllExport size_t calculate_serialized_size( eprosima::fastcdr::CdrSizeCalculator& calculator, const eprosima::fastdds::statistics::detail::SampleIdentity_s& data, size_t& current_alignment) { + using namespace eprosima::fastdds::statistics::detail; + static_cast(data); eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); @@ -391,6 +431,8 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::Cdr& scdr, const eprosima::fastdds::statistics::detail::SampleIdentity_s& data) { + using namespace eprosima::fastdds::statistics::detail; + eprosima::fastcdr::Cdr::state current_state(scdr); scdr.begin_serialize_type(current_state, eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? @@ -401,7 +443,6 @@ eProsima_user_DllExport void serialize( << eprosima::fastcdr::MemberId(0) << data.writer_guid() << eprosima::fastcdr::MemberId(1) << data.sequence_number() ; - scdr.end_serialize_type(current_state); } @@ -410,6 +451,8 @@ eProsima_user_DllExport void deserialize( eprosima::fastcdr::Cdr& cdr, eprosima::fastdds::statistics::detail::SampleIdentity_s& data) { + using namespace eprosima::fastdds::statistics::detail; + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2 : eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, @@ -438,17 +481,23 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const eprosima::fastdds::statistics::detail::SampleIdentity_s& data) { + using namespace eprosima::fastdds::statistics::detail; + static_cast(scdr); static_cast(data); } + + template<> eProsima_user_DllExport size_t calculate_serialized_size( eprosima::fastcdr::CdrSizeCalculator& calculator, const eprosima::fastdds::statistics::detail::Locator_s& data, size_t& current_alignment) { + using namespace eprosima::fastdds::statistics::detail; + static_cast(data); eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); @@ -479,6 +528,8 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::Cdr& scdr, const eprosima::fastdds::statistics::detail::Locator_s& data) { + using namespace eprosima::fastdds::statistics::detail; + eprosima::fastcdr::Cdr::state current_state(scdr); scdr.begin_serialize_type(current_state, eprosima::fastcdr::CdrVersion::XCDRv2 == scdr.get_cdr_version() ? @@ -490,7 +541,6 @@ eProsima_user_DllExport void serialize( << eprosima::fastcdr::MemberId(1) << data.port() << eprosima::fastcdr::MemberId(2) << data.address() ; - scdr.end_serialize_type(current_state); } @@ -499,6 +549,8 @@ eProsima_user_DllExport void deserialize( eprosima::fastcdr::Cdr& cdr, eprosima::fastdds::statistics::detail::Locator_s& data) { + using namespace eprosima::fastdds::statistics::detail; + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2 : eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, @@ -531,18 +583,24 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const eprosima::fastdds::statistics::detail::Locator_s& data) { + using namespace eprosima::fastdds::statistics::detail; + static_cast(scdr); static_cast(data); } + + template<> eProsima_user_DllExport size_t calculate_serialized_size( eprosima::fastcdr::CdrSizeCalculator& calculator, const eprosima::fastdds::statistics::DiscoveryTime& data, size_t& current_alignment) { + using namespace eprosima::fastdds::statistics; + static_cast(data); eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); @@ -582,6 +640,8 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::Cdr& scdr, const eprosima::fastdds::statistics::DiscoveryTime& 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() ? @@ -596,7 +656,6 @@ eProsima_user_DllExport void serialize( << eprosima::fastcdr::MemberId(4) << data.user() << eprosima::fastcdr::MemberId(5) << data.process() ; - scdr.end_serialize_type(current_state); } @@ -605,6 +664,8 @@ eProsima_user_DllExport void deserialize( eprosima::fastcdr::Cdr& cdr, eprosima::fastdds::statistics::DiscoveryTime& data) { + using namespace eprosima::fastdds::statistics; + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2 : eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, @@ -649,6 +710,8 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const eprosima::fastdds::statistics::DiscoveryTime& data) { + using namespace eprosima::fastdds::statistics; + static_cast(scdr); static_cast(data); scdr << data.local_participant_guid(); @@ -662,12 +725,16 @@ void serialize_key( } + + template<> eProsima_user_DllExport size_t calculate_serialized_size( eprosima::fastcdr::CdrSizeCalculator& calculator, const eprosima::fastdds::statistics::EntityCount& data, size_t& current_alignment) { + using namespace eprosima::fastdds::statistics; + static_cast(data); eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); @@ -695,6 +762,8 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::Cdr& scdr, const eprosima::fastdds::statistics::EntityCount& 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() ? @@ -705,7 +774,6 @@ eProsima_user_DllExport void serialize( << eprosima::fastcdr::MemberId(0) << data.guid() << eprosima::fastcdr::MemberId(1) << data.count() ; - scdr.end_serialize_type(current_state); } @@ -714,6 +782,8 @@ eProsima_user_DllExport void deserialize( eprosima::fastcdr::Cdr& cdr, eprosima::fastdds::statistics::EntityCount& data) { + using namespace eprosima::fastdds::statistics; + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2 : eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, @@ -742,6 +812,8 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const eprosima::fastdds::statistics::EntityCount& data) { + using namespace eprosima::fastdds::statistics; + static_cast(scdr); static_cast(data); scdr << data.guid(); @@ -750,12 +822,16 @@ void serialize_key( } + + template<> eProsima_user_DllExport size_t calculate_serialized_size( eprosima::fastcdr::CdrSizeCalculator& calculator, const eprosima::fastdds::statistics::SampleIdentityCount& data, size_t& current_alignment) { + using namespace eprosima::fastdds::statistics; + static_cast(data); eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); @@ -783,6 +859,8 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::Cdr& scdr, const eprosima::fastdds::statistics::SampleIdentityCount& 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() ? @@ -793,7 +871,6 @@ eProsima_user_DllExport void serialize( << eprosima::fastcdr::MemberId(0) << data.sample_id() << eprosima::fastcdr::MemberId(1) << data.count() ; - scdr.end_serialize_type(current_state); } @@ -802,6 +879,8 @@ eProsima_user_DllExport void deserialize( eprosima::fastcdr::Cdr& cdr, eprosima::fastdds::statistics::SampleIdentityCount& data) { + using namespace eprosima::fastdds::statistics; + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2 : eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, @@ -830,6 +909,8 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const eprosima::fastdds::statistics::SampleIdentityCount& data) { + using namespace eprosima::fastdds::statistics; + static_cast(scdr); static_cast(data); scdr << data.sample_id(); @@ -838,12 +919,16 @@ void serialize_key( } + + template<> eProsima_user_DllExport size_t calculate_serialized_size( eprosima::fastcdr::CdrSizeCalculator& calculator, const eprosima::fastdds::statistics::Entity2LocatorTraffic& data, size_t& current_alignment) { + using namespace eprosima::fastdds::statistics; + static_cast(data); eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); @@ -880,6 +965,8 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::Cdr& scdr, const eprosima::fastdds::statistics::Entity2LocatorTraffic& 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() ? @@ -893,7 +980,6 @@ eProsima_user_DllExport void serialize( << eprosima::fastcdr::MemberId(3) << data.byte_count() << eprosima::fastcdr::MemberId(4) << data.byte_magnitude_order() ; - scdr.end_serialize_type(current_state); } @@ -902,6 +988,8 @@ eProsima_user_DllExport void deserialize( eprosima::fastcdr::Cdr& cdr, eprosima::fastdds::statistics::Entity2LocatorTraffic& data) { + using namespace eprosima::fastdds::statistics; + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2 : eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, @@ -942,6 +1030,8 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const eprosima::fastdds::statistics::Entity2LocatorTraffic& data) { + using namespace eprosima::fastdds::statistics; + static_cast(scdr); static_cast(data); scdr << data.src_guid(); @@ -954,12 +1044,16 @@ void serialize_key( } + + template<> eProsima_user_DllExport size_t calculate_serialized_size( eprosima::fastcdr::CdrSizeCalculator& calculator, const eprosima::fastdds::statistics::WriterReaderData& data, size_t& current_alignment) { + using namespace eprosima::fastdds::statistics; + static_cast(data); eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); @@ -990,6 +1084,8 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::Cdr& scdr, const eprosima::fastdds::statistics::WriterReaderData& 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() ? @@ -1001,7 +1097,6 @@ eProsima_user_DllExport void serialize( << eprosima::fastcdr::MemberId(1) << data.reader_guid() << eprosima::fastcdr::MemberId(2) << data.data() ; - scdr.end_serialize_type(current_state); } @@ -1010,6 +1105,8 @@ eProsima_user_DllExport void deserialize( eprosima::fastcdr::Cdr& cdr, eprosima::fastdds::statistics::WriterReaderData& data) { + using namespace eprosima::fastdds::statistics; + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2 : eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, @@ -1042,6 +1139,8 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const eprosima::fastdds::statistics::WriterReaderData& data) { + using namespace eprosima::fastdds::statistics; + static_cast(scdr); static_cast(data); scdr << data.writer_guid(); @@ -1052,12 +1151,16 @@ void serialize_key( } + + template<> eProsima_user_DllExport size_t calculate_serialized_size( eprosima::fastcdr::CdrSizeCalculator& calculator, const eprosima::fastdds::statistics::Locator2LocatorData& data, size_t& current_alignment) { + using namespace eprosima::fastdds::statistics; + static_cast(data); eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); @@ -1088,6 +1191,8 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::Cdr& scdr, const eprosima::fastdds::statistics::Locator2LocatorData& 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() ? @@ -1099,7 +1204,6 @@ eProsima_user_DllExport void serialize( << eprosima::fastcdr::MemberId(1) << data.dst_locator() << eprosima::fastcdr::MemberId(2) << data.data() ; - scdr.end_serialize_type(current_state); } @@ -1108,6 +1212,8 @@ eProsima_user_DllExport void deserialize( eprosima::fastcdr::Cdr& cdr, eprosima::fastdds::statistics::Locator2LocatorData& data) { + using namespace eprosima::fastdds::statistics; + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2 : eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, @@ -1140,6 +1246,8 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const eprosima::fastdds::statistics::Locator2LocatorData& data) { + using namespace eprosima::fastdds::statistics; + static_cast(scdr); static_cast(data); scdr << data.src_locator(); @@ -1150,12 +1258,16 @@ void serialize_key( } + + template<> eProsima_user_DllExport size_t calculate_serialized_size( eprosima::fastcdr::CdrSizeCalculator& calculator, const eprosima::fastdds::statistics::EntityData& data, size_t& current_alignment) { + using namespace eprosima::fastdds::statistics; + static_cast(data); eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); @@ -1183,6 +1295,8 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::Cdr& scdr, const eprosima::fastdds::statistics::EntityData& 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() ? @@ -1193,7 +1307,6 @@ eProsima_user_DllExport void serialize( << eprosima::fastcdr::MemberId(0) << data.guid() << eprosima::fastcdr::MemberId(1) << data.data() ; - scdr.end_serialize_type(current_state); } @@ -1202,6 +1315,8 @@ eProsima_user_DllExport void deserialize( eprosima::fastcdr::Cdr& cdr, eprosima::fastdds::statistics::EntityData& data) { + using namespace eprosima::fastdds::statistics; + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2 : eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, @@ -1230,6 +1345,8 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const eprosima::fastdds::statistics::EntityData& data) { + using namespace eprosima::fastdds::statistics; + static_cast(scdr); static_cast(data); scdr << data.guid(); @@ -1238,12 +1355,16 @@ void serialize_key( } + + template<> eProsima_user_DllExport size_t calculate_serialized_size( eprosima::fastcdr::CdrSizeCalculator& calculator, const eprosima::fastdds::statistics::PhysicalData& data, size_t& current_alignment) { + using namespace eprosima::fastdds::statistics; + static_cast(data); eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); @@ -1277,6 +1398,8 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::Cdr& scdr, const eprosima::fastdds::statistics::PhysicalData& 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() ? @@ -1289,7 +1412,6 @@ eProsima_user_DllExport void serialize( << eprosima::fastcdr::MemberId(2) << data.user() << eprosima::fastcdr::MemberId(3) << data.process() ; - scdr.end_serialize_type(current_state); } @@ -1298,6 +1420,8 @@ eProsima_user_DllExport void deserialize( eprosima::fastcdr::Cdr& cdr, eprosima::fastdds::statistics::PhysicalData& data) { + using namespace eprosima::fastdds::statistics; + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2 : eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, @@ -1334,6 +1458,8 @@ void serialize_key( eprosima::fastcdr::Cdr& scdr, const eprosima::fastdds::statistics::PhysicalData& data) { + using namespace eprosima::fastdds::statistics; + static_cast(scdr); static_cast(data); scdr << data.participant_guid(); @@ -1345,12 +1471,16 @@ void serialize_key( + + template<> eProsima_user_DllExport size_t calculate_serialized_size( eprosima::fastcdr::CdrSizeCalculator& calculator, const eprosima::fastdds::statistics::Data& data, size_t& current_alignment) { + using namespace eprosima::fastdds::statistics; + static_cast(data); eprosima::fastcdr::EncodingAlgorithmFlag previous_encoding = calculator.get_encoding(); @@ -1414,6 +1544,8 @@ eProsima_user_DllExport size_t calculate_serialized_size( data.physical_data(), current_alignment); break; + default: + break; } calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -1427,6 +1559,8 @@ eProsima_user_DllExport void serialize( eprosima::fastcdr::Cdr& scdr, const eprosima::fastdds::statistics::Data& 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() ? @@ -1478,6 +1612,8 @@ eProsima_user_DllExport void serialize( scdr << eprosima::fastcdr::MemberId(7) << data.physical_data(); break; + default: + break; } scdr.end_serialize_type(current_state); @@ -1488,6 +1624,8 @@ eProsima_user_DllExport void deserialize( eprosima::fastcdr::Cdr& cdr, eprosima::fastdds::statistics::Data& data) { + using namespace eprosima::fastdds::statistics; + cdr.deserialize_type(eprosima::fastcdr::CdrVersion::XCDRv2 == cdr.get_cdr_version() ? eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR2 : eprosima::fastcdr::EncodingAlgorithmFlag::PLAIN_CDR, @@ -1543,6 +1681,8 @@ eProsima_user_DllExport void deserialize( dcdr >> data.physical_data(); break; + default: + break; } ret_value = false; break; @@ -1558,4 +1698,5 @@ eProsima_user_DllExport void deserialize( } // namespace fastcdr } // namespace eprosima -#endif // _FAST_DDS_GENERATED_EPROSIMA_FASTDDS_STATISTICS_TYPESCDRAUX_IPP_ \ No newline at end of file +#endif // _FAST_DDS_GENERATED_EPROSIMA_FASTDDS_STATISTICS_TYPESCDRAUX_IPP_ + diff --git a/src/cpp/topic_types/typesPubSubTypes.cxx b/src/cpp/topic_types/typesPubSubTypes.cxx index 6a2e38359..f79ad7dd7 100644 --- a/src/cpp/topic_types/typesPubSubTypes.cxx +++ b/src/cpp/topic_types/typesPubSubTypes.cxx @@ -20,9 +20,7 @@ */ -#include -#include -#include +#include #include "typesPubSubTypes.h" #include "typesCdrAux.hpp" @@ -35,10 +33,17 @@ namespace eprosima { namespace fastdds { namespace statistics { namespace detail { + + EntityId_sPubSubType::EntityId_sPubSubType() { setName("eprosima::fastdds::statistics::detail::EntityId_s"); - uint32_t type_size = eprosima_fastdds_statistics_detail_EntityId_s_max_cdr_typesize; + uint32_t type_size = + #if FASTCDR_VERSION_MAJOR == 1 + EntityId_s::getMaxCdrSerializedSize(); + #else + eprosima_fastdds_statistics_detail_EntityId_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; @@ -69,10 +74,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::PLAIN_CDR2); + #endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -87,7 +94,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; } @@ -104,7 +115,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(); @@ -127,13 +142,25 @@ 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 + 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 }; } @@ -165,12 +192,20 @@ namespace eprosima { eprosima_fastdds_statistics_detail_EntityId_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_detail_EntityId_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) { @@ -187,10 +222,17 @@ namespace eprosima { return true; } + + GuidPrefix_sPubSubType::GuidPrefix_sPubSubType() { setName("eprosima::fastdds::statistics::detail::GuidPrefix_s"); - uint32_t type_size = eprosima_fastdds_statistics_detail_GuidPrefix_s_max_cdr_typesize; + uint32_t type_size = + #if FASTCDR_VERSION_MAJOR == 1 + GuidPrefix_s::getMaxCdrSerializedSize(); + #else + eprosima_fastdds_statistics_detail_GuidPrefix_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; @@ -221,10 +263,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::PLAIN_CDR2); + #endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -239,7 +283,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; } @@ -256,7 +304,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(); @@ -279,13 +331,25 @@ 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 + 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 }; } @@ -317,12 +381,20 @@ namespace eprosima { eprosima_fastdds_statistics_detail_GuidPrefix_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_detail_GuidPrefix_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) { @@ -339,10 +411,17 @@ namespace eprosima { return true; } + + GUID_sPubSubType::GUID_sPubSubType() { setName("eprosima::fastdds::statistics::detail::GUID_s"); - uint32_t type_size = eprosima_fastdds_statistics_detail_GUID_s_max_cdr_typesize; + uint32_t type_size = + #if FASTCDR_VERSION_MAJOR == 1 + GUID_s::getMaxCdrSerializedSize(); + #else + eprosima_fastdds_statistics_detail_GUID_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; @@ -373,10 +452,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::PLAIN_CDR2); + #endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -391,7 +472,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; } @@ -408,7 +493,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(); @@ -431,13 +520,25 @@ 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 + 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 }; } @@ -469,12 +570,20 @@ namespace eprosima { eprosima_fastdds_statistics_detail_GUID_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_detail_GUID_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 +600,17 @@ namespace eprosima { return true; } + + SequenceNumber_sPubSubType::SequenceNumber_sPubSubType() { setName("eprosima::fastdds::statistics::detail::SequenceNumber_s"); - uint32_t type_size = eprosima_fastdds_statistics_detail_SequenceNumber_s_max_cdr_typesize; + uint32_t type_size = + #if FASTCDR_VERSION_MAJOR == 1 + SequenceNumber_s::getMaxCdrSerializedSize(); + #else + eprosima_fastdds_statistics_detail_SequenceNumber_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 +641,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::PLAIN_CDR2); + #endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -543,7 +661,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 +682,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 +709,25 @@ 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 + 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 +759,20 @@ namespace eprosima { eprosima_fastdds_statistics_detail_SequenceNumber_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_detail_SequenceNumber_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 +789,17 @@ namespace eprosima { return true; } + + SampleIdentity_sPubSubType::SampleIdentity_sPubSubType() { setName("eprosima::fastdds::statistics::detail::SampleIdentity_s"); - uint32_t type_size = eprosima_fastdds_statistics_detail_SampleIdentity_s_max_cdr_typesize; + uint32_t type_size = + #if FASTCDR_VERSION_MAJOR == 1 + SampleIdentity_s::getMaxCdrSerializedSize(); + #else + eprosima_fastdds_statistics_detail_SampleIdentity_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 +830,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::PLAIN_CDR2); + #endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -695,7 +850,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 +871,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 +898,25 @@ 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 + 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 +948,20 @@ namespace eprosima { eprosima_fastdds_statistics_detail_SampleIdentity_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_detail_SampleIdentity_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 +978,17 @@ namespace eprosima { return true; } + + Locator_sPubSubType::Locator_sPubSubType() { setName("eprosima::fastdds::statistics::detail::Locator_s"); - uint32_t type_size = eprosima_fastdds_statistics_detail_Locator_s_max_cdr_typesize; + uint32_t type_size = + #if FASTCDR_VERSION_MAJOR == 1 + Locator_s::getMaxCdrSerializedSize(); + #else + eprosima_fastdds_statistics_detail_Locator_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 +1019,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::PLAIN_CDR2); + #endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -847,7 +1039,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 +1060,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 +1087,25 @@ 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 + 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 +1137,20 @@ namespace eprosima { eprosima_fastdds_statistics_detail_Locator_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_detail_Locator_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) { @@ -950,10 +1170,17 @@ namespace eprosima { } //End of namespace detail + + DiscoveryTimePubSubType::DiscoveryTimePubSubType() { setName("eprosima::fastdds::statistics::DiscoveryTime"); - uint32_t type_size = eprosima_fastdds_statistics_DiscoveryTime_max_cdr_typesize; + uint32_t type_size = + #if FASTCDR_VERSION_MAJOR == 1 + DiscoveryTime::getMaxCdrSerializedSize(); + #else + eprosima_fastdds_statistics_DiscoveryTime_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; @@ -984,10 +1211,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::PLAIN_CDR2); + #endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -1002,7 +1231,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; } @@ -1019,7 +1252,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(); @@ -1042,13 +1279,25 @@ 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 + 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 }; } @@ -1080,12 +1329,20 @@ namespace eprosima { eprosima_fastdds_statistics_DiscoveryTime_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_DiscoveryTime_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) { @@ -1102,10 +1359,17 @@ namespace eprosima { return true; } + + EntityCountPubSubType::EntityCountPubSubType() { setName("eprosima::fastdds::statistics::EntityCount"); - uint32_t type_size = eprosima_fastdds_statistics_EntityCount_max_cdr_typesize; + uint32_t type_size = + #if FASTCDR_VERSION_MAJOR == 1 + EntityCount::getMaxCdrSerializedSize(); + #else + eprosima_fastdds_statistics_EntityCount_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; @@ -1136,10 +1400,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::PLAIN_CDR2); + #endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -1154,7 +1420,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; } @@ -1171,7 +1441,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(); @@ -1194,13 +1468,25 @@ 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 + 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 }; } @@ -1232,12 +1518,20 @@ namespace eprosima { eprosima_fastdds_statistics_EntityCount_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_EntityCount_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) { @@ -1254,10 +1548,17 @@ namespace eprosima { return true; } + + SampleIdentityCountPubSubType::SampleIdentityCountPubSubType() { setName("eprosima::fastdds::statistics::SampleIdentityCount"); - uint32_t type_size = eprosima_fastdds_statistics_SampleIdentityCount_max_cdr_typesize; + uint32_t type_size = + #if FASTCDR_VERSION_MAJOR == 1 + SampleIdentityCount::getMaxCdrSerializedSize(); + #else + eprosima_fastdds_statistics_SampleIdentityCount_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; @@ -1288,10 +1589,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::PLAIN_CDR2); + #endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -1306,7 +1609,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; } @@ -1323,7 +1630,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(); @@ -1346,13 +1657,25 @@ 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 + 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 }; } @@ -1384,12 +1707,20 @@ namespace eprosima { eprosima_fastdds_statistics_SampleIdentityCount_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_SampleIdentityCount_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) { @@ -1406,10 +1737,17 @@ namespace eprosima { return true; } + + Entity2LocatorTrafficPubSubType::Entity2LocatorTrafficPubSubType() { setName("eprosima::fastdds::statistics::Entity2LocatorTraffic"); - uint32_t type_size = eprosima_fastdds_statistics_Entity2LocatorTraffic_max_cdr_typesize; + uint32_t type_size = + #if FASTCDR_VERSION_MAJOR == 1 + Entity2LocatorTraffic::getMaxCdrSerializedSize(); + #else + eprosima_fastdds_statistics_Entity2LocatorTraffic_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; @@ -1440,10 +1778,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::PLAIN_CDR2); + #endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -1458,7 +1798,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; } @@ -1475,7 +1819,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(); @@ -1498,13 +1846,25 @@ 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 + 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 }; } @@ -1536,12 +1896,20 @@ namespace eprosima { eprosima_fastdds_statistics_Entity2LocatorTraffic_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_Entity2LocatorTraffic_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) { @@ -1558,10 +1926,17 @@ namespace eprosima { return true; } + + WriterReaderDataPubSubType::WriterReaderDataPubSubType() { setName("eprosima::fastdds::statistics::WriterReaderData"); - uint32_t type_size = eprosima_fastdds_statistics_WriterReaderData_max_cdr_typesize; + uint32_t type_size = + #if FASTCDR_VERSION_MAJOR == 1 + WriterReaderData::getMaxCdrSerializedSize(); + #else + eprosima_fastdds_statistics_WriterReaderData_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; @@ -1592,10 +1967,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::PLAIN_CDR2); + #endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -1610,7 +1987,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; } @@ -1627,7 +2008,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(); @@ -1650,13 +2035,25 @@ 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 + 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 }; } @@ -1688,12 +2085,20 @@ namespace eprosima { eprosima_fastdds_statistics_WriterReaderData_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_WriterReaderData_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) { @@ -1710,10 +2115,17 @@ namespace eprosima { return true; } + + Locator2LocatorDataPubSubType::Locator2LocatorDataPubSubType() { setName("eprosima::fastdds::statistics::Locator2LocatorData"); - uint32_t type_size = eprosima_fastdds_statistics_Locator2LocatorData_max_cdr_typesize; + uint32_t type_size = + #if FASTCDR_VERSION_MAJOR == 1 + Locator2LocatorData::getMaxCdrSerializedSize(); + #else + eprosima_fastdds_statistics_Locator2LocatorData_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; @@ -1744,10 +2156,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::PLAIN_CDR2); + #endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -1762,7 +2176,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; } @@ -1779,7 +2197,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(); @@ -1802,13 +2224,25 @@ 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 + 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 }; } @@ -1840,12 +2274,20 @@ namespace eprosima { eprosima_fastdds_statistics_Locator2LocatorData_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_Locator2LocatorData_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) { @@ -1862,10 +2304,17 @@ namespace eprosima { return true; } + + EntityDataPubSubType::EntityDataPubSubType() { setName("eprosima::fastdds::statistics::EntityData"); - uint32_t type_size = eprosima_fastdds_statistics_EntityData_max_cdr_typesize; + uint32_t type_size = + #if FASTCDR_VERSION_MAJOR == 1 + EntityData::getMaxCdrSerializedSize(); + #else + eprosima_fastdds_statistics_EntityData_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; @@ -1896,10 +2345,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::PLAIN_CDR2); + #endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -1914,7 +2365,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; } @@ -1931,7 +2386,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(); @@ -1954,13 +2413,25 @@ 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 + 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 }; } @@ -1992,12 +2463,20 @@ namespace eprosima { eprosima_fastdds_statistics_EntityData_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_EntityData_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) { @@ -2014,10 +2493,17 @@ namespace eprosima { return true; } + + PhysicalDataPubSubType::PhysicalDataPubSubType() { setName("eprosima::fastdds::statistics::PhysicalData"); - uint32_t type_size = eprosima_fastdds_statistics_PhysicalData_max_cdr_typesize; + uint32_t type_size = + #if FASTCDR_VERSION_MAJOR == 1 + PhysicalData::getMaxCdrSerializedSize(); + #else + eprosima_fastdds_statistics_PhysicalData_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; @@ -2048,10 +2534,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::PLAIN_CDR2); + #endif // FASTCDR_VERSION_MAJOR > 1 try { @@ -2066,7 +2554,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; } @@ -2083,7 +2575,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(); @@ -2106,13 +2602,25 @@ 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 + 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 }; } @@ -2144,12 +2652,20 @@ namespace eprosima { eprosima_fastdds_statistics_PhysicalData_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_PhysicalData_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) { @@ -2169,6 +2685,9 @@ namespace eprosima { + + + } //End of namespace statistics diff --git a/src/cpp/topic_types/typesPubSubTypes.h b/src/cpp/topic_types/typesPubSubTypes.h index a6cfca0a5..44afc80a5 100644 --- a/src/cpp/topic_types/typesPubSubTypes.h +++ b/src/cpp/topic_types/typesPubSubTypes.h @@ -46,6 +46,8 @@ namespace eprosima namespace detail { + + #ifndef SWIG namespace detail { @@ -189,6 +191,8 @@ namespace eprosima }; + + #ifndef SWIG namespace detail { @@ -332,6 +336,8 @@ namespace eprosima }; + + #ifndef SWIG namespace detail { @@ -475,6 +481,8 @@ namespace eprosima }; + + #ifndef SWIG namespace detail { @@ -618,6 +626,8 @@ namespace eprosima }; + + #ifndef SWIG namespace detail { @@ -761,6 +771,8 @@ namespace eprosima }; + + #ifndef SWIG namespace detail { @@ -905,6 +917,8 @@ namespace eprosima }; } + + /*! * @brief This class represents the TopicDataType of the type DiscoveryTime defined by the user in the IDL file. * @ingroup types @@ -993,6 +1007,8 @@ namespace eprosima }; + + #ifndef SWIG namespace detail { @@ -1136,6 +1152,8 @@ namespace eprosima }; + + #ifndef SWIG namespace detail { @@ -1279,6 +1297,8 @@ namespace eprosima }; + + #ifndef SWIG namespace detail { @@ -1422,6 +1442,8 @@ namespace eprosima }; + + #ifndef SWIG namespace detail { @@ -1565,6 +1587,8 @@ namespace eprosima }; + + #ifndef SWIG namespace detail { @@ -1708,6 +1732,8 @@ namespace eprosima }; + + #ifndef SWIG namespace detail { @@ -1851,6 +1877,8 @@ namespace eprosima }; + + /*! * @brief This class represents the TopicDataType of the type PhysicalData defined by the user in the IDL file. * @ingroup types @@ -1940,6 +1968,9 @@ namespace eprosima }; + + + } } } diff --git a/src/cpp/topic_types/typesv1.cxx b/src/cpp/topic_types/typesv1.cxx new file mode 100644 index 000000000..fe0ac29c7 --- /dev/null +++ b/src/cpp/topic_types/typesv1.cxx @@ -0,0 +1,4757 @@ +// 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 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 "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 820ULL; +#define eprosima_fastdds_statistics_PhysicalData_max_cdr_typesize 796ULL; + +#define eprosima_fastdds_statistics_detail_Locator_s_max_cdr_typesize 24ULL; + +#define eprosima_fastdds_statistics_detail_GuidPrefix_s_max_cdr_typesize 12ULL; +#define eprosima_fastdds_statistics_detail_SampleIdentity_s_max_cdr_typesize 24ULL; +#define eprosima_fastdds_statistics_EntityData_max_cdr_typesize 20ULL; +#define eprosima_fastdds_statistics_Entity2LocatorTraffic_max_cdr_typesize 58ULL; +#define eprosima_fastdds_statistics_detail_EntityId_s_max_cdr_typesize 4ULL; +#define eprosima_fastdds_statistics_EntityCount_max_cdr_typesize 24ULL; +#define eprosima_fastdds_statistics_WriterReaderData_max_cdr_typesize 36ULL; +#define eprosima_fastdds_statistics_SampleIdentityCount_max_cdr_typesize 32ULL; +#define eprosima_fastdds_statistics_Locator2LocatorData_max_cdr_typesize 52ULL; +#define eprosima_fastdds_statistics_detail_GUID_s_max_cdr_typesize 16ULL; +#define eprosima_fastdds_statistics_detail_SequenceNumber_s_max_cdr_typesize 8ULL; + + +namespace eprosima { + +namespace fastdds { + +namespace statistics { + +namespace detail { + + + +EntityId_s::EntityId_s() +{ + // octet m_value + memset(&m_value, 0, ((4)) * 1); + +} + +EntityId_s::~EntityId_s() +{ +} + +EntityId_s::EntityId_s( + const EntityId_s& x) +{ + m_value = x.m_value; + +} + +EntityId_s::EntityId_s( + EntityId_s&& x) noexcept +{ + m_value = std::move(x.m_value); + +} + +EntityId_s& EntityId_s::operator =( + const EntityId_s& x) +{ + m_value = x.m_value; + + return *this; +} + +EntityId_s& EntityId_s::operator =( + EntityId_s&& x) noexcept +{ + m_value = std::move(x.m_value); + + return *this; +} + +bool EntityId_s::operator ==( + const EntityId_s& x) const +{ + return (m_value == x.m_value); +} + +bool EntityId_s::operator !=( + const EntityId_s& x) const +{ + return !(*this == x); +} + +size_t EntityId_s::getMaxCdrSerializedSize( + size_t current_alignment) +{ + static_cast(current_alignment); + return eprosima_fastdds_statistics_detail_EntityId_s_max_cdr_typesize; +} + +size_t EntityId_s::getCdrSerializedSize( + const EntityId_s& data, + size_t current_alignment) +{ + (void)data; + size_t initial_alignment = current_alignment; + + current_alignment += (((4)) * 1) + eprosima::fastcdr::Cdr::alignment(current_alignment, 1); + + + + return current_alignment - initial_alignment; +} + + +void EntityId_s::serialize( + eprosima::fastcdr::Cdr& scdr) const +{ + scdr << m_value; + + +} + +void EntityId_s::deserialize( + eprosima::fastcdr::Cdr& dcdr) +{ + dcdr >> m_value; + + +} + + +bool EntityId_s::isKeyDefined() +{ + return false; +} + +void EntityId_s::serializeKey( + eprosima::fastcdr::Cdr& scdr) const +{ + (void) scdr; +} + +/*! + * @brief This function copies the value in member value + * @param _value New value to be copied in member value + */ +void EntityId_s::value( + const std::array& _value) +{ + m_value = _value; +} + +/*! + * @brief This function moves the value in member value + * @param _value New value to be moved in member value + */ +void EntityId_s::value( + std::array&& _value) +{ + m_value = std::move(_value); +} + +/*! + * @brief This function returns a constant reference to member value + * @return Constant reference to member value + */ +const std::array& EntityId_s::value() const +{ + return m_value; +} + +/*! + * @brief This function returns a reference to member value + * @return Reference to member value + */ +std::array& EntityId_s::value() +{ + return m_value; +} + + + + + +GuidPrefix_s::GuidPrefix_s() +{ + // octet m_value + memset(&m_value, 0, ((12)) * 1); + +} + +GuidPrefix_s::~GuidPrefix_s() +{ +} + +GuidPrefix_s::GuidPrefix_s( + const GuidPrefix_s& x) +{ + m_value = x.m_value; + +} + +GuidPrefix_s::GuidPrefix_s( + GuidPrefix_s&& x) noexcept +{ + m_value = std::move(x.m_value); + +} + +GuidPrefix_s& GuidPrefix_s::operator =( + const GuidPrefix_s& x) +{ + m_value = x.m_value; + + return *this; +} + +GuidPrefix_s& GuidPrefix_s::operator =( + GuidPrefix_s&& x) noexcept +{ + m_value = std::move(x.m_value); + + return *this; +} + +bool GuidPrefix_s::operator ==( + const GuidPrefix_s& x) const +{ + return (m_value == x.m_value); +} + +bool GuidPrefix_s::operator !=( + const GuidPrefix_s& x) const +{ + return !(*this == x); +} + +size_t GuidPrefix_s::getMaxCdrSerializedSize( + size_t current_alignment) +{ + static_cast(current_alignment); + return eprosima_fastdds_statistics_detail_GuidPrefix_s_max_cdr_typesize; +} + +size_t GuidPrefix_s::getCdrSerializedSize( + const GuidPrefix_s& data, + size_t current_alignment) +{ + (void)data; + size_t initial_alignment = current_alignment; + + current_alignment += (((12)) * 1) + eprosima::fastcdr::Cdr::alignment(current_alignment, 1); + + + + return current_alignment - initial_alignment; +} + + +void GuidPrefix_s::serialize( + eprosima::fastcdr::Cdr& scdr) const +{ + scdr << m_value; + + +} + +void GuidPrefix_s::deserialize( + eprosima::fastcdr::Cdr& dcdr) +{ + dcdr >> m_value; + + +} + + +bool GuidPrefix_s::isKeyDefined() +{ + return false; +} + +void GuidPrefix_s::serializeKey( + eprosima::fastcdr::Cdr& scdr) const +{ + (void) scdr; +} + +/*! + * @brief This function copies the value in member value + * @param _value New value to be copied in member value + */ +void GuidPrefix_s::value( + const std::array& _value) +{ + m_value = _value; +} + +/*! + * @brief This function moves the value in member value + * @param _value New value to be moved in member value + */ +void GuidPrefix_s::value( + std::array&& _value) +{ + m_value = std::move(_value); +} + +/*! + * @brief This function returns a constant reference to member value + * @return Constant reference to member value + */ +const std::array& GuidPrefix_s::value() const +{ + return m_value; +} + +/*! + * @brief This function returns a reference to member value + * @return Reference to member value + */ +std::array& GuidPrefix_s::value() +{ + return m_value; +} + + + + + +GUID_s::GUID_s() +{ + // eprosima::fastdds::statistics::detail::GuidPrefix_s m_guidPrefix + + // eprosima::fastdds::statistics::detail::EntityId_s m_entityId + + +} + +GUID_s::~GUID_s() +{ +} + +GUID_s::GUID_s( + const GUID_s& x) +{ + m_guidPrefix = x.m_guidPrefix; + + + m_entityId = x.m_entityId; + +} + +GUID_s::GUID_s( + GUID_s&& x) noexcept +{ + m_guidPrefix = std::move(x.m_guidPrefix); + + + m_entityId = std::move(x.m_entityId); + +} + +GUID_s& GUID_s::operator =( + const GUID_s& x) +{ + m_guidPrefix = x.m_guidPrefix; + + + m_entityId = x.m_entityId; + + return *this; +} + +GUID_s& GUID_s::operator =( + GUID_s&& x) noexcept +{ + m_guidPrefix = std::move(x.m_guidPrefix); + + + m_entityId = std::move(x.m_entityId); + + return *this; +} + +bool GUID_s::operator ==( + const GUID_s& x) const +{ + return (m_guidPrefix == x.m_guidPrefix && + m_entityId == x.m_entityId); +} + +bool GUID_s::operator !=( + const GUID_s& x) const +{ + return !(*this == x); +} + +size_t GUID_s::getMaxCdrSerializedSize( + size_t current_alignment) +{ + static_cast(current_alignment); + return eprosima_fastdds_statistics_detail_GUID_s_max_cdr_typesize; +} + +size_t GUID_s::getCdrSerializedSize( + const GUID_s& data, + size_t current_alignment) +{ + (void)data; + size_t initial_alignment = current_alignment; + + current_alignment += eprosima::fastdds::statistics::detail::GuidPrefix_s::getCdrSerializedSize(data.guidPrefix(), current_alignment); + + + current_alignment += eprosima::fastdds::statistics::detail::EntityId_s::getCdrSerializedSize(data.entityId(), current_alignment); + + + return current_alignment - initial_alignment; +} + + +void GUID_s::serialize( + eprosima::fastcdr::Cdr& scdr) const +{ + scdr << m_guidPrefix; + + scdr << m_entityId; + +} + +void GUID_s::deserialize( + eprosima::fastcdr::Cdr& dcdr) +{ + dcdr >> m_guidPrefix; + + + + dcdr >> m_entityId; + + +} + + +bool GUID_s::isKeyDefined() +{ + return false; +} + +void GUID_s::serializeKey( + eprosima::fastcdr::Cdr& scdr) const +{ + (void) scdr; +} + +/*! + * @brief This function copies the value in member guidPrefix + * @param _guidPrefix New value to be copied in member guidPrefix + */ +void GUID_s::guidPrefix( + const eprosima::fastdds::statistics::detail::GuidPrefix_s& _guidPrefix) +{ + m_guidPrefix = _guidPrefix; +} + +/*! + * @brief This function moves the value in member guidPrefix + * @param _guidPrefix New value to be moved in member guidPrefix + */ +void GUID_s::guidPrefix( + eprosima::fastdds::statistics::detail::GuidPrefix_s&& _guidPrefix) +{ + m_guidPrefix = std::move(_guidPrefix); +} + +/*! + * @brief This function returns a constant reference to member guidPrefix + * @return Constant reference to member guidPrefix + */ +const eprosima::fastdds::statistics::detail::GuidPrefix_s& GUID_s::guidPrefix() const +{ + return m_guidPrefix; +} + +/*! + * @brief This function returns a reference to member guidPrefix + * @return Reference to member guidPrefix + */ +eprosima::fastdds::statistics::detail::GuidPrefix_s& GUID_s::guidPrefix() +{ + return m_guidPrefix; +} + + +/*! + * @brief This function copies the value in member entityId + * @param _entityId New value to be copied in member entityId + */ +void GUID_s::entityId( + const eprosima::fastdds::statistics::detail::EntityId_s& _entityId) +{ + m_entityId = _entityId; +} + +/*! + * @brief This function moves the value in member entityId + * @param _entityId New value to be moved in member entityId + */ +void GUID_s::entityId( + eprosima::fastdds::statistics::detail::EntityId_s&& _entityId) +{ + m_entityId = std::move(_entityId); +} + +/*! + * @brief This function returns a constant reference to member entityId + * @return Constant reference to member entityId + */ +const eprosima::fastdds::statistics::detail::EntityId_s& GUID_s::entityId() const +{ + return m_entityId; +} + +/*! + * @brief This function returns a reference to member entityId + * @return Reference to member entityId + */ +eprosima::fastdds::statistics::detail::EntityId_s& GUID_s::entityId() +{ + return m_entityId; +} + + + + + +SequenceNumber_s::SequenceNumber_s() +{ + // long m_high + m_high = 0; + // unsigned long m_low + m_low = 0; + +} + +SequenceNumber_s::~SequenceNumber_s() +{ +} + +SequenceNumber_s::SequenceNumber_s( + const SequenceNumber_s& x) +{ + m_high = x.m_high; + + + m_low = x.m_low; + +} + +SequenceNumber_s::SequenceNumber_s( + SequenceNumber_s&& x) noexcept +{ + m_high = x.m_high; + + + m_low = x.m_low; + +} + +SequenceNumber_s& SequenceNumber_s::operator =( + const SequenceNumber_s& x) +{ + m_high = x.m_high; + + + m_low = x.m_low; + + return *this; +} + +SequenceNumber_s& SequenceNumber_s::operator =( + SequenceNumber_s&& x) noexcept +{ + m_high = x.m_high; + + + m_low = x.m_low; + + return *this; +} + +bool SequenceNumber_s::operator ==( + const SequenceNumber_s& x) const +{ + return (m_high == x.m_high && + m_low == x.m_low); +} + +bool SequenceNumber_s::operator !=( + const SequenceNumber_s& x) const +{ + return !(*this == x); +} + +size_t SequenceNumber_s::getMaxCdrSerializedSize( + size_t current_alignment) +{ + static_cast(current_alignment); + return eprosima_fastdds_statistics_detail_SequenceNumber_s_max_cdr_typesize; +} + +size_t SequenceNumber_s::getCdrSerializedSize( + const SequenceNumber_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 SequenceNumber_s::serialize( + eprosima::fastcdr::Cdr& scdr) const +{ + scdr << m_high; + + scdr << m_low; + +} + +void SequenceNumber_s::deserialize( + eprosima::fastcdr::Cdr& dcdr) +{ + dcdr >> m_high; + + + + dcdr >> m_low; + + +} + + +bool SequenceNumber_s::isKeyDefined() +{ + return false; +} + +void SequenceNumber_s::serializeKey( + eprosima::fastcdr::Cdr& scdr) const +{ + (void) scdr; +} + +/*! + * @brief This function sets a value in member high + * @param _high New value for member high + */ +void SequenceNumber_s::high( + int32_t _high) +{ + m_high = _high; +} + +/*! + * @brief This function returns the value of member high + * @return Value of member high + */ +int32_t SequenceNumber_s::high() const +{ + return m_high; +} + +/*! + * @brief This function returns a reference to member high + * @return Reference to member high + */ +int32_t& SequenceNumber_s::high() +{ + return m_high; +} + + +/*! + * @brief This function sets a value in member low + * @param _low New value for member low + */ +void SequenceNumber_s::low( + uint32_t _low) +{ + m_low = _low; +} + +/*! + * @brief This function returns the value of member low + * @return Value of member low + */ +uint32_t SequenceNumber_s::low() const +{ + return m_low; +} + +/*! + * @brief This function returns a reference to member low + * @return Reference to member low + */ +uint32_t& SequenceNumber_s::low() +{ + return m_low; +} + + + + + +SampleIdentity_s::SampleIdentity_s() +{ + // eprosima::fastdds::statistics::detail::GUID_s m_writer_guid + + // eprosima::fastdds::statistics::detail::SequenceNumber_s m_sequence_number + + +} + +SampleIdentity_s::~SampleIdentity_s() +{ +} + +SampleIdentity_s::SampleIdentity_s( + const SampleIdentity_s& x) +{ + m_writer_guid = x.m_writer_guid; + + + m_sequence_number = x.m_sequence_number; + +} + +SampleIdentity_s::SampleIdentity_s( + SampleIdentity_s&& x) noexcept +{ + m_writer_guid = std::move(x.m_writer_guid); + + + m_sequence_number = std::move(x.m_sequence_number); + +} + +SampleIdentity_s& SampleIdentity_s::operator =( + const SampleIdentity_s& x) +{ + m_writer_guid = x.m_writer_guid; + + + m_sequence_number = x.m_sequence_number; + + return *this; +} + +SampleIdentity_s& SampleIdentity_s::operator =( + SampleIdentity_s&& x) noexcept +{ + m_writer_guid = std::move(x.m_writer_guid); + + + m_sequence_number = std::move(x.m_sequence_number); + + return *this; +} + +bool SampleIdentity_s::operator ==( + const SampleIdentity_s& x) const +{ + return (m_writer_guid == x.m_writer_guid && + m_sequence_number == x.m_sequence_number); +} + +bool SampleIdentity_s::operator !=( + const SampleIdentity_s& x) const +{ + return !(*this == x); +} + +size_t SampleIdentity_s::getMaxCdrSerializedSize( + size_t current_alignment) +{ + static_cast(current_alignment); + return eprosima_fastdds_statistics_detail_SampleIdentity_s_max_cdr_typesize; +} + +size_t SampleIdentity_s::getCdrSerializedSize( + const SampleIdentity_s& data, + size_t current_alignment) +{ + (void)data; + size_t initial_alignment = current_alignment; + + current_alignment += eprosima::fastdds::statistics::detail::GUID_s::getCdrSerializedSize(data.writer_guid(), current_alignment); + + + current_alignment += eprosima::fastdds::statistics::detail::SequenceNumber_s::getCdrSerializedSize(data.sequence_number(), current_alignment); + + + return current_alignment - initial_alignment; +} + + +void SampleIdentity_s::serialize( + eprosima::fastcdr::Cdr& scdr) const +{ + scdr << m_writer_guid; + + scdr << m_sequence_number; + +} + +void SampleIdentity_s::deserialize( + eprosima::fastcdr::Cdr& dcdr) +{ + dcdr >> m_writer_guid; + + + + dcdr >> m_sequence_number; + + +} + + +bool SampleIdentity_s::isKeyDefined() +{ + return false; +} + +void SampleIdentity_s::serializeKey( + eprosima::fastcdr::Cdr& scdr) const +{ + (void) scdr; +} + +/*! + * @brief This function copies the value in member writer_guid + * @param _writer_guid New value to be copied in member writer_guid + */ +void SampleIdentity_s::writer_guid( + const eprosima::fastdds::statistics::detail::GUID_s& _writer_guid) +{ + m_writer_guid = _writer_guid; +} + +/*! + * @brief This function moves the value in member writer_guid + * @param _writer_guid New value to be moved in member writer_guid + */ +void SampleIdentity_s::writer_guid( + eprosima::fastdds::statistics::detail::GUID_s&& _writer_guid) +{ + m_writer_guid = std::move(_writer_guid); +} + +/*! + * @brief This function returns a constant reference to member writer_guid + * @return Constant reference to member writer_guid + */ +const eprosima::fastdds::statistics::detail::GUID_s& SampleIdentity_s::writer_guid() const +{ + return m_writer_guid; +} + +/*! + * @brief This function returns a reference to member writer_guid + * @return Reference to member writer_guid + */ +eprosima::fastdds::statistics::detail::GUID_s& SampleIdentity_s::writer_guid() +{ + return m_writer_guid; +} + + +/*! + * @brief This function copies the value in member sequence_number + * @param _sequence_number New value to be copied in member sequence_number + */ +void SampleIdentity_s::sequence_number( + const eprosima::fastdds::statistics::detail::SequenceNumber_s& _sequence_number) +{ + m_sequence_number = _sequence_number; +} + +/*! + * @brief This function moves the value in member sequence_number + * @param _sequence_number New value to be moved in member sequence_number + */ +void SampleIdentity_s::sequence_number( + eprosima::fastdds::statistics::detail::SequenceNumber_s&& _sequence_number) +{ + m_sequence_number = std::move(_sequence_number); +} + +/*! + * @brief This function returns a constant reference to member sequence_number + * @return Constant reference to member sequence_number + */ +const eprosima::fastdds::statistics::detail::SequenceNumber_s& SampleIdentity_s::sequence_number() const +{ + return m_sequence_number; +} + +/*! + * @brief This function returns a reference to member sequence_number + * @return Reference to member sequence_number + */ +eprosima::fastdds::statistics::detail::SequenceNumber_s& SampleIdentity_s::sequence_number() +{ + return m_sequence_number; +} + + + + + +Locator_s::Locator_s() +{ + // long m_kind + m_kind = 0; + // unsigned long m_port + m_port = 0; + // octet m_address + memset(&m_address, 0, ((16)) * 1); + +} + +Locator_s::~Locator_s() +{ +} + +Locator_s::Locator_s( + const Locator_s& x) +{ + m_kind = x.m_kind; + + + m_port = x.m_port; + + + m_address = x.m_address; + +} + +Locator_s::Locator_s( + Locator_s&& x) noexcept +{ + m_kind = x.m_kind; + + + m_port = x.m_port; + + + m_address = std::move(x.m_address); + +} + +Locator_s& Locator_s::operator =( + const Locator_s& x) +{ + m_kind = x.m_kind; + + + m_port = x.m_port; + + + m_address = x.m_address; + + return *this; +} + +Locator_s& Locator_s::operator =( + Locator_s&& x) noexcept +{ + m_kind = x.m_kind; + + + m_port = x.m_port; + + + m_address = std::move(x.m_address); + + return *this; +} + +bool Locator_s::operator ==( + const Locator_s& x) const +{ + return (m_kind == x.m_kind && + m_port == x.m_port && + m_address == x.m_address); +} + +bool Locator_s::operator !=( + const Locator_s& x) const +{ + return !(*this == x); +} + +size_t Locator_s::getMaxCdrSerializedSize( + size_t current_alignment) +{ + static_cast(current_alignment); + return eprosima_fastdds_statistics_detail_Locator_s_max_cdr_typesize; +} + +size_t Locator_s::getCdrSerializedSize( + const Locator_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 Locator_s::serialize( + eprosima::fastcdr::Cdr& scdr) const +{ + scdr << m_kind; + + scdr << m_port; + + scdr << m_address; + + +} + +void Locator_s::deserialize( + eprosima::fastcdr::Cdr& dcdr) +{ + dcdr >> m_kind; + + + + dcdr >> m_port; + + + + dcdr >> m_address; + + +} + + +bool Locator_s::isKeyDefined() +{ + return false; +} + +void Locator_s::serializeKey( + eprosima::fastcdr::Cdr& scdr) const +{ + (void) scdr; +} + +/*! + * @brief This function sets a value in member kind + * @param _kind New value for member kind + */ +void Locator_s::kind( + int32_t _kind) +{ + m_kind = _kind; +} + +/*! + * @brief This function returns the value of member kind + * @return Value of member kind + */ +int32_t Locator_s::kind() const +{ + return m_kind; +} + +/*! + * @brief This function returns a reference to member kind + * @return Reference to member kind + */ +int32_t& Locator_s::kind() +{ + return m_kind; +} + + +/*! + * @brief This function sets a value in member port + * @param _port New value for member port + */ +void Locator_s::port( + uint32_t _port) +{ + m_port = _port; +} + +/*! + * @brief This function returns the value of member port + * @return Value of member port + */ +uint32_t Locator_s::port() const +{ + return m_port; +} + +/*! + * @brief This function returns a reference to member port + * @return Reference to member port + */ +uint32_t& Locator_s::port() +{ + return m_port; +} + + +/*! + * @brief This function copies the value in member address + * @param _address New value to be copied in member address + */ +void Locator_s::address( + const std::array& _address) +{ + m_address = _address; +} + +/*! + * @brief This function moves the value in member address + * @param _address New value to be moved in member address + */ +void Locator_s::address( + std::array&& _address) +{ + m_address = std::move(_address); +} + +/*! + * @brief This function returns a constant reference to member address + * @return Constant reference to member address + */ +const std::array& Locator_s::address() const +{ + return m_address; +} + +/*! + * @brief This function returns a reference to member address + * @return Reference to member address + */ +std::array& Locator_s::address() +{ + return m_address; +} + + + + + +} // namespace detail + + +DiscoveryTime::DiscoveryTime() +{ + // eprosima::fastdds::statistics::detail::GUID_s m_local_participant_guid + + // eprosima::fastdds::statistics::detail::GUID_s m_remote_entity_guid + + // unsigned long long m_time + m_time = 0; + // /type_d() m_host + + // /type_d() m_user + + // /type_d() m_process + + +} + +DiscoveryTime::~DiscoveryTime() +{ +} + +DiscoveryTime::DiscoveryTime( + const DiscoveryTime& x) +{ + m_local_participant_guid = x.m_local_participant_guid; + + + m_remote_entity_guid = x.m_remote_entity_guid; + + + m_time = x.m_time; + + + m_host = x.m_host; + + + m_user = x.m_user; + + + m_process = x.m_process; + +} + +DiscoveryTime::DiscoveryTime( + DiscoveryTime&& x) noexcept +{ + m_local_participant_guid = std::move(x.m_local_participant_guid); + + + m_remote_entity_guid = std::move(x.m_remote_entity_guid); + + + m_time = x.m_time; + + + m_host = std::move(x.m_host); + + + m_user = std::move(x.m_user); + + + m_process = std::move(x.m_process); + +} + +DiscoveryTime& DiscoveryTime::operator =( + const DiscoveryTime& x) +{ + m_local_participant_guid = x.m_local_participant_guid; + + + m_remote_entity_guid = x.m_remote_entity_guid; + + + m_time = x.m_time; + + + m_host = x.m_host; + + + m_user = x.m_user; + + + m_process = x.m_process; + + return *this; +} + +DiscoveryTime& DiscoveryTime::operator =( + DiscoveryTime&& x) noexcept +{ + m_local_participant_guid = std::move(x.m_local_participant_guid); + + + m_remote_entity_guid = std::move(x.m_remote_entity_guid); + + + m_time = x.m_time; + + + m_host = std::move(x.m_host); + + + m_user = std::move(x.m_user); + + + m_process = std::move(x.m_process); + + return *this; +} + +bool DiscoveryTime::operator ==( + const DiscoveryTime& x) const +{ + return (m_local_participant_guid == x.m_local_participant_guid && + m_remote_entity_guid == x.m_remote_entity_guid && + m_time == x.m_time && + m_host == x.m_host && + m_user == x.m_user && + m_process == x.m_process); +} + +bool DiscoveryTime::operator !=( + const DiscoveryTime& x) const +{ + return !(*this == x); +} + +size_t DiscoveryTime::getMaxCdrSerializedSize( + size_t current_alignment) +{ + static_cast(current_alignment); + return eprosima_fastdds_statistics_DiscoveryTime_max_cdr_typesize; +} + +size_t DiscoveryTime::getCdrSerializedSize( + const DiscoveryTime& data, + size_t current_alignment) +{ + (void)data; + size_t initial_alignment = current_alignment; + + current_alignment += eprosima::fastdds::statistics::detail::GUID_s::getCdrSerializedSize(data.local_participant_guid(), current_alignment); + + + current_alignment += eprosima::fastdds::statistics::detail::GUID_s::getCdrSerializedSize(data.remote_entity_guid(), current_alignment); + + + current_alignment += 8 + eprosima::fastcdr::Cdr::alignment(current_alignment, 8); + + + current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4) + data.host().size() + 1; + + + current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4) + data.user().size() + 1; + + + current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4) + data.process().size() + 1; + + + return current_alignment - initial_alignment; +} + + +void DiscoveryTime::serialize( + eprosima::fastcdr::Cdr& scdr) const +{ + scdr << m_local_participant_guid; + + scdr << m_remote_entity_guid; + + scdr << m_time; + + scdr << m_host.c_str(); + + scdr << m_user.c_str(); + + scdr << m_process.c_str(); + +} + +void DiscoveryTime::deserialize( + eprosima::fastcdr::Cdr& dcdr) +{ + dcdr >> m_local_participant_guid; + + + + dcdr >> m_remote_entity_guid; + + + + dcdr >> m_time; + + + + dcdr >> m_host; + + + + dcdr >> m_user; + + + + dcdr >> m_process; + + +} + + +bool DiscoveryTime::isKeyDefined() +{ + return true; +} + +void DiscoveryTime::serializeKey( + eprosima::fastcdr::Cdr& scdr) const +{ + (void) scdr; + m_local_participant_guid.serialize(scdr); + m_remote_entity_guid.serialize(scdr); + + + + +} + +/*! + * @brief This function copies the value in member local_participant_guid + * @param _local_participant_guid New value to be copied in member local_participant_guid + */ +void DiscoveryTime::local_participant_guid( + const eprosima::fastdds::statistics::detail::GUID_s& _local_participant_guid) +{ + m_local_participant_guid = _local_participant_guid; +} + +/*! + * @brief This function moves the value in member local_participant_guid + * @param _local_participant_guid New value to be moved in member local_participant_guid + */ +void DiscoveryTime::local_participant_guid( + eprosima::fastdds::statistics::detail::GUID_s&& _local_participant_guid) +{ + m_local_participant_guid = std::move(_local_participant_guid); +} + +/*! + * @brief This function returns a constant reference to member local_participant_guid + * @return Constant reference to member local_participant_guid + */ +const eprosima::fastdds::statistics::detail::GUID_s& DiscoveryTime::local_participant_guid() const +{ + return m_local_participant_guid; +} + +/*! + * @brief This function returns a reference to member local_participant_guid + * @return Reference to member local_participant_guid + */ +eprosima::fastdds::statistics::detail::GUID_s& DiscoveryTime::local_participant_guid() +{ + return m_local_participant_guid; +} + + +/*! + * @brief This function copies the value in member remote_entity_guid + * @param _remote_entity_guid New value to be copied in member remote_entity_guid + */ +void DiscoveryTime::remote_entity_guid( + const eprosima::fastdds::statistics::detail::GUID_s& _remote_entity_guid) +{ + m_remote_entity_guid = _remote_entity_guid; +} + +/*! + * @brief This function moves the value in member remote_entity_guid + * @param _remote_entity_guid New value to be moved in member remote_entity_guid + */ +void DiscoveryTime::remote_entity_guid( + eprosima::fastdds::statistics::detail::GUID_s&& _remote_entity_guid) +{ + m_remote_entity_guid = std::move(_remote_entity_guid); +} + +/*! + * @brief This function returns a constant reference to member remote_entity_guid + * @return Constant reference to member remote_entity_guid + */ +const eprosima::fastdds::statistics::detail::GUID_s& DiscoveryTime::remote_entity_guid() const +{ + return m_remote_entity_guid; +} + +/*! + * @brief This function returns a reference to member remote_entity_guid + * @return Reference to member remote_entity_guid + */ +eprosima::fastdds::statistics::detail::GUID_s& DiscoveryTime::remote_entity_guid() +{ + return m_remote_entity_guid; +} + + +/*! + * @brief This function sets a value in member time + * @param _time New value for member time + */ +void DiscoveryTime::time( + uint64_t _time) +{ + m_time = _time; +} + +/*! + * @brief This function returns the value of member time + * @return Value of member time + */ +uint64_t DiscoveryTime::time() const +{ + return m_time; +} + +/*! + * @brief This function returns a reference to member time + * @return Reference to member time + */ +uint64_t& DiscoveryTime::time() +{ + return m_time; +} + + +/*! + * @brief This function copies the value in member host + * @param _host New value to be copied in member host + */ +void DiscoveryTime::host( + const std::string& _host) +{ + m_host = _host; +} + +/*! + * @brief This function moves the value in member host + * @param _host New value to be moved in member host + */ +void DiscoveryTime::host( + std::string&& _host) +{ + m_host = std::move(_host); +} + +/*! + * @brief This function returns a constant reference to member host + * @return Constant reference to member host + */ +const std::string& DiscoveryTime::host() const +{ + return m_host; +} + +/*! + * @brief This function returns a reference to member host + * @return Reference to member host + */ +std::string& DiscoveryTime::host() +{ + return m_host; +} + + +/*! + * @brief This function copies the value in member user + * @param _user New value to be copied in member user + */ +void DiscoveryTime::user( + const std::string& _user) +{ + m_user = _user; +} + +/*! + * @brief This function moves the value in member user + * @param _user New value to be moved in member user + */ +void DiscoveryTime::user( + std::string&& _user) +{ + m_user = std::move(_user); +} + +/*! + * @brief This function returns a constant reference to member user + * @return Constant reference to member user + */ +const std::string& DiscoveryTime::user() const +{ + return m_user; +} + +/*! + * @brief This function returns a reference to member user + * @return Reference to member user + */ +std::string& DiscoveryTime::user() +{ + return m_user; +} + + +/*! + * @brief This function copies the value in member process + * @param _process New value to be copied in member process + */ +void DiscoveryTime::process( + const std::string& _process) +{ + m_process = _process; +} + +/*! + * @brief This function moves the value in member process + * @param _process New value to be moved in member process + */ +void DiscoveryTime::process( + std::string&& _process) +{ + m_process = std::move(_process); +} + +/*! + * @brief This function returns a constant reference to member process + * @return Constant reference to member process + */ +const std::string& DiscoveryTime::process() const +{ + return m_process; +} + +/*! + * @brief This function returns a reference to member process + * @return Reference to member process + */ +std::string& DiscoveryTime::process() +{ + return m_process; +} + + + + + +EntityCount::EntityCount() +{ + // eprosima::fastdds::statistics::detail::GUID_s m_guid + + // unsigned long long m_count + m_count = 0; + +} + +EntityCount::~EntityCount() +{ +} + +EntityCount::EntityCount( + const EntityCount& x) +{ + m_guid = x.m_guid; + + + m_count = x.m_count; + +} + +EntityCount::EntityCount( + EntityCount&& x) noexcept +{ + m_guid = std::move(x.m_guid); + + + m_count = x.m_count; + +} + +EntityCount& EntityCount::operator =( + const EntityCount& x) +{ + m_guid = x.m_guid; + + + m_count = x.m_count; + + return *this; +} + +EntityCount& EntityCount::operator =( + EntityCount&& x) noexcept +{ + m_guid = std::move(x.m_guid); + + + m_count = x.m_count; + + return *this; +} + +bool EntityCount::operator ==( + const EntityCount& x) const +{ + return (m_guid == x.m_guid && + m_count == x.m_count); +} + +bool EntityCount::operator !=( + const EntityCount& x) const +{ + return !(*this == x); +} + +size_t EntityCount::getMaxCdrSerializedSize( + size_t current_alignment) +{ + static_cast(current_alignment); + return eprosima_fastdds_statistics_EntityCount_max_cdr_typesize; +} + +size_t EntityCount::getCdrSerializedSize( + const EntityCount& data, + size_t current_alignment) +{ + (void)data; + size_t initial_alignment = current_alignment; + + current_alignment += eprosima::fastdds::statistics::detail::GUID_s::getCdrSerializedSize(data.guid(), current_alignment); + + + current_alignment += 8 + eprosima::fastcdr::Cdr::alignment(current_alignment, 8); + + + return current_alignment - initial_alignment; +} + + +void EntityCount::serialize( + eprosima::fastcdr::Cdr& scdr) const +{ + scdr << m_guid; + + scdr << m_count; + +} + +void EntityCount::deserialize( + eprosima::fastcdr::Cdr& dcdr) +{ + dcdr >> m_guid; + + + + dcdr >> m_count; + + +} + + +bool EntityCount::isKeyDefined() +{ + return true; +} + +void EntityCount::serializeKey( + eprosima::fastcdr::Cdr& scdr) const +{ + (void) scdr; + m_guid.serialize(scdr); + +} + +/*! + * @brief This function copies the value in member guid + * @param _guid New value to be copied in member guid + */ +void EntityCount::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 EntityCount::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& EntityCount::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& EntityCount::guid() +{ + return m_guid; +} + + +/*! + * @brief This function sets a value in member count + * @param _count New value for member count + */ +void EntityCount::count( + uint64_t _count) +{ + m_count = _count; +} + +/*! + * @brief This function returns the value of member count + * @return Value of member count + */ +uint64_t EntityCount::count() const +{ + return m_count; +} + +/*! + * @brief This function returns a reference to member count + * @return Reference to member count + */ +uint64_t& EntityCount::count() +{ + return m_count; +} + + + + + +SampleIdentityCount::SampleIdentityCount() +{ + // eprosima::fastdds::statistics::detail::SampleIdentity_s m_sample_id + + // unsigned long long m_count + m_count = 0; + +} + +SampleIdentityCount::~SampleIdentityCount() +{ +} + +SampleIdentityCount::SampleIdentityCount( + const SampleIdentityCount& x) +{ + m_sample_id = x.m_sample_id; + + + m_count = x.m_count; + +} + +SampleIdentityCount::SampleIdentityCount( + SampleIdentityCount&& x) noexcept +{ + m_sample_id = std::move(x.m_sample_id); + + + m_count = x.m_count; + +} + +SampleIdentityCount& SampleIdentityCount::operator =( + const SampleIdentityCount& x) +{ + m_sample_id = x.m_sample_id; + + + m_count = x.m_count; + + return *this; +} + +SampleIdentityCount& SampleIdentityCount::operator =( + SampleIdentityCount&& x) noexcept +{ + m_sample_id = std::move(x.m_sample_id); + + + m_count = x.m_count; + + return *this; +} + +bool SampleIdentityCount::operator ==( + const SampleIdentityCount& x) const +{ + return (m_sample_id == x.m_sample_id && + m_count == x.m_count); +} + +bool SampleIdentityCount::operator !=( + const SampleIdentityCount& x) const +{ + return !(*this == x); +} + +size_t SampleIdentityCount::getMaxCdrSerializedSize( + size_t current_alignment) +{ + static_cast(current_alignment); + return eprosima_fastdds_statistics_SampleIdentityCount_max_cdr_typesize; +} + +size_t SampleIdentityCount::getCdrSerializedSize( + const SampleIdentityCount& data, + size_t current_alignment) +{ + (void)data; + size_t initial_alignment = current_alignment; + + current_alignment += eprosima::fastdds::statistics::detail::SampleIdentity_s::getCdrSerializedSize(data.sample_id(), current_alignment); + + + current_alignment += 8 + eprosima::fastcdr::Cdr::alignment(current_alignment, 8); + + + return current_alignment - initial_alignment; +} + + +void SampleIdentityCount::serialize( + eprosima::fastcdr::Cdr& scdr) const +{ + scdr << m_sample_id; + + scdr << m_count; + +} + +void SampleIdentityCount::deserialize( + eprosima::fastcdr::Cdr& dcdr) +{ + dcdr >> m_sample_id; + + + + dcdr >> m_count; + + +} + + +bool SampleIdentityCount::isKeyDefined() +{ + return true; +} + +void SampleIdentityCount::serializeKey( + eprosima::fastcdr::Cdr& scdr) const +{ + (void) scdr; + m_sample_id.serialize(scdr); + +} + +/*! + * @brief This function copies the value in member sample_id + * @param _sample_id New value to be copied in member sample_id + */ +void SampleIdentityCount::sample_id( + const eprosima::fastdds::statistics::detail::SampleIdentity_s& _sample_id) +{ + m_sample_id = _sample_id; +} + +/*! + * @brief This function moves the value in member sample_id + * @param _sample_id New value to be moved in member sample_id + */ +void SampleIdentityCount::sample_id( + eprosima::fastdds::statistics::detail::SampleIdentity_s&& _sample_id) +{ + m_sample_id = std::move(_sample_id); +} + +/*! + * @brief This function returns a constant reference to member sample_id + * @return Constant reference to member sample_id + */ +const eprosima::fastdds::statistics::detail::SampleIdentity_s& SampleIdentityCount::sample_id() const +{ + return m_sample_id; +} + +/*! + * @brief This function returns a reference to member sample_id + * @return Reference to member sample_id + */ +eprosima::fastdds::statistics::detail::SampleIdentity_s& SampleIdentityCount::sample_id() +{ + return m_sample_id; +} + + +/*! + * @brief This function sets a value in member count + * @param _count New value for member count + */ +void SampleIdentityCount::count( + uint64_t _count) +{ + m_count = _count; +} + +/*! + * @brief This function returns the value of member count + * @return Value of member count + */ +uint64_t SampleIdentityCount::count() const +{ + return m_count; +} + +/*! + * @brief This function returns a reference to member count + * @return Reference to member count + */ +uint64_t& SampleIdentityCount::count() +{ + return m_count; +} + + + + + +Entity2LocatorTraffic::Entity2LocatorTraffic() +{ + // eprosima::fastdds::statistics::detail::GUID_s m_src_guid + + // eprosima::fastdds::statistics::detail::Locator_s m_dst_locator + + // unsigned long long m_packet_count + m_packet_count = 0; + // unsigned long long m_byte_count + m_byte_count = 0; + // short m_byte_magnitude_order + m_byte_magnitude_order = 0; + +} + +Entity2LocatorTraffic::~Entity2LocatorTraffic() +{ +} + +Entity2LocatorTraffic::Entity2LocatorTraffic( + const Entity2LocatorTraffic& x) +{ + m_src_guid = x.m_src_guid; + + + m_dst_locator = x.m_dst_locator; + + + m_packet_count = x.m_packet_count; + + + m_byte_count = x.m_byte_count; + + + m_byte_magnitude_order = x.m_byte_magnitude_order; + +} + +Entity2LocatorTraffic::Entity2LocatorTraffic( + Entity2LocatorTraffic&& x) noexcept +{ + m_src_guid = std::move(x.m_src_guid); + + + m_dst_locator = std::move(x.m_dst_locator); + + + m_packet_count = x.m_packet_count; + + + m_byte_count = x.m_byte_count; + + + m_byte_magnitude_order = x.m_byte_magnitude_order; + +} + +Entity2LocatorTraffic& Entity2LocatorTraffic::operator =( + const Entity2LocatorTraffic& x) +{ + m_src_guid = x.m_src_guid; + + + m_dst_locator = x.m_dst_locator; + + + m_packet_count = x.m_packet_count; + + + m_byte_count = x.m_byte_count; + + + m_byte_magnitude_order = x.m_byte_magnitude_order; + + return *this; +} + +Entity2LocatorTraffic& Entity2LocatorTraffic::operator =( + Entity2LocatorTraffic&& x) noexcept +{ + m_src_guid = std::move(x.m_src_guid); + + + m_dst_locator = std::move(x.m_dst_locator); + + + m_packet_count = x.m_packet_count; + + + m_byte_count = x.m_byte_count; + + + m_byte_magnitude_order = x.m_byte_magnitude_order; + + return *this; +} + +bool Entity2LocatorTraffic::operator ==( + const Entity2LocatorTraffic& x) const +{ + return (m_src_guid == x.m_src_guid && + m_dst_locator == x.m_dst_locator && + m_packet_count == x.m_packet_count && + m_byte_count == x.m_byte_count && + m_byte_magnitude_order == x.m_byte_magnitude_order); +} + +bool Entity2LocatorTraffic::operator !=( + const Entity2LocatorTraffic& x) const +{ + return !(*this == x); +} + +size_t Entity2LocatorTraffic::getMaxCdrSerializedSize( + size_t current_alignment) +{ + static_cast(current_alignment); + return eprosima_fastdds_statistics_Entity2LocatorTraffic_max_cdr_typesize; +} + +size_t Entity2LocatorTraffic::getCdrSerializedSize( + const Entity2LocatorTraffic& data, + size_t current_alignment) +{ + (void)data; + size_t initial_alignment = current_alignment; + + current_alignment += eprosima::fastdds::statistics::detail::GUID_s::getCdrSerializedSize(data.src_guid(), current_alignment); + + + current_alignment += eprosima::fastdds::statistics::detail::Locator_s::getCdrSerializedSize(data.dst_locator(), current_alignment); + + + current_alignment += 8 + eprosima::fastcdr::Cdr::alignment(current_alignment, 8); + + + current_alignment += 8 + eprosima::fastcdr::Cdr::alignment(current_alignment, 8); + + + current_alignment += 2 + eprosima::fastcdr::Cdr::alignment(current_alignment, 2); + + + return current_alignment - initial_alignment; +} + + +void Entity2LocatorTraffic::serialize( + eprosima::fastcdr::Cdr& scdr) const +{ + scdr << m_src_guid; + + scdr << m_dst_locator; + + scdr << m_packet_count; + + scdr << m_byte_count; + + scdr << m_byte_magnitude_order; + +} + +void Entity2LocatorTraffic::deserialize( + eprosima::fastcdr::Cdr& dcdr) +{ + dcdr >> m_src_guid; + + + + dcdr >> m_dst_locator; + + + + dcdr >> m_packet_count; + + + + dcdr >> m_byte_count; + + + + dcdr >> m_byte_magnitude_order; + + +} + + +bool Entity2LocatorTraffic::isKeyDefined() +{ + return true; +} + +void Entity2LocatorTraffic::serializeKey( + eprosima::fastcdr::Cdr& scdr) const +{ + (void) scdr; + m_src_guid.serialize(scdr); + m_dst_locator.serialize(scdr); + + + +} + +/*! + * @brief This function copies the value in member src_guid + * @param _src_guid New value to be copied in member src_guid + */ +void Entity2LocatorTraffic::src_guid( + const eprosima::fastdds::statistics::detail::GUID_s& _src_guid) +{ + m_src_guid = _src_guid; +} + +/*! + * @brief This function moves the value in member src_guid + * @param _src_guid New value to be moved in member src_guid + */ +void Entity2LocatorTraffic::src_guid( + eprosima::fastdds::statistics::detail::GUID_s&& _src_guid) +{ + m_src_guid = std::move(_src_guid); +} + +/*! + * @brief This function returns a constant reference to member src_guid + * @return Constant reference to member src_guid + */ +const eprosima::fastdds::statistics::detail::GUID_s& Entity2LocatorTraffic::src_guid() const +{ + return m_src_guid; +} + +/*! + * @brief This function returns a reference to member src_guid + * @return Reference to member src_guid + */ +eprosima::fastdds::statistics::detail::GUID_s& Entity2LocatorTraffic::src_guid() +{ + return m_src_guid; +} + + +/*! + * @brief This function copies the value in member dst_locator + * @param _dst_locator New value to be copied in member dst_locator + */ +void Entity2LocatorTraffic::dst_locator( + const eprosima::fastdds::statistics::detail::Locator_s& _dst_locator) +{ + m_dst_locator = _dst_locator; +} + +/*! + * @brief This function moves the value in member dst_locator + * @param _dst_locator New value to be moved in member dst_locator + */ +void Entity2LocatorTraffic::dst_locator( + eprosima::fastdds::statistics::detail::Locator_s&& _dst_locator) +{ + m_dst_locator = std::move(_dst_locator); +} + +/*! + * @brief This function returns a constant reference to member dst_locator + * @return Constant reference to member dst_locator + */ +const eprosima::fastdds::statistics::detail::Locator_s& Entity2LocatorTraffic::dst_locator() const +{ + return m_dst_locator; +} + +/*! + * @brief This function returns a reference to member dst_locator + * @return Reference to member dst_locator + */ +eprosima::fastdds::statistics::detail::Locator_s& Entity2LocatorTraffic::dst_locator() +{ + return m_dst_locator; +} + + +/*! + * @brief This function sets a value in member packet_count + * @param _packet_count New value for member packet_count + */ +void Entity2LocatorTraffic::packet_count( + uint64_t _packet_count) +{ + m_packet_count = _packet_count; +} + +/*! + * @brief This function returns the value of member packet_count + * @return Value of member packet_count + */ +uint64_t Entity2LocatorTraffic::packet_count() const +{ + return m_packet_count; +} + +/*! + * @brief This function returns a reference to member packet_count + * @return Reference to member packet_count + */ +uint64_t& Entity2LocatorTraffic::packet_count() +{ + return m_packet_count; +} + + +/*! + * @brief This function sets a value in member byte_count + * @param _byte_count New value for member byte_count + */ +void Entity2LocatorTraffic::byte_count( + uint64_t _byte_count) +{ + m_byte_count = _byte_count; +} + +/*! + * @brief This function returns the value of member byte_count + * @return Value of member byte_count + */ +uint64_t Entity2LocatorTraffic::byte_count() const +{ + return m_byte_count; +} + +/*! + * @brief This function returns a reference to member byte_count + * @return Reference to member byte_count + */ +uint64_t& Entity2LocatorTraffic::byte_count() +{ + return m_byte_count; +} + + +/*! + * @brief This function sets a value in member byte_magnitude_order + * @param _byte_magnitude_order New value for member byte_magnitude_order + */ +void Entity2LocatorTraffic::byte_magnitude_order( + int16_t _byte_magnitude_order) +{ + m_byte_magnitude_order = _byte_magnitude_order; +} + +/*! + * @brief This function returns the value of member byte_magnitude_order + * @return Value of member byte_magnitude_order + */ +int16_t Entity2LocatorTraffic::byte_magnitude_order() const +{ + return m_byte_magnitude_order; +} + +/*! + * @brief This function returns a reference to member byte_magnitude_order + * @return Reference to member byte_magnitude_order + */ +int16_t& Entity2LocatorTraffic::byte_magnitude_order() +{ + return m_byte_magnitude_order; +} + + + + + +WriterReaderData::WriterReaderData() +{ + // eprosima::fastdds::statistics::detail::GUID_s m_writer_guid + + // eprosima::fastdds::statistics::detail::GUID_s m_reader_guid + + // float m_data + m_data = 0.0; + +} + +WriterReaderData::~WriterReaderData() +{ +} + +WriterReaderData::WriterReaderData( + const WriterReaderData& x) +{ + m_writer_guid = x.m_writer_guid; + + + m_reader_guid = x.m_reader_guid; + + + m_data = x.m_data; + +} + +WriterReaderData::WriterReaderData( + WriterReaderData&& x) noexcept +{ + m_writer_guid = std::move(x.m_writer_guid); + + + m_reader_guid = std::move(x.m_reader_guid); + + + m_data = x.m_data; + +} + +WriterReaderData& WriterReaderData::operator =( + const WriterReaderData& x) +{ + m_writer_guid = x.m_writer_guid; + + + m_reader_guid = x.m_reader_guid; + + + m_data = x.m_data; + + return *this; +} + +WriterReaderData& WriterReaderData::operator =( + WriterReaderData&& x) noexcept +{ + m_writer_guid = std::move(x.m_writer_guid); + + + m_reader_guid = std::move(x.m_reader_guid); + + + m_data = x.m_data; + + return *this; +} + +bool WriterReaderData::operator ==( + const WriterReaderData& x) const +{ + return (m_writer_guid == x.m_writer_guid && + m_reader_guid == x.m_reader_guid && + m_data == x.m_data); +} + +bool WriterReaderData::operator !=( + const WriterReaderData& x) const +{ + return !(*this == x); +} + +size_t WriterReaderData::getMaxCdrSerializedSize( + size_t current_alignment) +{ + static_cast(current_alignment); + return eprosima_fastdds_statistics_WriterReaderData_max_cdr_typesize; +} + +size_t WriterReaderData::getCdrSerializedSize( + const WriterReaderData& data, + size_t current_alignment) +{ + (void)data; + size_t initial_alignment = current_alignment; + + current_alignment += eprosima::fastdds::statistics::detail::GUID_s::getCdrSerializedSize(data.writer_guid(), current_alignment); + + + current_alignment += eprosima::fastdds::statistics::detail::GUID_s::getCdrSerializedSize(data.reader_guid(), current_alignment); + + + current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); + + + return current_alignment - initial_alignment; +} + + +void WriterReaderData::serialize( + eprosima::fastcdr::Cdr& scdr) const +{ + scdr << m_writer_guid; + + scdr << m_reader_guid; + + scdr << m_data; + +} + +void WriterReaderData::deserialize( + eprosima::fastcdr::Cdr& dcdr) +{ + dcdr >> m_writer_guid; + + + + dcdr >> m_reader_guid; + + + + dcdr >> m_data; + + +} + + +bool WriterReaderData::isKeyDefined() +{ + return true; +} + +void WriterReaderData::serializeKey( + eprosima::fastcdr::Cdr& scdr) const +{ + (void) scdr; + m_writer_guid.serialize(scdr); + m_reader_guid.serialize(scdr); + +} + +/*! + * @brief This function copies the value in member writer_guid + * @param _writer_guid New value to be copied in member writer_guid + */ +void WriterReaderData::writer_guid( + const eprosima::fastdds::statistics::detail::GUID_s& _writer_guid) +{ + m_writer_guid = _writer_guid; +} + +/*! + * @brief This function moves the value in member writer_guid + * @param _writer_guid New value to be moved in member writer_guid + */ +void WriterReaderData::writer_guid( + eprosima::fastdds::statistics::detail::GUID_s&& _writer_guid) +{ + m_writer_guid = std::move(_writer_guid); +} + +/*! + * @brief This function returns a constant reference to member writer_guid + * @return Constant reference to member writer_guid + */ +const eprosima::fastdds::statistics::detail::GUID_s& WriterReaderData::writer_guid() const +{ + return m_writer_guid; +} + +/*! + * @brief This function returns a reference to member writer_guid + * @return Reference to member writer_guid + */ +eprosima::fastdds::statistics::detail::GUID_s& WriterReaderData::writer_guid() +{ + return m_writer_guid; +} + + +/*! + * @brief This function copies the value in member reader_guid + * @param _reader_guid New value to be copied in member reader_guid + */ +void WriterReaderData::reader_guid( + const eprosima::fastdds::statistics::detail::GUID_s& _reader_guid) +{ + m_reader_guid = _reader_guid; +} + +/*! + * @brief This function moves the value in member reader_guid + * @param _reader_guid New value to be moved in member reader_guid + */ +void WriterReaderData::reader_guid( + eprosima::fastdds::statistics::detail::GUID_s&& _reader_guid) +{ + m_reader_guid = std::move(_reader_guid); +} + +/*! + * @brief This function returns a constant reference to member reader_guid + * @return Constant reference to member reader_guid + */ +const eprosima::fastdds::statistics::detail::GUID_s& WriterReaderData::reader_guid() const +{ + return m_reader_guid; +} + +/*! + * @brief This function returns a reference to member reader_guid + * @return Reference to member reader_guid + */ +eprosima::fastdds::statistics::detail::GUID_s& WriterReaderData::reader_guid() +{ + return m_reader_guid; +} + + +/*! + * @brief This function sets a value in member data + * @param _data New value for member data + */ +void WriterReaderData::data( + float _data) +{ + m_data = _data; +} + +/*! + * @brief This function returns the value of member data + * @return Value of member data + */ +float WriterReaderData::data() const +{ + return m_data; +} + +/*! + * @brief This function returns a reference to member data + * @return Reference to member data + */ +float& WriterReaderData::data() +{ + return m_data; +} + + + + + +Locator2LocatorData::Locator2LocatorData() +{ + // eprosima::fastdds::statistics::detail::Locator_s m_src_locator + + // eprosima::fastdds::statistics::detail::Locator_s m_dst_locator + + // float m_data + m_data = 0.0; + +} + +Locator2LocatorData::~Locator2LocatorData() +{ +} + +Locator2LocatorData::Locator2LocatorData( + const Locator2LocatorData& x) +{ + m_src_locator = x.m_src_locator; + + + m_dst_locator = x.m_dst_locator; + + + m_data = x.m_data; + +} + +Locator2LocatorData::Locator2LocatorData( + Locator2LocatorData&& x) noexcept +{ + m_src_locator = std::move(x.m_src_locator); + + + m_dst_locator = std::move(x.m_dst_locator); + + + m_data = x.m_data; + +} + +Locator2LocatorData& Locator2LocatorData::operator =( + const Locator2LocatorData& x) +{ + m_src_locator = x.m_src_locator; + + + m_dst_locator = x.m_dst_locator; + + + m_data = x.m_data; + + return *this; +} + +Locator2LocatorData& Locator2LocatorData::operator =( + Locator2LocatorData&& x) noexcept +{ + m_src_locator = std::move(x.m_src_locator); + + + m_dst_locator = std::move(x.m_dst_locator); + + + m_data = x.m_data; + + return *this; +} + +bool Locator2LocatorData::operator ==( + const Locator2LocatorData& x) const +{ + return (m_src_locator == x.m_src_locator && + m_dst_locator == x.m_dst_locator && + m_data == x.m_data); +} + +bool Locator2LocatorData::operator !=( + const Locator2LocatorData& x) const +{ + return !(*this == x); +} + +size_t Locator2LocatorData::getMaxCdrSerializedSize( + size_t current_alignment) +{ + static_cast(current_alignment); + return eprosima_fastdds_statistics_Locator2LocatorData_max_cdr_typesize; +} + +size_t Locator2LocatorData::getCdrSerializedSize( + const Locator2LocatorData& data, + size_t current_alignment) +{ + (void)data; + size_t initial_alignment = current_alignment; + + current_alignment += eprosima::fastdds::statistics::detail::Locator_s::getCdrSerializedSize(data.src_locator(), current_alignment); + + + current_alignment += eprosima::fastdds::statistics::detail::Locator_s::getCdrSerializedSize(data.dst_locator(), current_alignment); + + + current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); + + + return current_alignment - initial_alignment; +} + + +void Locator2LocatorData::serialize( + eprosima::fastcdr::Cdr& scdr) const +{ + scdr << m_src_locator; + + scdr << m_dst_locator; + + scdr << m_data; + +} + +void Locator2LocatorData::deserialize( + eprosima::fastcdr::Cdr& dcdr) +{ + dcdr >> m_src_locator; + + + + dcdr >> m_dst_locator; + + + + dcdr >> m_data; + + +} + + +bool Locator2LocatorData::isKeyDefined() +{ + return true; +} + +void Locator2LocatorData::serializeKey( + eprosima::fastcdr::Cdr& scdr) const +{ + (void) scdr; + m_src_locator.serialize(scdr); + m_dst_locator.serialize(scdr); + +} + +/*! + * @brief This function copies the value in member src_locator + * @param _src_locator New value to be copied in member src_locator + */ +void Locator2LocatorData::src_locator( + const eprosima::fastdds::statistics::detail::Locator_s& _src_locator) +{ + m_src_locator = _src_locator; +} + +/*! + * @brief This function moves the value in member src_locator + * @param _src_locator New value to be moved in member src_locator + */ +void Locator2LocatorData::src_locator( + eprosima::fastdds::statistics::detail::Locator_s&& _src_locator) +{ + m_src_locator = std::move(_src_locator); +} + +/*! + * @brief This function returns a constant reference to member src_locator + * @return Constant reference to member src_locator + */ +const eprosima::fastdds::statistics::detail::Locator_s& Locator2LocatorData::src_locator() const +{ + return m_src_locator; +} + +/*! + * @brief This function returns a reference to member src_locator + * @return Reference to member src_locator + */ +eprosima::fastdds::statistics::detail::Locator_s& Locator2LocatorData::src_locator() +{ + return m_src_locator; +} + + +/*! + * @brief This function copies the value in member dst_locator + * @param _dst_locator New value to be copied in member dst_locator + */ +void Locator2LocatorData::dst_locator( + const eprosima::fastdds::statistics::detail::Locator_s& _dst_locator) +{ + m_dst_locator = _dst_locator; +} + +/*! + * @brief This function moves the value in member dst_locator + * @param _dst_locator New value to be moved in member dst_locator + */ +void Locator2LocatorData::dst_locator( + eprosima::fastdds::statistics::detail::Locator_s&& _dst_locator) +{ + m_dst_locator = std::move(_dst_locator); +} + +/*! + * @brief This function returns a constant reference to member dst_locator + * @return Constant reference to member dst_locator + */ +const eprosima::fastdds::statistics::detail::Locator_s& Locator2LocatorData::dst_locator() const +{ + return m_dst_locator; +} + +/*! + * @brief This function returns a reference to member dst_locator + * @return Reference to member dst_locator + */ +eprosima::fastdds::statistics::detail::Locator_s& Locator2LocatorData::dst_locator() +{ + return m_dst_locator; +} + + +/*! + * @brief This function sets a value in member data + * @param _data New value for member data + */ +void Locator2LocatorData::data( + float _data) +{ + m_data = _data; +} + +/*! + * @brief This function returns the value of member data + * @return Value of member data + */ +float Locator2LocatorData::data() const +{ + return m_data; +} + +/*! + * @brief This function returns a reference to member data + * @return Reference to member data + */ +float& Locator2LocatorData::data() +{ + return m_data; +} + + + + + +EntityData::EntityData() +{ + // eprosima::fastdds::statistics::detail::GUID_s m_guid + + // float m_data + m_data = 0.0; + +} + +EntityData::~EntityData() +{ +} + +EntityData::EntityData( + const EntityData& x) +{ + m_guid = x.m_guid; + + + m_data = x.m_data; + +} + +EntityData::EntityData( + EntityData&& x) noexcept +{ + m_guid = std::move(x.m_guid); + + + m_data = x.m_data; + +} + +EntityData& EntityData::operator =( + const EntityData& x) +{ + m_guid = x.m_guid; + + + m_data = x.m_data; + + return *this; +} + +EntityData& EntityData::operator =( + EntityData&& x) noexcept +{ + m_guid = std::move(x.m_guid); + + + m_data = x.m_data; + + return *this; +} + +bool EntityData::operator ==( + const EntityData& x) const +{ + return (m_guid == x.m_guid && + m_data == x.m_data); +} + +bool EntityData::operator !=( + const EntityData& x) const +{ + return !(*this == x); +} + +size_t EntityData::getMaxCdrSerializedSize( + size_t current_alignment) +{ + static_cast(current_alignment); + return eprosima_fastdds_statistics_EntityData_max_cdr_typesize; +} + +size_t EntityData::getCdrSerializedSize( + const EntityData& data, + size_t current_alignment) +{ + (void)data; + size_t initial_alignment = current_alignment; + + current_alignment += eprosima::fastdds::statistics::detail::GUID_s::getCdrSerializedSize(data.guid(), current_alignment); + + + current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); + + + return current_alignment - initial_alignment; +} + + +void EntityData::serialize( + eprosima::fastcdr::Cdr& scdr) const +{ + scdr << m_guid; + + scdr << m_data; + +} + +void EntityData::deserialize( + eprosima::fastcdr::Cdr& dcdr) +{ + dcdr >> m_guid; + + + + dcdr >> m_data; + + +} + + +bool EntityData::isKeyDefined() +{ + return true; +} + +void EntityData::serializeKey( + eprosima::fastcdr::Cdr& scdr) const +{ + (void) scdr; + m_guid.serialize(scdr); + +} + +/*! + * @brief This function copies the value in member guid + * @param _guid New value to be copied in member guid + */ +void EntityData::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 EntityData::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& EntityData::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& EntityData::guid() +{ + return m_guid; +} + + +/*! + * @brief This function sets a value in member data + * @param _data New value for member data + */ +void EntityData::data( + float _data) +{ + m_data = _data; +} + +/*! + * @brief This function returns the value of member data + * @return Value of member data + */ +float EntityData::data() const +{ + return m_data; +} + +/*! + * @brief This function returns a reference to member data + * @return Reference to member data + */ +float& EntityData::data() +{ + return m_data; +} + + + + + +PhysicalData::PhysicalData() +{ + // eprosima::fastdds::statistics::detail::GUID_s m_participant_guid + + // /type_d() m_host + + // /type_d() m_user + + // /type_d() m_process + + +} + +PhysicalData::~PhysicalData() +{ +} + +PhysicalData::PhysicalData( + const PhysicalData& x) +{ + m_participant_guid = x.m_participant_guid; + + + m_host = x.m_host; + + + m_user = x.m_user; + + + m_process = x.m_process; + +} + +PhysicalData::PhysicalData( + PhysicalData&& x) noexcept +{ + m_participant_guid = std::move(x.m_participant_guid); + + + m_host = std::move(x.m_host); + + + m_user = std::move(x.m_user); + + + m_process = std::move(x.m_process); + +} + +PhysicalData& PhysicalData::operator =( + const PhysicalData& x) +{ + m_participant_guid = x.m_participant_guid; + + + m_host = x.m_host; + + + m_user = x.m_user; + + + m_process = x.m_process; + + return *this; +} + +PhysicalData& PhysicalData::operator =( + PhysicalData&& x) noexcept +{ + m_participant_guid = std::move(x.m_participant_guid); + + + m_host = std::move(x.m_host); + + + m_user = std::move(x.m_user); + + + m_process = std::move(x.m_process); + + return *this; +} + +bool PhysicalData::operator ==( + const PhysicalData& x) const +{ + return (m_participant_guid == x.m_participant_guid && + m_host == x.m_host && + m_user == x.m_user && + m_process == x.m_process); +} + +bool PhysicalData::operator !=( + const PhysicalData& x) const +{ + return !(*this == x); +} + +size_t PhysicalData::getMaxCdrSerializedSize( + size_t current_alignment) +{ + static_cast(current_alignment); + return eprosima_fastdds_statistics_PhysicalData_max_cdr_typesize; +} + +size_t PhysicalData::getCdrSerializedSize( + const PhysicalData& data, + size_t current_alignment) +{ + (void)data; + size_t initial_alignment = current_alignment; + + current_alignment += eprosima::fastdds::statistics::detail::GUID_s::getCdrSerializedSize(data.participant_guid(), current_alignment); + + + current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4) + data.host().size() + 1; + + + current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4) + data.user().size() + 1; + + + current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4) + data.process().size() + 1; + + + return current_alignment - initial_alignment; +} + + +void PhysicalData::serialize( + eprosima::fastcdr::Cdr& scdr) const +{ + scdr << m_participant_guid; + + scdr << m_host.c_str(); + + scdr << m_user.c_str(); + + scdr << m_process.c_str(); + +} + +void PhysicalData::deserialize( + eprosima::fastcdr::Cdr& dcdr) +{ + dcdr >> m_participant_guid; + + + + dcdr >> m_host; + + + + dcdr >> m_user; + + + + dcdr >> m_process; + + +} + + +bool PhysicalData::isKeyDefined() +{ + return true; +} + +void PhysicalData::serializeKey( + eprosima::fastcdr::Cdr& scdr) const +{ + (void) scdr; + m_participant_guid.serialize(scdr); + + + +} + +/*! + * @brief This function copies the value in member participant_guid + * @param _participant_guid New value to be copied in member participant_guid + */ +void PhysicalData::participant_guid( + const eprosima::fastdds::statistics::detail::GUID_s& _participant_guid) +{ + m_participant_guid = _participant_guid; +} + +/*! + * @brief This function moves the value in member participant_guid + * @param _participant_guid New value to be moved in member participant_guid + */ +void PhysicalData::participant_guid( + eprosima::fastdds::statistics::detail::GUID_s&& _participant_guid) +{ + m_participant_guid = std::move(_participant_guid); +} + +/*! + * @brief This function returns a constant reference to member participant_guid + * @return Constant reference to member participant_guid + */ +const eprosima::fastdds::statistics::detail::GUID_s& PhysicalData::participant_guid() const +{ + return m_participant_guid; +} + +/*! + * @brief This function returns a reference to member participant_guid + * @return Reference to member participant_guid + */ +eprosima::fastdds::statistics::detail::GUID_s& PhysicalData::participant_guid() +{ + return m_participant_guid; +} + + +/*! + * @brief This function copies the value in member host + * @param _host New value to be copied in member host + */ +void PhysicalData::host( + const std::string& _host) +{ + m_host = _host; +} + +/*! + * @brief This function moves the value in member host + * @param _host New value to be moved in member host + */ +void PhysicalData::host( + std::string&& _host) +{ + m_host = std::move(_host); +} + +/*! + * @brief This function returns a constant reference to member host + * @return Constant reference to member host + */ +const std::string& PhysicalData::host() const +{ + return m_host; +} + +/*! + * @brief This function returns a reference to member host + * @return Reference to member host + */ +std::string& PhysicalData::host() +{ + return m_host; +} + + +/*! + * @brief This function copies the value in member user + * @param _user New value to be copied in member user + */ +void PhysicalData::user( + const std::string& _user) +{ + m_user = _user; +} + +/*! + * @brief This function moves the value in member user + * @param _user New value to be moved in member user + */ +void PhysicalData::user( + std::string&& _user) +{ + m_user = std::move(_user); +} + +/*! + * @brief This function returns a constant reference to member user + * @return Constant reference to member user + */ +const std::string& PhysicalData::user() const +{ + return m_user; +} + +/*! + * @brief This function returns a reference to member user + * @return Reference to member user + */ +std::string& PhysicalData::user() +{ + return m_user; +} + + +/*! + * @brief This function copies the value in member process + * @param _process New value to be copied in member process + */ +void PhysicalData::process( + const std::string& _process) +{ + m_process = _process; +} + +/*! + * @brief This function moves the value in member process + * @param _process New value to be moved in member process + */ +void PhysicalData::process( + std::string&& _process) +{ + m_process = std::move(_process); +} + +/*! + * @brief This function returns a constant reference to member process + * @return Constant reference to member process + */ +const std::string& PhysicalData::process() const +{ + return m_process; +} + +/*! + * @brief This function returns a reference to member process + * @return Reference to member process + */ +std::string& PhysicalData::process() +{ + return m_process; +} + + + + + + +Data::Data() +{ + m__d = eprosima::fastdds::statistics::HISTORY2HISTORY_LATENCY; + // eprosima::fastdds::statistics::WriterReaderData m_writer_reader_data + + // eprosima::fastdds::statistics::Locator2LocatorData m_locator2locator_data + + // eprosima::fastdds::statistics::EntityData m_entity_data + + // eprosima::fastdds::statistics::Entity2LocatorTraffic m_entity2locator_traffic + + // eprosima::fastdds::statistics::EntityCount m_entity_count + + // eprosima::fastdds::statistics::DiscoveryTime m_discovery_time + + // eprosima::fastdds::statistics::SampleIdentityCount m_sample_identity_count + + // eprosima::fastdds::statistics::PhysicalData m_physical_data + +} + +Data::~Data() +{ +} + +Data::Data( + const Data& x) +{ + m__d = x.m__d; + + switch(m__d) + { + case eprosima::fastdds::statistics::HISTORY2HISTORY_LATENCY: + m_writer_reader_data = x.m_writer_reader_data; + break; + + + case eprosima::fastdds::statistics::NETWORK_LATENCY: + m_locator2locator_data = x.m_locator2locator_data; + break; + + + case eprosima::fastdds::statistics::PUBLICATION_THROUGHPUT: + case eprosima::fastdds::statistics::SUBSCRIPTION_THROUGHPUT: + m_entity_data = x.m_entity_data; + break; + + + case eprosima::fastdds::statistics::RTPS_SENT: + case eprosima::fastdds::statistics::RTPS_LOST: + m_entity2locator_traffic = x.m_entity2locator_traffic; + break; + + + case eprosima::fastdds::statistics::RESENT_DATAS: + case eprosima::fastdds::statistics::HEARTBEAT_COUNT: + case eprosima::fastdds::statistics::ACKNACK_COUNT: + case eprosima::fastdds::statistics::NACKFRAG_COUNT: + case eprosima::fastdds::statistics::GAP_COUNT: + case eprosima::fastdds::statistics::DATA_COUNT: + case eprosima::fastdds::statistics::PDP_PACKETS: + case eprosima::fastdds::statistics::EDP_PACKETS: + m_entity_count = x.m_entity_count; + break; + + + case eprosima::fastdds::statistics::DISCOVERED_ENTITY: + m_discovery_time = x.m_discovery_time; + break; + + + case eprosima::fastdds::statistics::SAMPLE_DATAS: + m_sample_identity_count = x.m_sample_identity_count; + break; + + + case eprosima::fastdds::statistics::PHYSICAL_DATA: + m_physical_data = x.m_physical_data; + break; + + default: + break; + } +} + +Data::Data( + Data&& x) noexcept +{ + m__d = x.m__d; + + switch(m__d) + { + case eprosima::fastdds::statistics::HISTORY2HISTORY_LATENCY: + m_writer_reader_data = std::move(x.m_writer_reader_data); + + break; + + + case eprosima::fastdds::statistics::NETWORK_LATENCY: + m_locator2locator_data = std::move(x.m_locator2locator_data); + + break; + + + case eprosima::fastdds::statistics::PUBLICATION_THROUGHPUT: + case eprosima::fastdds::statistics::SUBSCRIPTION_THROUGHPUT: + m_entity_data = std::move(x.m_entity_data); + + break; + + + case eprosima::fastdds::statistics::RTPS_SENT: + case eprosima::fastdds::statistics::RTPS_LOST: + m_entity2locator_traffic = std::move(x.m_entity2locator_traffic); + + break; + + + case eprosima::fastdds::statistics::RESENT_DATAS: + case eprosima::fastdds::statistics::HEARTBEAT_COUNT: + case eprosima::fastdds::statistics::ACKNACK_COUNT: + case eprosima::fastdds::statistics::NACKFRAG_COUNT: + case eprosima::fastdds::statistics::GAP_COUNT: + case eprosima::fastdds::statistics::DATA_COUNT: + case eprosima::fastdds::statistics::PDP_PACKETS: + case eprosima::fastdds::statistics::EDP_PACKETS: + m_entity_count = std::move(x.m_entity_count); + + break; + + + case eprosima::fastdds::statistics::DISCOVERED_ENTITY: + m_discovery_time = std::move(x.m_discovery_time); + + break; + + + case eprosima::fastdds::statistics::SAMPLE_DATAS: + m_sample_identity_count = std::move(x.m_sample_identity_count); + + break; + + + case eprosima::fastdds::statistics::PHYSICAL_DATA: + m_physical_data = std::move(x.m_physical_data); + + break; + + default: + break; + } +} + +Data& Data::operator =( + const Data& x) +{ + m__d = x.m__d; + + switch(m__d) + { + case eprosima::fastdds::statistics::HISTORY2HISTORY_LATENCY: + m_writer_reader_data = x.m_writer_reader_data; + break; + + + case eprosima::fastdds::statistics::NETWORK_LATENCY: + m_locator2locator_data = x.m_locator2locator_data; + break; + + + case eprosima::fastdds::statistics::PUBLICATION_THROUGHPUT: + case eprosima::fastdds::statistics::SUBSCRIPTION_THROUGHPUT: + m_entity_data = x.m_entity_data; + break; + + + case eprosima::fastdds::statistics::RTPS_SENT: + case eprosima::fastdds::statistics::RTPS_LOST: + m_entity2locator_traffic = x.m_entity2locator_traffic; + break; + + + case eprosima::fastdds::statistics::RESENT_DATAS: + case eprosima::fastdds::statistics::HEARTBEAT_COUNT: + case eprosima::fastdds::statistics::ACKNACK_COUNT: + case eprosima::fastdds::statistics::NACKFRAG_COUNT: + case eprosima::fastdds::statistics::GAP_COUNT: + case eprosima::fastdds::statistics::DATA_COUNT: + case eprosima::fastdds::statistics::PDP_PACKETS: + case eprosima::fastdds::statistics::EDP_PACKETS: + m_entity_count = x.m_entity_count; + break; + + + case eprosima::fastdds::statistics::DISCOVERED_ENTITY: + m_discovery_time = x.m_discovery_time; + break; + + + case eprosima::fastdds::statistics::SAMPLE_DATAS: + m_sample_identity_count = x.m_sample_identity_count; + break; + + + case eprosima::fastdds::statistics::PHYSICAL_DATA: + m_physical_data = x.m_physical_data; + break; + + default: + break; + } + + return *this; +} + +Data& Data::operator =( + Data&& x) noexcept +{ + m__d = x.m__d; + + switch(m__d) + { + case eprosima::fastdds::statistics::HISTORY2HISTORY_LATENCY: + m_writer_reader_data = std::move(x.m_writer_reader_data); + + break; + + + case eprosima::fastdds::statistics::NETWORK_LATENCY: + m_locator2locator_data = std::move(x.m_locator2locator_data); + + break; + + + case eprosima::fastdds::statistics::PUBLICATION_THROUGHPUT: + case eprosima::fastdds::statistics::SUBSCRIPTION_THROUGHPUT: + m_entity_data = std::move(x.m_entity_data); + + break; + + + case eprosima::fastdds::statistics::RTPS_SENT: + case eprosima::fastdds::statistics::RTPS_LOST: + m_entity2locator_traffic = std::move(x.m_entity2locator_traffic); + + break; + + + case eprosima::fastdds::statistics::RESENT_DATAS: + case eprosima::fastdds::statistics::HEARTBEAT_COUNT: + case eprosima::fastdds::statistics::ACKNACK_COUNT: + case eprosima::fastdds::statistics::NACKFRAG_COUNT: + case eprosima::fastdds::statistics::GAP_COUNT: + case eprosima::fastdds::statistics::DATA_COUNT: + case eprosima::fastdds::statistics::PDP_PACKETS: + case eprosima::fastdds::statistics::EDP_PACKETS: + m_entity_count = std::move(x.m_entity_count); + + break; + + + case eprosima::fastdds::statistics::DISCOVERED_ENTITY: + m_discovery_time = std::move(x.m_discovery_time); + + break; + + + case eprosima::fastdds::statistics::SAMPLE_DATAS: + m_sample_identity_count = std::move(x.m_sample_identity_count); + + break; + + + case eprosima::fastdds::statistics::PHYSICAL_DATA: + m_physical_data = std::move(x.m_physical_data); + + break; + + default: + break; + } + + return *this; +} + +bool Data::operator ==( + const Data& x) const +{ + if (m__d != x.m__d) + { + return false; + } + + switch(m__d) + { + case eprosima::fastdds::statistics::HISTORY2HISTORY_LATENCY: + return (m_writer_reader_data == x.m_writer_reader_data); + break; + + + case eprosima::fastdds::statistics::NETWORK_LATENCY: + return (m_locator2locator_data == x.m_locator2locator_data); + break; + + + case eprosima::fastdds::statistics::PUBLICATION_THROUGHPUT: + case eprosima::fastdds::statistics::SUBSCRIPTION_THROUGHPUT: + return (m_entity_data == x.m_entity_data); + break; + + + case eprosima::fastdds::statistics::RTPS_SENT: + case eprosima::fastdds::statistics::RTPS_LOST: + return (m_entity2locator_traffic == x.m_entity2locator_traffic); + break; + + + case eprosima::fastdds::statistics::RESENT_DATAS: + case eprosima::fastdds::statistics::HEARTBEAT_COUNT: + case eprosima::fastdds::statistics::ACKNACK_COUNT: + case eprosima::fastdds::statistics::NACKFRAG_COUNT: + case eprosima::fastdds::statistics::GAP_COUNT: + case eprosima::fastdds::statistics::DATA_COUNT: + case eprosima::fastdds::statistics::PDP_PACKETS: + case eprosima::fastdds::statistics::EDP_PACKETS: + return (m_entity_count == x.m_entity_count); + break; + + + case eprosima::fastdds::statistics::DISCOVERED_ENTITY: + return (m_discovery_time == x.m_discovery_time); + break; + + + case eprosima::fastdds::statistics::SAMPLE_DATAS: + return (m_sample_identity_count == x.m_sample_identity_count); + break; + + + case eprosima::fastdds::statistics::PHYSICAL_DATA: + return (m_physical_data == x.m_physical_data); + break; + + default: + break; + } + return false; +} + +bool Data::operator !=( + const Data& x) const +{ + return !(*this == x); +} + +void Data::_d( + eprosima::fastdds::statistics::EventKind __d) +{ + bool b = false; + + switch(m__d) + { + case eprosima::fastdds::statistics::HISTORY2HISTORY_LATENCY: + switch(__d) + { + case eprosima::fastdds::statistics::HISTORY2HISTORY_LATENCY: + b = true; + break; + default: + break; + } + break; + + + case eprosima::fastdds::statistics::NETWORK_LATENCY: + switch(__d) + { + case eprosima::fastdds::statistics::NETWORK_LATENCY: + b = true; + break; + default: + break; + } + break; + + + case eprosima::fastdds::statistics::PUBLICATION_THROUGHPUT: + case eprosima::fastdds::statistics::SUBSCRIPTION_THROUGHPUT: + switch(__d) + { + case eprosima::fastdds::statistics::PUBLICATION_THROUGHPUT: + case eprosima::fastdds::statistics::SUBSCRIPTION_THROUGHPUT: + b = true; + break; + default: + break; + } + break; + + + case eprosima::fastdds::statistics::RTPS_SENT: + case eprosima::fastdds::statistics::RTPS_LOST: + switch(__d) + { + case eprosima::fastdds::statistics::RTPS_SENT: + case eprosima::fastdds::statistics::RTPS_LOST: + b = true; + break; + default: + break; + } + break; + + + case eprosima::fastdds::statistics::RESENT_DATAS: + case eprosima::fastdds::statistics::HEARTBEAT_COUNT: + case eprosima::fastdds::statistics::ACKNACK_COUNT: + case eprosima::fastdds::statistics::NACKFRAG_COUNT: + case eprosima::fastdds::statistics::GAP_COUNT: + case eprosima::fastdds::statistics::DATA_COUNT: + case eprosima::fastdds::statistics::PDP_PACKETS: + case eprosima::fastdds::statistics::EDP_PACKETS: + switch(__d) + { + case eprosima::fastdds::statistics::RESENT_DATAS: + case eprosima::fastdds::statistics::HEARTBEAT_COUNT: + case eprosima::fastdds::statistics::ACKNACK_COUNT: + case eprosima::fastdds::statistics::NACKFRAG_COUNT: + case eprosima::fastdds::statistics::GAP_COUNT: + case eprosima::fastdds::statistics::DATA_COUNT: + case eprosima::fastdds::statistics::PDP_PACKETS: + case eprosima::fastdds::statistics::EDP_PACKETS: + b = true; + break; + default: + break; + } + break; + + + case eprosima::fastdds::statistics::DISCOVERED_ENTITY: + switch(__d) + { + case eprosima::fastdds::statistics::DISCOVERED_ENTITY: + b = true; + break; + default: + break; + } + break; + + + case eprosima::fastdds::statistics::SAMPLE_DATAS: + switch(__d) + { + case eprosima::fastdds::statistics::SAMPLE_DATAS: + b = true; + break; + default: + break; + } + break; + + + case eprosima::fastdds::statistics::PHYSICAL_DATA: + switch(__d) + { + case eprosima::fastdds::statistics::PHYSICAL_DATA: + 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::EventKind Data::_d() const +{ + return m__d; +} + +eprosima::fastdds::statistics::EventKind& Data::_d() +{ + return m__d; +} + +void Data::writer_reader_data( + const eprosima::fastdds::statistics::WriterReaderData& _writer_reader_data) +{ + m_writer_reader_data = _writer_reader_data; + m__d = eprosima::fastdds::statistics::HISTORY2HISTORY_LATENCY; + +} + +void Data::writer_reader_data( + eprosima::fastdds::statistics::WriterReaderData&& _writer_reader_data) +{ + m_writer_reader_data = std::move(_writer_reader_data); + m__d = eprosima::fastdds::statistics::HISTORY2HISTORY_LATENCY; + +} + +const eprosima::fastdds::statistics::WriterReaderData& Data::writer_reader_data() const +{ + bool b = false; + + switch(m__d) + { + case eprosima::fastdds::statistics::HISTORY2HISTORY_LATENCY: + b = true; + break; + default: + break; + } + + if(!b) + { + throw BadParamException("This member has not been selected"); + } + + return m_writer_reader_data; +} + +eprosima::fastdds::statistics::WriterReaderData& Data::writer_reader_data() +{ + bool b = false; + + switch(m__d) + { + case eprosima::fastdds::statistics::HISTORY2HISTORY_LATENCY: + b = true; + break; + default: + break; + } + + if(!b) + { + throw BadParamException("This member has not been selected"); + } + + return m_writer_reader_data; +} + + +void Data::locator2locator_data( + const eprosima::fastdds::statistics::Locator2LocatorData& _locator2locator_data) +{ + m_locator2locator_data = _locator2locator_data; + m__d = eprosima::fastdds::statistics::NETWORK_LATENCY; + +} + +void Data::locator2locator_data( + eprosima::fastdds::statistics::Locator2LocatorData&& _locator2locator_data) +{ + m_locator2locator_data = std::move(_locator2locator_data); + m__d = eprosima::fastdds::statistics::NETWORK_LATENCY; + +} + +const eprosima::fastdds::statistics::Locator2LocatorData& Data::locator2locator_data() const +{ + bool b = false; + + switch(m__d) + { + case eprosima::fastdds::statistics::NETWORK_LATENCY: + b = true; + break; + default: + break; + } + + if(!b) + { + throw BadParamException("This member has not been selected"); + } + + return m_locator2locator_data; +} + +eprosima::fastdds::statistics::Locator2LocatorData& Data::locator2locator_data() +{ + bool b = false; + + switch(m__d) + { + case eprosima::fastdds::statistics::NETWORK_LATENCY: + b = true; + break; + default: + break; + } + + if(!b) + { + throw BadParamException("This member has not been selected"); + } + + return m_locator2locator_data; +} + + +void Data::entity_data( + const eprosima::fastdds::statistics::EntityData& _entity_data) +{ + m_entity_data = _entity_data; + m__d = eprosima::fastdds::statistics::PUBLICATION_THROUGHPUT; + +} + +void Data::entity_data( + eprosima::fastdds::statistics::EntityData&& _entity_data) +{ + m_entity_data = std::move(_entity_data); + m__d = eprosima::fastdds::statistics::PUBLICATION_THROUGHPUT; + +} + +const eprosima::fastdds::statistics::EntityData& Data::entity_data() const +{ + bool b = false; + + switch(m__d) + { + case eprosima::fastdds::statistics::PUBLICATION_THROUGHPUT: + case eprosima::fastdds::statistics::SUBSCRIPTION_THROUGHPUT: + b = true; + break; + default: + break; + } + + if(!b) + { + throw BadParamException("This member has not been selected"); + } + + return m_entity_data; +} + +eprosima::fastdds::statistics::EntityData& Data::entity_data() +{ + bool b = false; + + switch(m__d) + { + case eprosima::fastdds::statistics::PUBLICATION_THROUGHPUT: + case eprosima::fastdds::statistics::SUBSCRIPTION_THROUGHPUT: + b = true; + break; + default: + break; + } + + if(!b) + { + throw BadParamException("This member has not been selected"); + } + + return m_entity_data; +} + + +void Data::entity2locator_traffic( + const eprosima::fastdds::statistics::Entity2LocatorTraffic& _entity2locator_traffic) +{ + m_entity2locator_traffic = _entity2locator_traffic; + m__d = eprosima::fastdds::statistics::RTPS_SENT; + +} + +void Data::entity2locator_traffic( + eprosima::fastdds::statistics::Entity2LocatorTraffic&& _entity2locator_traffic) +{ + m_entity2locator_traffic = std::move(_entity2locator_traffic); + m__d = eprosima::fastdds::statistics::RTPS_SENT; + +} + +const eprosima::fastdds::statistics::Entity2LocatorTraffic& Data::entity2locator_traffic() const +{ + bool b = false; + + switch(m__d) + { + case eprosima::fastdds::statistics::RTPS_SENT: + case eprosima::fastdds::statistics::RTPS_LOST: + b = true; + break; + default: + break; + } + + if(!b) + { + throw BadParamException("This member has not been selected"); + } + + return m_entity2locator_traffic; +} + +eprosima::fastdds::statistics::Entity2LocatorTraffic& Data::entity2locator_traffic() +{ + bool b = false; + + switch(m__d) + { + case eprosima::fastdds::statistics::RTPS_SENT: + case eprosima::fastdds::statistics::RTPS_LOST: + b = true; + break; + default: + break; + } + + if(!b) + { + throw BadParamException("This member has not been selected"); + } + + return m_entity2locator_traffic; +} + + +void Data::entity_count( + const eprosima::fastdds::statistics::EntityCount& _entity_count) +{ + m_entity_count = _entity_count; + m__d = eprosima::fastdds::statistics::RESENT_DATAS; + +} + +void Data::entity_count( + eprosima::fastdds::statistics::EntityCount&& _entity_count) +{ + m_entity_count = std::move(_entity_count); + m__d = eprosima::fastdds::statistics::RESENT_DATAS; + +} + +const eprosima::fastdds::statistics::EntityCount& Data::entity_count() const +{ + bool b = false; + + switch(m__d) + { + case eprosima::fastdds::statistics::RESENT_DATAS: + case eprosima::fastdds::statistics::HEARTBEAT_COUNT: + case eprosima::fastdds::statistics::ACKNACK_COUNT: + case eprosima::fastdds::statistics::NACKFRAG_COUNT: + case eprosima::fastdds::statistics::GAP_COUNT: + case eprosima::fastdds::statistics::DATA_COUNT: + case eprosima::fastdds::statistics::PDP_PACKETS: + case eprosima::fastdds::statistics::EDP_PACKETS: + b = true; + break; + default: + break; + } + + if(!b) + { + throw BadParamException("This member has not been selected"); + } + + return m_entity_count; +} + +eprosima::fastdds::statistics::EntityCount& Data::entity_count() +{ + bool b = false; + + switch(m__d) + { + case eprosima::fastdds::statistics::RESENT_DATAS: + case eprosima::fastdds::statistics::HEARTBEAT_COUNT: + case eprosima::fastdds::statistics::ACKNACK_COUNT: + case eprosima::fastdds::statistics::NACKFRAG_COUNT: + case eprosima::fastdds::statistics::GAP_COUNT: + case eprosima::fastdds::statistics::DATA_COUNT: + case eprosima::fastdds::statistics::PDP_PACKETS: + case eprosima::fastdds::statistics::EDP_PACKETS: + b = true; + break; + default: + break; + } + + if(!b) + { + throw BadParamException("This member has not been selected"); + } + + return m_entity_count; +} + + +void Data::discovery_time( + const eprosima::fastdds::statistics::DiscoveryTime& _discovery_time) +{ + m_discovery_time = _discovery_time; + m__d = eprosima::fastdds::statistics::DISCOVERED_ENTITY; + +} + +void Data::discovery_time( + eprosima::fastdds::statistics::DiscoveryTime&& _discovery_time) +{ + m_discovery_time = std::move(_discovery_time); + m__d = eprosima::fastdds::statistics::DISCOVERED_ENTITY; + +} + +const eprosima::fastdds::statistics::DiscoveryTime& Data::discovery_time() const +{ + bool b = false; + + switch(m__d) + { + case eprosima::fastdds::statistics::DISCOVERED_ENTITY: + b = true; + break; + default: + break; + } + + if(!b) + { + throw BadParamException("This member has not been selected"); + } + + return m_discovery_time; +} + +eprosima::fastdds::statistics::DiscoveryTime& Data::discovery_time() +{ + bool b = false; + + switch(m__d) + { + case eprosima::fastdds::statistics::DISCOVERED_ENTITY: + b = true; + break; + default: + break; + } + + if(!b) + { + throw BadParamException("This member has not been selected"); + } + + return m_discovery_time; +} + + +void Data::sample_identity_count( + const eprosima::fastdds::statistics::SampleIdentityCount& _sample_identity_count) +{ + m_sample_identity_count = _sample_identity_count; + m__d = eprosima::fastdds::statistics::SAMPLE_DATAS; + +} + +void Data::sample_identity_count( + eprosima::fastdds::statistics::SampleIdentityCount&& _sample_identity_count) +{ + m_sample_identity_count = std::move(_sample_identity_count); + m__d = eprosima::fastdds::statistics::SAMPLE_DATAS; + +} + +const eprosima::fastdds::statistics::SampleIdentityCount& Data::sample_identity_count() const +{ + bool b = false; + + switch(m__d) + { + case eprosima::fastdds::statistics::SAMPLE_DATAS: + b = true; + break; + default: + break; + } + + if(!b) + { + throw BadParamException("This member has not been selected"); + } + + return m_sample_identity_count; +} + +eprosima::fastdds::statistics::SampleIdentityCount& Data::sample_identity_count() +{ + bool b = false; + + switch(m__d) + { + case eprosima::fastdds::statistics::SAMPLE_DATAS: + b = true; + break; + default: + break; + } + + if(!b) + { + throw BadParamException("This member has not been selected"); + } + + return m_sample_identity_count; +} + + +void Data::physical_data( + const eprosima::fastdds::statistics::PhysicalData& _physical_data) +{ + m_physical_data = _physical_data; + m__d = eprosima::fastdds::statistics::PHYSICAL_DATA; + +} + +void Data::physical_data( + eprosima::fastdds::statistics::PhysicalData&& _physical_data) +{ + m_physical_data = std::move(_physical_data); + m__d = eprosima::fastdds::statistics::PHYSICAL_DATA; + +} + +const eprosima::fastdds::statistics::PhysicalData& Data::physical_data() const +{ + bool b = false; + + switch(m__d) + { + case eprosima::fastdds::statistics::PHYSICAL_DATA: + b = true; + break; + default: + break; + } + + if(!b) + { + throw BadParamException("This member has not been selected"); + } + + return m_physical_data; +} + +eprosima::fastdds::statistics::PhysicalData& Data::physical_data() +{ + bool b = false; + + switch(m__d) + { + case eprosima::fastdds::statistics::PHYSICAL_DATA: + b = true; + break; + default: + break; + } + + if(!b) + { + throw BadParamException("This member has not been selected"); + } + + return m_physical_data; +} + + +// TODO(Ricardo) Review +size_t Data::getCdrSerializedSize( + const Data& data, + size_t current_alignment) +{ + (void)data; + size_t initial_alignment = current_alignment; + + + switch(data.m__d) + { + case eprosima::fastdds::statistics::HISTORY2HISTORY_LATENCY: + current_alignment += eprosima::fastdds::statistics::WriterReaderData::getCdrSerializedSize(data.writer_reader_data(), current_alignment); + + break; + + + case eprosima::fastdds::statistics::NETWORK_LATENCY: + current_alignment += eprosima::fastdds::statistics::Locator2LocatorData::getCdrSerializedSize(data.locator2locator_data(), current_alignment); + + break; + + + case eprosima::fastdds::statistics::PUBLICATION_THROUGHPUT: + case eprosima::fastdds::statistics::SUBSCRIPTION_THROUGHPUT: + current_alignment += eprosima::fastdds::statistics::EntityData::getCdrSerializedSize(data.entity_data(), current_alignment); + + break; + + + case eprosima::fastdds::statistics::RTPS_SENT: + case eprosima::fastdds::statistics::RTPS_LOST: + current_alignment += eprosima::fastdds::statistics::Entity2LocatorTraffic::getCdrSerializedSize(data.entity2locator_traffic(), current_alignment); + + break; + + + case eprosima::fastdds::statistics::RESENT_DATAS: + case eprosima::fastdds::statistics::HEARTBEAT_COUNT: + case eprosima::fastdds::statistics::ACKNACK_COUNT: + case eprosima::fastdds::statistics::NACKFRAG_COUNT: + case eprosima::fastdds::statistics::GAP_COUNT: + case eprosima::fastdds::statistics::DATA_COUNT: + case eprosima::fastdds::statistics::PDP_PACKETS: + case eprosima::fastdds::statistics::EDP_PACKETS: + current_alignment += eprosima::fastdds::statistics::EntityCount::getCdrSerializedSize(data.entity_count(), current_alignment); + + break; + + + case eprosima::fastdds::statistics::DISCOVERED_ENTITY: + current_alignment += eprosima::fastdds::statistics::DiscoveryTime::getCdrSerializedSize(data.discovery_time(), current_alignment); + + break; + + + case eprosima::fastdds::statistics::SAMPLE_DATAS: + current_alignment += eprosima::fastdds::statistics::SampleIdentityCount::getCdrSerializedSize(data.sample_identity_count(), current_alignment); + + break; + + + case eprosima::fastdds::statistics::PHYSICAL_DATA: + current_alignment += eprosima::fastdds::statistics::PhysicalData::getCdrSerializedSize(data.physical_data(), current_alignment); + + break; + + default: + break; + } + + return current_alignment - initial_alignment; +} + + +void Data::serialize( + eprosima::fastcdr::Cdr& scdr) const +{ + scdr << (uint32_t)m__d; + + switch(m__d) + { + case eprosima::fastdds::statistics::HISTORY2HISTORY_LATENCY: + scdr << m_writer_reader_data; + + break; + + + case eprosima::fastdds::statistics::NETWORK_LATENCY: + scdr << m_locator2locator_data; + + break; + + + case eprosima::fastdds::statistics::PUBLICATION_THROUGHPUT: + case eprosima::fastdds::statistics::SUBSCRIPTION_THROUGHPUT: + scdr << m_entity_data; + + break; + + + case eprosima::fastdds::statistics::RTPS_SENT: + case eprosima::fastdds::statistics::RTPS_LOST: + scdr << m_entity2locator_traffic; + + break; + + + case eprosima::fastdds::statistics::RESENT_DATAS: + case eprosima::fastdds::statistics::HEARTBEAT_COUNT: + case eprosima::fastdds::statistics::ACKNACK_COUNT: + case eprosima::fastdds::statistics::NACKFRAG_COUNT: + case eprosima::fastdds::statistics::GAP_COUNT: + case eprosima::fastdds::statistics::DATA_COUNT: + case eprosima::fastdds::statistics::PDP_PACKETS: + case eprosima::fastdds::statistics::EDP_PACKETS: + scdr << m_entity_count; + + break; + + + case eprosima::fastdds::statistics::DISCOVERED_ENTITY: + scdr << m_discovery_time; + + break; + + + case eprosima::fastdds::statistics::SAMPLE_DATAS: + scdr << m_sample_identity_count; + + break; + + + case eprosima::fastdds::statistics::PHYSICAL_DATA: + scdr << m_physical_data; + + break; + + default: + break; + } +} + +void Data::deserialize( + eprosima::fastcdr::Cdr& dcdr) +{ + { + uint32_t bitmask_value = 0; + dcdr >> bitmask_value; + m__d = (eprosima::fastdds::statistics::EventKind)bitmask_value; + } + + + + switch(m__d) + { + case eprosima::fastdds::statistics::HISTORY2HISTORY_LATENCY: + dcdr >> m_writer_reader_data; + + + break; + + + case eprosima::fastdds::statistics::NETWORK_LATENCY: + dcdr >> m_locator2locator_data; + + + break; + + + case eprosima::fastdds::statistics::PUBLICATION_THROUGHPUT: + case eprosima::fastdds::statistics::SUBSCRIPTION_THROUGHPUT: + dcdr >> m_entity_data; + + + break; + + + case eprosima::fastdds::statistics::RTPS_SENT: + case eprosima::fastdds::statistics::RTPS_LOST: + dcdr >> m_entity2locator_traffic; + + + break; + + + case eprosima::fastdds::statistics::RESENT_DATAS: + case eprosima::fastdds::statistics::HEARTBEAT_COUNT: + case eprosima::fastdds::statistics::ACKNACK_COUNT: + case eprosima::fastdds::statistics::NACKFRAG_COUNT: + case eprosima::fastdds::statistics::GAP_COUNT: + case eprosima::fastdds::statistics::DATA_COUNT: + case eprosima::fastdds::statistics::PDP_PACKETS: + case eprosima::fastdds::statistics::EDP_PACKETS: + dcdr >> m_entity_count; + + + break; + + + case eprosima::fastdds::statistics::DISCOVERED_ENTITY: + dcdr >> m_discovery_time; + + + break; + + + case eprosima::fastdds::statistics::SAMPLE_DATAS: + dcdr >> m_sample_identity_count; + + + break; + + + case eprosima::fastdds::statistics::PHYSICAL_DATA: + dcdr >> m_physical_data; + + + break; + + default: + break; + } +} + + + + + +} // namespace statistics + + +} // namespace fastdds + + +} // namespace eprosima + +#endif // FASTCDR_VERSION_MAJOR == 1 diff --git a/src/cpp/topic_types/typesv1.h b/src/cpp/topic_types/typesv1.h new file mode 100644 index 000000000..6880ab8c6 --- /dev/null +++ b/src/cpp/topic_types/typesv1.h @@ -0,0 +1,3092 @@ +// 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 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_TYPES_H_ +#define _FAST_DDS_GENERATED_EPROSIMA_FASTDDS_STATISTICS_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(TYPES_SOURCE) +#define TYPES_DllAPI __declspec( dllexport ) +#else +#define TYPES_DllAPI __declspec( dllimport ) +#endif // TYPES_SOURCE +#else +#define TYPES_DllAPI +#endif // EPROSIMA_USER_DLL_EXPORT +#else +#define TYPES_DllAPI +#endif // _WIN32 + +namespace eprosima { +namespace fastcdr { +class Cdr; +} // namespace fastcdr +} // namespace eprosima + + + +namespace eprosima { + namespace fastdds { + namespace statistics { + namespace detail { + + + /*! + * @brief This class represents the structure EntityId_s defined by the user in the IDL file. + * @ingroup types + */ + class EntityId_s + { + public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport EntityId_s(); + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~EntityId_s(); + + /*! + * @brief Copy constructor. + * @param x Reference to the object eprosima::fastdds::statistics::detail::EntityId_s that will be copied. + */ + eProsima_user_DllExport EntityId_s( + const EntityId_s& x); + + /*! + * @brief Move constructor. + * @param x Reference to the object eprosima::fastdds::statistics::detail::EntityId_s that will be copied. + */ + eProsima_user_DllExport EntityId_s( + EntityId_s&& x) noexcept; + + /*! + * @brief Copy assignment. + * @param x Reference to the object eprosima::fastdds::statistics::detail::EntityId_s that will be copied. + */ + eProsima_user_DllExport EntityId_s& operator =( + const EntityId_s& x); + + /*! + * @brief Move assignment. + * @param x Reference to the object eprosima::fastdds::statistics::detail::EntityId_s that will be copied. + */ + eProsima_user_DllExport EntityId_s& operator =( + EntityId_s&& x) noexcept; + + /*! + * @brief Comparison operator. + * @param x eprosima::fastdds::statistics::detail::EntityId_s object to compare. + */ + eProsima_user_DllExport bool operator ==( + const EntityId_s& x) const; + + /*! + * @brief Comparison operator. + * @param x eprosima::fastdds::statistics::detail::EntityId_s object to compare. + */ + eProsima_user_DllExport bool operator !=( + const EntityId_s& x) const; + + /*! + * @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 std::array& _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( + std::array&& _value); + + /*! + * @brief This function returns a constant reference to member value + * @return Constant reference to member value + */ + eProsima_user_DllExport const std::array& value() const; + + /*! + * @brief This function returns a reference to member value + * @return Reference to member value + */ + eProsima_user_DllExport std::array& 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::detail::EntityId_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: + + std::array m_value; + + }; + + + + /*! + * @brief This class represents the structure GuidPrefix_s defined by the user in the IDL file. + * @ingroup types + */ + class GuidPrefix_s + { + public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport GuidPrefix_s(); + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~GuidPrefix_s(); + + /*! + * @brief Copy constructor. + * @param x Reference to the object eprosima::fastdds::statistics::detail::GuidPrefix_s that will be copied. + */ + eProsima_user_DllExport GuidPrefix_s( + const GuidPrefix_s& x); + + /*! + * @brief Move constructor. + * @param x Reference to the object eprosima::fastdds::statistics::detail::GuidPrefix_s that will be copied. + */ + eProsima_user_DllExport GuidPrefix_s( + GuidPrefix_s&& x) noexcept; + + /*! + * @brief Copy assignment. + * @param x Reference to the object eprosima::fastdds::statistics::detail::GuidPrefix_s that will be copied. + */ + eProsima_user_DllExport GuidPrefix_s& operator =( + const GuidPrefix_s& x); + + /*! + * @brief Move assignment. + * @param x Reference to the object eprosima::fastdds::statistics::detail::GuidPrefix_s that will be copied. + */ + eProsima_user_DllExport GuidPrefix_s& operator =( + GuidPrefix_s&& x) noexcept; + + /*! + * @brief Comparison operator. + * @param x eprosima::fastdds::statistics::detail::GuidPrefix_s object to compare. + */ + eProsima_user_DllExport bool operator ==( + const GuidPrefix_s& x) const; + + /*! + * @brief Comparison operator. + * @param x eprosima::fastdds::statistics::detail::GuidPrefix_s object to compare. + */ + eProsima_user_DllExport bool operator !=( + const GuidPrefix_s& x) const; + + /*! + * @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 std::array& _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( + std::array&& _value); + + /*! + * @brief This function returns a constant reference to member value + * @return Constant reference to member value + */ + eProsima_user_DllExport const std::array& value() const; + + /*! + * @brief This function returns a reference to member value + * @return Reference to member value + */ + eProsima_user_DllExport std::array& 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::detail::GuidPrefix_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: + + std::array m_value; + + }; + + + + /*! + * @brief This class represents the structure GUID_s defined by the user in the IDL file. + * @ingroup types + */ + class GUID_s + { + public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport GUID_s(); + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~GUID_s(); + + /*! + * @brief Copy constructor. + * @param x Reference to the object eprosima::fastdds::statistics::detail::GUID_s that will be copied. + */ + eProsima_user_DllExport GUID_s( + const GUID_s& x); + + /*! + * @brief Move constructor. + * @param x Reference to the object eprosima::fastdds::statistics::detail::GUID_s that will be copied. + */ + eProsima_user_DllExport GUID_s( + GUID_s&& x) noexcept; + + /*! + * @brief Copy assignment. + * @param x Reference to the object eprosima::fastdds::statistics::detail::GUID_s that will be copied. + */ + eProsima_user_DllExport GUID_s& operator =( + const GUID_s& x); + + /*! + * @brief Move assignment. + * @param x Reference to the object eprosima::fastdds::statistics::detail::GUID_s that will be copied. + */ + eProsima_user_DllExport GUID_s& operator =( + GUID_s&& x) noexcept; + + /*! + * @brief Comparison operator. + * @param x eprosima::fastdds::statistics::detail::GUID_s object to compare. + */ + eProsima_user_DllExport bool operator ==( + const GUID_s& x) const; + + /*! + * @brief Comparison operator. + * @param x eprosima::fastdds::statistics::detail::GUID_s object to compare. + */ + eProsima_user_DllExport bool operator !=( + const GUID_s& x) const; + + /*! + * @brief This function copies the value in member guidPrefix + * @param _guidPrefix New value to be copied in member guidPrefix + */ + eProsima_user_DllExport void guidPrefix( + const eprosima::fastdds::statistics::detail::GuidPrefix_s& _guidPrefix); + + /*! + * @brief This function moves the value in member guidPrefix + * @param _guidPrefix New value to be moved in member guidPrefix + */ + eProsima_user_DllExport void guidPrefix( + eprosima::fastdds::statistics::detail::GuidPrefix_s&& _guidPrefix); + + /*! + * @brief This function returns a constant reference to member guidPrefix + * @return Constant reference to member guidPrefix + */ + eProsima_user_DllExport const eprosima::fastdds::statistics::detail::GuidPrefix_s& guidPrefix() const; + + /*! + * @brief This function returns a reference to member guidPrefix + * @return Reference to member guidPrefix + */ + eProsima_user_DllExport eprosima::fastdds::statistics::detail::GuidPrefix_s& guidPrefix(); + + + /*! + * @brief This function copies the value in member entityId + * @param _entityId New value to be copied in member entityId + */ + eProsima_user_DllExport void entityId( + const eprosima::fastdds::statistics::detail::EntityId_s& _entityId); + + /*! + * @brief This function moves the value in member entityId + * @param _entityId New value to be moved in member entityId + */ + eProsima_user_DllExport void entityId( + eprosima::fastdds::statistics::detail::EntityId_s&& _entityId); + + /*! + * @brief This function returns a constant reference to member entityId + * @return Constant reference to member entityId + */ + eProsima_user_DllExport const eprosima::fastdds::statistics::detail::EntityId_s& entityId() const; + + /*! + * @brief This function returns a reference to member entityId + * @return Reference to member entityId + */ + eProsima_user_DllExport eprosima::fastdds::statistics::detail::EntityId_s& entityId(); + + + /*! + * @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::detail::GUID_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: + + eprosima::fastdds::statistics::detail::GuidPrefix_s m_guidPrefix; + eprosima::fastdds::statistics::detail::EntityId_s m_entityId; + + }; + + + + /*! + * @brief This class represents the structure SequenceNumber_s defined by the user in the IDL file. + * @ingroup types + */ + class SequenceNumber_s + { + public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport SequenceNumber_s(); + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~SequenceNumber_s(); + + /*! + * @brief Copy constructor. + * @param x Reference to the object eprosima::fastdds::statistics::detail::SequenceNumber_s that will be copied. + */ + eProsima_user_DllExport SequenceNumber_s( + const SequenceNumber_s& x); + + /*! + * @brief Move constructor. + * @param x Reference to the object eprosima::fastdds::statistics::detail::SequenceNumber_s that will be copied. + */ + eProsima_user_DllExport SequenceNumber_s( + SequenceNumber_s&& x) noexcept; + + /*! + * @brief Copy assignment. + * @param x Reference to the object eprosima::fastdds::statistics::detail::SequenceNumber_s that will be copied. + */ + eProsima_user_DllExport SequenceNumber_s& operator =( + const SequenceNumber_s& x); + + /*! + * @brief Move assignment. + * @param x Reference to the object eprosima::fastdds::statistics::detail::SequenceNumber_s that will be copied. + */ + eProsima_user_DllExport SequenceNumber_s& operator =( + SequenceNumber_s&& x) noexcept; + + /*! + * @brief Comparison operator. + * @param x eprosima::fastdds::statistics::detail::SequenceNumber_s object to compare. + */ + eProsima_user_DllExport bool operator ==( + const SequenceNumber_s& x) const; + + /*! + * @brief Comparison operator. + * @param x eprosima::fastdds::statistics::detail::SequenceNumber_s object to compare. + */ + eProsima_user_DllExport bool operator !=( + const SequenceNumber_s& x) const; + + /*! + * @brief This function sets a value in member high + * @param _high New value for member high + */ + eProsima_user_DllExport void high( + int32_t _high); + + /*! + * @brief This function returns the value of member high + * @return Value of member high + */ + eProsima_user_DllExport int32_t high() const; + + /*! + * @brief This function returns a reference to member high + * @return Reference to member high + */ + eProsima_user_DllExport int32_t& high(); + + + /*! + * @brief This function sets a value in member low + * @param _low New value for member low + */ + eProsima_user_DllExport void low( + uint32_t _low); + + /*! + * @brief This function returns the value of member low + * @return Value of member low + */ + eProsima_user_DllExport uint32_t low() const; + + /*! + * @brief This function returns a reference to member low + * @return Reference to member low + */ + eProsima_user_DllExport uint32_t& low(); + + + /*! + * @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::detail::SequenceNumber_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: + + int32_t m_high; + uint32_t m_low; + + }; + + + + /*! + * @brief This class represents the structure SampleIdentity_s defined by the user in the IDL file. + * @ingroup types + */ + class SampleIdentity_s + { + public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport SampleIdentity_s(); + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~SampleIdentity_s(); + + /*! + * @brief Copy constructor. + * @param x Reference to the object eprosima::fastdds::statistics::detail::SampleIdentity_s that will be copied. + */ + eProsima_user_DllExport SampleIdentity_s( + const SampleIdentity_s& x); + + /*! + * @brief Move constructor. + * @param x Reference to the object eprosima::fastdds::statistics::detail::SampleIdentity_s that will be copied. + */ + eProsima_user_DllExport SampleIdentity_s( + SampleIdentity_s&& x) noexcept; + + /*! + * @brief Copy assignment. + * @param x Reference to the object eprosima::fastdds::statistics::detail::SampleIdentity_s that will be copied. + */ + eProsima_user_DllExport SampleIdentity_s& operator =( + const SampleIdentity_s& x); + + /*! + * @brief Move assignment. + * @param x Reference to the object eprosima::fastdds::statistics::detail::SampleIdentity_s that will be copied. + */ + eProsima_user_DllExport SampleIdentity_s& operator =( + SampleIdentity_s&& x) noexcept; + + /*! + * @brief Comparison operator. + * @param x eprosima::fastdds::statistics::detail::SampleIdentity_s object to compare. + */ + eProsima_user_DllExport bool operator ==( + const SampleIdentity_s& x) const; + + /*! + * @brief Comparison operator. + * @param x eprosima::fastdds::statistics::detail::SampleIdentity_s object to compare. + */ + eProsima_user_DllExport bool operator !=( + const SampleIdentity_s& x) const; + + /*! + * @brief This function copies the value in member writer_guid + * @param _writer_guid New value to be copied in member writer_guid + */ + eProsima_user_DllExport void writer_guid( + const eprosima::fastdds::statistics::detail::GUID_s& _writer_guid); + + /*! + * @brief This function moves the value in member writer_guid + * @param _writer_guid New value to be moved in member writer_guid + */ + eProsima_user_DllExport void writer_guid( + eprosima::fastdds::statistics::detail::GUID_s&& _writer_guid); + + /*! + * @brief This function returns a constant reference to member writer_guid + * @return Constant reference to member writer_guid + */ + eProsima_user_DllExport const eprosima::fastdds::statistics::detail::GUID_s& writer_guid() const; + + /*! + * @brief This function returns a reference to member writer_guid + * @return Reference to member writer_guid + */ + eProsima_user_DllExport eprosima::fastdds::statistics::detail::GUID_s& writer_guid(); + + + /*! + * @brief This function copies the value in member sequence_number + * @param _sequence_number New value to be copied in member sequence_number + */ + eProsima_user_DllExport void sequence_number( + const eprosima::fastdds::statistics::detail::SequenceNumber_s& _sequence_number); + + /*! + * @brief This function moves the value in member sequence_number + * @param _sequence_number New value to be moved in member sequence_number + */ + eProsima_user_DllExport void sequence_number( + eprosima::fastdds::statistics::detail::SequenceNumber_s&& _sequence_number); + + /*! + * @brief This function returns a constant reference to member sequence_number + * @return Constant reference to member sequence_number + */ + eProsima_user_DllExport const eprosima::fastdds::statistics::detail::SequenceNumber_s& sequence_number() const; + + /*! + * @brief This function returns a reference to member sequence_number + * @return Reference to member sequence_number + */ + eProsima_user_DllExport eprosima::fastdds::statistics::detail::SequenceNumber_s& sequence_number(); + + + /*! + * @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::detail::SampleIdentity_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: + + eprosima::fastdds::statistics::detail::GUID_s m_writer_guid; + eprosima::fastdds::statistics::detail::SequenceNumber_s m_sequence_number; + + }; + + + + /*! + * @brief This class represents the structure Locator_s defined by the user in the IDL file. + * @ingroup types + */ + class Locator_s + { + public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Locator_s(); + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Locator_s(); + + /*! + * @brief Copy constructor. + * @param x Reference to the object eprosima::fastdds::statistics::detail::Locator_s that will be copied. + */ + eProsima_user_DllExport Locator_s( + const Locator_s& x); + + /*! + * @brief Move constructor. + * @param x Reference to the object eprosima::fastdds::statistics::detail::Locator_s that will be copied. + */ + eProsima_user_DllExport Locator_s( + Locator_s&& x) noexcept; + + /*! + * @brief Copy assignment. + * @param x Reference to the object eprosima::fastdds::statistics::detail::Locator_s that will be copied. + */ + eProsima_user_DllExport Locator_s& operator =( + const Locator_s& x); + + /*! + * @brief Move assignment. + * @param x Reference to the object eprosima::fastdds::statistics::detail::Locator_s that will be copied. + */ + eProsima_user_DllExport Locator_s& operator =( + Locator_s&& x) noexcept; + + /*! + * @brief Comparison operator. + * @param x eprosima::fastdds::statistics::detail::Locator_s object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Locator_s& x) const; + + /*! + * @brief Comparison operator. + * @param x eprosima::fastdds::statistics::detail::Locator_s object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Locator_s& x) const; + + /*! + * @brief This function sets a value in member kind + * @param _kind New value for member kind + */ + eProsima_user_DllExport void kind( + int32_t _kind); + + /*! + * @brief This function returns the value of member kind + * @return Value of member kind + */ + eProsima_user_DllExport int32_t kind() const; + + /*! + * @brief This function returns a reference to member kind + * @return Reference to member kind + */ + eProsima_user_DllExport int32_t& kind(); + + + /*! + * @brief This function sets a value in member port + * @param _port New value for member port + */ + eProsima_user_DllExport void port( + uint32_t _port); + + /*! + * @brief This function returns the value of member port + * @return Value of member port + */ + eProsima_user_DllExport uint32_t port() const; + + /*! + * @brief This function returns a reference to member port + * @return Reference to member port + */ + eProsima_user_DllExport uint32_t& port(); + + + /*! + * @brief This function copies the value in member address + * @param _address New value to be copied in member address + */ + eProsima_user_DllExport void address( + const std::array& _address); + + /*! + * @brief This function moves the value in member address + * @param _address New value to be moved in member address + */ + eProsima_user_DllExport void address( + std::array&& _address); + + /*! + * @brief This function returns a constant reference to member address + * @return Constant reference to member address + */ + eProsima_user_DllExport const std::array& address() const; + + /*! + * @brief This function returns a reference to member address + * @return Reference to member address + */ + eProsima_user_DllExport std::array& address(); + + + /*! + * @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::detail::Locator_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: + + int32_t m_kind; + uint32_t m_port; + std::array m_address; + + }; + + } // namespace detail + + + /*! + * @brief This class represents the structure DiscoveryTime defined by the user in the IDL file. + * @ingroup types + */ + class DiscoveryTime + { + public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport DiscoveryTime(); + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~DiscoveryTime(); + + /*! + * @brief Copy constructor. + * @param x Reference to the object eprosima::fastdds::statistics::DiscoveryTime that will be copied. + */ + eProsima_user_DllExport DiscoveryTime( + const DiscoveryTime& x); + + /*! + * @brief Move constructor. + * @param x Reference to the object eprosima::fastdds::statistics::DiscoveryTime that will be copied. + */ + eProsima_user_DllExport DiscoveryTime( + DiscoveryTime&& x) noexcept; + + /*! + * @brief Copy assignment. + * @param x Reference to the object eprosima::fastdds::statistics::DiscoveryTime that will be copied. + */ + eProsima_user_DllExport DiscoveryTime& operator =( + const DiscoveryTime& x); + + /*! + * @brief Move assignment. + * @param x Reference to the object eprosima::fastdds::statistics::DiscoveryTime that will be copied. + */ + eProsima_user_DllExport DiscoveryTime& operator =( + DiscoveryTime&& x) noexcept; + + /*! + * @brief Comparison operator. + * @param x eprosima::fastdds::statistics::DiscoveryTime object to compare. + */ + eProsima_user_DllExport bool operator ==( + const DiscoveryTime& x) const; + + /*! + * @brief Comparison operator. + * @param x eprosima::fastdds::statistics::DiscoveryTime object to compare. + */ + eProsima_user_DllExport bool operator !=( + const DiscoveryTime& x) const; + + /*! + * @brief This function copies the value in member local_participant_guid + * @param _local_participant_guid New value to be copied in member local_participant_guid + */ + eProsima_user_DllExport void local_participant_guid( + const eprosima::fastdds::statistics::detail::GUID_s& _local_participant_guid); + + /*! + * @brief This function moves the value in member local_participant_guid + * @param _local_participant_guid New value to be moved in member local_participant_guid + */ + eProsima_user_DllExport void local_participant_guid( + eprosima::fastdds::statistics::detail::GUID_s&& _local_participant_guid); + + /*! + * @brief This function returns a constant reference to member local_participant_guid + * @return Constant reference to member local_participant_guid + */ + eProsima_user_DllExport const eprosima::fastdds::statistics::detail::GUID_s& local_participant_guid() const; + + /*! + * @brief This function returns a reference to member local_participant_guid + * @return Reference to member local_participant_guid + */ + eProsima_user_DllExport eprosima::fastdds::statistics::detail::GUID_s& local_participant_guid(); + + + /*! + * @brief This function copies the value in member remote_entity_guid + * @param _remote_entity_guid New value to be copied in member remote_entity_guid + */ + eProsima_user_DllExport void remote_entity_guid( + const eprosima::fastdds::statistics::detail::GUID_s& _remote_entity_guid); + + /*! + * @brief This function moves the value in member remote_entity_guid + * @param _remote_entity_guid New value to be moved in member remote_entity_guid + */ + eProsima_user_DllExport void remote_entity_guid( + eprosima::fastdds::statistics::detail::GUID_s&& _remote_entity_guid); + + /*! + * @brief This function returns a constant reference to member remote_entity_guid + * @return Constant reference to member remote_entity_guid + */ + eProsima_user_DllExport const eprosima::fastdds::statistics::detail::GUID_s& remote_entity_guid() const; + + /*! + * @brief This function returns a reference to member remote_entity_guid + * @return Reference to member remote_entity_guid + */ + eProsima_user_DllExport eprosima::fastdds::statistics::detail::GUID_s& remote_entity_guid(); + + + /*! + * @brief This function sets a value in member time + * @param _time New value for member time + */ + eProsima_user_DllExport void time( + uint64_t _time); + + /*! + * @brief This function returns the value of member time + * @return Value of member time + */ + eProsima_user_DllExport uint64_t time() const; + + /*! + * @brief This function returns a reference to member time + * @return Reference to member time + */ + eProsima_user_DllExport uint64_t& time(); + + + /*! + * @brief This function copies the value in member host + * @param _host New value to be copied in member host + */ + eProsima_user_DllExport void host( + const std::string& _host); + + /*! + * @brief This function moves the value in member host + * @param _host New value to be moved in member host + */ + eProsima_user_DllExport void host( + std::string&& _host); + + /*! + * @brief This function returns a constant reference to member host + * @return Constant reference to member host + */ + eProsima_user_DllExport const std::string& host() const; + + /*! + * @brief This function returns a reference to member host + * @return Reference to member host + */ + eProsima_user_DllExport std::string& host(); + + + /*! + * @brief This function copies the value in member user + * @param _user New value to be copied in member user + */ + eProsima_user_DllExport void user( + const std::string& _user); + + /*! + * @brief This function moves the value in member user + * @param _user New value to be moved in member user + */ + eProsima_user_DllExport void user( + std::string&& _user); + + /*! + * @brief This function returns a constant reference to member user + * @return Constant reference to member user + */ + eProsima_user_DllExport const std::string& user() const; + + /*! + * @brief This function returns a reference to member user + * @return Reference to member user + */ + eProsima_user_DllExport std::string& user(); + + + /*! + * @brief This function copies the value in member process + * @param _process New value to be copied in member process + */ + eProsima_user_DllExport void process( + const std::string& _process); + + /*! + * @brief This function moves the value in member process + * @param _process New value to be moved in member process + */ + eProsima_user_DllExport void process( + std::string&& _process); + + /*! + * @brief This function returns a constant reference to member process + * @return Constant reference to member process + */ + eProsima_user_DllExport const std::string& process() const; + + /*! + * @brief This function returns a reference to member process + * @return Reference to member process + */ + eProsima_user_DllExport std::string& process(); + + + /*! + * @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::DiscoveryTime& 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_participant_guid; + eprosima::fastdds::statistics::detail::GUID_s m_remote_entity_guid; + uint64_t m_time; + std::string m_host; + std::string m_user; + std::string m_process; + + }; + + + + /*! + * @brief This class represents the structure EntityCount defined by the user in the IDL file. + * @ingroup types + */ + class EntityCount + { + public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport EntityCount(); + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~EntityCount(); + + /*! + * @brief Copy constructor. + * @param x Reference to the object eprosima::fastdds::statistics::EntityCount that will be copied. + */ + eProsima_user_DllExport EntityCount( + const EntityCount& x); + + /*! + * @brief Move constructor. + * @param x Reference to the object eprosima::fastdds::statistics::EntityCount that will be copied. + */ + eProsima_user_DllExport EntityCount( + EntityCount&& x) noexcept; + + /*! + * @brief Copy assignment. + * @param x Reference to the object eprosima::fastdds::statistics::EntityCount that will be copied. + */ + eProsima_user_DllExport EntityCount& operator =( + const EntityCount& x); + + /*! + * @brief Move assignment. + * @param x Reference to the object eprosima::fastdds::statistics::EntityCount that will be copied. + */ + eProsima_user_DllExport EntityCount& operator =( + EntityCount&& x) noexcept; + + /*! + * @brief Comparison operator. + * @param x eprosima::fastdds::statistics::EntityCount object to compare. + */ + eProsima_user_DllExport bool operator ==( + const EntityCount& x) const; + + /*! + * @brief Comparison operator. + * @param x eprosima::fastdds::statistics::EntityCount object to compare. + */ + eProsima_user_DllExport bool operator !=( + const EntityCount& x) const; + + /*! + * @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 sets a value in member count + * @param _count New value for member count + */ + eProsima_user_DllExport void count( + uint64_t _count); + + /*! + * @brief This function returns the value of member count + * @return Value of member count + */ + eProsima_user_DllExport uint64_t count() const; + + /*! + * @brief This function returns a reference to member count + * @return Reference to member count + */ + eProsima_user_DllExport uint64_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::EntityCount& 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_guid; + uint64_t m_count; + + }; + + + + /*! + * @brief This class represents the structure SampleIdentityCount defined by the user in the IDL file. + * @ingroup types + */ + class SampleIdentityCount + { + public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport SampleIdentityCount(); + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~SampleIdentityCount(); + + /*! + * @brief Copy constructor. + * @param x Reference to the object eprosima::fastdds::statistics::SampleIdentityCount that will be copied. + */ + eProsima_user_DllExport SampleIdentityCount( + const SampleIdentityCount& x); + + /*! + * @brief Move constructor. + * @param x Reference to the object eprosima::fastdds::statistics::SampleIdentityCount that will be copied. + */ + eProsima_user_DllExport SampleIdentityCount( + SampleIdentityCount&& x) noexcept; + + /*! + * @brief Copy assignment. + * @param x Reference to the object eprosima::fastdds::statistics::SampleIdentityCount that will be copied. + */ + eProsima_user_DllExport SampleIdentityCount& operator =( + const SampleIdentityCount& x); + + /*! + * @brief Move assignment. + * @param x Reference to the object eprosima::fastdds::statistics::SampleIdentityCount that will be copied. + */ + eProsima_user_DllExport SampleIdentityCount& operator =( + SampleIdentityCount&& x) noexcept; + + /*! + * @brief Comparison operator. + * @param x eprosima::fastdds::statistics::SampleIdentityCount object to compare. + */ + eProsima_user_DllExport bool operator ==( + const SampleIdentityCount& x) const; + + /*! + * @brief Comparison operator. + * @param x eprosima::fastdds::statistics::SampleIdentityCount object to compare. + */ + eProsima_user_DllExport bool operator !=( + const SampleIdentityCount& x) const; + + /*! + * @brief This function copies the value in member sample_id + * @param _sample_id New value to be copied in member sample_id + */ + eProsima_user_DllExport void sample_id( + const eprosima::fastdds::statistics::detail::SampleIdentity_s& _sample_id); + + /*! + * @brief This function moves the value in member sample_id + * @param _sample_id New value to be moved in member sample_id + */ + eProsima_user_DllExport void sample_id( + eprosima::fastdds::statistics::detail::SampleIdentity_s&& _sample_id); + + /*! + * @brief This function returns a constant reference to member sample_id + * @return Constant reference to member sample_id + */ + eProsima_user_DllExport const eprosima::fastdds::statistics::detail::SampleIdentity_s& sample_id() const; + + /*! + * @brief This function returns a reference to member sample_id + * @return Reference to member sample_id + */ + eProsima_user_DllExport eprosima::fastdds::statistics::detail::SampleIdentity_s& sample_id(); + + + /*! + * @brief This function sets a value in member count + * @param _count New value for member count + */ + eProsima_user_DllExport void count( + uint64_t _count); + + /*! + * @brief This function returns the value of member count + * @return Value of member count + */ + eProsima_user_DllExport uint64_t count() const; + + /*! + * @brief This function returns a reference to member count + * @return Reference to member count + */ + eProsima_user_DllExport uint64_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::SampleIdentityCount& 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::SampleIdentity_s m_sample_id; + uint64_t m_count; + + }; + + + + /*! + * @brief This class represents the structure Entity2LocatorTraffic defined by the user in the IDL file. + * @ingroup types + */ + class Entity2LocatorTraffic + { + public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Entity2LocatorTraffic(); + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Entity2LocatorTraffic(); + + /*! + * @brief Copy constructor. + * @param x Reference to the object eprosima::fastdds::statistics::Entity2LocatorTraffic that will be copied. + */ + eProsima_user_DllExport Entity2LocatorTraffic( + const Entity2LocatorTraffic& x); + + /*! + * @brief Move constructor. + * @param x Reference to the object eprosima::fastdds::statistics::Entity2LocatorTraffic that will be copied. + */ + eProsima_user_DllExport Entity2LocatorTraffic( + Entity2LocatorTraffic&& x) noexcept; + + /*! + * @brief Copy assignment. + * @param x Reference to the object eprosima::fastdds::statistics::Entity2LocatorTraffic that will be copied. + */ + eProsima_user_DllExport Entity2LocatorTraffic& operator =( + const Entity2LocatorTraffic& x); + + /*! + * @brief Move assignment. + * @param x Reference to the object eprosima::fastdds::statistics::Entity2LocatorTraffic that will be copied. + */ + eProsima_user_DllExport Entity2LocatorTraffic& operator =( + Entity2LocatorTraffic&& x) noexcept; + + /*! + * @brief Comparison operator. + * @param x eprosima::fastdds::statistics::Entity2LocatorTraffic object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Entity2LocatorTraffic& x) const; + + /*! + * @brief Comparison operator. + * @param x eprosima::fastdds::statistics::Entity2LocatorTraffic object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Entity2LocatorTraffic& x) const; + + /*! + * @brief This function copies the value in member src_guid + * @param _src_guid New value to be copied in member src_guid + */ + eProsima_user_DllExport void src_guid( + const eprosima::fastdds::statistics::detail::GUID_s& _src_guid); + + /*! + * @brief This function moves the value in member src_guid + * @param _src_guid New value to be moved in member src_guid + */ + eProsima_user_DllExport void src_guid( + eprosima::fastdds::statistics::detail::GUID_s&& _src_guid); + + /*! + * @brief This function returns a constant reference to member src_guid + * @return Constant reference to member src_guid + */ + eProsima_user_DllExport const eprosima::fastdds::statistics::detail::GUID_s& src_guid() const; + + /*! + * @brief This function returns a reference to member src_guid + * @return Reference to member src_guid + */ + eProsima_user_DllExport eprosima::fastdds::statistics::detail::GUID_s& src_guid(); + + + /*! + * @brief This function copies the value in member dst_locator + * @param _dst_locator New value to be copied in member dst_locator + */ + eProsima_user_DllExport void dst_locator( + const eprosima::fastdds::statistics::detail::Locator_s& _dst_locator); + + /*! + * @brief This function moves the value in member dst_locator + * @param _dst_locator New value to be moved in member dst_locator + */ + eProsima_user_DllExport void dst_locator( + eprosima::fastdds::statistics::detail::Locator_s&& _dst_locator); + + /*! + * @brief This function returns a constant reference to member dst_locator + * @return Constant reference to member dst_locator + */ + eProsima_user_DllExport const eprosima::fastdds::statistics::detail::Locator_s& dst_locator() const; + + /*! + * @brief This function returns a reference to member dst_locator + * @return Reference to member dst_locator + */ + eProsima_user_DllExport eprosima::fastdds::statistics::detail::Locator_s& dst_locator(); + + + /*! + * @brief This function sets a value in member packet_count + * @param _packet_count New value for member packet_count + */ + eProsima_user_DllExport void packet_count( + uint64_t _packet_count); + + /*! + * @brief This function returns the value of member packet_count + * @return Value of member packet_count + */ + eProsima_user_DllExport uint64_t packet_count() const; + + /*! + * @brief This function returns a reference to member packet_count + * @return Reference to member packet_count + */ + eProsima_user_DllExport uint64_t& packet_count(); + + + /*! + * @brief This function sets a value in member byte_count + * @param _byte_count New value for member byte_count + */ + eProsima_user_DllExport void byte_count( + uint64_t _byte_count); + + /*! + * @brief This function returns the value of member byte_count + * @return Value of member byte_count + */ + eProsima_user_DllExport uint64_t byte_count() const; + + /*! + * @brief This function returns a reference to member byte_count + * @return Reference to member byte_count + */ + eProsima_user_DllExport uint64_t& byte_count(); + + + /*! + * @brief This function sets a value in member byte_magnitude_order + * @param _byte_magnitude_order New value for member byte_magnitude_order + */ + eProsima_user_DllExport void byte_magnitude_order( + int16_t _byte_magnitude_order); + + /*! + * @brief This function returns the value of member byte_magnitude_order + * @return Value of member byte_magnitude_order + */ + eProsima_user_DllExport int16_t byte_magnitude_order() const; + + /*! + * @brief This function returns a reference to member byte_magnitude_order + * @return Reference to member byte_magnitude_order + */ + eProsima_user_DllExport int16_t& byte_magnitude_order(); + + + /*! + * @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::Entity2LocatorTraffic& 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_src_guid; + eprosima::fastdds::statistics::detail::Locator_s m_dst_locator; + uint64_t m_packet_count; + uint64_t m_byte_count; + int16_t m_byte_magnitude_order; + + }; + + + + /*! + * @brief This class represents the structure WriterReaderData defined by the user in the IDL file. + * @ingroup types + */ + class WriterReaderData + { + public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport WriterReaderData(); + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~WriterReaderData(); + + /*! + * @brief Copy constructor. + * @param x Reference to the object eprosima::fastdds::statistics::WriterReaderData that will be copied. + */ + eProsima_user_DllExport WriterReaderData( + const WriterReaderData& x); + + /*! + * @brief Move constructor. + * @param x Reference to the object eprosima::fastdds::statistics::WriterReaderData that will be copied. + */ + eProsima_user_DllExport WriterReaderData( + WriterReaderData&& x) noexcept; + + /*! + * @brief Copy assignment. + * @param x Reference to the object eprosima::fastdds::statistics::WriterReaderData that will be copied. + */ + eProsima_user_DllExport WriterReaderData& operator =( + const WriterReaderData& x); + + /*! + * @brief Move assignment. + * @param x Reference to the object eprosima::fastdds::statistics::WriterReaderData that will be copied. + */ + eProsima_user_DllExport WriterReaderData& operator =( + WriterReaderData&& x) noexcept; + + /*! + * @brief Comparison operator. + * @param x eprosima::fastdds::statistics::WriterReaderData object to compare. + */ + eProsima_user_DllExport bool operator ==( + const WriterReaderData& x) const; + + /*! + * @brief Comparison operator. + * @param x eprosima::fastdds::statistics::WriterReaderData object to compare. + */ + eProsima_user_DllExport bool operator !=( + const WriterReaderData& x) const; + + /*! + * @brief This function copies the value in member writer_guid + * @param _writer_guid New value to be copied in member writer_guid + */ + eProsima_user_DllExport void writer_guid( + const eprosima::fastdds::statistics::detail::GUID_s& _writer_guid); + + /*! + * @brief This function moves the value in member writer_guid + * @param _writer_guid New value to be moved in member writer_guid + */ + eProsima_user_DllExport void writer_guid( + eprosima::fastdds::statistics::detail::GUID_s&& _writer_guid); + + /*! + * @brief This function returns a constant reference to member writer_guid + * @return Constant reference to member writer_guid + */ + eProsima_user_DllExport const eprosima::fastdds::statistics::detail::GUID_s& writer_guid() const; + + /*! + * @brief This function returns a reference to member writer_guid + * @return Reference to member writer_guid + */ + eProsima_user_DllExport eprosima::fastdds::statistics::detail::GUID_s& writer_guid(); + + + /*! + * @brief This function copies the value in member reader_guid + * @param _reader_guid New value to be copied in member reader_guid + */ + eProsima_user_DllExport void reader_guid( + const eprosima::fastdds::statistics::detail::GUID_s& _reader_guid); + + /*! + * @brief This function moves the value in member reader_guid + * @param _reader_guid New value to be moved in member reader_guid + */ + eProsima_user_DllExport void reader_guid( + eprosima::fastdds::statistics::detail::GUID_s&& _reader_guid); + + /*! + * @brief This function returns a constant reference to member reader_guid + * @return Constant reference to member reader_guid + */ + eProsima_user_DllExport const eprosima::fastdds::statistics::detail::GUID_s& reader_guid() const; + + /*! + * @brief This function returns a reference to member reader_guid + * @return Reference to member reader_guid + */ + eProsima_user_DllExport eprosima::fastdds::statistics::detail::GUID_s& reader_guid(); + + + /*! + * @brief This function sets a value in member data + * @param _data New value for member data + */ + eProsima_user_DllExport void data( + float _data); + + /*! + * @brief This function returns the value of member data + * @return Value of member data + */ + eProsima_user_DllExport float data() const; + + /*! + * @brief This function returns a reference to member data + * @return Reference to member data + */ + eProsima_user_DllExport float& data(); + + + /*! + * @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::WriterReaderData& 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_writer_guid; + eprosima::fastdds::statistics::detail::GUID_s m_reader_guid; + float m_data; + + }; + + + + /*! + * @brief This class represents the structure Locator2LocatorData defined by the user in the IDL file. + * @ingroup types + */ + class Locator2LocatorData + { + public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Locator2LocatorData(); + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Locator2LocatorData(); + + /*! + * @brief Copy constructor. + * @param x Reference to the object eprosima::fastdds::statistics::Locator2LocatorData that will be copied. + */ + eProsima_user_DllExport Locator2LocatorData( + const Locator2LocatorData& x); + + /*! + * @brief Move constructor. + * @param x Reference to the object eprosima::fastdds::statistics::Locator2LocatorData that will be copied. + */ + eProsima_user_DllExport Locator2LocatorData( + Locator2LocatorData&& x) noexcept; + + /*! + * @brief Copy assignment. + * @param x Reference to the object eprosima::fastdds::statistics::Locator2LocatorData that will be copied. + */ + eProsima_user_DllExport Locator2LocatorData& operator =( + const Locator2LocatorData& x); + + /*! + * @brief Move assignment. + * @param x Reference to the object eprosima::fastdds::statistics::Locator2LocatorData that will be copied. + */ + eProsima_user_DllExport Locator2LocatorData& operator =( + Locator2LocatorData&& x) noexcept; + + /*! + * @brief Comparison operator. + * @param x eprosima::fastdds::statistics::Locator2LocatorData object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Locator2LocatorData& x) const; + + /*! + * @brief Comparison operator. + * @param x eprosima::fastdds::statistics::Locator2LocatorData object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Locator2LocatorData& x) const; + + /*! + * @brief This function copies the value in member src_locator + * @param _src_locator New value to be copied in member src_locator + */ + eProsima_user_DllExport void src_locator( + const eprosima::fastdds::statistics::detail::Locator_s& _src_locator); + + /*! + * @brief This function moves the value in member src_locator + * @param _src_locator New value to be moved in member src_locator + */ + eProsima_user_DllExport void src_locator( + eprosima::fastdds::statistics::detail::Locator_s&& _src_locator); + + /*! + * @brief This function returns a constant reference to member src_locator + * @return Constant reference to member src_locator + */ + eProsima_user_DllExport const eprosima::fastdds::statistics::detail::Locator_s& src_locator() const; + + /*! + * @brief This function returns a reference to member src_locator + * @return Reference to member src_locator + */ + eProsima_user_DllExport eprosima::fastdds::statistics::detail::Locator_s& src_locator(); + + + /*! + * @brief This function copies the value in member dst_locator + * @param _dst_locator New value to be copied in member dst_locator + */ + eProsima_user_DllExport void dst_locator( + const eprosima::fastdds::statistics::detail::Locator_s& _dst_locator); + + /*! + * @brief This function moves the value in member dst_locator + * @param _dst_locator New value to be moved in member dst_locator + */ + eProsima_user_DllExport void dst_locator( + eprosima::fastdds::statistics::detail::Locator_s&& _dst_locator); + + /*! + * @brief This function returns a constant reference to member dst_locator + * @return Constant reference to member dst_locator + */ + eProsima_user_DllExport const eprosima::fastdds::statistics::detail::Locator_s& dst_locator() const; + + /*! + * @brief This function returns a reference to member dst_locator + * @return Reference to member dst_locator + */ + eProsima_user_DllExport eprosima::fastdds::statistics::detail::Locator_s& dst_locator(); + + + /*! + * @brief This function sets a value in member data + * @param _data New value for member data + */ + eProsima_user_DllExport void data( + float _data); + + /*! + * @brief This function returns the value of member data + * @return Value of member data + */ + eProsima_user_DllExport float data() const; + + /*! + * @brief This function returns a reference to member data + * @return Reference to member data + */ + eProsima_user_DllExport float& data(); + + + /*! + * @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::Locator2LocatorData& 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::Locator_s m_src_locator; + eprosima::fastdds::statistics::detail::Locator_s m_dst_locator; + float m_data; + + }; + + + + /*! + * @brief This class represents the structure EntityData defined by the user in the IDL file. + * @ingroup types + */ + class EntityData + { + public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport EntityData(); + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~EntityData(); + + /*! + * @brief Copy constructor. + * @param x Reference to the object eprosima::fastdds::statistics::EntityData that will be copied. + */ + eProsima_user_DllExport EntityData( + const EntityData& x); + + /*! + * @brief Move constructor. + * @param x Reference to the object eprosima::fastdds::statistics::EntityData that will be copied. + */ + eProsima_user_DllExport EntityData( + EntityData&& x) noexcept; + + /*! + * @brief Copy assignment. + * @param x Reference to the object eprosima::fastdds::statistics::EntityData that will be copied. + */ + eProsima_user_DllExport EntityData& operator =( + const EntityData& x); + + /*! + * @brief Move assignment. + * @param x Reference to the object eprosima::fastdds::statistics::EntityData that will be copied. + */ + eProsima_user_DllExport EntityData& operator =( + EntityData&& x) noexcept; + + /*! + * @brief Comparison operator. + * @param x eprosima::fastdds::statistics::EntityData object to compare. + */ + eProsima_user_DllExport bool operator ==( + const EntityData& x) const; + + /*! + * @brief Comparison operator. + * @param x eprosima::fastdds::statistics::EntityData object to compare. + */ + eProsima_user_DllExport bool operator !=( + const EntityData& x) const; + + /*! + * @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 sets a value in member data + * @param _data New value for member data + */ + eProsima_user_DllExport void data( + float _data); + + /*! + * @brief This function returns the value of member data + * @return Value of member data + */ + eProsima_user_DllExport float data() const; + + /*! + * @brief This function returns a reference to member data + * @return Reference to member data + */ + eProsima_user_DllExport float& data(); + + + /*! + * @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::EntityData& 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_guid; + float m_data; + + }; + + + + /*! + * @brief This class represents the structure PhysicalData defined by the user in the IDL file. + * @ingroup types + */ + class PhysicalData + { + public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport PhysicalData(); + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~PhysicalData(); + + /*! + * @brief Copy constructor. + * @param x Reference to the object eprosima::fastdds::statistics::PhysicalData that will be copied. + */ + eProsima_user_DllExport PhysicalData( + const PhysicalData& x); + + /*! + * @brief Move constructor. + * @param x Reference to the object eprosima::fastdds::statistics::PhysicalData that will be copied. + */ + eProsima_user_DllExport PhysicalData( + PhysicalData&& x) noexcept; + + /*! + * @brief Copy assignment. + * @param x Reference to the object eprosima::fastdds::statistics::PhysicalData that will be copied. + */ + eProsima_user_DllExport PhysicalData& operator =( + const PhysicalData& x); + + /*! + * @brief Move assignment. + * @param x Reference to the object eprosima::fastdds::statistics::PhysicalData that will be copied. + */ + eProsima_user_DllExport PhysicalData& operator =( + PhysicalData&& x) noexcept; + + /*! + * @brief Comparison operator. + * @param x eprosima::fastdds::statistics::PhysicalData object to compare. + */ + eProsima_user_DllExport bool operator ==( + const PhysicalData& x) const; + + /*! + * @brief Comparison operator. + * @param x eprosima::fastdds::statistics::PhysicalData object to compare. + */ + eProsima_user_DllExport bool operator !=( + const PhysicalData& x) const; + + /*! + * @brief This function copies the value in member participant_guid + * @param _participant_guid New value to be copied in member participant_guid + */ + eProsima_user_DllExport void participant_guid( + const eprosima::fastdds::statistics::detail::GUID_s& _participant_guid); + + /*! + * @brief This function moves the value in member participant_guid + * @param _participant_guid New value to be moved in member participant_guid + */ + eProsima_user_DllExport void participant_guid( + eprosima::fastdds::statistics::detail::GUID_s&& _participant_guid); + + /*! + * @brief This function returns a constant reference to member participant_guid + * @return Constant reference to member participant_guid + */ + eProsima_user_DllExport const eprosima::fastdds::statistics::detail::GUID_s& participant_guid() const; + + /*! + * @brief This function returns a reference to member participant_guid + * @return Reference to member participant_guid + */ + eProsima_user_DllExport eprosima::fastdds::statistics::detail::GUID_s& participant_guid(); + + + /*! + * @brief This function copies the value in member host + * @param _host New value to be copied in member host + */ + eProsima_user_DllExport void host( + const std::string& _host); + + /*! + * @brief This function moves the value in member host + * @param _host New value to be moved in member host + */ + eProsima_user_DllExport void host( + std::string&& _host); + + /*! + * @brief This function returns a constant reference to member host + * @return Constant reference to member host + */ + eProsima_user_DllExport const std::string& host() const; + + /*! + * @brief This function returns a reference to member host + * @return Reference to member host + */ + eProsima_user_DllExport std::string& host(); + + + /*! + * @brief This function copies the value in member user + * @param _user New value to be copied in member user + */ + eProsima_user_DllExport void user( + const std::string& _user); + + /*! + * @brief This function moves the value in member user + * @param _user New value to be moved in member user + */ + eProsima_user_DllExport void user( + std::string&& _user); + + /*! + * @brief This function returns a constant reference to member user + * @return Constant reference to member user + */ + eProsima_user_DllExport const std::string& user() const; + + /*! + * @brief This function returns a reference to member user + * @return Reference to member user + */ + eProsima_user_DllExport std::string& user(); + + + /*! + * @brief This function copies the value in member process + * @param _process New value to be copied in member process + */ + eProsima_user_DllExport void process( + const std::string& _process); + + /*! + * @brief This function moves the value in member process + * @param _process New value to be moved in member process + */ + eProsima_user_DllExport void process( + std::string&& _process); + + /*! + * @brief This function returns a constant reference to member process + * @return Constant reference to member process + */ + eProsima_user_DllExport const std::string& process() const; + + /*! + * @brief This function returns a reference to member process + * @return Reference to member process + */ + eProsima_user_DllExport std::string& process(); + + + /*! + * @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::PhysicalData& 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_participant_guid; + std::string m_host; + std::string m_user; + std::string m_process; + + }; + + /*! + * @brief This class represents the bitmask EventKind defined by the user in the IDL file. + * @ingroup types + */ + enum EventKindBits : uint32_t + { + HISTORY2HISTORY_LATENCY = 0x01ull << 0, + NETWORK_LATENCY = 0x01ull << 1, + PUBLICATION_THROUGHPUT = 0x01ull << 2, + SUBSCRIPTION_THROUGHPUT = 0x01ull << 3, + RTPS_SENT = 0x01ull << 4, + RTPS_LOST = 0x01ull << 5, + RESENT_DATAS = 0x01ull << 6, + HEARTBEAT_COUNT = 0x01ull << 7, + ACKNACK_COUNT = 0x01ull << 8, + NACKFRAG_COUNT = 0x01ull << 9, + GAP_COUNT = 0x01ull << 10, + DATA_COUNT = 0x01ull << 11, + PDP_PACKETS = 0x01ull << 12, + EDP_PACKETS = 0x01ull << 13, + DISCOVERED_ENTITY = 0x01ull << 14, + SAMPLE_DATAS = 0x01ull << 15, + PHYSICAL_DATA = 0x01ull << 16 + }; + typedef uint32_t EventKind; + + + /*! + * @brief This class represents the union Data defined by the user in the IDL file. + * @ingroup types + */ + class Data + { + public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Data(); + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Data(); + + /*! + * @brief Copy constructor. + * @param x Reference to the object eprosima::fastdds::statistics::Data that will be copied. + */ + eProsima_user_DllExport Data( + const Data& x); + + /*! + * @brief Move constructor. + * @param x Reference to the object eprosima::fastdds::statistics::Data that will be copied. + */ + eProsima_user_DllExport Data( + Data&& x) noexcept; + + /*! + * @brief Copy assignment. + * @param x Reference to the object eprosima::fastdds::statistics::Data that will be copied. + */ + eProsima_user_DllExport Data& operator =( + const Data& x); + + /*! + * @brief Move assignment. + * @param x Reference to the object eprosima::fastdds::statistics::Data that will be copied. + */ + eProsima_user_DllExport Data& operator =( + Data&& x) noexcept; + + /*! + * @brief Comparison operator. + * @param x eprosima::fastdds::statistics::Data object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Data& x) const; + + /*! + * @brief Comparison operator. + * @param x eprosima::fastdds::statistics::Data object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Data& 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::EventKind __d); + + /*! + * @brief This function returns the value of the discriminator. + * @return Value of the discriminator + */ + eProsima_user_DllExport eprosima::fastdds::statistics::EventKind _d() const; + + /*! + * @brief This function returns a reference to the discriminator. + * @return Reference to the discriminator. + */ + eProsima_user_DllExport eprosima::fastdds::statistics::EventKind& _d(); + + /*! + * @brief This function copies the value in member writer_reader_data + * @param _writer_reader_data New value to be copied in member writer_reader_data + */ + eProsima_user_DllExport void writer_reader_data( + const eprosima::fastdds::statistics::WriterReaderData& _writer_reader_data); + + /*! + * @brief This function moves the value in member writer_reader_data + * @param _writer_reader_data New value to be moved in member writer_reader_data + */ + eProsima_user_DllExport void writer_reader_data( + eprosima::fastdds::statistics::WriterReaderData&& _writer_reader_data); + + /*! + * @brief This function returns a constant reference to member writer_reader_data + * @return Constant reference to member writer_reader_data + * @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::WriterReaderData& writer_reader_data() const; + + /*! + * @brief This function returns a reference to member writer_reader_data + * @return Reference to member writer_reader_data + * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. + */ + eProsima_user_DllExport eprosima::fastdds::statistics::WriterReaderData& writer_reader_data(); + + + /*! + * @brief This function copies the value in member locator2locator_data + * @param _locator2locator_data New value to be copied in member locator2locator_data + */ + eProsima_user_DllExport void locator2locator_data( + const eprosima::fastdds::statistics::Locator2LocatorData& _locator2locator_data); + + /*! + * @brief This function moves the value in member locator2locator_data + * @param _locator2locator_data New value to be moved in member locator2locator_data + */ + eProsima_user_DllExport void locator2locator_data( + eprosima::fastdds::statistics::Locator2LocatorData&& _locator2locator_data); + + /*! + * @brief This function returns a constant reference to member locator2locator_data + * @return Constant reference to member locator2locator_data + * @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::Locator2LocatorData& locator2locator_data() const; + + /*! + * @brief This function returns a reference to member locator2locator_data + * @return Reference to member locator2locator_data + * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. + */ + eProsima_user_DllExport eprosima::fastdds::statistics::Locator2LocatorData& locator2locator_data(); + + + /*! + * @brief This function copies the value in member entity_data + * @param _entity_data New value to be copied in member entity_data + */ + eProsima_user_DllExport void entity_data( + const eprosima::fastdds::statistics::EntityData& _entity_data); + + /*! + * @brief This function moves the value in member entity_data + * @param _entity_data New value to be moved in member entity_data + */ + eProsima_user_DllExport void entity_data( + eprosima::fastdds::statistics::EntityData&& _entity_data); + + /*! + * @brief This function returns a constant reference to member entity_data + * @return Constant reference to member entity_data + * @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::EntityData& entity_data() const; + + /*! + * @brief This function returns a reference to member entity_data + * @return Reference to member entity_data + * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. + */ + eProsima_user_DllExport eprosima::fastdds::statistics::EntityData& entity_data(); + + + /*! + * @brief This function copies the value in member entity2locator_traffic + * @param _entity2locator_traffic New value to be copied in member entity2locator_traffic + */ + eProsima_user_DllExport void entity2locator_traffic( + const eprosima::fastdds::statistics::Entity2LocatorTraffic& _entity2locator_traffic); + + /*! + * @brief This function moves the value in member entity2locator_traffic + * @param _entity2locator_traffic New value to be moved in member entity2locator_traffic + */ + eProsima_user_DllExport void entity2locator_traffic( + eprosima::fastdds::statistics::Entity2LocatorTraffic&& _entity2locator_traffic); + + /*! + * @brief This function returns a constant reference to member entity2locator_traffic + * @return Constant reference to member entity2locator_traffic + * @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::Entity2LocatorTraffic& entity2locator_traffic() const; + + /*! + * @brief This function returns a reference to member entity2locator_traffic + * @return Reference to member entity2locator_traffic + * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. + */ + eProsima_user_DllExport eprosima::fastdds::statistics::Entity2LocatorTraffic& entity2locator_traffic(); + + + /*! + * @brief This function copies the value in member entity_count + * @param _entity_count New value to be copied in member entity_count + */ + eProsima_user_DllExport void entity_count( + const eprosima::fastdds::statistics::EntityCount& _entity_count); + + /*! + * @brief This function moves the value in member entity_count + * @param _entity_count New value to be moved in member entity_count + */ + eProsima_user_DllExport void entity_count( + eprosima::fastdds::statistics::EntityCount&& _entity_count); + + /*! + * @brief This function returns a constant reference to member entity_count + * @return Constant reference to member entity_count + * @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::EntityCount& entity_count() const; + + /*! + * @brief This function returns a reference to member entity_count + * @return Reference to member entity_count + * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. + */ + eProsima_user_DllExport eprosima::fastdds::statistics::EntityCount& entity_count(); + + + /*! + * @brief This function copies the value in member discovery_time + * @param _discovery_time New value to be copied in member discovery_time + */ + eProsima_user_DllExport void discovery_time( + const eprosima::fastdds::statistics::DiscoveryTime& _discovery_time); + + /*! + * @brief This function moves the value in member discovery_time + * @param _discovery_time New value to be moved in member discovery_time + */ + eProsima_user_DllExport void discovery_time( + eprosima::fastdds::statistics::DiscoveryTime&& _discovery_time); + + /*! + * @brief This function returns a constant reference to member discovery_time + * @return Constant reference to member discovery_time + * @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::DiscoveryTime& discovery_time() const; + + /*! + * @brief This function returns a reference to member discovery_time + * @return Reference to member discovery_time + * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. + */ + eProsima_user_DllExport eprosima::fastdds::statistics::DiscoveryTime& discovery_time(); + + + /*! + * @brief This function copies the value in member sample_identity_count + * @param _sample_identity_count New value to be copied in member sample_identity_count + */ + eProsima_user_DllExport void sample_identity_count( + const eprosima::fastdds::statistics::SampleIdentityCount& _sample_identity_count); + + /*! + * @brief This function moves the value in member sample_identity_count + * @param _sample_identity_count New value to be moved in member sample_identity_count + */ + eProsima_user_DllExport void sample_identity_count( + eprosima::fastdds::statistics::SampleIdentityCount&& _sample_identity_count); + + /*! + * @brief This function returns a constant reference to member sample_identity_count + * @return Constant reference to member sample_identity_count + * @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::SampleIdentityCount& sample_identity_count() const; + + /*! + * @brief This function returns a reference to member sample_identity_count + * @return Reference to member sample_identity_count + * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. + */ + eProsima_user_DllExport eprosima::fastdds::statistics::SampleIdentityCount& sample_identity_count(); + + + /*! + * @brief This function copies the value in member physical_data + * @param _physical_data New value to be copied in member physical_data + */ + eProsima_user_DllExport void physical_data( + const eprosima::fastdds::statistics::PhysicalData& _physical_data); + + /*! + * @brief This function moves the value in member physical_data + * @param _physical_data New value to be moved in member physical_data + */ + eProsima_user_DllExport void physical_data( + eprosima::fastdds::statistics::PhysicalData&& _physical_data); + + /*! + * @brief This function returns a constant reference to member physical_data + * @return Constant reference to member physical_data + * @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::PhysicalData& physical_data() const; + + /*! + * @brief This function returns a reference to member physical_data + * @return Reference to member physical_data + * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. + */ + eProsima_user_DllExport eprosima::fastdds::statistics::PhysicalData& physical_data(); + + + /*! + * @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::Data& 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::EventKind m__d; + + eprosima::fastdds::statistics::WriterReaderData m_writer_reader_data; + eprosima::fastdds::statistics::Locator2LocatorData m_locator2locator_data; + eprosima::fastdds::statistics::EntityData m_entity_data; + eprosima::fastdds::statistics::Entity2LocatorTraffic m_entity2locator_traffic; + eprosima::fastdds::statistics::EntityCount m_entity_count; + eprosima::fastdds::statistics::DiscoveryTime m_discovery_time; + eprosima::fastdds::statistics::SampleIdentityCount m_sample_identity_count; + eprosima::fastdds::statistics::PhysicalData m_physical_data; + }; + + } // namespace statistics + } // namespace fastdds +} // namespace eprosima + +#endif // _FAST_DDS_GENERATED_EPROSIMA_FASTDDS_STATISTICS_TYPES_H_ + + + +#endif // FASTCDR_VERSION_MAJOR == 1