From 59f9758be2d6ecb27ff6c00b3356bc17606fb4f8 Mon Sep 17 00:00:00 2001 From: elianalf <62831776+elianalf@users.noreply.github.com> Date: Wed, 28 Feb 2024 18:34:28 +0100 Subject: [PATCH] Remove fixed_size_string file in fastrtps (#4269) * Refs #20392: Remove fastrtps fixed_size_string lib Signed-off-by: elianalf <62831776+elianalf@users.noreply.github.com> * Refs #20392: Update tests dependencies Signed-off-by: elianalf <62831776+elianalf@users.noreply.github.com> * Refs #20392: Update namespace fastcdr Signed-off-by: elianalf <62831776+elianalf@users.noreply.github.com> * Refs #20392: Reorder libraries to follow google style order Signed-off-by: elianalf <62831776+elianalf@users.noreply.github.com> * Refs #20392: Remove include of unused fixed_size_string Signed-off-by: elianalf <62831776+elianalf@users.noreply.github.com> * Refs #20392: Remove deprecated tests of fixed_size_string Signed-off-by: elianalf <62831776+elianalf@users.noreply.github.com> * Refs #20392: Uncrustify Signed-off-by: elianalf <62831776+elianalf@users.noreply.github.com> --------- Signed-off-by: elianalf <62831776+elianalf@users.noreply.github.com> --- .../AdvancedConfiguration.h | 1 - .../AdvancedConfigurationv1.h | 25 +- .../BasicConfigurationExample/HelloWorld.h | 1 - .../BasicConfigurationExample/HelloWorldv1.h | 23 +- examples/cpp/dds/Configurability/samplev1.h | 23 +- .../ContentFilteredTopicExample/HelloWorld.h | 1 - .../HelloWorldv1.h | 24 +- .../cpp/dds/CustomListenerExample/Topicv1.h | 23 +- .../CustomPayloadPoolData.h | 1 - .../CustomPayloadPoolDatav1.h | 23 +- .../DeadlineQoSExample/deadlinepayloadv1.cxx | 14 +- .../DeadlineQoSExample/deadlinepayloadv1.h | 33 +- .../cpp/dds/DisablePositiveACKs/Topicv1.h | 23 +- .../DiscoveryServerExample/types/HelloWorld.h | 1 - .../types/HelloWorldv1.h | 24 +- .../HelloWorldSubscriber.cpp | 2 +- .../HelloWorldSubscriber.h | 2 +- examples/cpp/dds/Filtering/FilteringExample.h | 1 - .../cpp/dds/Filtering/FilteringExamplev1.h | 24 +- .../FlowControlExample/FlowControlExample.h | 1 - .../FlowControlExample/FlowControlExamplev1.h | 22 +- .../cpp/dds/HelloWorldExample/HelloWorld.h | 1 - .../cpp/dds/HelloWorldExample/HelloWorldv1.h | 22 +- .../HelloWorldv1.cxx | 8 +- .../HelloWorldv1.h | 33 +- .../HelloWorldExampleSharedMem/HelloWorld.h | 11 +- .../HelloWorldExampleSharedMem/HelloWorldv1.h | 33 +- .../dds/HelloWorldExampleTCP/HelloWorldv1.h | 23 +- examples/cpp/dds/HistoryKind/samplev1.h | 23 +- examples/cpp/dds/Keys/samplev1.h | 23 +- examples/cpp/dds/LateJoiners/samplev1.h | 23 +- .../cpp/dds/LifespanQoSExample/Lifespanv1.h | 23 +- examples/cpp/dds/LivelinessQoS/Topicv1.h | 23 +- .../OwnershipStrength.h | 1 - .../OwnershipStrengthv1.h | 23 +- .../cpp/dds/RequestReplyExample/Calculator.h | 1 - .../dds/RequestReplyExample/Calculatorv1.h | 44 +- .../dds/SampleConfig_Controller/samplev1.h | 23 +- .../cpp/dds/SampleConfig_Events/samplev1.h | 23 +- .../dds/SampleConfig_Multimedia/samplev1.h | 23 +- .../dds/SecureHelloWorldExample/HelloWorld.h | 1 - .../SecureHelloWorldExample/HelloWorldv1.h | 23 +- .../dds/StaticHelloWorldExample/HelloWorld.h | 1 - .../StaticHelloWorldExample/HelloWorldv1.h | 23 +- .../TypeLookupSubscriber.cpp | 4 +- .../TypeLookupService/TypeLookupSubscriber.h | 4 +- .../WriterLoansExample/LoanableHelloWorld.h | 1 - .../WriterLoansExample/LoanableHelloWorldv1.h | 23 +- .../dds/ZeroCopyExample/LoanableHelloWorld.h | 1 - .../ZeroCopyExample/LoanableHelloWorldv1.h | 23 +- include/fastdds/dds/builtin/common/Types.hpp | 12 +- .../dds/core/policy/ParameterTypes.hpp | 14 +- .../dds/domain/DomainParticipantListener.hpp | 6 +- .../dds/domain/qos/DomainParticipantQos.hpp | 8 +- .../attributes/RTPSParticipantAttributes.h | 5 +- .../builtin/data/ContentFilterProperty.hpp | 10 +- .../rtps/builtin/data/ParticipantProxyData.h | 2 +- .../rtps/builtin/data/ReaderProxyData.h | 20 +- .../rtps/builtin/data/WriterProxyData.h | 24 +- .../builtin/discovery/endpoint/EDPStatic.h | 4 +- .../rtps/builtin/discovery/participant/PDP.h | 6 +- .../fastdds/rtps/common/CdrSerialization.hpp | 4 +- include/fastdds/rtps/messages/CDRMessage.h | 7 +- include/fastdds/rtps/messages/CDRMessage.hpp | 4 +- .../participant/RTPSParticipantListener.h | 6 +- include/fastrtps/attributes/TopicAttributes.h | 155 +- include/fastrtps/qos/ParameterTypes.h | 5 +- include/fastrtps/utils/fixed_size_string.hpp | 255 - .../core/policy/ParameterSerializer.hpp | 18 +- .../fastdds/domain/DomainParticipantImpl.cpp | 6 +- .../fastdds/domain/DomainParticipantImpl.hpp | 6 +- .../filtering/ReaderFilterInformation.hpp | 6 +- .../subscriber/history/DataReaderHistory.hpp | 7 +- .../topic/DDSSQLFilter/DDSFilterFactory.cpp | 2 +- .../topic/DDSSQLFilter/DDSFilterValue.cpp | 8 +- .../topic/DDSSQLFilter/DDSFilterValue.hpp | 6 +- .../discovery/database/DiscoveryDataBase.hpp | 1 - .../database/DiscoveryDataQueueInfo.hpp | 7 +- .../database/DiscoveryEndpointInfo.hpp | 7 +- .../builtin/discovery/endpoint/EDPServer.cpp | 7 +- .../discovery/endpoint/EDPServerListeners.cpp | 10 +- .../builtin/discovery/endpoint/EDPStatic.cpp | 4 +- .../builtin/discovery/participant/PDP.cpp | 6 +- .../discovery/participant/PDPSimple.cpp | 2 +- .../statistics/types/monitorservice_typesv1.h | 3357 +++++---- src/cpp/statistics/types/typesv1.h | 6014 ++++++++-------- test/blackbox/types/Data1mbv1.h | 26 +- test/blackbox/types/Data64kbv1.h | 26 +- test/blackbox/types/FixedSizedv1.h | 23 +- test/blackbox/types/HelloWorldv1.cxx | 8 +- test/blackbox/types/HelloWorldv1.h | 33 +- test/blackbox/types/KeyedData1mbv1.h | 23 +- test/blackbox/types/KeyedHelloWorldv1.cxx | 16 +- test/blackbox/types/KeyedHelloWorldv1.h | 33 +- test/blackbox/types/StringTestv1.cxx | 8 +- test/blackbox/types/StringTestv1.h | 35 +- .../types/TestIncludeRegression3361v1.h | 7 +- test/blackbox/types/TestRegression3361v1.h | 25 +- test/blackbox/types/statistics/typesv1.h | 6015 ++++++++--------- test/dds/communication/SubscriberDynamic.cpp | 4 +- .../attributes/RTPSParticipantAttributes.h | 6 +- .../rtps/builtin/data/ReaderProxyData.h | 16 +- .../rtps/builtin/data/WriterProxyData.h | 12 +- test/profiling/allocations/AllocTestTypev1.h | 23 +- .../data_types/ContentFilterTestTypev1.h | 47 +- test/unittest/dynamic_types/idl/Basicv1.cxx | 8 +- test/unittest/dynamic_types/idl/Basicv1.h | 700 +- test/unittest/dynamic_types/idl/Testv1.cxx | 30 +- test/unittest/dynamic_types/idl/Testv1.h | 128 +- .../dynamic_types/idl/new_features_4_2.h | 5 - .../dynamic_types/idl/new_features_4_2v1.h | 1342 ++-- test/unittest/rtps/history/CMakeLists.txt | 1 + test/unittest/rtps/persistence/CMakeLists.txt | 1 + test/unittest/rtps/reader/CMakeLists.txt | 6 +- test/unittest/rtps/writer/CMakeLists.txt | 1 + .../accesscontrol/AccessControlTests.cpp | 4 +- .../statistics/rtps/RTPSStatisticsTests.cpp | 4 +- test/unittest/utils/CMakeLists.txt | 14 - test/unittest/utils/FixedSizeStringTests.cpp | 273 - test/unittest/xtypes/idl/Typesv1.cxx | 8 +- test/unittest/xtypes/idl/Typesv1.h | 791 +-- test/unittest/xtypes/idl/WideEnum.h | 3 - test/unittest/xtypes/idl/WideEnumv1.h | 48 +- test/xtypes/TestPublisher.cpp | 6 +- test/xtypes/TestPublisher.h | 6 +- test/xtypes/TestSubscriber.cpp | 6 +- test/xtypes/TestSubscriber.h | 6 +- test/xtypes/idl/Typesv1.cxx | 8 +- test/xtypes/idl/Typesv1.h | 791 +-- 129 files changed, 10255 insertions(+), 11122 deletions(-) delete mode 100644 include/fastrtps/utils/fixed_size_string.hpp delete mode 100644 test/unittest/utils/FixedSizeStringTests.cpp diff --git a/examples/cpp/dds/AdvancedConfigurationExample/AdvancedConfiguration.h b/examples/cpp/dds/AdvancedConfigurationExample/AdvancedConfiguration.h index 207a02e1cd0..18c1255a55c 100644 --- a/examples/cpp/dds/AdvancedConfigurationExample/AdvancedConfiguration.h +++ b/examples/cpp/dds/AdvancedConfigurationExample/AdvancedConfiguration.h @@ -34,7 +34,6 @@ #include #include -#include #include #include diff --git a/examples/cpp/dds/AdvancedConfigurationExample/AdvancedConfigurationv1.h b/examples/cpp/dds/AdvancedConfigurationExample/AdvancedConfigurationv1.h index 5ea849b1748..da5d202a47d 100644 --- a/examples/cpp/dds/AdvancedConfigurationExample/AdvancedConfigurationv1.h +++ b/examples/cpp/dds/AdvancedConfigurationExample/AdvancedConfigurationv1.h @@ -26,9 +26,6 @@ #ifndef _FAST_DDS_GENERATED_ADVANCEDCONFIGURATION_H_ #define _FAST_DDS_GENERATED_ADVANCEDCONFIGURATION_H_ - -#include - #include #include #include @@ -37,6 +34,7 @@ #include #include + #if defined(_WIN32) #if defined(EPROSIMA_USER_DLL_EXPORT) #define eProsima_user_DllExport __declspec( dllexport ) @@ -208,11 +206,11 @@ class AdvancedConfiguration /*! - * @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. - */ + * @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); @@ -246,18 +244,17 @@ class AdvancedConfiguration /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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; diff --git a/examples/cpp/dds/BasicConfigurationExample/HelloWorld.h b/examples/cpp/dds/BasicConfigurationExample/HelloWorld.h index aaf09e4bc57..b7f2c30d856 100644 --- a/examples/cpp/dds/BasicConfigurationExample/HelloWorld.h +++ b/examples/cpp/dds/BasicConfigurationExample/HelloWorld.h @@ -34,7 +34,6 @@ #include #include -#include #include #include diff --git a/examples/cpp/dds/BasicConfigurationExample/HelloWorldv1.h b/examples/cpp/dds/BasicConfigurationExample/HelloWorldv1.h index d4554ac83a2..47c34186b89 100644 --- a/examples/cpp/dds/BasicConfigurationExample/HelloWorldv1.h +++ b/examples/cpp/dds/BasicConfigurationExample/HelloWorldv1.h @@ -27,7 +27,7 @@ #define _FAST_DDS_GENERATED_HELLOWORLD_H_ -#include +#include #include #include @@ -179,11 +179,11 @@ class HelloWorld /*! - * @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. - */ + * @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); @@ -217,18 +217,17 @@ class HelloWorld /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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; diff --git a/examples/cpp/dds/Configurability/samplev1.h b/examples/cpp/dds/Configurability/samplev1.h index 4fa288d1bc9..8057786faeb 100644 --- a/examples/cpp/dds/Configurability/samplev1.h +++ b/examples/cpp/dds/Configurability/samplev1.h @@ -27,7 +27,7 @@ #define _FAST_DDS_GENERATED_SAMPLE_H_ -#include +#include #include #include @@ -172,11 +172,11 @@ class sample /*! - * @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. - */ + * @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); @@ -210,18 +210,17 @@ class sample /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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: uint8_t m_index; diff --git a/examples/cpp/dds/ContentFilteredTopicExample/HelloWorld.h b/examples/cpp/dds/ContentFilteredTopicExample/HelloWorld.h index 5cd0ddba511..8ee7933f273 100644 --- a/examples/cpp/dds/ContentFilteredTopicExample/HelloWorld.h +++ b/examples/cpp/dds/ContentFilteredTopicExample/HelloWorld.h @@ -34,7 +34,6 @@ #include #include -#include #include #include diff --git a/examples/cpp/dds/ContentFilteredTopicExample/HelloWorldv1.h b/examples/cpp/dds/ContentFilteredTopicExample/HelloWorldv1.h index 9f6f726e0ab..1d3fa5c91b7 100644 --- a/examples/cpp/dds/ContentFilteredTopicExample/HelloWorldv1.h +++ b/examples/cpp/dds/ContentFilteredTopicExample/HelloWorldv1.h @@ -26,8 +26,7 @@ #ifndef _FAST_DDS_GENERATED_HELLOWORLD_H_ #define _FAST_DDS_GENERATED_HELLOWORLD_H_ - -#include +#include #include #include @@ -179,11 +178,11 @@ class HelloWorld /*! - * @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. - */ + * @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); @@ -217,18 +216,17 @@ class HelloWorld /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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; diff --git a/examples/cpp/dds/CustomListenerExample/Topicv1.h b/examples/cpp/dds/CustomListenerExample/Topicv1.h index e06f22b7e2b..b34baa538da 100644 --- a/examples/cpp/dds/CustomListenerExample/Topicv1.h +++ b/examples/cpp/dds/CustomListenerExample/Topicv1.h @@ -27,7 +27,7 @@ #define _FAST_DDS_GENERATED_TOPIC_H_ -#include +#include #include #include @@ -179,11 +179,11 @@ class Topic /*! - * @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. - */ + * @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); @@ -217,18 +217,17 @@ class Topic /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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; diff --git a/examples/cpp/dds/CustomPayloadPoolExample/CustomPayloadPoolData.h b/examples/cpp/dds/CustomPayloadPoolExample/CustomPayloadPoolData.h index 46b1c16c138..b36859bc9ca 100644 --- a/examples/cpp/dds/CustomPayloadPoolExample/CustomPayloadPoolData.h +++ b/examples/cpp/dds/CustomPayloadPoolExample/CustomPayloadPoolData.h @@ -34,7 +34,6 @@ #include #include -#include #include #include diff --git a/examples/cpp/dds/CustomPayloadPoolExample/CustomPayloadPoolDatav1.h b/examples/cpp/dds/CustomPayloadPoolExample/CustomPayloadPoolDatav1.h index 1779f3b76d7..ed77447df15 100644 --- a/examples/cpp/dds/CustomPayloadPoolExample/CustomPayloadPoolDatav1.h +++ b/examples/cpp/dds/CustomPayloadPoolExample/CustomPayloadPoolDatav1.h @@ -27,7 +27,7 @@ #define _FAST_DDS_GENERATED_CUSTOMPAYLOADPOOLDATA_H_ -#include +#include #include #include @@ -179,11 +179,11 @@ class CustomPayloadPoolData /*! - * @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. - */ + * @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); @@ -217,18 +217,17 @@ class CustomPayloadPoolData /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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; diff --git a/examples/cpp/dds/DeadlineQoSExample/deadlinepayloadv1.cxx b/examples/cpp/dds/DeadlineQoSExample/deadlinepayloadv1.cxx index 6e8e3e66443..0572e9af97e 100644 --- a/examples/cpp/dds/DeadlineQoSExample/deadlinepayloadv1.cxx +++ b/examples/cpp/dds/DeadlineQoSExample/deadlinepayloadv1.cxx @@ -215,10 +215,10 @@ void HelloMsg::serializeKey( eprosima::fastcdr::Cdr& scdr) const { (void) scdr; - + scdr << m_deadlinekey; - - + + } /*! @@ -255,7 +255,7 @@ uint16_t& HelloMsg::deadlinekey() * @param _payload New value to be copied in member payload */ void HelloMsg::payload( - const eprosima::fastrtps::fixed_string<256>& _payload) + const eprosima::fastcdr::fixed_string<256>& _payload) { m_payload = _payload; } @@ -265,7 +265,7 @@ void HelloMsg::payload( * @param _payload New value to be moved in member payload */ void HelloMsg::payload( - eprosima::fastrtps::fixed_string<256>&& _payload) + eprosima::fastcdr::fixed_string<256>&& _payload) { m_payload = std::move(_payload); } @@ -274,7 +274,7 @@ void HelloMsg::payload( * @brief This function returns a constant reference to member payload * @return Constant reference to member payload */ -const eprosima::fastrtps::fixed_string<256>& HelloMsg::payload() const +const eprosima::fastcdr::fixed_string<256>& HelloMsg::payload() const { return m_payload; } @@ -283,7 +283,7 @@ const eprosima::fastrtps::fixed_string<256>& HelloMsg::payload() const * @brief This function returns a reference to member payload * @return Reference to member payload */ -eprosima::fastrtps::fixed_string<256>& HelloMsg::payload() +eprosima::fastcdr::fixed_string<256>& HelloMsg::payload() { return m_payload; } diff --git a/examples/cpp/dds/DeadlineQoSExample/deadlinepayloadv1.h b/examples/cpp/dds/DeadlineQoSExample/deadlinepayloadv1.h index 1711ff83a06..74862199c5b 100644 --- a/examples/cpp/dds/DeadlineQoSExample/deadlinepayloadv1.h +++ b/examples/cpp/dds/DeadlineQoSExample/deadlinepayloadv1.h @@ -27,7 +27,7 @@ #define _FAST_DDS_GENERATED_DEADLINEPAYLOAD_H_ -#include +#include #include #include @@ -156,34 +156,34 @@ class HelloMsg * @param _payload New value to be copied in member payload */ eProsima_user_DllExport void payload( - const eprosima::fastrtps::fixed_string<256>& _payload); + const eprosima::fastcdr::fixed_string<256>& _payload); /*! * @brief This function moves the value in member payload * @param _payload New value to be moved in member payload */ eProsima_user_DllExport void payload( - eprosima::fastrtps::fixed_string<256>&& _payload); + eprosima::fastcdr::fixed_string<256>&& _payload); /*! * @brief This function returns a constant reference to member payload * @return Constant reference to member payload */ - eProsima_user_DllExport const eprosima::fastrtps::fixed_string<256>& payload() const; + eProsima_user_DllExport const eprosima::fastcdr::fixed_string<256>& payload() const; /*! * @brief This function returns a reference to member payload * @return Reference to member payload */ - eProsima_user_DllExport eprosima::fastrtps::fixed_string<256>& payload(); + eProsima_user_DllExport eprosima::fastcdr::fixed_string<256>& payload(); /*! - * @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. - */ + * @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); @@ -217,22 +217,21 @@ class HelloMsg /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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: uint16_t m_deadlinekey; - eprosima::fastrtps::fixed_string<256> m_payload; + eprosima::fastcdr::fixed_string<256> m_payload; }; diff --git a/examples/cpp/dds/DisablePositiveACKs/Topicv1.h b/examples/cpp/dds/DisablePositiveACKs/Topicv1.h index e06f22b7e2b..b34baa538da 100644 --- a/examples/cpp/dds/DisablePositiveACKs/Topicv1.h +++ b/examples/cpp/dds/DisablePositiveACKs/Topicv1.h @@ -27,7 +27,7 @@ #define _FAST_DDS_GENERATED_TOPIC_H_ -#include +#include #include #include @@ -179,11 +179,11 @@ class Topic /*! - * @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. - */ + * @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); @@ -217,18 +217,17 @@ class Topic /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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; diff --git a/examples/cpp/dds/DiscoveryServerExample/types/HelloWorld.h b/examples/cpp/dds/DiscoveryServerExample/types/HelloWorld.h index 5cd0ddba511..8ee7933f273 100644 --- a/examples/cpp/dds/DiscoveryServerExample/types/HelloWorld.h +++ b/examples/cpp/dds/DiscoveryServerExample/types/HelloWorld.h @@ -34,7 +34,6 @@ #include #include -#include #include #include diff --git a/examples/cpp/dds/DiscoveryServerExample/types/HelloWorldv1.h b/examples/cpp/dds/DiscoveryServerExample/types/HelloWorldv1.h index 9f6f726e0ab..1d3fa5c91b7 100644 --- a/examples/cpp/dds/DiscoveryServerExample/types/HelloWorldv1.h +++ b/examples/cpp/dds/DiscoveryServerExample/types/HelloWorldv1.h @@ -26,8 +26,7 @@ #ifndef _FAST_DDS_GENERATED_HELLOWORLD_H_ #define _FAST_DDS_GENERATED_HELLOWORLD_H_ - -#include +#include #include #include @@ -179,11 +178,11 @@ class HelloWorld /*! - * @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. - */ + * @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); @@ -217,18 +216,17 @@ class HelloWorld /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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; diff --git a/examples/cpp/dds/DynamicHelloWorldExample/HelloWorldSubscriber.cpp b/examples/cpp/dds/DynamicHelloWorldExample/HelloWorldSubscriber.cpp index 3db235e694f..ed1a775ed98 100644 --- a/examples/cpp/dds/DynamicHelloWorldExample/HelloWorldSubscriber.cpp +++ b/examples/cpp/dds/DynamicHelloWorldExample/HelloWorldSubscriber.cpp @@ -133,7 +133,7 @@ void HelloWorldSubscriber::SubListener::on_data_available( void HelloWorldSubscriber::SubListener::on_type_discovery( DomainParticipant*, const eprosima::fastrtps::rtps::SampleIdentity&, - const eprosima::fastrtps::string_255& topic_name, + const eprosima::fastcdr::string_255& topic_name, const eprosima::fastrtps::types::TypeIdentifier*, const eprosima::fastrtps::types::TypeObject*, eprosima::fastrtps::types::DynamicType_ptr dyn_type) diff --git a/examples/cpp/dds/DynamicHelloWorldExample/HelloWorldSubscriber.h b/examples/cpp/dds/DynamicHelloWorldExample/HelloWorldSubscriber.h index 8b777392b48..7570cfdd323 100644 --- a/examples/cpp/dds/DynamicHelloWorldExample/HelloWorldSubscriber.h +++ b/examples/cpp/dds/DynamicHelloWorldExample/HelloWorldSubscriber.h @@ -97,7 +97,7 @@ class HelloWorldSubscriber void on_type_discovery( eprosima::fastdds::dds::DomainParticipant* participant, const eprosima::fastrtps::rtps::SampleIdentity& request_sample_id, - const eprosima::fastrtps::string_255& topic, + const eprosima::fastcdr::string_255& topic, const eprosima::fastrtps::types::TypeIdentifier* identifier, const eprosima::fastrtps::types::TypeObject* object, eprosima::fastrtps::types::DynamicType_ptr dyn_type) override; diff --git a/examples/cpp/dds/Filtering/FilteringExample.h b/examples/cpp/dds/Filtering/FilteringExample.h index c57439eb75c..396040053ea 100644 --- a/examples/cpp/dds/Filtering/FilteringExample.h +++ b/examples/cpp/dds/Filtering/FilteringExample.h @@ -34,7 +34,6 @@ #include #include -#include #include #include diff --git a/examples/cpp/dds/Filtering/FilteringExamplev1.h b/examples/cpp/dds/Filtering/FilteringExamplev1.h index b7e6c2228c1..d93d0a171cb 100644 --- a/examples/cpp/dds/Filtering/FilteringExamplev1.h +++ b/examples/cpp/dds/Filtering/FilteringExamplev1.h @@ -26,8 +26,7 @@ #ifndef _FAST_DDS_GENERATED_FILTERINGEXAMPLE_H_ #define _FAST_DDS_GENERATED_FILTERINGEXAMPLE_H_ - -#include +#include #include #include @@ -152,11 +151,11 @@ class FilteringExample /*! - * @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. - */ + * @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); @@ -190,18 +189,17 @@ class FilteringExample /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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_sampleNumber; diff --git a/examples/cpp/dds/FlowControlExample/FlowControlExample.h b/examples/cpp/dds/FlowControlExample/FlowControlExample.h index f73d6e41c08..867206bcf51 100644 --- a/examples/cpp/dds/FlowControlExample/FlowControlExample.h +++ b/examples/cpp/dds/FlowControlExample/FlowControlExample.h @@ -34,7 +34,6 @@ #include #include -#include #include #include diff --git a/examples/cpp/dds/FlowControlExample/FlowControlExamplev1.h b/examples/cpp/dds/FlowControlExample/FlowControlExamplev1.h index f72b0a10dae..155a7457241 100644 --- a/examples/cpp/dds/FlowControlExample/FlowControlExamplev1.h +++ b/examples/cpp/dds/FlowControlExample/FlowControlExamplev1.h @@ -27,7 +27,6 @@ #define _FAST_DDS_GENERATED_FLOWCONTROLEXAMPLE_H_ -#include #include #include @@ -179,11 +178,11 @@ class FlowControlExample /*! - * @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. - */ + * @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); @@ -217,18 +216,17 @@ class FlowControlExample /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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_message; diff --git a/examples/cpp/dds/HelloWorldExample/HelloWorld.h b/examples/cpp/dds/HelloWorldExample/HelloWorld.h index 5cd0ddba511..8ee7933f273 100644 --- a/examples/cpp/dds/HelloWorldExample/HelloWorld.h +++ b/examples/cpp/dds/HelloWorldExample/HelloWorld.h @@ -34,7 +34,6 @@ #include #include -#include #include #include diff --git a/examples/cpp/dds/HelloWorldExample/HelloWorldv1.h b/examples/cpp/dds/HelloWorldExample/HelloWorldv1.h index 9f6f726e0ab..c71c7316ade 100644 --- a/examples/cpp/dds/HelloWorldExample/HelloWorldv1.h +++ b/examples/cpp/dds/HelloWorldExample/HelloWorldv1.h @@ -27,7 +27,6 @@ #define _FAST_DDS_GENERATED_HELLOWORLD_H_ -#include #include #include @@ -179,11 +178,11 @@ class HelloWorld /*! - * @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. - */ + * @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); @@ -217,18 +216,17 @@ class HelloWorld /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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; diff --git a/examples/cpp/dds/HelloWorldExampleDataSharing/HelloWorldv1.cxx b/examples/cpp/dds/HelloWorldExampleDataSharing/HelloWorldv1.cxx index 27e02c6c6d3..77c66ce8325 100644 --- a/examples/cpp/dds/HelloWorldExampleDataSharing/HelloWorldv1.cxx +++ b/examples/cpp/dds/HelloWorldExampleDataSharing/HelloWorldv1.cxx @@ -251,7 +251,7 @@ uint32_t& HelloWorld::index() * @param _message New value to be copied in member message */ void HelloWorld::message( - const eprosima::fastrtps::fixed_string<20>& _message) + const eprosima::fastcdr::fixed_string<20>& _message) { m_message = _message; } @@ -261,7 +261,7 @@ void HelloWorld::message( * @param _message New value to be moved in member message */ void HelloWorld::message( - eprosima::fastrtps::fixed_string<20>&& _message) + eprosima::fastcdr::fixed_string<20>&& _message) { m_message = std::move(_message); } @@ -270,7 +270,7 @@ void HelloWorld::message( * @brief This function returns a constant reference to member message * @return Constant reference to member message */ -const eprosima::fastrtps::fixed_string<20>& HelloWorld::message() const +const eprosima::fastcdr::fixed_string<20>& HelloWorld::message() const { return m_message; } @@ -279,7 +279,7 @@ const eprosima::fastrtps::fixed_string<20>& HelloWorld::message() const * @brief This function returns a reference to member message * @return Reference to member message */ -eprosima::fastrtps::fixed_string<20>& HelloWorld::message() +eprosima::fastcdr::fixed_string<20>& HelloWorld::message() { return m_message; } diff --git a/examples/cpp/dds/HelloWorldExampleDataSharing/HelloWorldv1.h b/examples/cpp/dds/HelloWorldExampleDataSharing/HelloWorldv1.h index 00281b09128..4ae5572629e 100644 --- a/examples/cpp/dds/HelloWorldExampleDataSharing/HelloWorldv1.h +++ b/examples/cpp/dds/HelloWorldExampleDataSharing/HelloWorldv1.h @@ -27,7 +27,7 @@ #define _FAST_DDS_GENERATED_HELLOWORLD_H_ -#include +#include #include #include @@ -156,34 +156,34 @@ class HelloWorld * @param _message New value to be copied in member message */ eProsima_user_DllExport void message( - const eprosima::fastrtps::fixed_string<20>& _message); + const eprosima::fastcdr::fixed_string<20>& _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( - eprosima::fastrtps::fixed_string<20>&& _message); + eprosima::fastcdr::fixed_string<20>&& _message); /*! * @brief This function returns a constant reference to member message * @return Constant reference to member message */ - eProsima_user_DllExport const eprosima::fastrtps::fixed_string<20>& message() const; + eProsima_user_DllExport const eprosima::fastcdr::fixed_string<20>& message() const; /*! * @brief This function returns a reference to member message * @return Reference to member message */ - eProsima_user_DllExport eprosima::fastrtps::fixed_string<20>& message(); + eProsima_user_DllExport eprosima::fastcdr::fixed_string<20>& 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. - */ + * @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); @@ -217,22 +217,21 @@ class HelloWorld /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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; - eprosima::fastrtps::fixed_string<20> m_message; + eprosima::fastcdr::fixed_string<20> m_message; }; diff --git a/examples/cpp/dds/HelloWorldExampleSharedMem/HelloWorld.h b/examples/cpp/dds/HelloWorldExampleSharedMem/HelloWorld.h index deb44d359b1..83eb7cf1b69 100644 --- a/examples/cpp/dds/HelloWorldExampleSharedMem/HelloWorld.h +++ b/examples/cpp/dds/HelloWorldExampleSharedMem/HelloWorld.h @@ -34,7 +34,6 @@ #include #include -#include #include #include @@ -187,32 +186,32 @@ class HelloWorld * @param _data New value to be copied in member data */ eProsima_user_DllExport void data( - const std::array& _data); + const std::array& _data); /*! * @brief This function moves the value in member data * @param _data New value to be moved in member data */ eProsima_user_DllExport void data( - std::array&& _data); + std::array&& _data); /*! * @brief This function returns a constant reference to member data * @return Constant reference to member data */ - eProsima_user_DllExport const std::array& data() const; + eProsima_user_DllExport const std::array& data() const; /*! * @brief This function returns a reference to member data * @return Reference to member data */ - eProsima_user_DllExport std::array& data(); + eProsima_user_DllExport std::array& data(); private: uint32_t m_index{0}; std::string m_message; - std::array m_data; + std::array m_data; }; diff --git a/examples/cpp/dds/HelloWorldExampleSharedMem/HelloWorldv1.h b/examples/cpp/dds/HelloWorldExampleSharedMem/HelloWorldv1.h index 8221e3d9fbe..bb659c13bfb 100644 --- a/examples/cpp/dds/HelloWorldExampleSharedMem/HelloWorldv1.h +++ b/examples/cpp/dds/HelloWorldExampleSharedMem/HelloWorldv1.h @@ -27,7 +27,7 @@ #define _FAST_DDS_GENERATED_HELLOWORLD_H_ -#include +#include #include #include @@ -183,34 +183,34 @@ class HelloWorld * @param _data New value to be copied in member data */ eProsima_user_DllExport void data( - const std::array& _data); + const std::array& _data); /*! * @brief This function moves the value in member data * @param _data New value to be moved in member data */ eProsima_user_DllExport void data( - std::array&& _data); + std::array&& _data); /*! * @brief This function returns a constant reference to member data * @return Constant reference to member data */ - eProsima_user_DllExport const std::array& data() const; + eProsima_user_DllExport const std::array& data() const; /*! * @brief This function returns a reference to member data * @return Reference to member data */ - eProsima_user_DllExport std::array& data(); + eProsima_user_DllExport std::array& 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. - */ + * @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); @@ -244,23 +244,22 @@ class HelloWorld /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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; - std::array m_data; + std::array m_data; }; diff --git a/examples/cpp/dds/HelloWorldExampleTCP/HelloWorldv1.h b/examples/cpp/dds/HelloWorldExampleTCP/HelloWorldv1.h index 9f6f726e0ab..327516a2151 100644 --- a/examples/cpp/dds/HelloWorldExampleTCP/HelloWorldv1.h +++ b/examples/cpp/dds/HelloWorldExampleTCP/HelloWorldv1.h @@ -27,7 +27,7 @@ #define _FAST_DDS_GENERATED_HELLOWORLD_H_ -#include +#include #include #include @@ -179,11 +179,11 @@ class HelloWorld /*! - * @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. - */ + * @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); @@ -217,18 +217,17 @@ class HelloWorld /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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; diff --git a/examples/cpp/dds/HistoryKind/samplev1.h b/examples/cpp/dds/HistoryKind/samplev1.h index 4fa288d1bc9..8057786faeb 100644 --- a/examples/cpp/dds/HistoryKind/samplev1.h +++ b/examples/cpp/dds/HistoryKind/samplev1.h @@ -27,7 +27,7 @@ #define _FAST_DDS_GENERATED_SAMPLE_H_ -#include +#include #include #include @@ -172,11 +172,11 @@ class sample /*! - * @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. - */ + * @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); @@ -210,18 +210,17 @@ class sample /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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: uint8_t m_index; diff --git a/examples/cpp/dds/Keys/samplev1.h b/examples/cpp/dds/Keys/samplev1.h index 4fa288d1bc9..8057786faeb 100644 --- a/examples/cpp/dds/Keys/samplev1.h +++ b/examples/cpp/dds/Keys/samplev1.h @@ -27,7 +27,7 @@ #define _FAST_DDS_GENERATED_SAMPLE_H_ -#include +#include #include #include @@ -172,11 +172,11 @@ class sample /*! - * @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. - */ + * @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); @@ -210,18 +210,17 @@ class sample /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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: uint8_t m_index; diff --git a/examples/cpp/dds/LateJoiners/samplev1.h b/examples/cpp/dds/LateJoiners/samplev1.h index 4fa288d1bc9..8057786faeb 100644 --- a/examples/cpp/dds/LateJoiners/samplev1.h +++ b/examples/cpp/dds/LateJoiners/samplev1.h @@ -27,7 +27,7 @@ #define _FAST_DDS_GENERATED_SAMPLE_H_ -#include +#include #include #include @@ -172,11 +172,11 @@ class sample /*! - * @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. - */ + * @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); @@ -210,18 +210,17 @@ class sample /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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: uint8_t m_index; diff --git a/examples/cpp/dds/LifespanQoSExample/Lifespanv1.h b/examples/cpp/dds/LifespanQoSExample/Lifespanv1.h index ad92ec390df..1e31b13773b 100644 --- a/examples/cpp/dds/LifespanQoSExample/Lifespanv1.h +++ b/examples/cpp/dds/LifespanQoSExample/Lifespanv1.h @@ -27,7 +27,7 @@ #define _FAST_DDS_GENERATED_LIFESPAN_H_ -#include +#include #include #include @@ -179,11 +179,11 @@ class Lifespan /*! - * @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. - */ + * @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); @@ -217,18 +217,17 @@ class Lifespan /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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; diff --git a/examples/cpp/dds/LivelinessQoS/Topicv1.h b/examples/cpp/dds/LivelinessQoS/Topicv1.h index e06f22b7e2b..b34baa538da 100644 --- a/examples/cpp/dds/LivelinessQoS/Topicv1.h +++ b/examples/cpp/dds/LivelinessQoS/Topicv1.h @@ -27,7 +27,7 @@ #define _FAST_DDS_GENERATED_TOPIC_H_ -#include +#include #include #include @@ -179,11 +179,11 @@ class Topic /*! - * @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. - */ + * @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); @@ -217,18 +217,17 @@ class Topic /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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; diff --git a/examples/cpp/dds/OwnershipStrengthQoSExample/OwnershipStrength.h b/examples/cpp/dds/OwnershipStrengthQoSExample/OwnershipStrength.h index 2ce1eddefa3..25f811d2b67 100644 --- a/examples/cpp/dds/OwnershipStrengthQoSExample/OwnershipStrength.h +++ b/examples/cpp/dds/OwnershipStrengthQoSExample/OwnershipStrength.h @@ -34,7 +34,6 @@ #include #include -#include #include #include diff --git a/examples/cpp/dds/OwnershipStrengthQoSExample/OwnershipStrengthv1.h b/examples/cpp/dds/OwnershipStrengthQoSExample/OwnershipStrengthv1.h index ce63f631f87..e0f8c015315 100644 --- a/examples/cpp/dds/OwnershipStrengthQoSExample/OwnershipStrengthv1.h +++ b/examples/cpp/dds/OwnershipStrengthQoSExample/OwnershipStrengthv1.h @@ -27,7 +27,7 @@ #define _FAST_DDS_GENERATED_OWNERSHIPSTRENGTH_H_ -#include +#include #include #include @@ -199,11 +199,11 @@ class ExampleMessage /*! - * @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. - */ + * @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); @@ -237,18 +237,17 @@ class ExampleMessage /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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; diff --git a/examples/cpp/dds/RequestReplyExample/Calculator.h b/examples/cpp/dds/RequestReplyExample/Calculator.h index 945af396175..ef319599636 100644 --- a/examples/cpp/dds/RequestReplyExample/Calculator.h +++ b/examples/cpp/dds/RequestReplyExample/Calculator.h @@ -34,7 +34,6 @@ #include #include -#include #include #include diff --git a/examples/cpp/dds/RequestReplyExample/Calculatorv1.h b/examples/cpp/dds/RequestReplyExample/Calculatorv1.h index af2bccef6ca..f6d2f272c88 100644 --- a/examples/cpp/dds/RequestReplyExample/Calculatorv1.h +++ b/examples/cpp/dds/RequestReplyExample/Calculatorv1.h @@ -27,7 +27,7 @@ #define _FAST_DDS_GENERATED_CALCULATOR_H_ -#include +#include #include #include @@ -203,11 +203,11 @@ class RequestType /*! - * @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. - */ + * @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); @@ -241,18 +241,17 @@ class RequestType /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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: OperationType m_operation; @@ -344,11 +343,11 @@ class ReplyType /*! - * @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. - */ + * @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); @@ -382,18 +381,17 @@ class ReplyType /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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: int64_t m_z; diff --git a/examples/cpp/dds/SampleConfig_Controller/samplev1.h b/examples/cpp/dds/SampleConfig_Controller/samplev1.h index 4fa288d1bc9..8057786faeb 100644 --- a/examples/cpp/dds/SampleConfig_Controller/samplev1.h +++ b/examples/cpp/dds/SampleConfig_Controller/samplev1.h @@ -27,7 +27,7 @@ #define _FAST_DDS_GENERATED_SAMPLE_H_ -#include +#include #include #include @@ -172,11 +172,11 @@ class sample /*! - * @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. - */ + * @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); @@ -210,18 +210,17 @@ class sample /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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: uint8_t m_index; diff --git a/examples/cpp/dds/SampleConfig_Events/samplev1.h b/examples/cpp/dds/SampleConfig_Events/samplev1.h index 4fa288d1bc9..8057786faeb 100644 --- a/examples/cpp/dds/SampleConfig_Events/samplev1.h +++ b/examples/cpp/dds/SampleConfig_Events/samplev1.h @@ -27,7 +27,7 @@ #define _FAST_DDS_GENERATED_SAMPLE_H_ -#include +#include #include #include @@ -172,11 +172,11 @@ class sample /*! - * @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. - */ + * @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); @@ -210,18 +210,17 @@ class sample /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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: uint8_t m_index; diff --git a/examples/cpp/dds/SampleConfig_Multimedia/samplev1.h b/examples/cpp/dds/SampleConfig_Multimedia/samplev1.h index 4fa288d1bc9..8057786faeb 100644 --- a/examples/cpp/dds/SampleConfig_Multimedia/samplev1.h +++ b/examples/cpp/dds/SampleConfig_Multimedia/samplev1.h @@ -27,7 +27,7 @@ #define _FAST_DDS_GENERATED_SAMPLE_H_ -#include +#include #include #include @@ -172,11 +172,11 @@ class sample /*! - * @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. - */ + * @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); @@ -210,18 +210,17 @@ class sample /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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: uint8_t m_index; diff --git a/examples/cpp/dds/SecureHelloWorldExample/HelloWorld.h b/examples/cpp/dds/SecureHelloWorldExample/HelloWorld.h index 5cd0ddba511..8ee7933f273 100644 --- a/examples/cpp/dds/SecureHelloWorldExample/HelloWorld.h +++ b/examples/cpp/dds/SecureHelloWorldExample/HelloWorld.h @@ -34,7 +34,6 @@ #include #include -#include #include #include diff --git a/examples/cpp/dds/SecureHelloWorldExample/HelloWorldv1.h b/examples/cpp/dds/SecureHelloWorldExample/HelloWorldv1.h index 9f6f726e0ab..327516a2151 100644 --- a/examples/cpp/dds/SecureHelloWorldExample/HelloWorldv1.h +++ b/examples/cpp/dds/SecureHelloWorldExample/HelloWorldv1.h @@ -27,7 +27,7 @@ #define _FAST_DDS_GENERATED_HELLOWORLD_H_ -#include +#include #include #include @@ -179,11 +179,11 @@ class HelloWorld /*! - * @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. - */ + * @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); @@ -217,18 +217,17 @@ class HelloWorld /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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; diff --git a/examples/cpp/dds/StaticHelloWorldExample/HelloWorld.h b/examples/cpp/dds/StaticHelloWorldExample/HelloWorld.h index 5cd0ddba511..8ee7933f273 100644 --- a/examples/cpp/dds/StaticHelloWorldExample/HelloWorld.h +++ b/examples/cpp/dds/StaticHelloWorldExample/HelloWorld.h @@ -34,7 +34,6 @@ #include #include -#include #include #include diff --git a/examples/cpp/dds/StaticHelloWorldExample/HelloWorldv1.h b/examples/cpp/dds/StaticHelloWorldExample/HelloWorldv1.h index 9f6f726e0ab..327516a2151 100644 --- a/examples/cpp/dds/StaticHelloWorldExample/HelloWorldv1.h +++ b/examples/cpp/dds/StaticHelloWorldExample/HelloWorldv1.h @@ -27,7 +27,7 @@ #define _FAST_DDS_GENERATED_HELLOWORLD_H_ -#include +#include #include #include @@ -179,11 +179,11 @@ class HelloWorld /*! - * @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. - */ + * @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); @@ -217,18 +217,17 @@ class HelloWorld /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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; diff --git a/examples/cpp/dds/TypeLookupService/TypeLookupSubscriber.cpp b/examples/cpp/dds/TypeLookupService/TypeLookupSubscriber.cpp index 999d8938286..030fad3a1be 100644 --- a/examples/cpp/dds/TypeLookupService/TypeLookupSubscriber.cpp +++ b/examples/cpp/dds/TypeLookupService/TypeLookupSubscriber.cpp @@ -160,8 +160,8 @@ void TypeLookupSubscriber::SubListener::on_data_available( void TypeLookupSubscriber::SubListener::on_type_information_received( eprosima::fastdds::dds::DomainParticipant*, - const eprosima::fastrtps::string_255 topic_name, - const eprosima::fastrtps::string_255 type_name, + const eprosima::fastcdr::string_255 topic_name, + const eprosima::fastcdr::string_255 type_name, const eprosima::fastrtps::types::TypeInformation& type_information) { std::function callback = diff --git a/examples/cpp/dds/TypeLookupService/TypeLookupSubscriber.h b/examples/cpp/dds/TypeLookupService/TypeLookupSubscriber.h index 3d28f8d81d9..2b0fddf033f 100644 --- a/examples/cpp/dds/TypeLookupService/TypeLookupSubscriber.h +++ b/examples/cpp/dds/TypeLookupService/TypeLookupSubscriber.h @@ -91,8 +91,8 @@ class TypeLookupSubscriber void on_type_information_received( eprosima::fastdds::dds::DomainParticipant* participant, - const eprosima::fastrtps::string_255 topic_name, - const eprosima::fastrtps::string_255 type_name, + const eprosima::fastcdr::string_255 topic_name, + const eprosima::fastcdr::string_255 type_name, const eprosima::fastrtps::types::TypeInformation& type_information) override; int n_matched; diff --git a/examples/cpp/dds/WriterLoansExample/LoanableHelloWorld.h b/examples/cpp/dds/WriterLoansExample/LoanableHelloWorld.h index 80d8feaca9b..7028095a060 100644 --- a/examples/cpp/dds/WriterLoansExample/LoanableHelloWorld.h +++ b/examples/cpp/dds/WriterLoansExample/LoanableHelloWorld.h @@ -34,7 +34,6 @@ #include #include -#include #include #include diff --git a/examples/cpp/dds/WriterLoansExample/LoanableHelloWorldv1.h b/examples/cpp/dds/WriterLoansExample/LoanableHelloWorldv1.h index 1c13fed5575..951cd0e0f09 100644 --- a/examples/cpp/dds/WriterLoansExample/LoanableHelloWorldv1.h +++ b/examples/cpp/dds/WriterLoansExample/LoanableHelloWorldv1.h @@ -27,7 +27,7 @@ #define _FAST_DDS_GENERATED_LOANABLEHELLOWORLD_H_ -#include +#include #include #include @@ -179,11 +179,11 @@ class LoanableHelloWorld /*! - * @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. - */ + * @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); @@ -217,18 +217,17 @@ class LoanableHelloWorld /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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; diff --git a/examples/cpp/dds/ZeroCopyExample/LoanableHelloWorld.h b/examples/cpp/dds/ZeroCopyExample/LoanableHelloWorld.h index 80d8feaca9b..7028095a060 100644 --- a/examples/cpp/dds/ZeroCopyExample/LoanableHelloWorld.h +++ b/examples/cpp/dds/ZeroCopyExample/LoanableHelloWorld.h @@ -34,7 +34,6 @@ #include #include -#include #include #include diff --git a/examples/cpp/dds/ZeroCopyExample/LoanableHelloWorldv1.h b/examples/cpp/dds/ZeroCopyExample/LoanableHelloWorldv1.h index 1c13fed5575..951cd0e0f09 100644 --- a/examples/cpp/dds/ZeroCopyExample/LoanableHelloWorldv1.h +++ b/examples/cpp/dds/ZeroCopyExample/LoanableHelloWorldv1.h @@ -27,7 +27,7 @@ #define _FAST_DDS_GENERATED_LOANABLEHELLOWORLD_H_ -#include +#include #include #include @@ -179,11 +179,11 @@ class LoanableHelloWorld /*! - * @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. - */ + * @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); @@ -217,18 +217,17 @@ class LoanableHelloWorld /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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; diff --git a/include/fastdds/dds/builtin/common/Types.hpp b/include/fastdds/dds/builtin/common/Types.hpp index b7e1e02b34a..66c0389ee8a 100644 --- a/include/fastdds/dds/builtin/common/Types.hpp +++ b/include/fastdds/dds/builtin/common/Types.hpp @@ -21,23 +21,15 @@ #define TYPES_HPP #include -#if FASTCDR_VERSION_MAJOR == 1 -#include -#else #include -#endif // FASTCDR_VERSION_MAJOR == 1 + namespace eprosima { namespace fastdds { namespace dds { namespace rpc { -using InstanceName = -#if FASTCDR_VERSION_MAJOR == 1 - fastrtps::string_255; -#else - fastcdr::string_255; -#endif // FASTCDR_VERSION_MAJOR == 1 +using InstanceName = fastcdr::string_255; enum RemoteExceptionCode_t { diff --git a/include/fastdds/dds/core/policy/ParameterTypes.hpp b/include/fastdds/dds/core/policy/ParameterTypes.hpp index ba68867dcb1..873eada6edf 100644 --- a/include/fastdds/dds/core/policy/ParameterTypes.hpp +++ b/include/fastdds/dds/core/policy/ParameterTypes.hpp @@ -21,20 +21,20 @@ #ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC +#include +#include + +#include + #include #include #include -#include - #if HAVE_SECURITY #include #include #endif // if HAVE_SECURITY -#include -#include - namespace eprosima { namespace fastrtps { @@ -352,7 +352,7 @@ class ParameterString_t : public Parameter_t ParameterString_t( ParameterId_t pid, uint16_t in_length, - const fastrtps::string_255& strin) + const fastcdr::string_255& strin) : Parameter_t(pid, in_length) , string_(strin) { @@ -392,7 +392,7 @@ class ParameterString_t : public Parameter_t private: //!Name.
By default, empty string. - fastrtps::string_255 string_; + fastcdr::string_255 string_; }; /** diff --git a/include/fastdds/dds/domain/DomainParticipantListener.hpp b/include/fastdds/dds/domain/DomainParticipantListener.hpp index 5b0afb78451..5f5a93b8893 100644 --- a/include/fastdds/dds/domain/DomainParticipantListener.hpp +++ b/include/fastdds/dds/domain/DomainParticipantListener.hpp @@ -178,7 +178,7 @@ class DomainParticipantListener : virtual void on_type_discovery( DomainParticipant* participant, const fastrtps::rtps::SampleIdentity& request_sample_id, - const fastrtps::string_255& topic, + const fastcdr::string_255& topic, const fastrtps::types::TypeIdentifier* identifier, const fastrtps::types::TypeObject* object, fastrtps::types::DynamicType_ptr dyn_type) @@ -211,8 +211,8 @@ class DomainParticipantListener : */ virtual void on_type_information_received( DomainParticipant* participant, - const fastrtps::string_255 topic_name, - const fastrtps::string_255 type_name, + const fastcdr::string_255 topic_name, + const fastcdr::string_255 type_name, const fastrtps::types::TypeInformation& type_information) { static_cast(participant); diff --git a/include/fastdds/dds/domain/qos/DomainParticipantQos.hpp b/include/fastdds/dds/domain/qos/DomainParticipantQos.hpp index 4397791390e..1c958fad590 100644 --- a/include/fastdds/dds/domain/qos/DomainParticipantQos.hpp +++ b/include/fastdds/dds/domain/qos/DomainParticipantQos.hpp @@ -283,7 +283,7 @@ class DomainParticipantQos * * @return name */ - const fastrtps::string_255& name() const + const fastcdr::string_255& name() const { return name_; } @@ -293,7 +293,7 @@ class DomainParticipantQos * * @return name */ - fastrtps::string_255& name() + fastcdr::string_255& name() { return name_; } @@ -304,7 +304,7 @@ class DomainParticipantQos * @param value New name to be set */ void name( - const fastrtps::string_255& value) + const fastcdr::string_255& value) { name_ = value; } @@ -488,7 +488,7 @@ class DomainParticipantQos TransportConfigQos transport_; //!Name of the participant. - fastrtps::string_255 name_ = "RTPSParticipant"; + fastcdr::string_255 name_ = "RTPSParticipant"; /*! User defined flow controller to use alongside. * diff --git a/include/fastdds/rtps/attributes/RTPSParticipantAttributes.h b/include/fastdds/rtps/attributes/RTPSParticipantAttributes.h index c248426cc24..c927cae35ea 100644 --- a/include/fastdds/rtps/attributes/RTPSParticipantAttributes.h +++ b/include/fastdds/rtps/attributes/RTPSParticipantAttributes.h @@ -22,6 +22,8 @@ #include #include +#include + #include #include #include @@ -37,7 +39,6 @@ #include #include #include -#include namespace eprosima { namespace fastdds { @@ -590,7 +591,7 @@ class RTPSParticipantAttributes private: //! Name of the participant. - string_255 name{"RTPSParticipant"}; + fastcdr::string_255 name{"RTPSParticipant"}; }; } // namespace rtps diff --git a/include/fastdds/rtps/builtin/data/ContentFilterProperty.hpp b/include/fastdds/rtps/builtin/data/ContentFilterProperty.hpp index 2a23a32d278..d381772538f 100644 --- a/include/fastdds/rtps/builtin/data/ContentFilterProperty.hpp +++ b/include/fastdds/rtps/builtin/data/ContentFilterProperty.hpp @@ -21,7 +21,7 @@ #include -#include +#include #include #include @@ -62,17 +62,17 @@ class ContentFilterProperty } /// Name of the content filtered topic on which the reader was created - fastrtps::string_255 content_filtered_topic_name; + fastcdr::string_255 content_filtered_topic_name; /// Name of the related topic being filtered - fastrtps::string_255 related_topic_name; + fastcdr::string_255 related_topic_name; /// Class name of the filter being used. /// May be empty to indicate the ContentFilterProperty is not present. - fastrtps::string_255 filter_class_name; + fastcdr::string_255 filter_class_name; /// Filter expression indicating which content the reader wants to receive. /// May be empty to indicate the ContentFilterProperty is not present. std::string filter_expression; /// List of values for the parameters present on the filter expression - fastrtps::ResourceLimitedVector expression_parameters; + fastrtps::ResourceLimitedVector expression_parameters; }; } // namespace rtps diff --git a/include/fastdds/rtps/builtin/data/ParticipantProxyData.h b/include/fastdds/rtps/builtin/data/ParticipantProxyData.h index 77eed9eb004..03dbb4c10b6 100644 --- a/include/fastdds/rtps/builtin/data/ParticipantProxyData.h +++ b/include/fastdds/rtps/builtin/data/ParticipantProxyData.h @@ -90,7 +90,7 @@ class ParticipantProxyData //!Manual liveliness count Count_t m_manualLivelinessCount; //!Participant name - string_255 m_participantName; + fastcdr::string_255 m_participantName; //! InstanceHandle_t m_key; //! diff --git a/include/fastdds/rtps/builtin/data/ReaderProxyData.h b/include/fastdds/rtps/builtin/data/ReaderProxyData.h index 7ad052fe4ea..0c41a3ae591 100644 --- a/include/fastdds/rtps/builtin/data/ReaderProxyData.h +++ b/include/fastdds/rtps/builtin/data/ReaderProxyData.h @@ -191,45 +191,45 @@ class ReaderProxyData } RTPS_DllAPI void typeName( - const string_255& typeName) + const fastcdr::string_255& typeName) { m_typeName = typeName; } RTPS_DllAPI void typeName( - string_255&& typeName) + fastcdr::string_255&& typeName) { m_typeName = std::move(typeName); } - RTPS_DllAPI const string_255& typeName() const + RTPS_DllAPI const fastcdr::string_255& typeName() const { return m_typeName; } - RTPS_DllAPI string_255& typeName() + RTPS_DllAPI fastcdr::string_255& typeName() { return m_typeName; } RTPS_DllAPI void topicName( - const string_255& topicName) + const fastcdr::string_255& topicName) { m_topicName = topicName; } RTPS_DllAPI void topicName( - string_255&& topicName) + fastcdr::string_255&& topicName) { m_topicName = std::move(topicName); } - RTPS_DllAPI const string_255& topicName() const + RTPS_DllAPI const fastcdr::string_255& topicName() const { return m_topicName; } - RTPS_DllAPI string_255& topicName() + RTPS_DllAPI fastcdr::string_255& topicName() { return m_topicName; } @@ -492,9 +492,9 @@ class ReaderProxyData //!GUID_t of the participant converted to InstanceHandle InstanceHandle_t m_RTPSParticipantKey; //!Type name - string_255 m_typeName; + fastcdr::string_255 m_typeName; //!Topic name - string_255 m_topicName; + fastcdr::string_255 m_topicName; //!User defined ID uint16_t m_userDefinedId; //!Field to indicate if the Reader is Alive. diff --git a/include/fastdds/rtps/builtin/data/WriterProxyData.h b/include/fastdds/rtps/builtin/data/WriterProxyData.h index 6df26d44b8a..ec8eed91d93 100644 --- a/include/fastdds/rtps/builtin/data/WriterProxyData.h +++ b/include/fastdds/rtps/builtin/data/WriterProxyData.h @@ -21,6 +21,8 @@ #define _FASTDDS_RTPS_BUILTIN_DATA_WRITERPROXYDATA_H_ #ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC +#include + #include #include #include @@ -30,7 +32,7 @@ #include #endif // if HAVE_SECURITY #include -#include +#include namespace eprosima { namespace fastrtps { @@ -216,45 +218,45 @@ class WriterProxyData } RTPS_DllAPI void typeName( - const string_255& typeName) + const fastcdr::string_255& typeName) { m_typeName = typeName; } RTPS_DllAPI void typeName( - string_255&& typeName) + fastcdr::string_255&& typeName) { m_typeName = std::move(typeName); } - RTPS_DllAPI const string_255& typeName() const + RTPS_DllAPI const fastcdr::string_255& typeName() const { return m_typeName; } - RTPS_DllAPI string_255& typeName() + RTPS_DllAPI fastcdr::string_255& typeName() { return m_typeName; } RTPS_DllAPI void topicName( - const string_255& topicName) + const fastcdr::string_255& topicName) { m_topicName = topicName; } RTPS_DllAPI void topicName( - string_255&& topicName) + fastcdr::string_255&& topicName) { m_topicName = std::move(topicName); } - RTPS_DllAPI const string_255& topicName() const + RTPS_DllAPI const fastcdr::string_255& topicName() const { return m_topicName; } - RTPS_DllAPI string_255& topicName() + RTPS_DllAPI fastcdr::string_255& topicName() { return m_topicName; } @@ -476,10 +478,10 @@ class WriterProxyData InstanceHandle_t m_RTPSParticipantKey; //!Type name - string_255 m_typeName; + fastcdr::string_255 m_typeName; //!Topic name - string_255 m_topicName; + fastcdr::string_255 m_topicName; //!User defined ID uint16_t m_userDefinedId; diff --git a/include/fastdds/rtps/builtin/discovery/endpoint/EDPStatic.h b/include/fastdds/rtps/builtin/discovery/endpoint/EDPStatic.h index bb3d0d85b73..a89a7e66e16 100644 --- a/include/fastdds/rtps/builtin/discovery/endpoint/EDPStatic.h +++ b/include/fastdds/rtps/builtin/discovery/endpoint/EDPStatic.h @@ -116,7 +116,7 @@ class EDPStatic : public EDP */ bool newRemoteWriter( const GUID_t& participant_guid, - const string_255& participant_name, + const fastcdr::string_255& participant_name, uint16_t user_id, EntityId_t ent_id = c_EntityId_Unknown, const GUID_t& persistence_guid = GUID_t::unknown()); @@ -130,7 +130,7 @@ class EDPStatic : public EDP */ bool newRemoteReader( const GUID_t& participant_guid, - const string_255& participant_name, + const fastcdr::string_255& participant_name, uint16_t user_id, EntityId_t ent_id = c_EntityId_Unknown); diff --git a/include/fastdds/rtps/builtin/discovery/participant/PDP.h b/include/fastdds/rtps/builtin/discovery/participant/PDP.h index 715baf91d9f..666d25d8152 100644 --- a/include/fastdds/rtps/builtin/discovery/participant/PDP.h +++ b/include/fastdds/rtps/builtin/discovery/participant/PDP.h @@ -230,7 +230,7 @@ class PDP : public fastdds::statistics::rtps::IProxyQueryable */ bool lookup_participant_name( const GUID_t& guid, - string_255& name); + fastcdr::string_255& name); /** * This method removes and deletes a ReaderProxyData object from its corresponding RTPSParticipant. @@ -611,8 +611,8 @@ class PDP : public fastdds::statistics::rtps::IProxyQueryable void check_and_notify_type_discovery( RTPSParticipantListener* listener, - const string_255& topic_name, - const string_255& type_name, + const fastcdr::string_255& topic_name, + const fastcdr::string_255& type_name, const types::TypeIdentifier* type_id, const types::TypeObject* type_obj, const xtypes::TypeInformation* type_info) const; diff --git a/include/fastdds/rtps/common/CdrSerialization.hpp b/include/fastdds/rtps/common/CdrSerialization.hpp index 33f30ec5699..0547a46f6d8 100644 --- a/include/fastdds/rtps/common/CdrSerialization.hpp +++ b/include/fastdds/rtps/common/CdrSerialization.hpp @@ -24,7 +24,7 @@ #if FASTCDR_VERSION_MAJOR == 1 #include -#include +#include namespace eprosima { namespace fastcdr { @@ -74,7 +74,7 @@ class CdrSizeCalculator }; template -using fixed_string = eprosima::fastrtps::fixed_string; +using fastcdr::fixed_string = eprosima::fastcdr::fixed_string; } // namespace fastcdr } // namespace eprosima diff --git a/include/fastdds/rtps/messages/CDRMessage.h b/include/fastdds/rtps/messages/CDRMessage.h index 738c65b96b7..486c70baed4 100644 --- a/include/fastdds/rtps/messages/CDRMessage.h +++ b/include/fastdds/rtps/messages/CDRMessage.h @@ -20,6 +20,8 @@ #define _FASTDDS_RTPS_CDRMESSAGE_H_ #ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC +#include + #include #include #include @@ -28,7 +30,6 @@ #include #include #include -#include #include @@ -124,7 +125,7 @@ inline bool readString( inline bool readString( CDRMessage_t* msg, - string_255* stri); + fastcdr::string_255* stri); inline bool readOctetVector( CDRMessage_t* msg, @@ -278,7 +279,7 @@ inline bool add_string( inline bool add_string( CDRMessage_t* msg, - const string_255& in_str); + const fastcdr::string_255& in_str); inline bool addOctetVector( CDRMessage_t* msg, diff --git a/include/fastdds/rtps/messages/CDRMessage.hpp b/include/fastdds/rtps/messages/CDRMessage.hpp index d74f28bf8d0..b9b1983c618 100644 --- a/include/fastdds/rtps/messages/CDRMessage.hpp +++ b/include/fastdds/rtps/messages/CDRMessage.hpp @@ -449,7 +449,7 @@ inline bool CDRMessage::readString( inline bool CDRMessage::readString( CDRMessage_t* msg, - string_255* stri) + fastcdr::string_255* stri) { uint32_t str_size = 1; bool valid = true; @@ -738,7 +738,7 @@ inline bool CDRMessage::add_string( inline bool CDRMessage::add_string( CDRMessage_t* msg, - const string_255& in_str) + const fastcdr::string_255& in_str) { return add_string(msg, in_str.c_str()); } diff --git a/include/fastdds/rtps/participant/RTPSParticipantListener.h b/include/fastdds/rtps/participant/RTPSParticipantListener.h index deb8f7234ee..86ac3918cb9 100644 --- a/include/fastdds/rtps/participant/RTPSParticipantListener.h +++ b/include/fastdds/rtps/participant/RTPSParticipantListener.h @@ -173,7 +173,7 @@ class RTPS_DllAPI RTPSParticipantListener virtual void on_type_discovery( RTPSParticipant* participant, const SampleIdentity& request_sample_id, - const string_255& topic, + const fastcdr::string_255& topic, const types::TypeIdentifier* identifier, const types::TypeObject* object, types::DynamicType_ptr dyn_type) @@ -206,8 +206,8 @@ class RTPS_DllAPI RTPSParticipantListener */ virtual void on_type_information_received( RTPSParticipant* participant, - const string_255& topic_name, - const string_255& type_name, + const fastcdr::string_255& topic_name, + const fastcdr::string_255& type_name, const types::TypeInformation& type_information) { static_cast(participant); diff --git a/include/fastrtps/attributes/TopicAttributes.h b/include/fastrtps/attributes/TopicAttributes.h index d02c082fe29..50777c4f8b1 100644 --- a/include/fastrtps/attributes/TopicAttributes.h +++ b/include/fastrtps/attributes/TopicAttributes.h @@ -26,7 +26,7 @@ namespace eprosima { -namespace fastrtps{ +namespace fastrtps { /** * Class TopicAttributes, used by the user to define the attributes of the topic associated with a Publisher or Subscriber. @@ -52,75 +52,81 @@ class TopicAttributes TopicAttributes( const char* name, const char* dataType, - rtps::TopicKind_t tKind= rtps::NO_KEY) - { - topicKind = tKind; - topicName = name; - topicDataType = dataType; - auto_fill_type_object = true; - auto_fill_type_information = true; - } - - virtual ~TopicAttributes() {} - - bool operator==(const TopicAttributes& b) const - { - return (this->topicKind == b.topicKind) && - (this->topicName == b.topicName) && - (this->topicDataType == b.topicDataType) && - (this->historyQos == b.historyQos); - } - - /** - * Get the topic data type - * @return Topic data type - */ - const string_255& getTopicDataType() const { - return topicDataType; - } - - /** - * Get the topic kind - * @return Topic kind - */ - rtps::TopicKind_t getTopicKind() const { - return topicKind; - } - - /** - * Get the topic name - * @return Topic name - */ - const string_255& getTopicName() const { - return topicName; - } - - //! TopicKind_t, default value NO_KEY. - rtps::TopicKind_t topicKind; - //! Topic Name. - string_255 topicName; - //!Topic Data Type. - string_255 topicDataType; - //!QOS Regarding the History to be saved. - HistoryQosPolicy historyQos; - //!QOS Regarding the resources to allocate. - ResourceLimitsQosPolicy resourceLimitsQos; - //!Type Identifier XTYPES 1.1 - TypeIdV1 type_id; - //!Type Object XTYPES 1.1 - TypeObjectV1 type; - //!XTYPES 1.2 - xtypes::TypeInformation type_information; - //!Tries to complete type identifier and type object (TypeObjectV1) - bool auto_fill_type_object; - //!Tries to complete type information (TypeObjectV2) - bool auto_fill_type_information; - - /** - * Method to check whether the defined QOS are correct. - * @return True if they are valid. - */ - bool checkQos() const; + rtps::TopicKind_t tKind = rtps::NO_KEY) + { + topicKind = tKind; + topicName = name; + topicDataType = dataType; + auto_fill_type_object = true; + auto_fill_type_information = true; + } + + virtual ~TopicAttributes() + { + } + + bool operator ==( + const TopicAttributes& b) const + { + return (this->topicKind == b.topicKind) && + (this->topicName == b.topicName) && + (this->topicDataType == b.topicDataType) && + (this->historyQos == b.historyQos); + } + + /** + * Get the topic data type + * @return Topic data type + */ + const fastcdr::string_255& getTopicDataType() const + { + return topicDataType; + } + + /** + * Get the topic kind + * @return Topic kind + */ + rtps::TopicKind_t getTopicKind() const + { + return topicKind; + } + + /** + * Get the topic name + * @return Topic name + */ + const fastcdr::string_255& getTopicName() const + { + return topicName; + } + + //! TopicKind_t, default value NO_KEY. + rtps::TopicKind_t topicKind; + //! Topic Name. + fastcdr::string_255 topicName; + //!Topic Data Type. + fastcdr::string_255 topicDataType; + //!QOS Regarding the History to be saved. + HistoryQosPolicy historyQos; + //!QOS Regarding the resources to allocate. + ResourceLimitsQosPolicy resourceLimitsQos; + //!Type Identifier XTYPES 1.1 + TypeIdV1 type_id; + //!Type Object XTYPES 1.1 + TypeObjectV1 type; + //!XTYPES 1.2 + xtypes::TypeInformation type_information; + //!Tries to complete type identifier and type object (TypeObjectV1) + bool auto_fill_type_object; + //!Tries to complete type information (TypeObjectV2) + bool auto_fill_type_information; + + /** + * Method to check whether the defined QOS are correct. + * @return True if they are valid. + */ + bool checkQos() const; }; #ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC @@ -131,9 +137,11 @@ class TopicAttributes * @param t2 Second instance of TopicAttributes to compare * @return True if the instances are not equal. False if the instances are equal. */ -bool inline operator!=(const TopicAttributes& t1, const TopicAttributes& t2) +bool inline operator !=( + const TopicAttributes& t1, + const TopicAttributes& t2) { - if(t1.topicKind != t2.topicKind + if (t1.topicKind != t2.topicKind || t1.topicName != t2.topicName || t1.topicDataType != t2.topicDataType || t1.historyQos.kind != t2.historyQos.kind @@ -143,7 +151,8 @@ bool inline operator!=(const TopicAttributes& t1, const TopicAttributes& t2) } return false; } -#endif + +#endif // ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC } /* namespace fastrtps */ } /* namespace eprosima */ diff --git a/include/fastrtps/qos/ParameterTypes.h b/include/fastrtps/qos/ParameterTypes.h index cdcf8d333c9..e48a319b42f 100644 --- a/include/fastrtps/qos/ParameterTypes.h +++ b/include/fastrtps/qos/ParameterTypes.h @@ -20,13 +20,12 @@ #define PARAMETERTYPES_H_ #ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC -#include +#include +#include #include #include -#include - #if HAVE_SECURITY #include #include diff --git a/include/fastrtps/utils/fixed_size_string.hpp b/include/fastrtps/utils/fixed_size_string.hpp deleted file mode 100644 index aa1c7c33147..00000000000 --- a/include/fastrtps/utils/fixed_size_string.hpp +++ /dev/null @@ -1,255 +0,0 @@ -// Copyright 2018 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 fixed_size_string.hpp - * - */ - -#ifndef FASTRTPS_UTILS_FIXED_SIZE_STRING_HPP_ -#define FASTRTPS_UTILS_FIXED_SIZE_STRING_HPP_ - -#include -#include - -#ifdef _WIN32 -#define MEMCCPY _memccpy -#else -#define MEMCCPY memccpy -#endif // ifdef _WIN32 - -#ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC -namespace eprosima { -namespace fastrtps { - -/** - * Template class for non-alloc strings. Will be truncated when assigned from a longer string. - * @tparam MAX_CHARS Maximum number of characters is specified as the template parameter. - * Space for an additional null terminator will be reserved. - * @ingroup UTILITIES_MODULE - */ -template -struct fixed_string -{ -public: - - static constexpr size_t max_size = MAX_CHARS; - - /// Default constructor. - fixed_string() noexcept - { - memset(string_data, 0, sizeof(string_data)); - string_len = 0; - } - - // We don't need to define copy/move constructors/assignment operators as the default ones would be enough - - // Construct / assign from a char array - fixed_string( - const char* c_array, - size_t n_chars) noexcept - { - assign(c_array, n_chars); - } - - fixed_string& assign( - const char* c_array, - size_t n_chars) noexcept - { - string_len = (nullptr == c_array) ? 0 : - (MAX_CHARS < n_chars) ? MAX_CHARS : n_chars; - if (0 < string_len) - { - memcpy(string_data, c_array, string_len); - } - return *this; - } - - // Construct / assign from a C string - fixed_string ( - const char* c_string) noexcept - : fixed_string() - { - set(c_string != nullptr ? c_string : ""); - } - - fixed_string& operator = ( - const char* c_string) noexcept - { - set(c_string != nullptr ? c_string : ""); - return *this; - } - - // Construct / assign from a std::string - fixed_string ( - const std::string& str) noexcept - : fixed_string() - { - set(str.c_str()); - } - - fixed_string& operator = ( - const std::string& str) noexcept - { - set(str.c_str()); return *this; - } - - // Assign from fixed_string of any size - template fixed_string& operator = ( - const fixed_string& rhs) noexcept - { - set(rhs.c_str()); return *this; - } - - // Converters to standard types - const char* c_str() const noexcept - { - return string_data; - } - - std::string to_string() const - { - return std::string(string_data); - } - - // Equality comparisons - bool operator == ( - const char* rhs) const noexcept - { - return strncmp(string_data, rhs, MAX_CHARS) == 0; - } - - bool operator == ( - const std::string& rhs) const noexcept - { - return strncmp(string_data, rhs.c_str(), MAX_CHARS) == 0; - } - - template bool operator == ( - const fixed_string& rhs) const noexcept - { - return strncmp(string_data, rhs.c_str(), MAX_CHARS) == 0; - } - - // Inequality comparisons - bool operator != ( - const char* rhs) const noexcept - { - return strncmp(string_data, rhs, MAX_CHARS) != 0; - } - - bool operator != ( - const std::string& rhs) const noexcept - { - return strncmp(string_data, rhs.c_str(), MAX_CHARS) != 0; - } - - template bool operator != ( - const fixed_string& rhs) const noexcept - { - return strncmp(string_data, rhs.c_str(), MAX_CHARS) != 0; - } - - template bool operator < ( - const fixed_string& rhs) const noexcept - { - return 0 > compare(rhs); - } - - template bool operator > ( - const fixed_string& rhs) const noexcept - { - return 0 < compare(rhs); - } - - bool operator < ( - const std::string& rhs) const noexcept - { - return 0 > compare(rhs); - } - - bool operator > ( - const std::string& rhs) const noexcept - { - return 0 < compare(rhs); - } - - operator const char* () const noexcept { - return c_str(); - } - - size_t size() const noexcept - { - return string_len; - } - - /*! - * Compare with a C string. - * - * @param str C string to be compared with. - * - * @return Integer value with the result of the comparison as described in `std::string::compare()`. - */ - int compare( - const char* str) const noexcept - { - return strncmp(string_data, str, MAX_CHARS); - } - - /*! - * Compare with a std::string. - * - * @param str std::string to be compared with. - * - * @return Integer value with the result of the comparison as described in `std::string::compare()`. - */ - int compare( - const std::string& str) const noexcept - { - return strncmp(string_data, str.c_str(), MAX_CHARS); - } - - /*! - * Compare with a fixed_string - * - * @param str fixed_string to be compared with. - * - * @return Integer value with the result of the comparison as described in `std::string::compare()`. - */ - template int compare( - const fixed_string& str) const noexcept - { - return strncmp(string_data, str.c_str(), MAX_CHARS); - } - -private: - - void set( - const char* c_string) noexcept - { - char* result = (char*) MEMCCPY(string_data, c_string, '\0', MAX_CHARS); - string_len = (result == nullptr) ? MAX_CHARS : (size_t)(result - string_data) - 1u; - } - - char string_data[MAX_CHARS + 1]; ///< Holds string data, including ending null character. - size_t string_len; ///< Holds current string length. -}; - -using string_255 = fixed_string<255>; - -} /* namespace fastrtps */ -} /* namespace eprosima */ -#endif // ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC - -#endif /* FASTRTPS_UTILS_FIXED_SIZE_STRING_HPP_ */ diff --git a/src/cpp/fastdds/core/policy/ParameterSerializer.hpp b/src/cpp/fastdds/core/policy/ParameterSerializer.hpp index d53a25edc5e..76453368f0c 100644 --- a/src/cpp/fastdds/core/policy/ParameterSerializer.hpp +++ b/src/cpp/fastdds/core/policy/ParameterSerializer.hpp @@ -22,10 +22,10 @@ #include "ParameterList.hpp" +#include + #include #include -#include - namespace eprosima { namespace fastdds { namespace dds { @@ -199,7 +199,7 @@ class ParameterSerializer } static inline uint32_t cdr_serialized_size( - const fastrtps::string_255& str) + const fastcdr::string_255& str) { // Size including NUL char at the end uint32_t str_siz = static_cast(str.size()) + 1; @@ -323,7 +323,7 @@ inline bool ParameterSerializer::read_content_from_cdr_messag } parameter.length = parameter_length; - fastrtps::string_255 aux; + fastcdr::string_255 aux; bool valid = fastrtps::rtps::CDRMessage::readString(cdr_message, &aux); parameter.setName(aux.c_str()); return valid; @@ -831,7 +831,7 @@ class ParameterSerializer // sequence length ret_val += 4; // Add all parameters - for (const fastrtps::string_255& param : parameter.expression_parameters) + for (const fastcdr::string_255& param : parameter.expression_parameters) { ret_val += cdr_serialized_size(param); } @@ -870,7 +870,7 @@ class ParameterSerializer uint32_t num_params = static_cast(parameter.expression_parameters.size()); valid &= fastrtps::rtps::CDRMessage::addUInt32(cdr_message, num_params); // Add all parameters - for (const fastrtps::string_255& param : parameter.expression_parameters) + for (const fastcdr::string_255& param : parameter.expression_parameters) { valid &= fastrtps::rtps::CDRMessage::add_string(cdr_message, param); } @@ -928,7 +928,7 @@ class ParameterSerializer { for (uint32_t i = 0; valid && i < num_parameters; ++i) { - fastrtps::string_255* p = parameter.expression_parameters.push_back({}); + fastcdr::string_255* p = parameter.expression_parameters.push_back({}); assert(nullptr != p); valid = read_string(cdr_message, *p); } @@ -950,7 +950,7 @@ class ParameterSerializer private: static inline uint32_t cdr_serialized_size( - const fastrtps::string_255& str) + const fastcdr::string_255& str) { // Size including NUL char at the end uint32_t str_siz = static_cast(str.size()) + 1; @@ -972,7 +972,7 @@ class ParameterSerializer static inline bool read_string( fastrtps::rtps::CDRMessage_t* cdr_message, - fastrtps::string_255& str) + fastcdr::string_255& str) { uint32_t str_size = 0; bool valid; diff --git a/src/cpp/fastdds/domain/DomainParticipantImpl.cpp b/src/cpp/fastdds/domain/DomainParticipantImpl.cpp index 5e8fe1603aa..99dfd432229 100644 --- a/src/cpp/fastdds/domain/DomainParticipantImpl.cpp +++ b/src/cpp/fastdds/domain/DomainParticipantImpl.cpp @@ -1602,7 +1602,7 @@ void DomainParticipantImpl::MyRTPSParticipantListener::onWriterDiscovery( void DomainParticipantImpl::MyRTPSParticipantListener::on_type_discovery( RTPSParticipant*, const fastrtps::rtps::SampleIdentity& request_sample_id, - const fastrtps::string_255& topic, + const fastcdr::string_255& topic, const fastrtps::types::TypeIdentifier* identifier, const fastrtps::types::TypeObject* object, fastrtps::types::DynamicType_ptr dyn_type) @@ -1639,8 +1639,8 @@ void DomainParticipantImpl::MyRTPSParticipantListener::on_type_dependencies_repl void DomainParticipantImpl::MyRTPSParticipantListener::on_type_information_received( RTPSParticipant*, - const fastrtps::string_255& topic_name, - const fastrtps::string_255& type_name, + const fastcdr::string_255& topic_name, + const fastcdr::string_255& type_name, const fastrtps::types::TypeInformation& type_information) { Sentry sentinel(this); diff --git a/src/cpp/fastdds/domain/DomainParticipantImpl.hpp b/src/cpp/fastdds/domain/DomainParticipantImpl.hpp index aaad4b0be56..aeb8be8a965 100644 --- a/src/cpp/fastdds/domain/DomainParticipantImpl.hpp +++ b/src/cpp/fastdds/domain/DomainParticipantImpl.hpp @@ -697,7 +697,7 @@ class DomainParticipantImpl void on_type_discovery( fastrtps::rtps::RTPSParticipant* participant, const fastrtps::rtps::SampleIdentity& request_sample_id, - const fastrtps::string_255& topic, + const fastcdr::string_255& topic, const fastrtps::types::TypeIdentifier* identifier, const fastrtps::types::TypeObject* object, fastrtps::types::DynamicType_ptr dyn_type) override; @@ -709,8 +709,8 @@ class DomainParticipantImpl void on_type_information_received( fastrtps::rtps::RTPSParticipant* participant, - const fastrtps::string_255& topic_name, - const fastrtps::string_255& type_name, + const fastcdr::string_255& topic_name, + const fastcdr::string_255& type_name, const fastrtps::types::TypeInformation& type_information) override; DomainParticipantImpl* participant_; diff --git a/src/cpp/fastdds/publisher/filtering/ReaderFilterInformation.hpp b/src/cpp/fastdds/publisher/filtering/ReaderFilterInformation.hpp index d4ac5e2b0cb..ac83384fe46 100644 --- a/src/cpp/fastdds/publisher/filtering/ReaderFilterInformation.hpp +++ b/src/cpp/fastdds/publisher/filtering/ReaderFilterInformation.hpp @@ -22,18 +22,18 @@ #include #include +#include + #include #include -#include - namespace eprosima { namespace fastdds { namespace dds { struct ReaderFilterInformation { - fastrtps::string_255 filter_class_name; + fastcdr::string_255 filter_class_name; IContentFilterFactory* filter_factory = nullptr; IContentFilter* filter = nullptr; std::array filter_signature{ { 0 } }; diff --git a/src/cpp/fastdds/subscriber/history/DataReaderHistory.hpp b/src/cpp/fastdds/subscriber/history/DataReaderHistory.hpp index 4feb7842685..93da2acff47 100644 --- a/src/cpp/fastdds/subscriber/history/DataReaderHistory.hpp +++ b/src/cpp/fastdds/subscriber/history/DataReaderHistory.hpp @@ -25,6 +25,8 @@ #include #include +#include + #include #include #include @@ -42,7 +44,6 @@ #include -#include #include #include "DataReaderHistoryCounters.hpp" @@ -381,9 +382,9 @@ class DataReaderHistory : public eprosima::fastrtps::rtps::ReaderHistory //!ResourceLimitsQosPolicy values. ResourceLimitsQosPolicy resource_limited_qos_; //!Topic name - fastrtps::string_255 topic_name_; + fastcdr::string_255 topic_name_; //!Type name - fastrtps::string_255 type_name_; + fastcdr::string_255 type_name_; //!Whether the type has keys bool has_keys_; //!TopicDataType diff --git a/src/cpp/fastdds/topic/DDSSQLFilter/DDSFilterFactory.cpp b/src/cpp/fastdds/topic/DDSSQLFilter/DDSFilterFactory.cpp index 836ab5c73b7..7ed66e563a0 100644 --- a/src/cpp/fastdds/topic/DDSSQLFilter/DDSFilterFactory.cpp +++ b/src/cpp/fastdds/topic/DDSSQLFilter/DDSFilterFactory.cpp @@ -52,7 +52,7 @@ namespace DDSSQLFilter { static IContentFilterFactory::ReturnCode_t transform_enum( std::shared_ptr& value, const eprosima::fastrtps::types::TypeIdentifier* type, - const eprosima::fastrtps::string_255& string_value) + const eprosima::fastcdr::string_255& string_value) { const char* str_value = string_value.c_str(); auto type_obj = eprosima::fastrtps::types::TypeObjectFactory::get_instance()->get_type_object(type); diff --git a/src/cpp/fastdds/topic/DDSSQLFilter/DDSFilterValue.cpp b/src/cpp/fastdds/topic/DDSSQLFilter/DDSFilterValue.cpp index 9bb404ebc7c..5377b15f988 100644 --- a/src/cpp/fastdds/topic/DDSSQLFilter/DDSFilterValue.cpp +++ b/src/cpp/fastdds/topic/DDSSQLFilter/DDSFilterValue.cpp @@ -34,7 +34,7 @@ int compare_values( T rvalue) { return lvalue < rvalue ? -1 : - lvalue > rvalue ? 1 : 0; + lvalue > rvalue ? 1 : 0; } /** @@ -140,7 +140,7 @@ static long double to_float( */ static void to_string_value( const DDSFilterValue& in, - eprosima::fastrtps::string_255& out) + eprosima::fastcdr::string_255& out) { assert(DDSFilterValue::ValueKind::CHAR == in.kind); out.assign(&in.char_value, 1); @@ -268,7 +268,7 @@ int DDSFilterValue::compare( case ValueKind::STRING: { - eprosima::fastrtps::string_255 rvalue; + eprosima::fastcdr::string_255 rvalue; to_string_value(rhs, rvalue); return std::strcmp(lhs.string_value.c_str(), rvalue.c_str()); } @@ -332,7 +332,7 @@ bool DDSFilterValue::is_like( { assert(other.regular_expr_); - eprosima::fastrtps::string_255 char_string_value; + eprosima::fastcdr::string_255 char_string_value; switch (kind) { diff --git a/src/cpp/fastdds/topic/DDSSQLFilter/DDSFilterValue.hpp b/src/cpp/fastdds/topic/DDSSQLFilter/DDSFilterValue.hpp index da75c7372ec..7add3f48659 100644 --- a/src/cpp/fastdds/topic/DDSSQLFilter/DDSFilterValue.hpp +++ b/src/cpp/fastdds/topic/DDSSQLFilter/DDSFilterValue.hpp @@ -19,11 +19,11 @@ #ifndef _FASTDDS_TOPIC_DDSSQLFILTER_DDSFILTERVALUE_HPP_ #define _FASTDDS_TOPIC_DDSSQLFILTER_DDSFILTERVALUE_HPP_ +#include + #include #include -#include - namespace eprosima { namespace fastdds { namespace dds { @@ -70,7 +70,7 @@ class DDSFilterValue int64_t signed_integer_value; ///< Value when kind == SIGNED_INTEGER / ENUM uint64_t unsigned_integer_value; ///< Value when kind == UNSIGNED_INTEGER long double float_value; ///< Value when kind == FLOAT - eprosima::fastrtps::string_255 string_value; ///< Value when kind == STRING + eprosima::fastcdr::string_255 string_value; ///< Value when kind == STRING }; /** diff --git a/src/cpp/rtps/builtin/discovery/database/DiscoveryDataBase.hpp b/src/cpp/rtps/builtin/discovery/database/DiscoveryDataBase.hpp index f5ca2daf801..2c363f12f32 100644 --- a/src/cpp/rtps/builtin/discovery/database/DiscoveryDataBase.hpp +++ b/src/cpp/rtps/builtin/discovery/database/DiscoveryDataBase.hpp @@ -27,7 +27,6 @@ #include #include -#include #include #include #include diff --git a/src/cpp/rtps/builtin/discovery/database/DiscoveryDataQueueInfo.hpp b/src/cpp/rtps/builtin/discovery/database/DiscoveryDataQueueInfo.hpp index dbe8b276c42..6284fc3399d 100644 --- a/src/cpp/rtps/builtin/discovery/database/DiscoveryDataQueueInfo.hpp +++ b/src/cpp/rtps/builtin/discovery/database/DiscoveryDataQueueInfo.hpp @@ -18,7 +18,6 @@ */ #include -#include #include #include @@ -87,7 +86,7 @@ class DiscoveryEDPDataQueueInfo : public DiscoveryDataQueueInfo DiscoveryEDPDataQueueInfo( eprosima::fastrtps::rtps::CacheChange_t* change, - const eprosima::fastrtps::string_255& topic) + const eprosima::fastcdr::string_255& topic) : DiscoveryDataQueueInfo(change) , topic_(topic) { @@ -97,14 +96,14 @@ class DiscoveryEDPDataQueueInfo : public DiscoveryDataQueueInfo { } - eprosima::fastrtps::string_255 topic() + eprosima::fastcdr::string_255 topic() { return topic_; } private: - const eprosima::fastrtps::string_255 topic_; + const eprosima::fastcdr::string_255 topic_; }; diff --git a/src/cpp/rtps/builtin/discovery/database/DiscoveryEndpointInfo.hpp b/src/cpp/rtps/builtin/discovery/database/DiscoveryEndpointInfo.hpp index 5acf4f9dbec..87b31ab3322 100644 --- a/src/cpp/rtps/builtin/discovery/database/DiscoveryEndpointInfo.hpp +++ b/src/cpp/rtps/builtin/discovery/database/DiscoveryEndpointInfo.hpp @@ -20,11 +20,12 @@ #ifndef _FASTDDS_RTPS_DISCOVERY_ENDPOINT_INFO_H_ #define _FASTDDS_RTPS_DISCOVERY_ENDPOINT_INFO_H_ +#include + +#include + #include #include -#include - -#include #include diff --git a/src/cpp/rtps/builtin/discovery/endpoint/EDPServer.cpp b/src/cpp/rtps/builtin/discovery/endpoint/EDPServer.cpp index df2d1cdcaa1..09cb3132888 100644 --- a/src/cpp/rtps/builtin/discovery/endpoint/EDPServer.cpp +++ b/src/cpp/rtps/builtin/discovery/endpoint/EDPServer.cpp @@ -16,6 +16,8 @@ * @file EDPServer.cpp * */ +#include +#include #include #include @@ -24,11 +26,6 @@ #include #include -#include - -#include -#include - using namespace ::eprosima::fastrtps::rtps; namespace eprosima { diff --git a/src/cpp/rtps/builtin/discovery/endpoint/EDPServerListeners.cpp b/src/cpp/rtps/builtin/discovery/endpoint/EDPServerListeners.cpp index aface87689e..8fa05ee493e 100644 --- a/src/cpp/rtps/builtin/discovery/endpoint/EDPServerListeners.cpp +++ b/src/cpp/rtps/builtin/discovery/endpoint/EDPServerListeners.cpp @@ -16,20 +16,16 @@ * @file EDPServerListener.cpp * */ +#include +#include +#include #include #include #include #include -#include - #include - -#include -#include -#include - namespace eprosima { namespace fastdds { namespace rtps { diff --git a/src/cpp/rtps/builtin/discovery/endpoint/EDPStatic.cpp b/src/cpp/rtps/builtin/discovery/endpoint/EDPStatic.cpp index a616dd6669f..4a034dcf000 100644 --- a/src/cpp/rtps/builtin/discovery/endpoint/EDPStatic.cpp +++ b/src/cpp/rtps/builtin/discovery/endpoint/EDPStatic.cpp @@ -491,7 +491,7 @@ void EDPStatic::assignRemoteEndpoints( bool EDPStatic::newRemoteReader( const GUID_t& participant_guid, - const string_255& participant_name, + const fastcdr::string_255& participant_name, uint16_t user_id, EntityId_t ent_id) { @@ -542,7 +542,7 @@ bool EDPStatic::newRemoteReader( bool EDPStatic::newRemoteWriter( const GUID_t& participant_guid, - const string_255& participant_name, + const fastcdr::string_255& participant_name, uint16_t user_id, EntityId_t ent_id, const GUID_t& persistence_guid) diff --git a/src/cpp/rtps/builtin/discovery/participant/PDP.cpp b/src/cpp/rtps/builtin/discovery/participant/PDP.cpp index 5bfc9177b2d..64b9a34b93e 100644 --- a/src/cpp/rtps/builtin/discovery/participant/PDP.cpp +++ b/src/cpp/rtps/builtin/discovery/participant/PDP.cpp @@ -773,7 +773,7 @@ bool PDP::removeWriterProxyData( bool PDP::lookup_participant_name( const GUID_t& guid, - string_255& name) + fastcdr::string_255& name) { std::lock_guard guardPDP(*this->mp_mutex); for (ParticipantProxyData* pit : participant_proxies_) @@ -1402,8 +1402,8 @@ void PDP::check_and_notify_type_discovery( void PDP::check_and_notify_type_discovery( RTPSParticipantListener* listener, - const string_255& topic_name, - const string_255& type_name, + const fastcdr::string_255& topic_name, + const fastcdr::string_255& type_name, const types::TypeIdentifier* type_id, const types::TypeObject* type_obj, const xtypes::TypeInformation* type_info) const diff --git a/src/cpp/rtps/builtin/discovery/participant/PDPSimple.cpp b/src/cpp/rtps/builtin/discovery/participant/PDPSimple.cpp index 99cec6078ab..99b749e0c69 100644 --- a/src/cpp/rtps/builtin/discovery/participant/PDPSimple.cpp +++ b/src/cpp/rtps/builtin/discovery/participant/PDPSimple.cpp @@ -769,7 +769,7 @@ bool PDPSimple::newRemoteEndpointStaticallyDiscovered( int16_t userDefinedId, EndpointKind_t kind) { - string_255 pname; + fastcdr::string_255 pname; if (lookup_participant_name(pguid, pname)) { if (kind == WRITER) diff --git a/src/cpp/statistics/types/monitorservice_typesv1.h b/src/cpp/statistics/types/monitorservice_typesv1.h index 21ef65f1cf8..f8a0c6decbb 100644 --- a/src/cpp/statistics/types/monitorservice_typesv1.h +++ b/src/cpp/statistics/types/monitorservice_typesv1.h @@ -28,8 +28,6 @@ #include "types.h" -#include - #include #include #include @@ -38,6 +36,8 @@ #include #include +#include + #if defined(_WIN32) #if defined(EPROSIMA_USER_DLL_EXPORT) #define eProsima_user_DllExport __declspec( dllexport ) @@ -71,1689 +71,1682 @@ class Cdr; namespace eprosima { - namespace fastdds { - namespace statistics { - /*! - * @brief This class represents the enumeration ConnectionMode defined by the user in the IDL file. - * @ingroup monitorservice_types - */ - enum ConnectionMode : uint32_t - { - DATA_SHARING, - INTRAPROCESS, - TRANSPORT - }; - - - - - /*! - * @brief This class represents the structure Connection defined by the user in the IDL file. - * @ingroup monitorservice_types - */ - class Connection - { - public: - - /*! - * @brief Default constructor. - */ - eProsima_user_DllExport Connection(); - - /*! - * @brief Default destructor. - */ - eProsima_user_DllExport ~Connection(); - - /*! - * @brief Copy constructor. - * @param x Reference to the object eprosima::fastdds::statistics::Connection that will be copied. - */ - eProsima_user_DllExport Connection( - const Connection& x); - - /*! - * @brief Move constructor. - * @param x Reference to the object eprosima::fastdds::statistics::Connection that will be copied. - */ - eProsima_user_DllExport Connection( - Connection&& x) noexcept; - - /*! - * @brief Copy assignment. - * @param x Reference to the object eprosima::fastdds::statistics::Connection that will be copied. - */ - eProsima_user_DllExport Connection& operator =( - const Connection& x); - - /*! - * @brief Move assignment. - * @param x Reference to the object eprosima::fastdds::statistics::Connection that will be copied. - */ - eProsima_user_DllExport Connection& operator =( - Connection&& x) noexcept; - - /*! - * @brief Comparison operator. - * @param x eprosima::fastdds::statistics::Connection object to compare. - */ - eProsima_user_DllExport bool operator ==( - const Connection& x) const; - - /*! - * @brief Comparison operator. - * @param x eprosima::fastdds::statistics::Connection object to compare. - */ - eProsima_user_DllExport bool operator !=( - const Connection& x) const; - - /*! - * @brief This function sets a value in member mode - * @param _mode New value for member mode - */ - eProsima_user_DllExport void mode( - eprosima::fastdds::statistics::ConnectionMode _mode); - - /*! - * @brief This function returns the value of member mode - * @return Value of member mode - */ - eProsima_user_DllExport eprosima::fastdds::statistics::ConnectionMode mode() const; - - /*! - * @brief This function returns a reference to member mode - * @return Reference to member mode - */ - eProsima_user_DllExport eprosima::fastdds::statistics::ConnectionMode& mode(); - - - /*! - * @brief This function copies the value in member guid - * @param _guid New value to be copied in member guid - */ - eProsima_user_DllExport void guid( - const eprosima::fastdds::statistics::detail::GUID_s& _guid); - - /*! - * @brief This function moves the value in member guid - * @param _guid New value to be moved in member guid - */ - eProsima_user_DllExport void guid( - eprosima::fastdds::statistics::detail::GUID_s&& _guid); - - /*! - * @brief This function returns a constant reference to member guid - * @return Constant reference to member guid - */ - eProsima_user_DllExport const eprosima::fastdds::statistics::detail::GUID_s& guid() const; - - /*! - * @brief This function returns a reference to member guid - * @return Reference to member guid - */ - eProsima_user_DllExport eprosima::fastdds::statistics::detail::GUID_s& guid(); - - - /*! - * @brief This function copies the value in member announced_locators - * @param _announced_locators New value to be copied in member announced_locators - */ - eProsima_user_DllExport void announced_locators( - const std::vector& _announced_locators); - - /*! - * @brief This function moves the value in member announced_locators - * @param _announced_locators New value to be moved in member announced_locators - */ - eProsima_user_DllExport void announced_locators( - std::vector&& _announced_locators); - - /*! - * @brief This function returns a constant reference to member announced_locators - * @return Constant reference to member announced_locators - */ - eProsima_user_DllExport const std::vector& announced_locators() const; - - /*! - * @brief This function returns a reference to member announced_locators - * @return Reference to member announced_locators - */ - eProsima_user_DllExport std::vector& announced_locators(); - - - /*! - * @brief This function copies the value in member used_locators - * @param _used_locators New value to be copied in member used_locators - */ - eProsima_user_DllExport void used_locators( - const std::vector& _used_locators); - - /*! - * @brief This function moves the value in member used_locators - * @param _used_locators New value to be moved in member used_locators - */ - eProsima_user_DllExport void used_locators( - std::vector&& _used_locators); - - /*! - * @brief This function returns a constant reference to member used_locators - * @return Constant reference to member used_locators - */ - eProsima_user_DllExport const std::vector& used_locators() const; - - /*! - * @brief This function returns a reference to member used_locators - * @return Reference to member used_locators - */ - eProsima_user_DllExport std::vector& used_locators(); - - - /*! - * @brief This function returns the maximum serialized size of an object - * depending on the buffer alignment. - * @param current_alignment Buffer alignment. - * @return Maximum serialized size. - */ - eProsima_user_DllExport static size_t getMaxCdrSerializedSize( - size_t current_alignment = 0); - - /*! - * @brief This function returns the serialized size of a data depending on the buffer alignment. - * @param data Data which is calculated its serialized size. - * @param current_alignment Buffer alignment. - * @return Serialized size. - */ - eProsima_user_DllExport static size_t getCdrSerializedSize( - const eprosima::fastdds::statistics::Connection& data, - size_t current_alignment = 0); - - - - /*! - * @brief This function serializes an object using CDR serialization. - * @param cdr CDR serialization object. - */ - eProsima_user_DllExport void serialize( - eprosima::fastcdr::Cdr& cdr) const; - - /*! - * @brief This function deserializes an object using CDR serialization. - * @param cdr CDR serialization object. - */ - eProsima_user_DllExport void deserialize( - eprosima::fastcdr::Cdr& cdr); - - - - - /*! - * @brief This function tells you if the Key has been defined for this type - */ - eProsima_user_DllExport static bool isKeyDefined(); - - /*! - * @brief This function serializes the key members of an object using CDR serialization. - * @param cdr CDR serialization object. - */ - eProsima_user_DllExport void serializeKey( - eprosima::fastcdr::Cdr& cdr) const; - - - private: - - eprosima::fastdds::statistics::ConnectionMode m_mode; - eprosima::fastdds::statistics::detail::GUID_s m_guid; - std::vector m_announced_locators; - std::vector m_used_locators; - - }; - - - - /*! - * @brief This class represents the structure QosPolicyCount_s defined by the user in the IDL file. - * @ingroup monitorservice_types - */ - class QosPolicyCount_s - { - public: - - /*! - * @brief Default constructor. - */ - eProsima_user_DllExport QosPolicyCount_s(); - - /*! - * @brief Default destructor. - */ - eProsima_user_DllExport ~QosPolicyCount_s(); - - /*! - * @brief Copy constructor. - * @param x Reference to the object eprosima::fastdds::statistics::QosPolicyCount_s that will be copied. - */ - eProsima_user_DllExport QosPolicyCount_s( - const QosPolicyCount_s& x); - - /*! - * @brief Move constructor. - * @param x Reference to the object eprosima::fastdds::statistics::QosPolicyCount_s that will be copied. - */ - eProsima_user_DllExport QosPolicyCount_s( - QosPolicyCount_s&& x) noexcept; - - /*! - * @brief Copy assignment. - * @param x Reference to the object eprosima::fastdds::statistics::QosPolicyCount_s that will be copied. - */ - eProsima_user_DllExport QosPolicyCount_s& operator =( - const QosPolicyCount_s& x); - - /*! - * @brief Move assignment. - * @param x Reference to the object eprosima::fastdds::statistics::QosPolicyCount_s that will be copied. - */ - eProsima_user_DllExport QosPolicyCount_s& operator =( - QosPolicyCount_s&& x) noexcept; - - /*! - * @brief Comparison operator. - * @param x eprosima::fastdds::statistics::QosPolicyCount_s object to compare. - */ - eProsima_user_DllExport bool operator ==( - const QosPolicyCount_s& x) const; - - /*! - * @brief Comparison operator. - * @param x eprosima::fastdds::statistics::QosPolicyCount_s object to compare. - */ - eProsima_user_DllExport bool operator !=( - const QosPolicyCount_s& x) const; - - /*! - * @brief This function sets a value in member policy_id - * @param _policy_id New value for member policy_id - */ - eProsima_user_DllExport void policy_id( - uint32_t _policy_id); - - /*! - * @brief This function returns the value of member policy_id - * @return Value of member policy_id - */ - eProsima_user_DllExport uint32_t policy_id() const; - - /*! - * @brief This function returns a reference to member policy_id - * @return Reference to member policy_id - */ - eProsima_user_DllExport uint32_t& policy_id(); - - - /*! - * @brief This function sets a value in member count - * @param _count New value for member count - */ - eProsima_user_DllExport void count( - uint32_t _count); - - /*! - * @brief This function returns the value of member count - * @return Value of member count - */ - eProsima_user_DllExport uint32_t count() const; - - /*! - * @brief This function returns a reference to member count - * @return Reference to member count - */ - eProsima_user_DllExport uint32_t& count(); - - - /*! - * @brief This function returns the maximum serialized size of an object - * depending on the buffer alignment. - * @param current_alignment Buffer alignment. - * @return Maximum serialized size. - */ - eProsima_user_DllExport static size_t getMaxCdrSerializedSize( - size_t current_alignment = 0); - - /*! - * @brief This function returns the serialized size of a data depending on the buffer alignment. - * @param data Data which is calculated its serialized size. - * @param current_alignment Buffer alignment. - * @return Serialized size. - */ - eProsima_user_DllExport static size_t getCdrSerializedSize( - const eprosima::fastdds::statistics::QosPolicyCount_s& data, - size_t current_alignment = 0); - - - - /*! - * @brief This function serializes an object using CDR serialization. - * @param cdr CDR serialization object. - */ - eProsima_user_DllExport void serialize( - eprosima::fastcdr::Cdr& cdr) const; - - /*! - * @brief This function deserializes an object using CDR serialization. - * @param cdr CDR serialization object. - */ - eProsima_user_DllExport void deserialize( - eprosima::fastcdr::Cdr& cdr); - - - - - /*! - * @brief This function tells you if the Key has been defined for this type - */ - eProsima_user_DllExport static bool isKeyDefined(); - - /*! - * @brief This function serializes the key members of an object using CDR serialization. - * @param cdr CDR serialization object. - */ - eProsima_user_DllExport void serializeKey( - eprosima::fastcdr::Cdr& cdr) const; - - - private: - - uint32_t m_policy_id; - uint32_t m_count; - - }; - - - - /*! - * @brief This class represents the structure BaseStatus_s defined by the user in the IDL file. - * @ingroup monitorservice_types - */ - class BaseStatus_s - { - public: - - /*! - * @brief Default constructor. - */ - eProsima_user_DllExport BaseStatus_s(); - - /*! - * @brief Default destructor. - */ - eProsima_user_DllExport ~BaseStatus_s(); - - /*! - * @brief Copy constructor. - * @param x Reference to the object eprosima::fastdds::statistics::BaseStatus_s that will be copied. - */ - eProsima_user_DllExport BaseStatus_s( - const BaseStatus_s& x); - - /*! - * @brief Move constructor. - * @param x Reference to the object eprosima::fastdds::statistics::BaseStatus_s that will be copied. - */ - eProsima_user_DllExport BaseStatus_s( - BaseStatus_s&& x) noexcept; - - /*! - * @brief Copy assignment. - * @param x Reference to the object eprosima::fastdds::statistics::BaseStatus_s that will be copied. - */ - eProsima_user_DllExport BaseStatus_s& operator =( - const BaseStatus_s& x); - - /*! - * @brief Move assignment. - * @param x Reference to the object eprosima::fastdds::statistics::BaseStatus_s that will be copied. - */ - eProsima_user_DllExport BaseStatus_s& operator =( - BaseStatus_s&& x) noexcept; +namespace fastdds { +namespace statistics { +/*! + * @brief This class represents the enumeration ConnectionMode defined by the user in the IDL file. + * @ingroup monitorservice_types + */ +enum ConnectionMode : uint32_t +{ + DATA_SHARING, + INTRAPROCESS, + TRANSPORT +}; + + + + +/*! + * @brief This class represents the structure Connection defined by the user in the IDL file. + * @ingroup monitorservice_types + */ +class Connection +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport Connection(); + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~Connection(); + + /*! + * @brief Copy constructor. + * @param x Reference to the object eprosima::fastdds::statistics::Connection that will be copied. + */ + eProsima_user_DllExport Connection( + const Connection& x); + + /*! + * @brief Move constructor. + * @param x Reference to the object eprosima::fastdds::statistics::Connection that will be copied. + */ + eProsima_user_DllExport Connection( + Connection&& x) noexcept; + + /*! + * @brief Copy assignment. + * @param x Reference to the object eprosima::fastdds::statistics::Connection that will be copied. + */ + eProsima_user_DllExport Connection& operator =( + const Connection& x); + + /*! + * @brief Move assignment. + * @param x Reference to the object eprosima::fastdds::statistics::Connection that will be copied. + */ + eProsima_user_DllExport Connection& operator =( + Connection&& x) noexcept; + + /*! + * @brief Comparison operator. + * @param x eprosima::fastdds::statistics::Connection object to compare. + */ + eProsima_user_DllExport bool operator ==( + const Connection& x) const; + + /*! + * @brief Comparison operator. + * @param x eprosima::fastdds::statistics::Connection object to compare. + */ + eProsima_user_DllExport bool operator !=( + const Connection& x) const; + + /*! + * @brief This function sets a value in member mode + * @param _mode New value for member mode + */ + eProsima_user_DllExport void mode( + eprosima::fastdds::statistics::ConnectionMode _mode); + + /*! + * @brief This function returns the value of member mode + * @return Value of member mode + */ + eProsima_user_DllExport eprosima::fastdds::statistics::ConnectionMode mode() const; + + /*! + * @brief This function returns a reference to member mode + * @return Reference to member mode + */ + eProsima_user_DllExport eprosima::fastdds::statistics::ConnectionMode& mode(); + + + /*! + * @brief This function copies the value in member guid + * @param _guid New value to be copied in member guid + */ + eProsima_user_DllExport void guid( + const eprosima::fastdds::statistics::detail::GUID_s& _guid); + + /*! + * @brief This function moves the value in member guid + * @param _guid New value to be moved in member guid + */ + eProsima_user_DllExport void guid( + eprosima::fastdds::statistics::detail::GUID_s&& _guid); + + /*! + * @brief This function returns a constant reference to member guid + * @return Constant reference to member guid + */ + eProsima_user_DllExport const eprosima::fastdds::statistics::detail::GUID_s& guid() const; + + /*! + * @brief This function returns a reference to member guid + * @return Reference to member guid + */ + eProsima_user_DllExport eprosima::fastdds::statistics::detail::GUID_s& guid(); + + + /*! + * @brief This function copies the value in member announced_locators + * @param _announced_locators New value to be copied in member announced_locators + */ + eProsima_user_DllExport void announced_locators( + const std::vector& _announced_locators); + + /*! + * @brief This function moves the value in member announced_locators + * @param _announced_locators New value to be moved in member announced_locators + */ + eProsima_user_DllExport void announced_locators( + std::vector&& _announced_locators); + + /*! + * @brief This function returns a constant reference to member announced_locators + * @return Constant reference to member announced_locators + */ + eProsima_user_DllExport const std::vector& announced_locators() + const; + + /*! + * @brief This function returns a reference to member announced_locators + * @return Reference to member announced_locators + */ + eProsima_user_DllExport std::vector& announced_locators(); + + + /*! + * @brief This function copies the value in member used_locators + * @param _used_locators New value to be copied in member used_locators + */ + eProsima_user_DllExport void used_locators( + const std::vector& _used_locators); + + /*! + * @brief This function moves the value in member used_locators + * @param _used_locators New value to be moved in member used_locators + */ + eProsima_user_DllExport void used_locators( + std::vector&& _used_locators); + + /*! + * @brief This function returns a constant reference to member used_locators + * @return Constant reference to member used_locators + */ + eProsima_user_DllExport const std::vector& used_locators() const; + + /*! + * @brief This function returns a reference to member used_locators + * @return Reference to member used_locators + */ + eProsima_user_DllExport std::vector& used_locators(); + + + /*! + * @brief This function returns the maximum serialized size of an object + * depending on the buffer alignment. + * @param current_alignment Buffer alignment. + * @return Maximum serialized size. + */ + eProsima_user_DllExport static size_t getMaxCdrSerializedSize( + size_t current_alignment = 0); + + /*! + * @brief This function returns the serialized size of a data depending on the buffer alignment. + * @param data Data which is calculated its serialized size. + * @param current_alignment Buffer alignment. + * @return Serialized size. + */ + eProsima_user_DllExport static size_t getCdrSerializedSize( + const eprosima::fastdds::statistics::Connection& data, + size_t current_alignment = 0); + + + + /*! + * @brief This function serializes an object using CDR serialization. + * @param cdr CDR serialization object. + */ + eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& cdr) const; + + /*! + * @brief This function deserializes an object using CDR serialization. + * @param cdr CDR serialization object. + */ + eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr); + + + + + /*! + * @brief This function tells you if the Key has been defined for this type + */ + eProsima_user_DllExport static bool isKeyDefined(); + + /*! + * @brief This function serializes the key members of an object using CDR serialization. + * @param cdr CDR serialization object. + */ + eProsima_user_DllExport void serializeKey( + eprosima::fastcdr::Cdr& cdr) const; + +private: + + eprosima::fastdds::statistics::ConnectionMode m_mode; + eprosima::fastdds::statistics::detail::GUID_s m_guid; + std::vector m_announced_locators; + std::vector m_used_locators; + +}; + + + +/*! + * @brief This class represents the structure QosPolicyCount_s defined by the user in the IDL file. + * @ingroup monitorservice_types + */ +class QosPolicyCount_s +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport QosPolicyCount_s(); + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~QosPolicyCount_s(); + + /*! + * @brief Copy constructor. + * @param x Reference to the object eprosima::fastdds::statistics::QosPolicyCount_s that will be copied. + */ + eProsima_user_DllExport QosPolicyCount_s( + const QosPolicyCount_s& x); + + /*! + * @brief Move constructor. + * @param x Reference to the object eprosima::fastdds::statistics::QosPolicyCount_s that will be copied. + */ + eProsima_user_DllExport QosPolicyCount_s( + QosPolicyCount_s&& x) noexcept; + + /*! + * @brief Copy assignment. + * @param x Reference to the object eprosima::fastdds::statistics::QosPolicyCount_s that will be copied. + */ + eProsima_user_DllExport QosPolicyCount_s& operator =( + const QosPolicyCount_s& x); + + /*! + * @brief Move assignment. + * @param x Reference to the object eprosima::fastdds::statistics::QosPolicyCount_s that will be copied. + */ + eProsima_user_DllExport QosPolicyCount_s& operator =( + QosPolicyCount_s&& x) noexcept; + + /*! + * @brief Comparison operator. + * @param x eprosima::fastdds::statistics::QosPolicyCount_s object to compare. + */ + eProsima_user_DllExport bool operator ==( + const QosPolicyCount_s& x) const; + + /*! + * @brief Comparison operator. + * @param x eprosima::fastdds::statistics::QosPolicyCount_s object to compare. + */ + eProsima_user_DllExport bool operator !=( + const QosPolicyCount_s& x) const; + + /*! + * @brief This function sets a value in member policy_id + * @param _policy_id New value for member policy_id + */ + eProsima_user_DllExport void policy_id( + uint32_t _policy_id); + + /*! + * @brief This function returns the value of member policy_id + * @return Value of member policy_id + */ + eProsima_user_DllExport uint32_t policy_id() const; + + /*! + * @brief This function returns a reference to member policy_id + * @return Reference to member policy_id + */ + eProsima_user_DllExport uint32_t& policy_id(); + + + /*! + * @brief This function sets a value in member count + * @param _count New value for member count + */ + eProsima_user_DllExport void count( + uint32_t _count); + + /*! + * @brief This function returns the value of member count + * @return Value of member count + */ + eProsima_user_DllExport uint32_t count() const; + + /*! + * @brief This function returns a reference to member count + * @return Reference to member count + */ + eProsima_user_DllExport uint32_t& count(); + + + /*! + * @brief This function returns the maximum serialized size of an object + * depending on the buffer alignment. + * @param current_alignment Buffer alignment. + * @return Maximum serialized size. + */ + eProsima_user_DllExport static size_t getMaxCdrSerializedSize( + size_t current_alignment = 0); + + /*! + * @brief This function returns the serialized size of a data depending on the buffer alignment. + * @param data Data which is calculated its serialized size. + * @param current_alignment Buffer alignment. + * @return Serialized size. + */ + eProsima_user_DllExport static size_t getCdrSerializedSize( + const eprosima::fastdds::statistics::QosPolicyCount_s& data, + size_t current_alignment = 0); + + + + /*! + * @brief This function serializes an object using CDR serialization. + * @param cdr CDR serialization object. + */ + eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& cdr) const; + + /*! + * @brief This function deserializes an object using CDR serialization. + * @param cdr CDR serialization object. + */ + eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr); + + + + + /*! + * @brief This function tells you if the Key has been defined for this type + */ + eProsima_user_DllExport static bool isKeyDefined(); + + /*! + * @brief This function serializes the key members of an object using CDR serialization. + * @param cdr CDR serialization object. + */ + eProsima_user_DllExport void serializeKey( + eprosima::fastcdr::Cdr& cdr) const; + +private: + + uint32_t m_policy_id; + uint32_t m_count; + +}; - /*! - * @brief Comparison operator. - * @param x eprosima::fastdds::statistics::BaseStatus_s object to compare. - */ - eProsima_user_DllExport bool operator ==( - const BaseStatus_s& x) const; - /*! - * @brief Comparison operator. - * @param x eprosima::fastdds::statistics::BaseStatus_s object to compare. - */ - eProsima_user_DllExport bool operator !=( - const BaseStatus_s& x) const; - /*! - * @brief This function sets a value in member total_count - * @param _total_count New value for member total_count - */ - eProsima_user_DllExport void total_count( - uint32_t _total_count); - - /*! - * @brief This function returns the value of member total_count - * @return Value of member total_count - */ - eProsima_user_DllExport uint32_t total_count() const; - - /*! - * @brief This function returns a reference to member total_count - * @return Reference to member total_count - */ - eProsima_user_DllExport uint32_t& total_count(); - - - /*! - * @brief This function returns the maximum serialized size of an object - * depending on the buffer alignment. - * @param current_alignment Buffer alignment. - * @return Maximum serialized size. - */ - eProsima_user_DllExport static size_t getMaxCdrSerializedSize( - size_t current_alignment = 0); - - /*! - * @brief This function returns the serialized size of a data depending on the buffer alignment. - * @param data Data which is calculated its serialized size. - * @param current_alignment Buffer alignment. - * @return Serialized size. - */ - eProsima_user_DllExport static size_t getCdrSerializedSize( - const eprosima::fastdds::statistics::BaseStatus_s& data, - size_t current_alignment = 0); - - - - /*! - * @brief This function serializes an object using CDR serialization. - * @param cdr CDR serialization object. - */ - eProsima_user_DllExport void serialize( - eprosima::fastcdr::Cdr& cdr) const; - - /*! - * @brief This function deserializes an object using CDR serialization. - * @param cdr CDR serialization object. - */ - eProsima_user_DllExport void deserialize( - eprosima::fastcdr::Cdr& cdr); - - - - - /*! - * @brief This function tells you if the Key has been defined for this type - */ - eProsima_user_DllExport static bool isKeyDefined(); - - /*! - * @brief This function serializes the key members of an object using CDR serialization. - * @param cdr CDR serialization object. - */ - eProsima_user_DllExport void serializeKey( - eprosima::fastcdr::Cdr& cdr) const; - - - private: - - uint32_t m_total_count; - - }; - - - - typedef std::vector QosPolicyCountSeq_s; - - - - /*! - * @brief This class represents the structure IncompatibleQoSStatus_s defined by the user in the IDL file. - * @ingroup monitorservice_types - */ - class IncompatibleQoSStatus_s - { - public: - - /*! - * @brief Default constructor. - */ - eProsima_user_DllExport IncompatibleQoSStatus_s(); - - /*! - * @brief Default destructor. - */ - eProsima_user_DllExport ~IncompatibleQoSStatus_s(); - - /*! - * @brief Copy constructor. - * @param x Reference to the object eprosima::fastdds::statistics::IncompatibleQoSStatus_s that will be copied. - */ - eProsima_user_DllExport IncompatibleQoSStatus_s( - const IncompatibleQoSStatus_s& x); - - /*! - * @brief Move constructor. - * @param x Reference to the object eprosima::fastdds::statistics::IncompatibleQoSStatus_s that will be copied. - */ - eProsima_user_DllExport IncompatibleQoSStatus_s( - IncompatibleQoSStatus_s&& x) noexcept; - - /*! - * @brief Copy assignment. - * @param x Reference to the object eprosima::fastdds::statistics::IncompatibleQoSStatus_s that will be copied. - */ - eProsima_user_DllExport IncompatibleQoSStatus_s& operator =( - const IncompatibleQoSStatus_s& x); - - /*! - * @brief Move assignment. - * @param x Reference to the object eprosima::fastdds::statistics::IncompatibleQoSStatus_s that will be copied. - */ - eProsima_user_DllExport IncompatibleQoSStatus_s& operator =( - IncompatibleQoSStatus_s&& x) noexcept; - - /*! - * @brief Comparison operator. - * @param x eprosima::fastdds::statistics::IncompatibleQoSStatus_s object to compare. - */ - eProsima_user_DllExport bool operator ==( - const IncompatibleQoSStatus_s& x) const; - - /*! - * @brief Comparison operator. - * @param x eprosima::fastdds::statistics::IncompatibleQoSStatus_s object to compare. - */ - eProsima_user_DllExport bool operator !=( - const IncompatibleQoSStatus_s& x) const; - - /*! - * @brief This function sets a value in member total_count - * @param _total_count New value for member total_count - */ - eProsima_user_DllExport void total_count( - uint32_t _total_count); - - /*! - * @brief This function returns the value of member total_count - * @return Value of member total_count - */ - eProsima_user_DllExport uint32_t total_count() const; - - /*! - * @brief This function returns a reference to member total_count - * @return Reference to member total_count - */ - eProsima_user_DllExport uint32_t& total_count(); - - - /*! - * @brief This function sets a value in member last_policy_id - * @param _last_policy_id New value for member last_policy_id - */ - eProsima_user_DllExport void last_policy_id( - uint32_t _last_policy_id); - - /*! - * @brief This function returns the value of member last_policy_id - * @return Value of member last_policy_id - */ - eProsima_user_DllExport uint32_t last_policy_id() const; - - /*! - * @brief This function returns a reference to member last_policy_id - * @return Reference to member last_policy_id - */ - eProsima_user_DllExport uint32_t& last_policy_id(); - - - /*! - * @brief This function copies the value in member policies - * @param _policies New value to be copied in member policies - */ - eProsima_user_DllExport void policies( - const eprosima::fastdds::statistics::QosPolicyCountSeq_s& _policies); - - /*! - * @brief This function moves the value in member policies - * @param _policies New value to be moved in member policies - */ - eProsima_user_DllExport void policies( - eprosima::fastdds::statistics::QosPolicyCountSeq_s&& _policies); - - /*! - * @brief This function returns a constant reference to member policies - * @return Constant reference to member policies - */ - eProsima_user_DllExport const eprosima::fastdds::statistics::QosPolicyCountSeq_s& policies() const; - - /*! - * @brief This function returns a reference to member policies - * @return Reference to member policies - */ - eProsima_user_DllExport eprosima::fastdds::statistics::QosPolicyCountSeq_s& policies(); - - - /*! - * @brief This function returns the maximum serialized size of an object - * depending on the buffer alignment. - * @param current_alignment Buffer alignment. - * @return Maximum serialized size. - */ - eProsima_user_DllExport static size_t getMaxCdrSerializedSize( - size_t current_alignment = 0); - - /*! - * @brief This function returns the serialized size of a data depending on the buffer alignment. - * @param data Data which is calculated its serialized size. - * @param current_alignment Buffer alignment. - * @return Serialized size. - */ - eProsima_user_DllExport static size_t getCdrSerializedSize( - const eprosima::fastdds::statistics::IncompatibleQoSStatus_s& data, - size_t current_alignment = 0); - - - - /*! - * @brief This function serializes an object using CDR serialization. - * @param cdr CDR serialization object. - */ - eProsima_user_DllExport void serialize( - eprosima::fastcdr::Cdr& cdr) const; - - /*! - * @brief This function deserializes an object using CDR serialization. - * @param cdr CDR serialization object. - */ - eProsima_user_DllExport void deserialize( - eprosima::fastcdr::Cdr& cdr); - - - - - /*! - * @brief This function tells you if the Key has been defined for this type - */ - eProsima_user_DllExport static bool isKeyDefined(); - - /*! - * @brief This function serializes the key members of an object using CDR serialization. - * @param cdr CDR serialization object. - */ - eProsima_user_DllExport void serializeKey( - eprosima::fastcdr::Cdr& cdr) const; - - - private: - - uint32_t m_total_count; - uint32_t m_last_policy_id; - eprosima::fastdds::statistics::QosPolicyCountSeq_s m_policies; - - }; - - - - /*! - * @brief This class represents the structure LivelinessChangedStatus_s defined by the user in the IDL file. - * @ingroup monitorservice_types - */ - class LivelinessChangedStatus_s - { - public: - - /*! - * @brief Default constructor. - */ - eProsima_user_DllExport LivelinessChangedStatus_s(); - - /*! - * @brief Default destructor. - */ - eProsima_user_DllExport ~LivelinessChangedStatus_s(); - - /*! - * @brief Copy constructor. - * @param x Reference to the object eprosima::fastdds::statistics::LivelinessChangedStatus_s that will be copied. - */ - eProsima_user_DllExport LivelinessChangedStatus_s( - const LivelinessChangedStatus_s& x); - - /*! - * @brief Move constructor. - * @param x Reference to the object eprosima::fastdds::statistics::LivelinessChangedStatus_s that will be copied. - */ - eProsima_user_DllExport LivelinessChangedStatus_s( - LivelinessChangedStatus_s&& x) noexcept; - - /*! - * @brief Copy assignment. - * @param x Reference to the object eprosima::fastdds::statistics::LivelinessChangedStatus_s that will be copied. - */ - eProsima_user_DllExport LivelinessChangedStatus_s& operator =( - const LivelinessChangedStatus_s& x); - - /*! - * @brief Move assignment. - * @param x Reference to the object eprosima::fastdds::statistics::LivelinessChangedStatus_s that will be copied. - */ - eProsima_user_DllExport LivelinessChangedStatus_s& operator =( - LivelinessChangedStatus_s&& x) noexcept; - - /*! - * @brief Comparison operator. - * @param x eprosima::fastdds::statistics::LivelinessChangedStatus_s object to compare. - */ - eProsima_user_DllExport bool operator ==( - const LivelinessChangedStatus_s& x) const; - - /*! - * @brief Comparison operator. - * @param x eprosima::fastdds::statistics::LivelinessChangedStatus_s object to compare. - */ - eProsima_user_DllExport bool operator !=( - const LivelinessChangedStatus_s& x) const; - - /*! - * @brief This function sets a value in member alive_count - * @param _alive_count New value for member alive_count - */ - eProsima_user_DllExport void alive_count( - uint32_t _alive_count); - - /*! - * @brief This function returns the value of member alive_count - * @return Value of member alive_count - */ - eProsima_user_DllExport uint32_t alive_count() const; - - /*! - * @brief This function returns a reference to member alive_count - * @return Reference to member alive_count - */ - eProsima_user_DllExport uint32_t& alive_count(); - - - /*! - * @brief This function sets a value in member not_alive_count - * @param _not_alive_count New value for member not_alive_count - */ - eProsima_user_DllExport void not_alive_count( - uint32_t _not_alive_count); - - /*! - * @brief This function returns the value of member not_alive_count - * @return Value of member not_alive_count - */ - eProsima_user_DllExport uint32_t not_alive_count() const; - - /*! - * @brief This function returns a reference to member not_alive_count - * @return Reference to member not_alive_count - */ - eProsima_user_DllExport uint32_t& not_alive_count(); - - - /*! - * @brief This function copies the value in member last_publication_handle - * @param _last_publication_handle New value to be copied in member last_publication_handle - */ - eProsima_user_DllExport void last_publication_handle( - const std::array& _last_publication_handle); - - /*! - * @brief This function moves the value in member last_publication_handle - * @param _last_publication_handle New value to be moved in member last_publication_handle - */ - eProsima_user_DllExport void last_publication_handle( - std::array&& _last_publication_handle); - - /*! - * @brief This function returns a constant reference to member last_publication_handle - * @return Constant reference to member last_publication_handle - */ - eProsima_user_DllExport const std::array& last_publication_handle() const; - - /*! - * @brief This function returns a reference to member last_publication_handle - * @return Reference to member last_publication_handle - */ - eProsima_user_DllExport std::array& last_publication_handle(); - - - /*! - * @brief This function returns the maximum serialized size of an object - * depending on the buffer alignment. - * @param current_alignment Buffer alignment. - * @return Maximum serialized size. - */ - eProsima_user_DllExport static size_t getMaxCdrSerializedSize( - size_t current_alignment = 0); - - /*! - * @brief This function returns the serialized size of a data depending on the buffer alignment. - * @param data Data which is calculated its serialized size. - * @param current_alignment Buffer alignment. - * @return Serialized size. - */ - eProsima_user_DllExport static size_t getCdrSerializedSize( - const eprosima::fastdds::statistics::LivelinessChangedStatus_s& data, - size_t current_alignment = 0); - - - - /*! - * @brief This function serializes an object using CDR serialization. - * @param cdr CDR serialization object. - */ - eProsima_user_DllExport void serialize( - eprosima::fastcdr::Cdr& cdr) const; - - /*! - * @brief This function deserializes an object using CDR serialization. - * @param cdr CDR serialization object. - */ - eProsima_user_DllExport void deserialize( - eprosima::fastcdr::Cdr& cdr); - - - - - /*! - * @brief This function tells you if the Key has been defined for this type - */ - eProsima_user_DllExport static bool isKeyDefined(); - - /*! - * @brief This function serializes the key members of an object using CDR serialization. - * @param cdr CDR serialization object. - */ - eProsima_user_DllExport void serializeKey( - eprosima::fastcdr::Cdr& cdr) const; - - - private: - - uint32_t m_alive_count; - uint32_t m_not_alive_count; - std::array m_last_publication_handle; - - }; - - - - /*! - * @brief This class represents the structure DeadlineMissedStatus_s defined by the user in the IDL file. - * @ingroup monitorservice_types - */ - class DeadlineMissedStatus_s - { - public: - - /*! - * @brief Default constructor. - */ - eProsima_user_DllExport DeadlineMissedStatus_s(); - - /*! - * @brief Default destructor. - */ - eProsima_user_DllExport ~DeadlineMissedStatus_s(); - - /*! - * @brief Copy constructor. - * @param x Reference to the object eprosima::fastdds::statistics::DeadlineMissedStatus_s that will be copied. - */ - eProsima_user_DllExport DeadlineMissedStatus_s( - const DeadlineMissedStatus_s& x); - - /*! - * @brief Move constructor. - * @param x Reference to the object eprosima::fastdds::statistics::DeadlineMissedStatus_s that will be copied. - */ - eProsima_user_DllExport DeadlineMissedStatus_s( - DeadlineMissedStatus_s&& x) noexcept; - - /*! - * @brief Copy assignment. - * @param x Reference to the object eprosima::fastdds::statistics::DeadlineMissedStatus_s that will be copied. - */ - eProsima_user_DllExport DeadlineMissedStatus_s& operator =( - const DeadlineMissedStatus_s& x); - - /*! - * @brief Move assignment. - * @param x Reference to the object eprosima::fastdds::statistics::DeadlineMissedStatus_s that will be copied. - */ - eProsima_user_DllExport DeadlineMissedStatus_s& operator =( - DeadlineMissedStatus_s&& x) noexcept; - - /*! - * @brief Comparison operator. - * @param x eprosima::fastdds::statistics::DeadlineMissedStatus_s object to compare. - */ - eProsima_user_DllExport bool operator ==( - const DeadlineMissedStatus_s& x) const; - - /*! - * @brief Comparison operator. - * @param x eprosima::fastdds::statistics::DeadlineMissedStatus_s object to compare. - */ - eProsima_user_DllExport bool operator !=( - const DeadlineMissedStatus_s& x) const; - - /*! - * @brief This function sets a value in member total_count - * @param _total_count New value for member total_count - */ - eProsima_user_DllExport void total_count( - uint32_t _total_count); - - /*! - * @brief This function returns the value of member total_count - * @return Value of member total_count - */ - eProsima_user_DllExport uint32_t total_count() const; - - /*! - * @brief This function returns a reference to member total_count - * @return Reference to member total_count - */ - eProsima_user_DllExport uint32_t& total_count(); - - - /*! - * @brief This function copies the value in member last_instance_handle - * @param _last_instance_handle New value to be copied in member last_instance_handle - */ - eProsima_user_DllExport void last_instance_handle( - const std::array& _last_instance_handle); - - /*! - * @brief This function moves the value in member last_instance_handle - * @param _last_instance_handle New value to be moved in member last_instance_handle - */ - eProsima_user_DllExport void last_instance_handle( - std::array&& _last_instance_handle); - - /*! - * @brief This function returns a constant reference to member last_instance_handle - * @return Constant reference to member last_instance_handle - */ - eProsima_user_DllExport const std::array& last_instance_handle() const; - - /*! - * @brief This function returns a reference to member last_instance_handle - * @return Reference to member last_instance_handle - */ - eProsima_user_DllExport std::array& last_instance_handle(); - - - /*! - * @brief This function returns the maximum serialized size of an object - * depending on the buffer alignment. - * @param current_alignment Buffer alignment. - * @return Maximum serialized size. - */ - eProsima_user_DllExport static size_t getMaxCdrSerializedSize( - size_t current_alignment = 0); - - /*! - * @brief This function returns the serialized size of a data depending on the buffer alignment. - * @param data Data which is calculated its serialized size. - * @param current_alignment Buffer alignment. - * @return Serialized size. - */ - eProsima_user_DllExport static size_t getCdrSerializedSize( - const eprosima::fastdds::statistics::DeadlineMissedStatus_s& data, - size_t current_alignment = 0); - - - - /*! - * @brief This function serializes an object using CDR serialization. - * @param cdr CDR serialization object. - */ - eProsima_user_DllExport void serialize( - eprosima::fastcdr::Cdr& cdr) const; - - /*! - * @brief This function deserializes an object using CDR serialization. - * @param cdr CDR serialization object. - */ - eProsima_user_DllExport void deserialize( - eprosima::fastcdr::Cdr& cdr); - - - - - /*! - * @brief This function tells you if the Key has been defined for this type - */ - eProsima_user_DllExport static bool isKeyDefined(); - - /*! - * @brief This function serializes the key members of an object using CDR serialization. - * @param cdr CDR serialization object. - */ - eProsima_user_DllExport void serializeKey( - eprosima::fastcdr::Cdr& cdr) const; - - - private: - - uint32_t m_total_count; - std::array m_last_instance_handle; - - }; - - typedef eprosima::fastdds::statistics::BaseStatus_s LivelinessLostStatus_s; - - typedef eprosima::fastdds::statistics::BaseStatus_s InconsistentTopicStatus_s; - - typedef eprosima::fastdds::statistics::BaseStatus_s SampleLostStatus_s; - - /*! - * @brief This class represents the enumeration StatusKind defined by the user in the IDL file. - * @ingroup monitorservice_types - */ - enum StatusKind : uint32_t - { - PROXY, - CONNECTION_LIST, - INCOMPATIBLE_QOS, - INCONSISTENT_TOPIC, - LIVELINESS_LOST, - LIVELINESS_CHANGED, - DEADLINE_MISSED, - SAMPLE_LOST, - STATUSES_SIZE - }; - - - /*! - * @brief This class represents the union MonitorServiceData defined by the user in the IDL file. - * @ingroup monitorservice_types - */ - class MonitorServiceData - { - public: - - /*! - * @brief Default constructor. - */ - eProsima_user_DllExport MonitorServiceData(); - - /*! - * @brief Default destructor. - */ - eProsima_user_DllExport ~MonitorServiceData(); - - /*! - * @brief Copy constructor. - * @param x Reference to the object eprosima::fastdds::statistics::MonitorServiceData that will be copied. - */ - eProsima_user_DllExport MonitorServiceData( - const MonitorServiceData& x); - - /*! - * @brief Move constructor. - * @param x Reference to the object eprosima::fastdds::statistics::MonitorServiceData that will be copied. - */ - eProsima_user_DllExport MonitorServiceData( - MonitorServiceData&& x) noexcept; - - /*! - * @brief Copy assignment. - * @param x Reference to the object eprosima::fastdds::statistics::MonitorServiceData that will be copied. - */ - eProsima_user_DllExport MonitorServiceData& operator =( - const MonitorServiceData& x); - - /*! - * @brief Move assignment. - * @param x Reference to the object eprosima::fastdds::statistics::MonitorServiceData that will be copied. - */ - eProsima_user_DllExport MonitorServiceData& operator =( - MonitorServiceData&& x) noexcept; - - /*! - * @brief Comparison operator. - * @param x eprosima::fastdds::statistics::MonitorServiceData object to compare. - */ - eProsima_user_DllExport bool operator ==( - const MonitorServiceData& x) const; - - /*! - * @brief Comparison operator. - * @param x eprosima::fastdds::statistics::MonitorServiceData object to compare. - */ - eProsima_user_DllExport bool operator !=( - const MonitorServiceData& x) const; - - /*! - * @brief This function sets the discriminator value. - * @param __d New value for the discriminator. - * @exception eprosima::fastcdr::BadParamException This exception is thrown if the new value doesn't correspond to the selected union member. - */ - eProsima_user_DllExport void _d( - eprosima::fastdds::statistics::StatusKind __d); - - /*! - * @brief This function returns the value of the discriminator. - * @return Value of the discriminator - */ - eProsima_user_DllExport eprosima::fastdds::statistics::StatusKind _d() const; - - /*! - * @brief This function returns a reference to the discriminator. - * @return Reference to the discriminator. - */ - eProsima_user_DllExport eprosima::fastdds::statistics::StatusKind& _d(); - - /*! - * @brief This function copies the value in member entity_proxy - * @param _entity_proxy New value to be copied in member entity_proxy - */ - eProsima_user_DllExport void entity_proxy( - const std::vector& _entity_proxy); - - /*! - * @brief This function moves the value in member entity_proxy - * @param _entity_proxy New value to be moved in member entity_proxy - */ - eProsima_user_DllExport void entity_proxy( - std::vector&& _entity_proxy); - - /*! - * @brief This function returns a constant reference to member entity_proxy - * @return Constant reference to member entity_proxy - * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. - */ - eProsima_user_DllExport const std::vector& entity_proxy() const; - - /*! - * @brief This function returns a reference to member entity_proxy - * @return Reference to member entity_proxy - * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. - */ - eProsima_user_DllExport std::vector& entity_proxy(); - - - /*! - * @brief This function copies the value in member connection_list - * @param _connection_list New value to be copied in member connection_list - */ - eProsima_user_DllExport void connection_list( - const std::vector& _connection_list); - - /*! - * @brief This function moves the value in member connection_list - * @param _connection_list New value to be moved in member connection_list - */ - eProsima_user_DllExport void connection_list( - std::vector&& _connection_list); - - /*! - * @brief This function returns a constant reference to member connection_list - * @return Constant reference to member connection_list - * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. - */ - eProsima_user_DllExport const std::vector& connection_list() const; - - /*! - * @brief This function returns a reference to member connection_list - * @return Reference to member connection_list - * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. - */ - eProsima_user_DllExport std::vector& connection_list(); - - - /*! - * @brief This function copies the value in member incompatible_qos_status - * @param _incompatible_qos_status New value to be copied in member incompatible_qos_status - */ - eProsima_user_DllExport void incompatible_qos_status( - const eprosima::fastdds::statistics::IncompatibleQoSStatus_s& _incompatible_qos_status); - - /*! - * @brief This function moves the value in member incompatible_qos_status - * @param _incompatible_qos_status New value to be moved in member incompatible_qos_status - */ - eProsima_user_DllExport void incompatible_qos_status( - eprosima::fastdds::statistics::IncompatibleQoSStatus_s&& _incompatible_qos_status); - - /*! - * @brief This function returns a constant reference to member incompatible_qos_status - * @return Constant reference to member incompatible_qos_status - * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. - */ - eProsima_user_DllExport const eprosima::fastdds::statistics::IncompatibleQoSStatus_s& incompatible_qos_status() const; - - /*! - * @brief This function returns a reference to member incompatible_qos_status - * @return Reference to member incompatible_qos_status - * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. - */ - eProsima_user_DllExport eprosima::fastdds::statistics::IncompatibleQoSStatus_s& incompatible_qos_status(); - - - /*! - * @brief This function copies the value in member inconsistent_topic_status - * @param _inconsistent_topic_status New value to be copied in member inconsistent_topic_status - */ - eProsima_user_DllExport void inconsistent_topic_status( - const eprosima::fastdds::statistics::InconsistentTopicStatus_s& _inconsistent_topic_status); - - /*! - * @brief This function moves the value in member inconsistent_topic_status - * @param _inconsistent_topic_status New value to be moved in member inconsistent_topic_status - */ - eProsima_user_DllExport void inconsistent_topic_status( - eprosima::fastdds::statistics::InconsistentTopicStatus_s&& _inconsistent_topic_status); - - /*! - * @brief This function returns a constant reference to member inconsistent_topic_status - * @return Constant reference to member inconsistent_topic_status - * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. - */ - eProsima_user_DllExport const eprosima::fastdds::statistics::InconsistentTopicStatus_s& inconsistent_topic_status() const; - - /*! - * @brief This function returns a reference to member inconsistent_topic_status - * @return Reference to member inconsistent_topic_status - * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. - */ - eProsima_user_DllExport eprosima::fastdds::statistics::InconsistentTopicStatus_s& inconsistent_topic_status(); - - - /*! - * @brief This function copies the value in member liveliness_lost_status - * @param _liveliness_lost_status New value to be copied in member liveliness_lost_status - */ - eProsima_user_DllExport void liveliness_lost_status( - const eprosima::fastdds::statistics::LivelinessLostStatus_s& _liveliness_lost_status); - - /*! - * @brief This function moves the value in member liveliness_lost_status - * @param _liveliness_lost_status New value to be moved in member liveliness_lost_status - */ - eProsima_user_DllExport void liveliness_lost_status( - eprosima::fastdds::statistics::LivelinessLostStatus_s&& _liveliness_lost_status); - - /*! - * @brief This function returns a constant reference to member liveliness_lost_status - * @return Constant reference to member liveliness_lost_status - * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. - */ - eProsima_user_DllExport const eprosima::fastdds::statistics::LivelinessLostStatus_s& liveliness_lost_status() const; - - /*! - * @brief This function returns a reference to member liveliness_lost_status - * @return Reference to member liveliness_lost_status - * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. - */ - eProsima_user_DllExport eprosima::fastdds::statistics::LivelinessLostStatus_s& liveliness_lost_status(); - - - /*! - * @brief This function copies the value in member liveliness_changed_status - * @param _liveliness_changed_status New value to be copied in member liveliness_changed_status - */ - eProsima_user_DllExport void liveliness_changed_status( - const eprosima::fastdds::statistics::LivelinessChangedStatus_s& _liveliness_changed_status); - - /*! - * @brief This function moves the value in member liveliness_changed_status - * @param _liveliness_changed_status New value to be moved in member liveliness_changed_status - */ - eProsima_user_DllExport void liveliness_changed_status( - eprosima::fastdds::statistics::LivelinessChangedStatus_s&& _liveliness_changed_status); - - /*! - * @brief This function returns a constant reference to member liveliness_changed_status - * @return Constant reference to member liveliness_changed_status - * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. - */ - eProsima_user_DllExport const eprosima::fastdds::statistics::LivelinessChangedStatus_s& liveliness_changed_status() const; - - /*! - * @brief This function returns a reference to member liveliness_changed_status - * @return Reference to member liveliness_changed_status - * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. - */ - eProsima_user_DllExport eprosima::fastdds::statistics::LivelinessChangedStatus_s& liveliness_changed_status(); - - - /*! - * @brief This function copies the value in member deadline_missed_status - * @param _deadline_missed_status New value to be copied in member deadline_missed_status - */ - eProsima_user_DllExport void deadline_missed_status( - const eprosima::fastdds::statistics::DeadlineMissedStatus_s& _deadline_missed_status); - - /*! - * @brief This function moves the value in member deadline_missed_status - * @param _deadline_missed_status New value to be moved in member deadline_missed_status - */ - eProsima_user_DllExport void deadline_missed_status( - eprosima::fastdds::statistics::DeadlineMissedStatus_s&& _deadline_missed_status); - - /*! - * @brief This function returns a constant reference to member deadline_missed_status - * @return Constant reference to member deadline_missed_status - * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. - */ - eProsima_user_DllExport const eprosima::fastdds::statistics::DeadlineMissedStatus_s& deadline_missed_status() const; - - /*! - * @brief This function returns a reference to member deadline_missed_status - * @return Reference to member deadline_missed_status - * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. - */ - eProsima_user_DllExport eprosima::fastdds::statistics::DeadlineMissedStatus_s& deadline_missed_status(); - - - /*! - * @brief This function copies the value in member sample_lost_status - * @param _sample_lost_status New value to be copied in member sample_lost_status - */ - eProsima_user_DllExport void sample_lost_status( - const eprosima::fastdds::statistics::SampleLostStatus_s& _sample_lost_status); - - /*! - * @brief This function moves the value in member sample_lost_status - * @param _sample_lost_status New value to be moved in member sample_lost_status - */ - eProsima_user_DllExport void sample_lost_status( - eprosima::fastdds::statistics::SampleLostStatus_s&& _sample_lost_status); - - /*! - * @brief This function returns a constant reference to member sample_lost_status - * @return Constant reference to member sample_lost_status - * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. - */ - eProsima_user_DllExport const eprosima::fastdds::statistics::SampleLostStatus_s& sample_lost_status() const; - - /*! - * @brief This function returns a reference to member sample_lost_status - * @return Reference to member sample_lost_status - * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. - */ - eProsima_user_DllExport eprosima::fastdds::statistics::SampleLostStatus_s& sample_lost_status(); - - - /*! - * @brief This function sets a value in member statuses_size - * @param _statuses_size New value for member statuses_size - */ - eProsima_user_DllExport void statuses_size( - uint8_t _statuses_size); - - /*! - * @brief This function returns the value of member statuses_size - * @return Value of member statuses_size - * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. - */ - eProsima_user_DllExport uint8_t statuses_size() const; - - /*! - * @brief This function returns a reference to member statuses_size - * @return Reference to member statuses_size - * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. - */ - eProsima_user_DllExport uint8_t& statuses_size(); - - - /*! - * @brief This function returns the serialized size of a data depending on the buffer alignment. - * @param data Data which is calculated its serialized size. - * @param current_alignment Buffer alignment. - * @return Serialized size. - */ - eProsima_user_DllExport static size_t getCdrSerializedSize( - const eprosima::fastdds::statistics::MonitorServiceData& data, - size_t current_alignment = 0); - - - - /*! - * @brief This function serializes an object using CDR serialization. - * @param cdr CDR serialization object. - */ - eProsima_user_DllExport void serialize( - eprosima::fastcdr::Cdr& cdr) const; - - /*! - * @brief This function deserializes an object using CDR serialization. - * @param cdr CDR serialization object. - */ - eProsima_user_DllExport void deserialize( - eprosima::fastcdr::Cdr& cdr); - - - - - - private: - - eprosima::fastdds::statistics::StatusKind m__d; - - std::vector m_entity_proxy; - std::vector m_connection_list; - eprosima::fastdds::statistics::IncompatibleQoSStatus_s m_incompatible_qos_status; - eprosima::fastdds::statistics::InconsistentTopicStatus_s m_inconsistent_topic_status; - eprosima::fastdds::statistics::LivelinessLostStatus_s m_liveliness_lost_status; - eprosima::fastdds::statistics::LivelinessChangedStatus_s m_liveliness_changed_status; - eprosima::fastdds::statistics::DeadlineMissedStatus_s m_deadline_missed_status; - eprosima::fastdds::statistics::SampleLostStatus_s m_sample_lost_status; - uint8_t m_statuses_size; - }; - - - - /*! - * @brief This class represents the structure MonitorServiceStatusData defined by the user in the IDL file. - * @ingroup monitorservice_types - */ - class MonitorServiceStatusData - { - public: - - /*! - * @brief Default constructor. - */ - eProsima_user_DllExport MonitorServiceStatusData(); - - /*! - * @brief Default destructor. - */ - eProsima_user_DllExport ~MonitorServiceStatusData(); - - /*! - * @brief Copy constructor. - * @param x Reference to the object eprosima::fastdds::statistics::MonitorServiceStatusData that will be copied. - */ - eProsima_user_DllExport MonitorServiceStatusData( - const MonitorServiceStatusData& x); - - /*! - * @brief Move constructor. - * @param x Reference to the object eprosima::fastdds::statistics::MonitorServiceStatusData that will be copied. - */ - eProsima_user_DllExport MonitorServiceStatusData( - MonitorServiceStatusData&& x) noexcept; - - /*! - * @brief Copy assignment. - * @param x Reference to the object eprosima::fastdds::statistics::MonitorServiceStatusData that will be copied. - */ - eProsima_user_DllExport MonitorServiceStatusData& operator =( - const MonitorServiceStatusData& x); - - /*! - * @brief Move assignment. - * @param x Reference to the object eprosima::fastdds::statistics::MonitorServiceStatusData that will be copied. - */ - eProsima_user_DllExport MonitorServiceStatusData& operator =( - MonitorServiceStatusData&& x) noexcept; - - /*! - * @brief Comparison operator. - * @param x eprosima::fastdds::statistics::MonitorServiceStatusData object to compare. - */ - eProsima_user_DllExport bool operator ==( - const MonitorServiceStatusData& x) const; - - /*! - * @brief Comparison operator. - * @param x eprosima::fastdds::statistics::MonitorServiceStatusData object to compare. - */ - eProsima_user_DllExport bool operator !=( - const MonitorServiceStatusData& x) const; - - /*! - * @brief This function copies the value in member local_entity - * @param _local_entity New value to be copied in member local_entity - */ - eProsima_user_DllExport void local_entity( - const eprosima::fastdds::statistics::detail::GUID_s& _local_entity); - - /*! - * @brief This function moves the value in member local_entity - * @param _local_entity New value to be moved in member local_entity - */ - eProsima_user_DllExport void local_entity( - eprosima::fastdds::statistics::detail::GUID_s&& _local_entity); - - /*! - * @brief This function returns a constant reference to member local_entity - * @return Constant reference to member local_entity - */ - eProsima_user_DllExport const eprosima::fastdds::statistics::detail::GUID_s& local_entity() const; - - /*! - * @brief This function returns a reference to member local_entity - * @return Reference to member local_entity - */ - eProsima_user_DllExport eprosima::fastdds::statistics::detail::GUID_s& local_entity(); - - - /*! - * @brief This function sets a value in member status_kind - * @param _status_kind New value for member status_kind - */ - eProsima_user_DllExport void status_kind( - eprosima::fastdds::statistics::StatusKind _status_kind); - - /*! - * @brief This function returns the value of member status_kind - * @return Value of member status_kind - */ - eProsima_user_DllExport eprosima::fastdds::statistics::StatusKind status_kind() const; - - /*! - * @brief This function returns a reference to member status_kind - * @return Reference to member status_kind - */ - eProsima_user_DllExport eprosima::fastdds::statistics::StatusKind& status_kind(); - - - /*! - * @brief This function copies the value in member value - * @param _value New value to be copied in member value - */ - eProsima_user_DllExport void value( - const eprosima::fastdds::statistics::MonitorServiceData& _value); - - /*! - * @brief This function moves the value in member value - * @param _value New value to be moved in member value - */ - eProsima_user_DllExport void value( - eprosima::fastdds::statistics::MonitorServiceData&& _value); - - /*! - * @brief This function returns a constant reference to member value - * @return Constant reference to member value - */ - eProsima_user_DllExport const eprosima::fastdds::statistics::MonitorServiceData& value() const; - - /*! - * @brief This function returns a reference to member value - * @return Reference to member value - */ - eProsima_user_DllExport eprosima::fastdds::statistics::MonitorServiceData& value(); - - - /*! - * @brief This function returns the maximum serialized size of an object - * depending on the buffer alignment. - * @param current_alignment Buffer alignment. - * @return Maximum serialized size. - */ - eProsima_user_DllExport static size_t getMaxCdrSerializedSize( - size_t current_alignment = 0); - - /*! - * @brief This function returns the serialized size of a data depending on the buffer alignment. - * @param data Data which is calculated its serialized size. - * @param current_alignment Buffer alignment. - * @return Serialized size. - */ - eProsima_user_DllExport static size_t getCdrSerializedSize( - const eprosima::fastdds::statistics::MonitorServiceStatusData& data, - size_t current_alignment = 0); - - - - /*! - * @brief This function serializes an object using CDR serialization. - * @param cdr CDR serialization object. - */ - eProsima_user_DllExport void serialize( - eprosima::fastcdr::Cdr& cdr) const; - - /*! - * @brief This function deserializes an object using CDR serialization. - * @param cdr CDR serialization object. - */ - eProsima_user_DllExport void deserialize( - eprosima::fastcdr::Cdr& cdr); - - - - - /*! - * @brief This function tells you if the Key has been defined for this type - */ - eProsima_user_DllExport static bool isKeyDefined(); - - /*! - * @brief This function serializes the key members of an object using CDR serialization. - * @param cdr CDR serialization object. - */ - eProsima_user_DllExport void serializeKey( - eprosima::fastcdr::Cdr& cdr) const; - - - private: - - eprosima::fastdds::statistics::detail::GUID_s m_local_entity; - eprosima::fastdds::statistics::StatusKind m_status_kind; - eprosima::fastdds::statistics::MonitorServiceData m_value; - - }; - - } // namespace statistics - } // namespace fastdds +/*! + * @brief This class represents the structure BaseStatus_s defined by the user in the IDL file. + * @ingroup monitorservice_types + */ +class BaseStatus_s +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport BaseStatus_s(); + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~BaseStatus_s(); + + /*! + * @brief Copy constructor. + * @param x Reference to the object eprosima::fastdds::statistics::BaseStatus_s that will be copied. + */ + eProsima_user_DllExport BaseStatus_s( + const BaseStatus_s& x); + + /*! + * @brief Move constructor. + * @param x Reference to the object eprosima::fastdds::statistics::BaseStatus_s that will be copied. + */ + eProsima_user_DllExport BaseStatus_s( + BaseStatus_s&& x) noexcept; + + /*! + * @brief Copy assignment. + * @param x Reference to the object eprosima::fastdds::statistics::BaseStatus_s that will be copied. + */ + eProsima_user_DllExport BaseStatus_s& operator =( + const BaseStatus_s& x); + + /*! + * @brief Move assignment. + * @param x Reference to the object eprosima::fastdds::statistics::BaseStatus_s that will be copied. + */ + eProsima_user_DllExport BaseStatus_s& operator =( + BaseStatus_s&& x) noexcept; + + /*! + * @brief Comparison operator. + * @param x eprosima::fastdds::statistics::BaseStatus_s object to compare. + */ + eProsima_user_DllExport bool operator ==( + const BaseStatus_s& x) const; + + /*! + * @brief Comparison operator. + * @param x eprosima::fastdds::statistics::BaseStatus_s object to compare. + */ + eProsima_user_DllExport bool operator !=( + const BaseStatus_s& x) const; + + /*! + * @brief This function sets a value in member total_count + * @param _total_count New value for member total_count + */ + eProsima_user_DllExport void total_count( + uint32_t _total_count); + + /*! + * @brief This function returns the value of member total_count + * @return Value of member total_count + */ + eProsima_user_DllExport uint32_t total_count() const; + + /*! + * @brief This function returns a reference to member total_count + * @return Reference to member total_count + */ + eProsima_user_DllExport uint32_t& total_count(); + + + /*! + * @brief This function returns the maximum serialized size of an object + * depending on the buffer alignment. + * @param current_alignment Buffer alignment. + * @return Maximum serialized size. + */ + eProsima_user_DllExport static size_t getMaxCdrSerializedSize( + size_t current_alignment = 0); + + /*! + * @brief This function returns the serialized size of a data depending on the buffer alignment. + * @param data Data which is calculated its serialized size. + * @param current_alignment Buffer alignment. + * @return Serialized size. + */ + eProsima_user_DllExport static size_t getCdrSerializedSize( + const eprosima::fastdds::statistics::BaseStatus_s& data, + size_t current_alignment = 0); + + + + /*! + * @brief This function serializes an object using CDR serialization. + * @param cdr CDR serialization object. + */ + eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& cdr) const; + + /*! + * @brief This function deserializes an object using CDR serialization. + * @param cdr CDR serialization object. + */ + eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr); + + + + + /*! + * @brief This function tells you if the Key has been defined for this type + */ + eProsima_user_DllExport static bool isKeyDefined(); + + /*! + * @brief This function serializes the key members of an object using CDR serialization. + * @param cdr CDR serialization object. + */ + eProsima_user_DllExport void serializeKey( + eprosima::fastcdr::Cdr& cdr) const; + +private: + + uint32_t m_total_count; + +}; + + + +typedef std::vector QosPolicyCountSeq_s; + + + +/*! + * @brief This class represents the structure IncompatibleQoSStatus_s defined by the user in the IDL file. + * @ingroup monitorservice_types + */ +class IncompatibleQoSStatus_s +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport IncompatibleQoSStatus_s(); + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~IncompatibleQoSStatus_s(); + + /*! + * @brief Copy constructor. + * @param x Reference to the object eprosima::fastdds::statistics::IncompatibleQoSStatus_s that will be copied. + */ + eProsima_user_DllExport IncompatibleQoSStatus_s( + const IncompatibleQoSStatus_s& x); + + /*! + * @brief Move constructor. + * @param x Reference to the object eprosima::fastdds::statistics::IncompatibleQoSStatus_s that will be copied. + */ + eProsima_user_DllExport IncompatibleQoSStatus_s( + IncompatibleQoSStatus_s&& x) noexcept; + + /*! + * @brief Copy assignment. + * @param x Reference to the object eprosima::fastdds::statistics::IncompatibleQoSStatus_s that will be copied. + */ + eProsima_user_DllExport IncompatibleQoSStatus_s& operator =( + const IncompatibleQoSStatus_s& x); + + /*! + * @brief Move assignment. + * @param x Reference to the object eprosima::fastdds::statistics::IncompatibleQoSStatus_s that will be copied. + */ + eProsima_user_DllExport IncompatibleQoSStatus_s& operator =( + IncompatibleQoSStatus_s&& x) noexcept; + + /*! + * @brief Comparison operator. + * @param x eprosima::fastdds::statistics::IncompatibleQoSStatus_s object to compare. + */ + eProsima_user_DllExport bool operator ==( + const IncompatibleQoSStatus_s& x) const; + + /*! + * @brief Comparison operator. + * @param x eprosima::fastdds::statistics::IncompatibleQoSStatus_s object to compare. + */ + eProsima_user_DllExport bool operator !=( + const IncompatibleQoSStatus_s& x) const; + + /*! + * @brief This function sets a value in member total_count + * @param _total_count New value for member total_count + */ + eProsima_user_DllExport void total_count( + uint32_t _total_count); + + /*! + * @brief This function returns the value of member total_count + * @return Value of member total_count + */ + eProsima_user_DllExport uint32_t total_count() const; + + /*! + * @brief This function returns a reference to member total_count + * @return Reference to member total_count + */ + eProsima_user_DllExport uint32_t& total_count(); + + + /*! + * @brief This function sets a value in member last_policy_id + * @param _last_policy_id New value for member last_policy_id + */ + eProsima_user_DllExport void last_policy_id( + uint32_t _last_policy_id); + + /*! + * @brief This function returns the value of member last_policy_id + * @return Value of member last_policy_id + */ + eProsima_user_DllExport uint32_t last_policy_id() const; + + /*! + * @brief This function returns a reference to member last_policy_id + * @return Reference to member last_policy_id + */ + eProsima_user_DllExport uint32_t& last_policy_id(); + + + /*! + * @brief This function copies the value in member policies + * @param _policies New value to be copied in member policies + */ + eProsima_user_DllExport void policies( + const eprosima::fastdds::statistics::QosPolicyCountSeq_s& _policies); + + /*! + * @brief This function moves the value in member policies + * @param _policies New value to be moved in member policies + */ + eProsima_user_DllExport void policies( + eprosima::fastdds::statistics::QosPolicyCountSeq_s&& _policies); + + /*! + * @brief This function returns a constant reference to member policies + * @return Constant reference to member policies + */ + eProsima_user_DllExport const eprosima::fastdds::statistics::QosPolicyCountSeq_s& policies() const; + + /*! + * @brief This function returns a reference to member policies + * @return Reference to member policies + */ + eProsima_user_DllExport eprosima::fastdds::statistics::QosPolicyCountSeq_s& policies(); + + + /*! + * @brief This function returns the maximum serialized size of an object + * depending on the buffer alignment. + * @param current_alignment Buffer alignment. + * @return Maximum serialized size. + */ + eProsima_user_DllExport static size_t getMaxCdrSerializedSize( + size_t current_alignment = 0); + + /*! + * @brief This function returns the serialized size of a data depending on the buffer alignment. + * @param data Data which is calculated its serialized size. + * @param current_alignment Buffer alignment. + * @return Serialized size. + */ + eProsima_user_DllExport static size_t getCdrSerializedSize( + const eprosima::fastdds::statistics::IncompatibleQoSStatus_s& data, + size_t current_alignment = 0); + + + + /*! + * @brief This function serializes an object using CDR serialization. + * @param cdr CDR serialization object. + */ + eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& cdr) const; + + /*! + * @brief This function deserializes an object using CDR serialization. + * @param cdr CDR serialization object. + */ + eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr); + + + + + /*! + * @brief This function tells you if the Key has been defined for this type + */ + eProsima_user_DllExport static bool isKeyDefined(); + + /*! + * @brief This function serializes the key members of an object using CDR serialization. + * @param cdr CDR serialization object. + */ + eProsima_user_DllExport void serializeKey( + eprosima::fastcdr::Cdr& cdr) const; + +private: + + uint32_t m_total_count; + uint32_t m_last_policy_id; + eprosima::fastdds::statistics::QosPolicyCountSeq_s m_policies; + +}; + + + +/*! + * @brief This class represents the structure LivelinessChangedStatus_s defined by the user in the IDL file. + * @ingroup monitorservice_types + */ +class LivelinessChangedStatus_s +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport LivelinessChangedStatus_s(); + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~LivelinessChangedStatus_s(); + + /*! + * @brief Copy constructor. + * @param x Reference to the object eprosima::fastdds::statistics::LivelinessChangedStatus_s that will be copied. + */ + eProsima_user_DllExport LivelinessChangedStatus_s( + const LivelinessChangedStatus_s& x); + + /*! + * @brief Move constructor. + * @param x Reference to the object eprosima::fastdds::statistics::LivelinessChangedStatus_s that will be copied. + */ + eProsima_user_DllExport LivelinessChangedStatus_s( + LivelinessChangedStatus_s&& x) noexcept; + + /*! + * @brief Copy assignment. + * @param x Reference to the object eprosima::fastdds::statistics::LivelinessChangedStatus_s that will be copied. + */ + eProsima_user_DllExport LivelinessChangedStatus_s& operator =( + const LivelinessChangedStatus_s& x); + + /*! + * @brief Move assignment. + * @param x Reference to the object eprosima::fastdds::statistics::LivelinessChangedStatus_s that will be copied. + */ + eProsima_user_DllExport LivelinessChangedStatus_s& operator =( + LivelinessChangedStatus_s&& x) noexcept; + + /*! + * @brief Comparison operator. + * @param x eprosima::fastdds::statistics::LivelinessChangedStatus_s object to compare. + */ + eProsima_user_DllExport bool operator ==( + const LivelinessChangedStatus_s& x) const; + + /*! + * @brief Comparison operator. + * @param x eprosima::fastdds::statistics::LivelinessChangedStatus_s object to compare. + */ + eProsima_user_DllExport bool operator !=( + const LivelinessChangedStatus_s& x) const; + + /*! + * @brief This function sets a value in member alive_count + * @param _alive_count New value for member alive_count + */ + eProsima_user_DllExport void alive_count( + uint32_t _alive_count); + + /*! + * @brief This function returns the value of member alive_count + * @return Value of member alive_count + */ + eProsima_user_DllExport uint32_t alive_count() const; + + /*! + * @brief This function returns a reference to member alive_count + * @return Reference to member alive_count + */ + eProsima_user_DllExport uint32_t& alive_count(); + + + /*! + * @brief This function sets a value in member not_alive_count + * @param _not_alive_count New value for member not_alive_count + */ + eProsima_user_DllExport void not_alive_count( + uint32_t _not_alive_count); + + /*! + * @brief This function returns the value of member not_alive_count + * @return Value of member not_alive_count + */ + eProsima_user_DllExport uint32_t not_alive_count() const; + + /*! + * @brief This function returns a reference to member not_alive_count + * @return Reference to member not_alive_count + */ + eProsima_user_DllExport uint32_t& not_alive_count(); + + + /*! + * @brief This function copies the value in member last_publication_handle + * @param _last_publication_handle New value to be copied in member last_publication_handle + */ + eProsima_user_DllExport void last_publication_handle( + const std::array& _last_publication_handle); + + /*! + * @brief This function moves the value in member last_publication_handle + * @param _last_publication_handle New value to be moved in member last_publication_handle + */ + eProsima_user_DllExport void last_publication_handle( + std::array&& _last_publication_handle); + + /*! + * @brief This function returns a constant reference to member last_publication_handle + * @return Constant reference to member last_publication_handle + */ + eProsima_user_DllExport const std::array& last_publication_handle() const; + + /*! + * @brief This function returns a reference to member last_publication_handle + * @return Reference to member last_publication_handle + */ + eProsima_user_DllExport std::array& last_publication_handle(); + + + /*! + * @brief This function returns the maximum serialized size of an object + * depending on the buffer alignment. + * @param current_alignment Buffer alignment. + * @return Maximum serialized size. + */ + eProsima_user_DllExport static size_t getMaxCdrSerializedSize( + size_t current_alignment = 0); + + /*! + * @brief This function returns the serialized size of a data depending on the buffer alignment. + * @param data Data which is calculated its serialized size. + * @param current_alignment Buffer alignment. + * @return Serialized size. + */ + eProsima_user_DllExport static size_t getCdrSerializedSize( + const eprosima::fastdds::statistics::LivelinessChangedStatus_s& data, + size_t current_alignment = 0); + + + + /*! + * @brief This function serializes an object using CDR serialization. + * @param cdr CDR serialization object. + */ + eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& cdr) const; + + /*! + * @brief This function deserializes an object using CDR serialization. + * @param cdr CDR serialization object. + */ + eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr); + + + + + /*! + * @brief This function tells you if the Key has been defined for this type + */ + eProsima_user_DllExport static bool isKeyDefined(); + + /*! + * @brief This function serializes the key members of an object using CDR serialization. + * @param cdr CDR serialization object. + */ + eProsima_user_DllExport void serializeKey( + eprosima::fastcdr::Cdr& cdr) const; + +private: + + uint32_t m_alive_count; + uint32_t m_not_alive_count; + std::array m_last_publication_handle; + +}; + + + +/*! + * @brief This class represents the structure DeadlineMissedStatus_s defined by the user in the IDL file. + * @ingroup monitorservice_types + */ +class DeadlineMissedStatus_s +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport DeadlineMissedStatus_s(); + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~DeadlineMissedStatus_s(); + + /*! + * @brief Copy constructor. + * @param x Reference to the object eprosima::fastdds::statistics::DeadlineMissedStatus_s that will be copied. + */ + eProsima_user_DllExport DeadlineMissedStatus_s( + const DeadlineMissedStatus_s& x); + + /*! + * @brief Move constructor. + * @param x Reference to the object eprosima::fastdds::statistics::DeadlineMissedStatus_s that will be copied. + */ + eProsima_user_DllExport DeadlineMissedStatus_s( + DeadlineMissedStatus_s&& x) noexcept; + + /*! + * @brief Copy assignment. + * @param x Reference to the object eprosima::fastdds::statistics::DeadlineMissedStatus_s that will be copied. + */ + eProsima_user_DllExport DeadlineMissedStatus_s& operator =( + const DeadlineMissedStatus_s& x); + + /*! + * @brief Move assignment. + * @param x Reference to the object eprosima::fastdds::statistics::DeadlineMissedStatus_s that will be copied. + */ + eProsima_user_DllExport DeadlineMissedStatus_s& operator =( + DeadlineMissedStatus_s&& x) noexcept; + + /*! + * @brief Comparison operator. + * @param x eprosima::fastdds::statistics::DeadlineMissedStatus_s object to compare. + */ + eProsima_user_DllExport bool operator ==( + const DeadlineMissedStatus_s& x) const; + + /*! + * @brief Comparison operator. + * @param x eprosima::fastdds::statistics::DeadlineMissedStatus_s object to compare. + */ + eProsima_user_DllExport bool operator !=( + const DeadlineMissedStatus_s& x) const; + + /*! + * @brief This function sets a value in member total_count + * @param _total_count New value for member total_count + */ + eProsima_user_DllExport void total_count( + uint32_t _total_count); + + /*! + * @brief This function returns the value of member total_count + * @return Value of member total_count + */ + eProsima_user_DllExport uint32_t total_count() const; + + /*! + * @brief This function returns a reference to member total_count + * @return Reference to member total_count + */ + eProsima_user_DllExport uint32_t& total_count(); + + + /*! + * @brief This function copies the value in member last_instance_handle + * @param _last_instance_handle New value to be copied in member last_instance_handle + */ + eProsima_user_DllExport void last_instance_handle( + const std::array& _last_instance_handle); + + /*! + * @brief This function moves the value in member last_instance_handle + * @param _last_instance_handle New value to be moved in member last_instance_handle + */ + eProsima_user_DllExport void last_instance_handle( + std::array&& _last_instance_handle); + + /*! + * @brief This function returns a constant reference to member last_instance_handle + * @return Constant reference to member last_instance_handle + */ + eProsima_user_DllExport const std::array& last_instance_handle() const; + + /*! + * @brief This function returns a reference to member last_instance_handle + * @return Reference to member last_instance_handle + */ + eProsima_user_DllExport std::array& last_instance_handle(); + + + /*! + * @brief This function returns the maximum serialized size of an object + * depending on the buffer alignment. + * @param current_alignment Buffer alignment. + * @return Maximum serialized size. + */ + eProsima_user_DllExport static size_t getMaxCdrSerializedSize( + size_t current_alignment = 0); + + /*! + * @brief This function returns the serialized size of a data depending on the buffer alignment. + * @param data Data which is calculated its serialized size. + * @param current_alignment Buffer alignment. + * @return Serialized size. + */ + eProsima_user_DllExport static size_t getCdrSerializedSize( + const eprosima::fastdds::statistics::DeadlineMissedStatus_s& data, + size_t current_alignment = 0); + + + + /*! + * @brief This function serializes an object using CDR serialization. + * @param cdr CDR serialization object. + */ + eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& cdr) const; + + /*! + * @brief This function deserializes an object using CDR serialization. + * @param cdr CDR serialization object. + */ + eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr); + + + + + /*! + * @brief This function tells you if the Key has been defined for this type + */ + eProsima_user_DllExport static bool isKeyDefined(); + + /*! + * @brief This function serializes the key members of an object using CDR serialization. + * @param cdr CDR serialization object. + */ + eProsima_user_DllExport void serializeKey( + eprosima::fastcdr::Cdr& cdr) const; + +private: + + uint32_t m_total_count; + std::array m_last_instance_handle; + +}; + +typedef eprosima::fastdds::statistics::BaseStatus_s LivelinessLostStatus_s; + +typedef eprosima::fastdds::statistics::BaseStatus_s InconsistentTopicStatus_s; + +typedef eprosima::fastdds::statistics::BaseStatus_s SampleLostStatus_s; + +/*! + * @brief This class represents the enumeration StatusKind defined by the user in the IDL file. + * @ingroup monitorservice_types + */ +enum StatusKind : uint32_t +{ + PROXY, + CONNECTION_LIST, + INCOMPATIBLE_QOS, + INCONSISTENT_TOPIC, + LIVELINESS_LOST, + LIVELINESS_CHANGED, + DEADLINE_MISSED, + SAMPLE_LOST, + STATUSES_SIZE +}; + + +/*! + * @brief This class represents the union MonitorServiceData defined by the user in the IDL file. + * @ingroup monitorservice_types + */ +class MonitorServiceData +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport MonitorServiceData(); + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~MonitorServiceData(); + + /*! + * @brief Copy constructor. + * @param x Reference to the object eprosima::fastdds::statistics::MonitorServiceData that will be copied. + */ + eProsima_user_DllExport MonitorServiceData( + const MonitorServiceData& x); + + /*! + * @brief Move constructor. + * @param x Reference to the object eprosima::fastdds::statistics::MonitorServiceData that will be copied. + */ + eProsima_user_DllExport MonitorServiceData( + MonitorServiceData&& x) noexcept; + + /*! + * @brief Copy assignment. + * @param x Reference to the object eprosima::fastdds::statistics::MonitorServiceData that will be copied. + */ + eProsima_user_DllExport MonitorServiceData& operator =( + const MonitorServiceData& x); + + /*! + * @brief Move assignment. + * @param x Reference to the object eprosima::fastdds::statistics::MonitorServiceData that will be copied. + */ + eProsima_user_DllExport MonitorServiceData& operator =( + MonitorServiceData&& x) noexcept; + + /*! + * @brief Comparison operator. + * @param x eprosima::fastdds::statistics::MonitorServiceData object to compare. + */ + eProsima_user_DllExport bool operator ==( + const MonitorServiceData& x) const; + + /*! + * @brief Comparison operator. + * @param x eprosima::fastdds::statistics::MonitorServiceData object to compare. + */ + eProsima_user_DllExport bool operator !=( + const MonitorServiceData& x) const; + + /*! + * @brief This function sets the discriminator value. + * @param __d New value for the discriminator. + * @exception eprosima::fastcdr::BadParamException This exception is thrown if the new value doesn't correspond to the selected union member. + */ + eProsima_user_DllExport void _d( + eprosima::fastdds::statistics::StatusKind __d); + + /*! + * @brief This function returns the value of the discriminator. + * @return Value of the discriminator + */ + eProsima_user_DllExport eprosima::fastdds::statistics::StatusKind _d() const; + + /*! + * @brief This function returns a reference to the discriminator. + * @return Reference to the discriminator. + */ + eProsima_user_DllExport eprosima::fastdds::statistics::StatusKind& _d(); + + /*! + * @brief This function copies the value in member entity_proxy + * @param _entity_proxy New value to be copied in member entity_proxy + */ + eProsima_user_DllExport void entity_proxy( + const std::vector& _entity_proxy); + + /*! + * @brief This function moves the value in member entity_proxy + * @param _entity_proxy New value to be moved in member entity_proxy + */ + eProsima_user_DllExport void entity_proxy( + std::vector&& _entity_proxy); + + /*! + * @brief This function returns a constant reference to member entity_proxy + * @return Constant reference to member entity_proxy + * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. + */ + eProsima_user_DllExport const std::vector& entity_proxy() const; + + /*! + * @brief This function returns a reference to member entity_proxy + * @return Reference to member entity_proxy + * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. + */ + eProsima_user_DllExport std::vector& entity_proxy(); + + + /*! + * @brief This function copies the value in member connection_list + * @param _connection_list New value to be copied in member connection_list + */ + eProsima_user_DllExport void connection_list( + const std::vector& _connection_list); + + /*! + * @brief This function moves the value in member connection_list + * @param _connection_list New value to be moved in member connection_list + */ + eProsima_user_DllExport void connection_list( + std::vector&& _connection_list); + + /*! + * @brief This function returns a constant reference to member connection_list + * @return Constant reference to member connection_list + * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. + */ + eProsima_user_DllExport const std::vector& connection_list() const; + + /*! + * @brief This function returns a reference to member connection_list + * @return Reference to member connection_list + * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. + */ + eProsima_user_DllExport std::vector& connection_list(); + + + /*! + * @brief This function copies the value in member incompatible_qos_status + * @param _incompatible_qos_status New value to be copied in member incompatible_qos_status + */ + eProsima_user_DllExport void incompatible_qos_status( + const eprosima::fastdds::statistics::IncompatibleQoSStatus_s& _incompatible_qos_status); + + /*! + * @brief This function moves the value in member incompatible_qos_status + * @param _incompatible_qos_status New value to be moved in member incompatible_qos_status + */ + eProsima_user_DllExport void incompatible_qos_status( + eprosima::fastdds::statistics::IncompatibleQoSStatus_s&& _incompatible_qos_status); + + /*! + * @brief This function returns a constant reference to member incompatible_qos_status + * @return Constant reference to member incompatible_qos_status + * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. + */ + eProsima_user_DllExport const eprosima::fastdds::statistics::IncompatibleQoSStatus_s& incompatible_qos_status() + const; + + /*! + * @brief This function returns a reference to member incompatible_qos_status + * @return Reference to member incompatible_qos_status + * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. + */ + eProsima_user_DllExport eprosima::fastdds::statistics::IncompatibleQoSStatus_s& incompatible_qos_status(); + + + /*! + * @brief This function copies the value in member inconsistent_topic_status + * @param _inconsistent_topic_status New value to be copied in member inconsistent_topic_status + */ + eProsima_user_DllExport void inconsistent_topic_status( + const eprosima::fastdds::statistics::InconsistentTopicStatus_s& _inconsistent_topic_status); + + /*! + * @brief This function moves the value in member inconsistent_topic_status + * @param _inconsistent_topic_status New value to be moved in member inconsistent_topic_status + */ + eProsima_user_DllExport void inconsistent_topic_status( + eprosima::fastdds::statistics::InconsistentTopicStatus_s&& _inconsistent_topic_status); + + /*! + * @brief This function returns a constant reference to member inconsistent_topic_status + * @return Constant reference to member inconsistent_topic_status + * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. + */ + eProsima_user_DllExport const eprosima::fastdds::statistics::InconsistentTopicStatus_s& inconsistent_topic_status() + const; + + /*! + * @brief This function returns a reference to member inconsistent_topic_status + * @return Reference to member inconsistent_topic_status + * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. + */ + eProsima_user_DllExport eprosima::fastdds::statistics::InconsistentTopicStatus_s& inconsistent_topic_status(); + + + /*! + * @brief This function copies the value in member liveliness_lost_status + * @param _liveliness_lost_status New value to be copied in member liveliness_lost_status + */ + eProsima_user_DllExport void liveliness_lost_status( + const eprosima::fastdds::statistics::LivelinessLostStatus_s& _liveliness_lost_status); + + /*! + * @brief This function moves the value in member liveliness_lost_status + * @param _liveliness_lost_status New value to be moved in member liveliness_lost_status + */ + eProsima_user_DllExport void liveliness_lost_status( + eprosima::fastdds::statistics::LivelinessLostStatus_s&& _liveliness_lost_status); + + /*! + * @brief This function returns a constant reference to member liveliness_lost_status + * @return Constant reference to member liveliness_lost_status + * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. + */ + eProsima_user_DllExport const eprosima::fastdds::statistics::LivelinessLostStatus_s& liveliness_lost_status() const; + + /*! + * @brief This function returns a reference to member liveliness_lost_status + * @return Reference to member liveliness_lost_status + * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. + */ + eProsima_user_DllExport eprosima::fastdds::statistics::LivelinessLostStatus_s& liveliness_lost_status(); + + + /*! + * @brief This function copies the value in member liveliness_changed_status + * @param _liveliness_changed_status New value to be copied in member liveliness_changed_status + */ + eProsima_user_DllExport void liveliness_changed_status( + const eprosima::fastdds::statistics::LivelinessChangedStatus_s& _liveliness_changed_status); + + /*! + * @brief This function moves the value in member liveliness_changed_status + * @param _liveliness_changed_status New value to be moved in member liveliness_changed_status + */ + eProsima_user_DllExport void liveliness_changed_status( + eprosima::fastdds::statistics::LivelinessChangedStatus_s&& _liveliness_changed_status); + + /*! + * @brief This function returns a constant reference to member liveliness_changed_status + * @return Constant reference to member liveliness_changed_status + * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. + */ + eProsima_user_DllExport const eprosima::fastdds::statistics::LivelinessChangedStatus_s& liveliness_changed_status() + const; + + /*! + * @brief This function returns a reference to member liveliness_changed_status + * @return Reference to member liveliness_changed_status + * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. + */ + eProsima_user_DllExport eprosima::fastdds::statistics::LivelinessChangedStatus_s& liveliness_changed_status(); + + + /*! + * @brief This function copies the value in member deadline_missed_status + * @param _deadline_missed_status New value to be copied in member deadline_missed_status + */ + eProsima_user_DllExport void deadline_missed_status( + const eprosima::fastdds::statistics::DeadlineMissedStatus_s& _deadline_missed_status); + + /*! + * @brief This function moves the value in member deadline_missed_status + * @param _deadline_missed_status New value to be moved in member deadline_missed_status + */ + eProsima_user_DllExport void deadline_missed_status( + eprosima::fastdds::statistics::DeadlineMissedStatus_s&& _deadline_missed_status); + + /*! + * @brief This function returns a constant reference to member deadline_missed_status + * @return Constant reference to member deadline_missed_status + * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. + */ + eProsima_user_DllExport const eprosima::fastdds::statistics::DeadlineMissedStatus_s& deadline_missed_status() const; + + /*! + * @brief This function returns a reference to member deadline_missed_status + * @return Reference to member deadline_missed_status + * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. + */ + eProsima_user_DllExport eprosima::fastdds::statistics::DeadlineMissedStatus_s& deadline_missed_status(); + + + /*! + * @brief This function copies the value in member sample_lost_status + * @param _sample_lost_status New value to be copied in member sample_lost_status + */ + eProsima_user_DllExport void sample_lost_status( + const eprosima::fastdds::statistics::SampleLostStatus_s& _sample_lost_status); + + /*! + * @brief This function moves the value in member sample_lost_status + * @param _sample_lost_status New value to be moved in member sample_lost_status + */ + eProsima_user_DllExport void sample_lost_status( + eprosima::fastdds::statistics::SampleLostStatus_s&& _sample_lost_status); + + /*! + * @brief This function returns a constant reference to member sample_lost_status + * @return Constant reference to member sample_lost_status + * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. + */ + eProsima_user_DllExport const eprosima::fastdds::statistics::SampleLostStatus_s& sample_lost_status() const; + + /*! + * @brief This function returns a reference to member sample_lost_status + * @return Reference to member sample_lost_status + * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. + */ + eProsima_user_DllExport eprosima::fastdds::statistics::SampleLostStatus_s& sample_lost_status(); + + + /*! + * @brief This function sets a value in member statuses_size + * @param _statuses_size New value for member statuses_size + */ + eProsima_user_DllExport void statuses_size( + uint8_t _statuses_size); + + /*! + * @brief This function returns the value of member statuses_size + * @return Value of member statuses_size + * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. + */ + eProsima_user_DllExport uint8_t statuses_size() const; + + /*! + * @brief This function returns a reference to member statuses_size + * @return Reference to member statuses_size + * @exception eprosima::fastcdr::BadParamException This exception is thrown if the requested union member is not the current selection. + */ + eProsima_user_DllExport uint8_t& statuses_size(); + + + /*! + * @brief This function returns the serialized size of a data depending on the buffer alignment. + * @param data Data which is calculated its serialized size. + * @param current_alignment Buffer alignment. + * @return Serialized size. + */ + eProsima_user_DllExport static size_t getCdrSerializedSize( + const eprosima::fastdds::statistics::MonitorServiceData& data, + size_t current_alignment = 0); + + + + /*! + * @brief This function serializes an object using CDR serialization. + * @param cdr CDR serialization object. + */ + eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& cdr) const; + + /*! + * @brief This function deserializes an object using CDR serialization. + * @param cdr CDR serialization object. + */ + eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr); + +private: + + eprosima::fastdds::statistics::StatusKind m__d; + + std::vector m_entity_proxy; + std::vector m_connection_list; + eprosima::fastdds::statistics::IncompatibleQoSStatus_s m_incompatible_qos_status; + eprosima::fastdds::statistics::InconsistentTopicStatus_s m_inconsistent_topic_status; + eprosima::fastdds::statistics::LivelinessLostStatus_s m_liveliness_lost_status; + eprosima::fastdds::statistics::LivelinessChangedStatus_s m_liveliness_changed_status; + eprosima::fastdds::statistics::DeadlineMissedStatus_s m_deadline_missed_status; + eprosima::fastdds::statistics::SampleLostStatus_s m_sample_lost_status; + uint8_t m_statuses_size; +}; + + + +/*! + * @brief This class represents the structure MonitorServiceStatusData defined by the user in the IDL file. + * @ingroup monitorservice_types + */ +class MonitorServiceStatusData +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport MonitorServiceStatusData(); + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~MonitorServiceStatusData(); + + /*! + * @brief Copy constructor. + * @param x Reference to the object eprosima::fastdds::statistics::MonitorServiceStatusData that will be copied. + */ + eProsima_user_DllExport MonitorServiceStatusData( + const MonitorServiceStatusData& x); + + /*! + * @brief Move constructor. + * @param x Reference to the object eprosima::fastdds::statistics::MonitorServiceStatusData that will be copied. + */ + eProsima_user_DllExport MonitorServiceStatusData( + MonitorServiceStatusData&& x) noexcept; + + /*! + * @brief Copy assignment. + * @param x Reference to the object eprosima::fastdds::statistics::MonitorServiceStatusData that will be copied. + */ + eProsima_user_DllExport MonitorServiceStatusData& operator =( + const MonitorServiceStatusData& x); + + /*! + * @brief Move assignment. + * @param x Reference to the object eprosima::fastdds::statistics::MonitorServiceStatusData that will be copied. + */ + eProsima_user_DllExport MonitorServiceStatusData& operator =( + MonitorServiceStatusData&& x) noexcept; + + /*! + * @brief Comparison operator. + * @param x eprosima::fastdds::statistics::MonitorServiceStatusData object to compare. + */ + eProsima_user_DllExport bool operator ==( + const MonitorServiceStatusData& x) const; + + /*! + * @brief Comparison operator. + * @param x eprosima::fastdds::statistics::MonitorServiceStatusData object to compare. + */ + eProsima_user_DllExport bool operator !=( + const MonitorServiceStatusData& x) const; + + /*! + * @brief This function copies the value in member local_entity + * @param _local_entity New value to be copied in member local_entity + */ + eProsima_user_DllExport void local_entity( + const eprosima::fastdds::statistics::detail::GUID_s& _local_entity); + + /*! + * @brief This function moves the value in member local_entity + * @param _local_entity New value to be moved in member local_entity + */ + eProsima_user_DllExport void local_entity( + eprosima::fastdds::statistics::detail::GUID_s&& _local_entity); + + /*! + * @brief This function returns a constant reference to member local_entity + * @return Constant reference to member local_entity + */ + eProsima_user_DllExport const eprosima::fastdds::statistics::detail::GUID_s& local_entity() const; + + /*! + * @brief This function returns a reference to member local_entity + * @return Reference to member local_entity + */ + eProsima_user_DllExport eprosima::fastdds::statistics::detail::GUID_s& local_entity(); + + + /*! + * @brief This function sets a value in member status_kind + * @param _status_kind New value for member status_kind + */ + eProsima_user_DllExport void status_kind( + eprosima::fastdds::statistics::StatusKind _status_kind); + + /*! + * @brief This function returns the value of member status_kind + * @return Value of member status_kind + */ + eProsima_user_DllExport eprosima::fastdds::statistics::StatusKind status_kind() const; + + /*! + * @brief This function returns a reference to member status_kind + * @return Reference to member status_kind + */ + eProsima_user_DllExport eprosima::fastdds::statistics::StatusKind& status_kind(); + + + /*! + * @brief This function copies the value in member value + * @param _value New value to be copied in member value + */ + eProsima_user_DllExport void value( + const eprosima::fastdds::statistics::MonitorServiceData& _value); + + /*! + * @brief This function moves the value in member value + * @param _value New value to be moved in member value + */ + eProsima_user_DllExport void value( + eprosima::fastdds::statistics::MonitorServiceData&& _value); + + /*! + * @brief This function returns a constant reference to member value + * @return Constant reference to member value + */ + eProsima_user_DllExport const eprosima::fastdds::statistics::MonitorServiceData& value() const; + + /*! + * @brief This function returns a reference to member value + * @return Reference to member value + */ + eProsima_user_DllExport eprosima::fastdds::statistics::MonitorServiceData& value(); + + + /*! + * @brief This function returns the maximum serialized size of an object + * depending on the buffer alignment. + * @param current_alignment Buffer alignment. + * @return Maximum serialized size. + */ + eProsima_user_DllExport static size_t getMaxCdrSerializedSize( + size_t current_alignment = 0); + + /*! + * @brief This function returns the serialized size of a data depending on the buffer alignment. + * @param data Data which is calculated its serialized size. + * @param current_alignment Buffer alignment. + * @return Serialized size. + */ + eProsima_user_DllExport static size_t getCdrSerializedSize( + const eprosima::fastdds::statistics::MonitorServiceStatusData& data, + size_t current_alignment = 0); + + + + /*! + * @brief This function serializes an object using CDR serialization. + * @param cdr CDR serialization object. + */ + eProsima_user_DllExport void serialize( + eprosima::fastcdr::Cdr& cdr) const; + + /*! + * @brief This function deserializes an object using CDR serialization. + * @param cdr CDR serialization object. + */ + eProsima_user_DllExport void deserialize( + eprosima::fastcdr::Cdr& cdr); + + + + + /*! + * @brief This function tells you if the Key has been defined for this type + */ + eProsima_user_DllExport static bool isKeyDefined(); + + /*! + * @brief This function serializes the key members of an object using CDR serialization. + * @param cdr CDR serialization object. + */ + eProsima_user_DllExport void serializeKey( + eprosima::fastcdr::Cdr& cdr) const; + +private: + + eprosima::fastdds::statistics::detail::GUID_s m_local_entity; + eprosima::fastdds::statistics::StatusKind m_status_kind; + eprosima::fastdds::statistics::MonitorServiceData m_value; + +}; + +} // namespace statistics +} // namespace fastdds } // namespace eprosima #endif // _FAST_DDS_GENERATED_EPROSIMA_FASTDDS_STATISTICS_MONITORSERVICE_TYPES_H_ diff --git a/src/cpp/statistics/types/typesv1.h b/src/cpp/statistics/types/typesv1.h index 4790ebcb43c..ab41589a322 100644 --- a/src/cpp/statistics/types/typesv1.h +++ b/src/cpp/statistics/types/typesv1.h @@ -27,8 +27,6 @@ #define _FAST_DDS_GENERATED_EPROSIMA_FASTDDS_STATISTICS_TYPES_H_ -#include - #include #include #include @@ -37,6 +35,8 @@ #include #include +#include + #if defined(_WIN32) #if defined(EPROSIMA_USER_DLL_EXPORT) #define eProsima_user_DllExport __declspec( dllexport ) @@ -70,3020 +70,3002 @@ class Cdr; 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 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_ diff --git a/test/blackbox/types/Data1mbv1.h b/test/blackbox/types/Data1mbv1.h index ca5ad1566e9..2f6a28856dd 100644 --- a/test/blackbox/types/Data1mbv1.h +++ b/test/blackbox/types/Data1mbv1.h @@ -26,9 +26,6 @@ #ifndef _FAST_DDS_GENERATED_DATA1MB_H_ #define _FAST_DDS_GENERATED_DATA1MB_H_ - -#include - #include #include #include @@ -37,6 +34,8 @@ #include #include +#include + #if defined(_WIN32) #if defined(EPROSIMA_USER_DLL_EXPORT) #define eProsima_user_DllExport __declspec( dllexport ) @@ -161,11 +160,11 @@ class Data1mb /*! - * @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. - */ + * @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); @@ -199,18 +198,17 @@ class Data1mb /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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::vector m_data; diff --git a/test/blackbox/types/Data64kbv1.h b/test/blackbox/types/Data64kbv1.h index 773c0b07328..42a739b7af9 100644 --- a/test/blackbox/types/Data64kbv1.h +++ b/test/blackbox/types/Data64kbv1.h @@ -26,9 +26,6 @@ #ifndef _FAST_DDS_GENERATED_DATA64KB_H_ #define _FAST_DDS_GENERATED_DATA64KB_H_ - -#include - #include #include #include @@ -37,6 +34,8 @@ #include #include +#include + #if defined(_WIN32) #if defined(EPROSIMA_USER_DLL_EXPORT) #define eProsima_user_DllExport __declspec( dllexport ) @@ -161,11 +160,11 @@ class Data64kb /*! - * @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. - */ + * @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); @@ -199,18 +198,17 @@ class Data64kb /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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::vector m_data; diff --git a/test/blackbox/types/FixedSizedv1.h b/test/blackbox/types/FixedSizedv1.h index 26a4e500d0f..fa36159ae7c 100644 --- a/test/blackbox/types/FixedSizedv1.h +++ b/test/blackbox/types/FixedSizedv1.h @@ -27,7 +27,7 @@ #define _FAST_DDS_GENERATED_FIXEDSIZED_H_ -#include +#include #include #include @@ -152,11 +152,11 @@ class FixedSized /*! - * @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. - */ + * @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); @@ -190,18 +190,17 @@ class FixedSized /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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: uint16_t m_index; diff --git a/test/blackbox/types/HelloWorldv1.cxx b/test/blackbox/types/HelloWorldv1.cxx index c22a6977683..b5487328489 100644 --- a/test/blackbox/types/HelloWorldv1.cxx +++ b/test/blackbox/types/HelloWorldv1.cxx @@ -255,7 +255,7 @@ uint16_t& HelloWorld::index() * @param _message New value to be copied in member message */ void HelloWorld::message( - const eprosima::fastrtps::fixed_string<128>& _message) + const eprosima::fastcdr::fixed_string<128>& _message) { m_message = _message; } @@ -265,7 +265,7 @@ void HelloWorld::message( * @param _message New value to be moved in member message */ void HelloWorld::message( - eprosima::fastrtps::fixed_string<128>&& _message) + eprosima::fastcdr::fixed_string<128>&& _message) { m_message = std::move(_message); } @@ -274,7 +274,7 @@ void HelloWorld::message( * @brief This function returns a constant reference to member message * @return Constant reference to member message */ -const eprosima::fastrtps::fixed_string<128>& HelloWorld::message() const +const eprosima::fastcdr::fixed_string<128>& HelloWorld::message() const { return m_message; } @@ -283,7 +283,7 @@ const eprosima::fastrtps::fixed_string<128>& HelloWorld::message() const * @brief This function returns a reference to member message * @return Reference to member message */ -eprosima::fastrtps::fixed_string<128>& HelloWorld::message() +eprosima::fastcdr::fixed_string<128>& HelloWorld::message() { return m_message; } diff --git a/test/blackbox/types/HelloWorldv1.h b/test/blackbox/types/HelloWorldv1.h index aac19514259..85939a78e7e 100644 --- a/test/blackbox/types/HelloWorldv1.h +++ b/test/blackbox/types/HelloWorldv1.h @@ -27,7 +27,7 @@ #define _FAST_DDS_GENERATED_HELLOWORLD_H_ -#include +#include #include #include @@ -156,34 +156,34 @@ class HelloWorld * @param _message New value to be copied in member message */ eProsima_user_DllExport void message( - const eprosima::fastrtps::fixed_string<128>& _message); + const eprosima::fastcdr::fixed_string<128>& _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( - eprosima::fastrtps::fixed_string<128>&& _message); + eprosima::fastcdr::fixed_string<128>&& _message); /*! * @brief This function returns a constant reference to member message * @return Constant reference to member message */ - eProsima_user_DllExport const eprosima::fastrtps::fixed_string<128>& message() const; + eProsima_user_DllExport const eprosima::fastcdr::fixed_string<128>& message() const; /*! * @brief This function returns a reference to member message * @return Reference to member message */ - eProsima_user_DllExport eprosima::fastrtps::fixed_string<128>& message(); + eProsima_user_DllExport eprosima::fastcdr::fixed_string<128>& 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. - */ + * @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); @@ -217,22 +217,21 @@ class HelloWorld /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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: uint16_t m_index; - eprosima::fastrtps::fixed_string<128> m_message; + eprosima::fastcdr::fixed_string<128> m_message; }; diff --git a/test/blackbox/types/KeyedData1mbv1.h b/test/blackbox/types/KeyedData1mbv1.h index 402a33291af..84efc422ae3 100644 --- a/test/blackbox/types/KeyedData1mbv1.h +++ b/test/blackbox/types/KeyedData1mbv1.h @@ -27,7 +27,7 @@ #define _FAST_DDS_GENERATED_KEYEDDATA1MB_H_ -#include +#include #include #include @@ -181,11 +181,11 @@ class KeyedData1mb /*! - * @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. - */ + * @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); @@ -219,18 +219,17 @@ class KeyedData1mb /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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: uint16_t m_key; diff --git a/test/blackbox/types/KeyedHelloWorldv1.cxx b/test/blackbox/types/KeyedHelloWorldv1.cxx index 3391af9cd87..78ba486bfc5 100644 --- a/test/blackbox/types/KeyedHelloWorldv1.cxx +++ b/test/blackbox/types/KeyedHelloWorldv1.cxx @@ -239,11 +239,11 @@ void KeyedHelloWorld::serializeKey( eprosima::fastcdr::Cdr& scdr) const { (void) scdr; - + scdr << m_key; - - - + + + } /*! @@ -309,7 +309,7 @@ uint16_t& KeyedHelloWorld::index() * @param _message New value to be copied in member message */ void KeyedHelloWorld::message( - const eprosima::fastrtps::fixed_string<128>& _message) + const eprosima::fastcdr::fixed_string<128>& _message) { m_message = _message; } @@ -319,7 +319,7 @@ void KeyedHelloWorld::message( * @param _message New value to be moved in member message */ void KeyedHelloWorld::message( - eprosima::fastrtps::fixed_string<128>&& _message) + eprosima::fastcdr::fixed_string<128>&& _message) { m_message = std::move(_message); } @@ -328,7 +328,7 @@ void KeyedHelloWorld::message( * @brief This function returns a constant reference to member message * @return Constant reference to member message */ -const eprosima::fastrtps::fixed_string<128>& KeyedHelloWorld::message() const +const eprosima::fastcdr::fixed_string<128>& KeyedHelloWorld::message() const { return m_message; } @@ -337,7 +337,7 @@ const eprosima::fastrtps::fixed_string<128>& KeyedHelloWorld::message() const * @brief This function returns a reference to member message * @return Reference to member message */ -eprosima::fastrtps::fixed_string<128>& KeyedHelloWorld::message() +eprosima::fastcdr::fixed_string<128>& KeyedHelloWorld::message() { return m_message; } diff --git a/test/blackbox/types/KeyedHelloWorldv1.h b/test/blackbox/types/KeyedHelloWorldv1.h index 6c236fe258f..c4de8fbe0ed 100644 --- a/test/blackbox/types/KeyedHelloWorldv1.h +++ b/test/blackbox/types/KeyedHelloWorldv1.h @@ -27,7 +27,7 @@ #define _FAST_DDS_GENERATED_KEYEDHELLOWORLD_H_ -#include +#include #include #include @@ -176,34 +176,34 @@ class KeyedHelloWorld * @param _message New value to be copied in member message */ eProsima_user_DllExport void message( - const eprosima::fastrtps::fixed_string<128>& _message); + const eprosima::fastcdr::fixed_string<128>& _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( - eprosima::fastrtps::fixed_string<128>&& _message); + eprosima::fastcdr::fixed_string<128>&& _message); /*! * @brief This function returns a constant reference to member message * @return Constant reference to member message */ - eProsima_user_DllExport const eprosima::fastrtps::fixed_string<128>& message() const; + eProsima_user_DllExport const eprosima::fastcdr::fixed_string<128>& message() const; /*! * @brief This function returns a reference to member message * @return Reference to member message */ - eProsima_user_DllExport eprosima::fastrtps::fixed_string<128>& message(); + eProsima_user_DllExport eprosima::fastcdr::fixed_string<128>& 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. - */ + * @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); @@ -237,23 +237,22 @@ class KeyedHelloWorld /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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: uint16_t m_key; uint16_t m_index; - eprosima::fastrtps::fixed_string<128> m_message; + eprosima::fastcdr::fixed_string<128> m_message; }; diff --git a/test/blackbox/types/StringTestv1.cxx b/test/blackbox/types/StringTestv1.cxx index b5c46f9ae1c..7a569fa8445 100644 --- a/test/blackbox/types/StringTestv1.cxx +++ b/test/blackbox/types/StringTestv1.cxx @@ -198,7 +198,7 @@ void StringTest::serializeKey( * @param _message New value to be copied in member message */ void StringTest::message( - const eprosima::fastrtps::fixed_string<10000>& _message) + const eprosima::fastcdr::fixed_string<10000>& _message) { m_message = _message; } @@ -208,7 +208,7 @@ void StringTest::message( * @param _message New value to be moved in member message */ void StringTest::message( - eprosima::fastrtps::fixed_string<10000>&& _message) + eprosima::fastcdr::fixed_string<10000>&& _message) { m_message = std::move(_message); } @@ -217,7 +217,7 @@ void StringTest::message( * @brief This function returns a constant reference to member message * @return Constant reference to member message */ -const eprosima::fastrtps::fixed_string<10000>& StringTest::message() const +const eprosima::fastcdr::fixed_string<10000>& StringTest::message() const { return m_message; } @@ -226,7 +226,7 @@ const eprosima::fastrtps::fixed_string<10000>& StringTest::message() const * @brief This function returns a reference to member message * @return Reference to member message */ -eprosima::fastrtps::fixed_string<10000>& StringTest::message() +eprosima::fastcdr::fixed_string<10000>& StringTest::message() { return m_message; } diff --git a/test/blackbox/types/StringTestv1.h b/test/blackbox/types/StringTestv1.h index 6d7121196e7..0a036a76bc4 100644 --- a/test/blackbox/types/StringTestv1.h +++ b/test/blackbox/types/StringTestv1.h @@ -27,8 +27,6 @@ #define _FAST_DDS_GENERATED_STRINGTEST_H_ -#include - #include #include #include @@ -37,6 +35,8 @@ #include #include +#include + #if defined(_WIN32) #if defined(EPROSIMA_USER_DLL_EXPORT) #define eProsima_user_DllExport __declspec( dllexport ) @@ -136,34 +136,34 @@ class StringTest * @param _message New value to be copied in member message */ eProsima_user_DllExport void message( - const eprosima::fastrtps::fixed_string<10000>& _message); + const eprosima::fastcdr::fixed_string<10000>& _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( - eprosima::fastrtps::fixed_string<10000>&& _message); + eprosima::fastcdr::fixed_string<10000>&& _message); /*! * @brief This function returns a constant reference to member message * @return Constant reference to member message */ - eProsima_user_DllExport const eprosima::fastrtps::fixed_string<10000>& message() const; + eProsima_user_DllExport const eprosima::fastcdr::fixed_string<10000>& message() const; /*! * @brief This function returns a reference to member message * @return Reference to member message */ - eProsima_user_DllExport eprosima::fastrtps::fixed_string<10000>& message(); + eProsima_user_DllExport eprosima::fastcdr::fixed_string<10000>& 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. - */ + * @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); @@ -197,21 +197,20 @@ class StringTest /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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::fastrtps::fixed_string<10000> m_message; + eprosima::fastcdr::fixed_string<10000> m_message; }; diff --git a/test/blackbox/types/TestIncludeRegression3361v1.h b/test/blackbox/types/TestIncludeRegression3361v1.h index 76a77158c44..1a0e30a4d81 100644 --- a/test/blackbox/types/TestIncludeRegression3361v1.h +++ b/test/blackbox/types/TestIncludeRegression3361v1.h @@ -26,9 +26,6 @@ #ifndef _FAST_DDS_GENERATED_TESTINCLUDEREGRESSION3361_H_ #define _FAST_DDS_GENERATED_TESTINCLUDEREGRESSION3361_H_ - -#include - #include #include #include @@ -37,6 +34,8 @@ #include #include +#include + #if defined(_WIN32) #if defined(EPROSIMA_USER_DLL_EXPORT) #define eProsima_user_DllExport __declspec( dllexport ) @@ -70,7 +69,7 @@ class Cdr; namespace TestModule { - typedef std::string MACHINEID; +typedef std::string MACHINEID; } // namespace TestModule diff --git a/test/blackbox/types/TestRegression3361v1.h b/test/blackbox/types/TestRegression3361v1.h index 3a2b587a2fc..427b759be8f 100644 --- a/test/blackbox/types/TestRegression3361v1.h +++ b/test/blackbox/types/TestRegression3361v1.h @@ -28,8 +28,6 @@ #include "TestIncludeRegression3361.h" -#include - #include #include #include @@ -38,6 +36,8 @@ #include #include +#include + #if defined(_WIN32) #if defined(EPROSIMA_USER_DLL_EXPORT) #define eProsima_user_DllExport __declspec( dllexport ) @@ -160,11 +160,11 @@ class TestRegression3361 /*! - * @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. - */ + * @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); @@ -198,18 +198,17 @@ class TestRegression3361 /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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: TestModule::MACHINEID m_uuid; diff --git a/test/blackbox/types/statistics/typesv1.h b/test/blackbox/types/statistics/typesv1.h index 4790ebcb43c..ceb29ad5e10 100644 --- a/test/blackbox/types/statistics/typesv1.h +++ b/test/blackbox/types/statistics/typesv1.h @@ -26,9 +26,6 @@ #ifndef _FAST_DDS_GENERATED_EPROSIMA_FASTDDS_STATISTICS_TYPES_H_ #define _FAST_DDS_GENERATED_EPROSIMA_FASTDDS_STATISTICS_TYPES_H_ - -#include - #include #include #include @@ -37,6 +34,8 @@ #include #include +#include + #if defined(_WIN32) #if defined(EPROSIMA_USER_DLL_EXPORT) #define eProsima_user_DllExport __declspec( dllexport ) @@ -70,3020 +69,3002 @@ class Cdr; 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 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_ diff --git a/test/dds/communication/SubscriberDynamic.cpp b/test/dds/communication/SubscriberDynamic.cpp index d804f46002c..aa7607f96c9 100644 --- a/test/dds/communication/SubscriberDynamic.cpp +++ b/test/dds/communication/SubscriberDynamic.cpp @@ -82,8 +82,8 @@ class ParListener : public DomainParticipantListener void on_type_information_received( eprosima::fastdds::dds::DomainParticipant* participant, - const eprosima::fastrtps::string_255 topic_name, - const eprosima::fastrtps::string_255 type_name, + const eprosima::fastcdr::string_255 topic_name, + const eprosima::fastcdr::string_255 type_name, const eprosima::fastrtps::types::TypeInformation& type_information) override { using callback_type = std::function #include +#include + #include #include #include @@ -38,7 +40,6 @@ #include #include #include -#include namespace eprosima { namespace fastdds { @@ -628,8 +629,7 @@ class RTPSParticipantAttributes private: //! Name of the participant. - string_255 name{"RTPSParticipant"}; - + fastcdr::string_255 name{"RTPSParticipant"}; }; } // namespace rtps diff --git a/test/mock/rtps/ReaderProxyData/fastdds/rtps/builtin/data/ReaderProxyData.h b/test/mock/rtps/ReaderProxyData/fastdds/rtps/builtin/data/ReaderProxyData.h index 1bd5eda52d9..cdf46a6c07d 100644 --- a/test/mock/rtps/ReaderProxyData/fastdds/rtps/builtin/data/ReaderProxyData.h +++ b/test/mock/rtps/ReaderProxyData/fastdds/rtps/builtin/data/ReaderProxyData.h @@ -159,33 +159,33 @@ class ReaderProxyData } void typeName( - const string_255& typeName) + const fastcdr::string_255& typeName) { type_name_ = typeName; } - const string_255& typeName() const + const fastcdr::string_255& typeName() const { return type_name_; } - string_255& typeName() + fastcdr::string_255& typeName() { return type_name_; } void topicName( - const string_255& topicName) + const fastcdr::string_255& topicName) { topic_name_ = topicName; } - const string_255& topicName() const + const fastcdr::string_255& topicName() const { return topic_name_; } - string_255& topicName() + fastcdr::string_255& topicName() { return topic_name_; } @@ -386,8 +386,8 @@ class ReaderProxyData private: GUID_t m_guid; - string_255 topic_name_; - string_255 type_name_; + fastcdr::string_255 topic_name_; + fastcdr::string_255 type_name_; TopicKind_t topic_kind_; bool is_alive_; fastdds::dds::TypeIdV1 type_id_; diff --git a/test/mock/rtps/WriterProxyData/fastdds/rtps/builtin/data/WriterProxyData.h b/test/mock/rtps/WriterProxyData/fastdds/rtps/builtin/data/WriterProxyData.h index ecdf31dd9b3..a7f6da911d7 100644 --- a/test/mock/rtps/WriterProxyData/fastdds/rtps/builtin/data/WriterProxyData.h +++ b/test/mock/rtps/WriterProxyData/fastdds/rtps/builtin/data/WriterProxyData.h @@ -153,23 +153,23 @@ class WriterProxyData } void typeName( - const string_255& typeName) + const fastcdr::string_255& typeName) { type_name_ = typeName; } - const string_255& typeName() const + const fastcdr::string_255& typeName() const { return type_name_; } void topicName( - const string_255& topicName) + const fastcdr::string_255& topicName) { topic_name_ = topicName; } - const string_255& topicName() const + const fastcdr::string_255& topicName() const { return topic_name_; } @@ -358,8 +358,8 @@ class WriterProxyData GUID_t m_guid; RemoteLocatorList remote_locators_; - string_255 topic_name_; - string_255 type_name_; + fastcdr::string_255 topic_name_; + fastcdr::string_255 type_name_; TopicKind_t topic_kind_; bool is_alive_; fastdds::dds::TypeIdV1 type_id_; diff --git a/test/profiling/allocations/AllocTestTypev1.h b/test/profiling/allocations/AllocTestTypev1.h index 0195e31a222..d517429948e 100644 --- a/test/profiling/allocations/AllocTestTypev1.h +++ b/test/profiling/allocations/AllocTestTypev1.h @@ -27,7 +27,7 @@ #define _FAST_DDS_GENERATED_ALLOCTESTTYPE_H_ -#include +#include #include #include @@ -152,11 +152,11 @@ class AllocTestType /*! - * @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. - */ + * @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); @@ -190,18 +190,17 @@ class AllocTestType /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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; diff --git a/test/unittest/dds/topic/DDSSQLFilter/data_types/ContentFilterTestTypev1.h b/test/unittest/dds/topic/DDSSQLFilter/data_types/ContentFilterTestTypev1.h index b67d7e3d05b..70a4fab9c71 100644 --- a/test/unittest/dds/topic/DDSSQLFilter/data_types/ContentFilterTestTypev1.h +++ b/test/unittest/dds/topic/DDSSQLFilter/data_types/ContentFilterTestTypev1.h @@ -26,9 +26,6 @@ #ifndef _FAST_DDS_GENERATED_CONTENTFILTERTESTTYPE_H_ #define _FAST_DDS_GENERATED_CONTENTFILTERTESTTYPE_H_ - -#include - #include #include #include @@ -37,6 +34,8 @@ #include #include +#include + #if defined(_WIN32) #if defined(EPROSIMA_USER_DLL_EXPORT) #define eProsima_user_DllExport __declspec( dllexport ) @@ -463,11 +462,11 @@ class StructType /*! - * @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. - */ + * @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); @@ -501,18 +500,17 @@ class StructType /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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: char m_char_field; @@ -2232,11 +2230,11 @@ class ContentFilterTestType /*! - * @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. - */ + * @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); @@ -2270,18 +2268,17 @@ class ContentFilterTestType /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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: char m_char_field; diff --git a/test/unittest/dynamic_types/idl/Basicv1.cxx b/test/unittest/dynamic_types/idl/Basicv1.cxx index b8fca04e00d..838a4e0eb05 100644 --- a/test/unittest/dynamic_types/idl/Basicv1.cxx +++ b/test/unittest/dynamic_types/idl/Basicv1.cxx @@ -2703,7 +2703,7 @@ void LargeStringStruct::serializeKey( * @param _my_large_string New value to be copied in member my_large_string */ void LargeStringStruct::my_large_string( - const eprosima::fastrtps::fixed_string<41925>& _my_large_string) + const eprosima::fastcdr::fixed_string<41925>& _my_large_string) { m_my_large_string = _my_large_string; } @@ -2713,7 +2713,7 @@ void LargeStringStruct::my_large_string( * @param _my_large_string New value to be moved in member my_large_string */ void LargeStringStruct::my_large_string( - eprosima::fastrtps::fixed_string<41925>&& _my_large_string) + eprosima::fastcdr::fixed_string<41925>&& _my_large_string) { m_my_large_string = std::move(_my_large_string); } @@ -2722,7 +2722,7 @@ void LargeStringStruct::my_large_string( * @brief This function returns a constant reference to member my_large_string * @return Constant reference to member my_large_string */ -const eprosima::fastrtps::fixed_string<41925>& LargeStringStruct::my_large_string() const +const eprosima::fastcdr::fixed_string<41925>& LargeStringStruct::my_large_string() const { return m_my_large_string; } @@ -2731,7 +2731,7 @@ const eprosima::fastrtps::fixed_string<41925>& LargeStringStruct::my_large_strin * @brief This function returns a reference to member my_large_string * @return Reference to member my_large_string */ -eprosima::fastrtps::fixed_string<41925>& LargeStringStruct::my_large_string() +eprosima::fastcdr::fixed_string<41925>& LargeStringStruct::my_large_string() { return m_my_large_string; } diff --git a/test/unittest/dynamic_types/idl/Basicv1.h b/test/unittest/dynamic_types/idl/Basicv1.h index 1a8ac2db83d..d2424253d89 100644 --- a/test/unittest/dynamic_types/idl/Basicv1.h +++ b/test/unittest/dynamic_types/idl/Basicv1.h @@ -27,7 +27,7 @@ #define _FAST_DDS_GENERATED_BASIC_H_ -#include +#include #include #include @@ -166,11 +166,11 @@ class EnumStruct /*! - * @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. - */ + * @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); @@ -204,18 +204,17 @@ class EnumStruct /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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: MyEnum m_my_enum; @@ -305,11 +304,11 @@ class AliasStruct /*! - * @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. - */ + * @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); @@ -343,18 +342,17 @@ class AliasStruct /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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: MyAliasEnum m_my_alias; @@ -444,11 +442,11 @@ class AliasAliasStruct /*! - * @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. - */ + * @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); @@ -482,18 +480,17 @@ class AliasAliasStruct /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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: MyAliasAliasEnum m_my_alias_alias; @@ -583,11 +580,11 @@ class BoolStruct /*! - * @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. - */ + * @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); @@ -621,18 +618,17 @@ class BoolStruct /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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: bool m_my_bool; @@ -722,11 +718,11 @@ class OctetStruct /*! - * @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. - */ + * @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); @@ -760,18 +756,17 @@ class OctetStruct /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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: uint8_t m_my_octet; @@ -861,11 +856,11 @@ class ShortStruct /*! - * @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. - */ + * @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); @@ -899,18 +894,17 @@ class ShortStruct /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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: int16_t m_my_int16; @@ -1000,11 +994,11 @@ class LongStruct /*! - * @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. - */ + * @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); @@ -1038,18 +1032,17 @@ class LongStruct /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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_my_int32; @@ -1139,11 +1132,11 @@ class LongLongStruct /*! - * @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. - */ + * @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); @@ -1177,18 +1170,17 @@ class LongLongStruct /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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: int64_t m_my_int64; @@ -1278,11 +1270,11 @@ class UShortStruct /*! - * @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. - */ + * @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); @@ -1316,18 +1308,17 @@ class UShortStruct /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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: uint16_t m_my_uint16; @@ -1417,11 +1408,11 @@ class ULongStruct /*! - * @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. - */ + * @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); @@ -1455,18 +1446,17 @@ class ULongStruct /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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_my_uint32; @@ -1556,11 +1546,11 @@ class ULongLongStruct /*! - * @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. - */ + * @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); @@ -1594,18 +1584,17 @@ class ULongLongStruct /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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: uint64_t m_my_uint64; @@ -1695,11 +1684,11 @@ class FloatStruct /*! - * @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. - */ + * @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); @@ -1733,18 +1722,17 @@ class FloatStruct /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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: float m_my_float32; @@ -1834,11 +1822,11 @@ class DoubleStruct /*! - * @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. - */ + * @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); @@ -1872,18 +1860,17 @@ class DoubleStruct /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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: double m_my_float64; @@ -1973,11 +1960,11 @@ class LongDoubleStruct /*! - * @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. - */ + * @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); @@ -2011,18 +1998,17 @@ class LongDoubleStruct /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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: long double m_my_float128; @@ -2112,11 +2098,11 @@ class CharStruct /*! - * @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. - */ + * @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); @@ -2150,18 +2136,17 @@ class CharStruct /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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: char m_my_char; @@ -2251,11 +2236,11 @@ class WCharStruct /*! - * @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. - */ + * @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); @@ -2289,18 +2274,17 @@ class WCharStruct /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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: wchar_t m_my_wchar; @@ -2397,11 +2381,11 @@ class StringStruct /*! - * @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. - */ + * @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); @@ -2435,18 +2419,17 @@ class StringStruct /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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::string m_my_string; @@ -2543,11 +2526,11 @@ class WStringStruct /*! - * @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. - */ + * @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); @@ -2581,18 +2564,17 @@ class WStringStruct /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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::wstring m_my_wstring; @@ -2666,34 +2648,34 @@ class LargeStringStruct * @param _my_large_string New value to be copied in member my_large_string */ eProsima_user_DllExport void my_large_string( - const eprosima::fastrtps::fixed_string<41925>& _my_large_string); + const eprosima::fastcdr::fixed_string<41925>& _my_large_string); /*! * @brief This function moves the value in member my_large_string * @param _my_large_string New value to be moved in member my_large_string */ eProsima_user_DllExport void my_large_string( - eprosima::fastrtps::fixed_string<41925>&& _my_large_string); + eprosima::fastcdr::fixed_string<41925>&& _my_large_string); /*! * @brief This function returns a constant reference to member my_large_string * @return Constant reference to member my_large_string */ - eProsima_user_DllExport const eprosima::fastrtps::fixed_string<41925>& my_large_string() const; + eProsima_user_DllExport const eprosima::fastcdr::fixed_string<41925>& my_large_string() const; /*! * @brief This function returns a reference to member my_large_string * @return Reference to member my_large_string */ - eProsima_user_DllExport eprosima::fastrtps::fixed_string<41925>& my_large_string(); + eProsima_user_DllExport eprosima::fastcdr::fixed_string<41925>& my_large_string(); /*! - * @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. - */ + * @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); @@ -2727,21 +2709,20 @@ class LargeStringStruct /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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::fastrtps::fixed_string<41925> m_my_large_string; + eprosima::fastcdr::fixed_string<41925> m_my_large_string; }; @@ -2835,11 +2816,11 @@ class LargeWStringStruct /*! - * @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. - */ + * @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); @@ -2873,18 +2854,17 @@ class LargeWStringStruct /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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::wstring m_my_large_wstring; @@ -2981,11 +2961,11 @@ class ArraytStruct /*! - * @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. - */ + * @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); @@ -3019,18 +2999,17 @@ class ArraytStruct /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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, 2>, 2> m_my_array; @@ -3129,11 +3108,11 @@ class ArrayArrayStruct /*! - * @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. - */ + * @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); @@ -3167,18 +3146,17 @@ class ArrayArrayStruct /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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, 2> m_my_array_array; @@ -3277,11 +3255,11 @@ class SequenceStruct /*! - * @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. - */ + * @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); @@ -3315,18 +3293,17 @@ class SequenceStruct /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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::vector m_my_sequence; @@ -3427,11 +3404,11 @@ class SequenceSequenceStruct /*! - * @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. - */ + * @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); @@ -3465,18 +3442,17 @@ class SequenceSequenceStruct /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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::vector> m_my_sequence_sequence; @@ -3575,11 +3551,11 @@ class MapStruct /*! - * @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. - */ + * @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); @@ -3613,18 +3589,17 @@ class MapStruct /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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::map m_my_map; @@ -3725,11 +3700,11 @@ class MapMapStruct /*! - * @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. - */ + * @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); @@ -3763,18 +3738,17 @@ class MapMapStruct /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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::map> m_my_map_map; @@ -3901,10 +3875,6 @@ class MyBitset eProsima_user_DllExport void deserialize( eprosima::fastcdr::Cdr& cdr); - - - - private: std::bitset<30> m_bitset; @@ -3999,11 +3969,11 @@ class BitsetStruct /*! - * @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. - */ + * @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); @@ -4037,18 +4007,17 @@ class BitsetStruct /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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: MyBitset m_a; @@ -4158,11 +4127,11 @@ class StructStruct /*! - * @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. - */ + * @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); @@ -4196,18 +4165,17 @@ class StructStruct /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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_a; @@ -4325,11 +4293,11 @@ class StructStructStruct /*! - * @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. - */ + * @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); @@ -4363,18 +4331,17 @@ class StructStructStruct /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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: StructStruct m_child_struct; @@ -4534,10 +4501,6 @@ class SimpleUnion eProsima_user_DllExport void deserialize( eprosima::fastcdr::Cdr& cdr); - - - - private: int32_t m__d; @@ -4705,10 +4668,6 @@ class UnionUnion eProsima_user_DllExport void deserialize( eprosima::fastcdr::Cdr& cdr); - - - - private: int32_t m__d; @@ -4869,10 +4828,6 @@ class WCharUnion eProsima_user_DllExport void deserialize( eprosima::fastcdr::Cdr& cdr); - - - - private: wchar_t m__d; @@ -4971,11 +4926,11 @@ class SimpleUnionStruct /*! - * @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. - */ + * @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); @@ -5009,18 +4964,17 @@ class SimpleUnionStruct /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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: SimpleUnion m_my_union; @@ -5117,11 +5071,11 @@ class UnionUnionUnionStruct /*! - * @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. - */ + * @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); @@ -5155,18 +5109,17 @@ class UnionUnionUnionStruct /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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: UnionUnion m_my_union; @@ -5263,11 +5216,11 @@ class WCharUnionStruct /*! - * @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. - */ + * @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); @@ -5301,18 +5254,17 @@ class WCharUnionStruct /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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: WCharUnion m_my_union; diff --git a/test/unittest/dynamic_types/idl/Testv1.cxx b/test/unittest/dynamic_types/idl/Testv1.cxx index d5f720de3dd..5f78d5ee9b8 100644 --- a/test/unittest/dynamic_types/idl/Testv1.cxx +++ b/test/unittest/dynamic_types/idl/Testv1.cxx @@ -2205,7 +2205,7 @@ std::map>& ComplexStruct::my_map_long_lol_t * @param _my_small_string_8 New value to be copied in member my_small_string_8 */ void ComplexStruct::my_small_string_8( - const eprosima::fastrtps::fixed_string<128>& _my_small_string_8) + const eprosima::fastcdr::fixed_string<128>& _my_small_string_8) { m_my_small_string_8 = _my_small_string_8; } @@ -2215,7 +2215,7 @@ void ComplexStruct::my_small_string_8( * @param _my_small_string_8 New value to be moved in member my_small_string_8 */ void ComplexStruct::my_small_string_8( - eprosima::fastrtps::fixed_string<128>&& _my_small_string_8) + eprosima::fastcdr::fixed_string<128>&& _my_small_string_8) { m_my_small_string_8 = std::move(_my_small_string_8); } @@ -2224,7 +2224,7 @@ void ComplexStruct::my_small_string_8( * @brief This function returns a constant reference to member my_small_string_8 * @return Constant reference to member my_small_string_8 */ -const eprosima::fastrtps::fixed_string<128>& ComplexStruct::my_small_string_8() const +const eprosima::fastcdr::fixed_string<128>& ComplexStruct::my_small_string_8() const { return m_my_small_string_8; } @@ -2233,7 +2233,7 @@ const eprosima::fastrtps::fixed_string<128>& ComplexStruct::my_small_string_8() * @brief This function returns a reference to member my_small_string_8 * @return Reference to member my_small_string_8 */ -eprosima::fastrtps::fixed_string<128>& ComplexStruct::my_small_string_8() +eprosima::fastcdr::fixed_string<128>& ComplexStruct::my_small_string_8() { return m_my_small_string_8; } @@ -2244,7 +2244,7 @@ eprosima::fastrtps::fixed_string<128>& ComplexStruct::my_small_string_8() * @param _my_large_string_8 New value to be copied in member my_large_string_8 */ void ComplexStruct::my_large_string_8( - const eprosima::fastrtps::fixed_string<500>& _my_large_string_8) + const eprosima::fastcdr::fixed_string<500>& _my_large_string_8) { m_my_large_string_8 = _my_large_string_8; } @@ -2254,7 +2254,7 @@ void ComplexStruct::my_large_string_8( * @param _my_large_string_8 New value to be moved in member my_large_string_8 */ void ComplexStruct::my_large_string_8( - eprosima::fastrtps::fixed_string<500>&& _my_large_string_8) + eprosima::fastcdr::fixed_string<500>&& _my_large_string_8) { m_my_large_string_8 = std::move(_my_large_string_8); } @@ -2263,7 +2263,7 @@ void ComplexStruct::my_large_string_8( * @brief This function returns a constant reference to member my_large_string_8 * @return Constant reference to member my_large_string_8 */ -const eprosima::fastrtps::fixed_string<500>& ComplexStruct::my_large_string_8() const +const eprosima::fastcdr::fixed_string<500>& ComplexStruct::my_large_string_8() const { return m_my_large_string_8; } @@ -2272,7 +2272,7 @@ const eprosima::fastrtps::fixed_string<500>& ComplexStruct::my_large_string_8() * @brief This function returns a reference to member my_large_string_8 * @return Reference to member my_large_string_8 */ -eprosima::fastrtps::fixed_string<500>& ComplexStruct::my_large_string_8() +eprosima::fastcdr::fixed_string<500>& ComplexStruct::my_large_string_8() { return m_my_large_string_8; } @@ -2283,7 +2283,7 @@ eprosima::fastrtps::fixed_string<500>& ComplexStruct::my_large_string_8() * @param _my_array_string New value to be copied in member my_array_string */ void ComplexStruct::my_array_string( - const std::array, 5>, 5>& _my_array_string) + const std::array, 5>, 5>& _my_array_string) { m_my_array_string = _my_array_string; } @@ -2293,7 +2293,7 @@ void ComplexStruct::my_array_string( * @param _my_array_string New value to be moved in member my_array_string */ void ComplexStruct::my_array_string( - std::array, 5>, 5>&& _my_array_string) + std::array, 5>, 5>&& _my_array_string) { m_my_array_string = std::move(_my_array_string); } @@ -2302,7 +2302,7 @@ void ComplexStruct::my_array_string( * @brief This function returns a constant reference to member my_array_string * @return Constant reference to member my_array_string */ -const std::array, 5>, 5>& ComplexStruct::my_array_string() const +const std::array, 5>, 5>& ComplexStruct::my_array_string() const { return m_my_array_string; } @@ -2311,7 +2311,7 @@ const std::array, 5>, 5>& Comple * @brief This function returns a reference to member my_array_string * @return Reference to member my_array_string */ -std::array, 5>, 5>& ComplexStruct::my_array_string() +std::array, 5>, 5>& ComplexStruct::my_array_string() { return m_my_array_string; } @@ -3665,10 +3665,10 @@ void KeyedStruct::serializeKey( eprosima::fastcdr::Cdr& scdr) const { (void) scdr; - + scdr << m_key; - - + + } /*! diff --git a/test/unittest/dynamic_types/idl/Testv1.h b/test/unittest/dynamic_types/idl/Testv1.h index 42ae9b215ea..e24d16dd53d 100644 --- a/test/unittest/dynamic_types/idl/Testv1.h +++ b/test/unittest/dynamic_types/idl/Testv1.h @@ -26,9 +26,6 @@ #ifndef _FAST_DDS_GENERATED_TEST_H_ #define _FAST_DDS_GENERATED_TEST_H_ - -#include - #include #include #include @@ -37,6 +34,8 @@ #include #include +#include + #if defined(_WIN32) #if defined(EPROSIMA_USER_DLL_EXPORT) #define eProsima_user_DllExport __declspec( dllexport ) @@ -415,11 +414,11 @@ class BasicStruct /*! - * @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. - */ + * @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); @@ -453,18 +452,17 @@ class BasicStruct /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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: bool m_my_bool; @@ -919,26 +917,26 @@ class ComplexStruct * @param _my_small_string_8 New value to be copied in member my_small_string_8 */ eProsima_user_DllExport void my_small_string_8( - const eprosima::fastrtps::fixed_string<128>& _my_small_string_8); + const eprosima::fastcdr::fixed_string<128>& _my_small_string_8); /*! * @brief This function moves the value in member my_small_string_8 * @param _my_small_string_8 New value to be moved in member my_small_string_8 */ eProsima_user_DllExport void my_small_string_8( - eprosima::fastrtps::fixed_string<128>&& _my_small_string_8); + eprosima::fastcdr::fixed_string<128>&& _my_small_string_8); /*! * @brief This function returns a constant reference to member my_small_string_8 * @return Constant reference to member my_small_string_8 */ - eProsima_user_DllExport const eprosima::fastrtps::fixed_string<128>& my_small_string_8() const; + eProsima_user_DllExport const eprosima::fastcdr::fixed_string<128>& my_small_string_8() const; /*! * @brief This function returns a reference to member my_small_string_8 * @return Reference to member my_small_string_8 */ - eProsima_user_DllExport eprosima::fastrtps::fixed_string<128>& my_small_string_8(); + eProsima_user_DllExport eprosima::fastcdr::fixed_string<128>& my_small_string_8(); /*! @@ -946,26 +944,26 @@ class ComplexStruct * @param _my_large_string_8 New value to be copied in member my_large_string_8 */ eProsima_user_DllExport void my_large_string_8( - const eprosima::fastrtps::fixed_string<500>& _my_large_string_8); + const eprosima::fastcdr::fixed_string<500>& _my_large_string_8); /*! * @brief This function moves the value in member my_large_string_8 * @param _my_large_string_8 New value to be moved in member my_large_string_8 */ eProsima_user_DllExport void my_large_string_8( - eprosima::fastrtps::fixed_string<500>&& _my_large_string_8); + eprosima::fastcdr::fixed_string<500>&& _my_large_string_8); /*! * @brief This function returns a constant reference to member my_large_string_8 * @return Constant reference to member my_large_string_8 */ - eProsima_user_DllExport const eprosima::fastrtps::fixed_string<500>& my_large_string_8() const; + eProsima_user_DllExport const eprosima::fastcdr::fixed_string<500>& my_large_string_8() const; /*! * @brief This function returns a reference to member my_large_string_8 * @return Reference to member my_large_string_8 */ - eProsima_user_DllExport eprosima::fastrtps::fixed_string<500>& my_large_string_8(); + eProsima_user_DllExport eprosima::fastcdr::fixed_string<500>& my_large_string_8(); /*! @@ -973,26 +971,27 @@ class ComplexStruct * @param _my_array_string New value to be copied in member my_array_string */ eProsima_user_DllExport void my_array_string( - const std::array, 5>, 5>& _my_array_string); + const std::array, 5>, 5>& _my_array_string); /*! * @brief This function moves the value in member my_array_string * @param _my_array_string New value to be moved in member my_array_string */ eProsima_user_DllExport void my_array_string( - std::array, 5>, 5>&& _my_array_string); + std::array, 5>, 5>&& _my_array_string); /*! * @brief This function returns a constant reference to member my_array_string * @return Constant reference to member my_array_string */ - eProsima_user_DllExport const std::array, 5>, 5>& my_array_string() const; + eProsima_user_DllExport const std::array, 5>, + 5>& my_array_string() const; /*! * @brief This function returns a reference to member my_array_string * @return Reference to member my_array_string */ - eProsima_user_DllExport std::array, 5>, 5>& my_array_string(); + eProsima_user_DllExport std::array, 5>, 5>& my_array_string(); /*! @@ -1077,11 +1076,11 @@ class ComplexStruct /*! - * @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. - */ + * @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); @@ -1115,18 +1114,17 @@ class ComplexStruct /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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: uint8_t m_my_octet; @@ -1143,9 +1141,9 @@ class ComplexStruct std::map>> m_my_map_long_seq_octet; std::map m_my_map_long_octet_array_500; std::map> m_my_map_long_lol_type; - eprosima::fastrtps::fixed_string<128> m_my_small_string_8; - eprosima::fastrtps::fixed_string<500> m_my_large_string_8; - std::array, 5>, 5> m_my_array_string; + eprosima::fastcdr::fixed_string<128> m_my_small_string_8; + eprosima::fastcdr::fixed_string<500> m_my_large_string_8; + std::array, 5>, 5> m_my_array_string; MA3 m_multi_alias_array_42; std::array m_my_array_arrays; std::array m_my_sequences_array; @@ -1318,10 +1316,6 @@ class MyUnion eProsima_user_DllExport void deserialize( eprosima::fastcdr::Cdr& cdr); - - - - private: MyEnum m__d; @@ -1511,10 +1505,6 @@ class MyUnion2 eProsima_user_DllExport void deserialize( eprosima::fastcdr::Cdr& cdr); - - - - private: uint8_t m__d; @@ -1641,11 +1631,11 @@ class CompleteStruct /*! - * @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. - */ + * @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); @@ -1679,18 +1669,17 @@ class CompleteStruct /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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: MyUnion m_my_union; @@ -1808,11 +1797,11 @@ class KeyedStruct /*! - * @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. - */ + * @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); @@ -1846,18 +1835,17 @@ class KeyedStruct /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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: uint8_t m_key; diff --git a/test/unittest/dynamic_types/idl/new_features_4_2.h b/test/unittest/dynamic_types/idl/new_features_4_2.h index de85dadf42c..f5af91be20d 100644 --- a/test/unittest/dynamic_types/idl/new_features_4_2.h +++ b/test/unittest/dynamic_types/idl/new_features_4_2.h @@ -34,7 +34,6 @@ #include #include -#include #include #include @@ -811,8 +810,6 @@ class ParentBitset eProsima_user_DllExport void bitset( const std::bitset<17>&); - - private: std::bitset<17> m_bitset; @@ -967,8 +964,6 @@ class MyBitset : public bitmodule::ParentBitset eProsima_user_DllExport void bitset( const std::bitset<50>&); - - private: std::bitset<33> m_bitset; diff --git a/test/unittest/dynamic_types/idl/new_features_4_2v1.h b/test/unittest/dynamic_types/idl/new_features_4_2v1.h index d66f6b145e6..3acfbb6fbbc 100644 --- a/test/unittest/dynamic_types/idl/new_features_4_2v1.h +++ b/test/unittest/dynamic_types/idl/new_features_4_2v1.h @@ -26,9 +26,6 @@ #ifndef _FAST_DDS_GENERATED_NEW_FEATURES_4_2_H_ #define _FAST_DDS_GENERATED_NEW_FEATURES_4_2_H_ - -#include - #include #include #include @@ -37,6 +34,7 @@ #include #include + #if defined(_WIN32) #if defined(EPROSIMA_USER_DLL_EXPORT) #define eProsima_user_DllExport __declspec( dllexport ) @@ -319,11 +317,11 @@ class NewAliases /*! - * @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. - */ + * @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); @@ -357,18 +355,17 @@ class NewAliases /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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: int8_t m_int8_; @@ -535,10 +532,6 @@ class WCharUnion eProsima_user_DllExport void deserialize( eprosima::fastcdr::Cdr& cdr); - - - - private: wchar_t m__d; @@ -699,10 +692,6 @@ class OctetUnion eProsima_user_DllExport void deserialize( eprosima::fastcdr::Cdr& cdr); - - - - private: uint8_t m__d; @@ -863,10 +852,6 @@ class Int8Union eProsima_user_DllExport void deserialize( eprosima::fastcdr::Cdr& cdr); - - - - private: int8_t m__d; @@ -876,656 +861,646 @@ class Int8Union }; namespace bitmodule { +/*! + * @brief This class represents the structure ParentBitset defined by the user in the IDL file. + * @ingroup new_features_4_2 + */ +class ParentBitset +{ +public: + /*! - * @brief This class represents the structure ParentBitset defined by the user in the IDL file. - * @ingroup new_features_4_2 - */ - class ParentBitset - { - public: - - /*! - * @brief Default constructor. - */ - eProsima_user_DllExport ParentBitset(); - - /*! - * @brief Default destructor. - */ - eProsima_user_DllExport ~ParentBitset(); - - /*! - * @brief Copy constructor. - * @param x Reference to the object bitmodule::ParentBitset that will be copied. - */ - eProsima_user_DllExport ParentBitset( - const ParentBitset& x); - - /*! - * @brief Move constructor. - * @param x Reference to the object bitmodule::ParentBitset that will be copied. - */ - eProsima_user_DllExport ParentBitset( - ParentBitset&& x) noexcept; - - /*! - * @brief Copy assignment. - * @param x Reference to the object bitmodule::ParentBitset that will be copied. - */ - eProsima_user_DllExport ParentBitset& operator =( - const ParentBitset& x); - - /*! - * @brief Move assignment. - * @param x Reference to the object bitmodule::ParentBitset that will be copied. - */ - eProsima_user_DllExport ParentBitset& operator =( - ParentBitset&& x) noexcept; - - /*! - * @brief Comparison operator. - * @param x bitmodule::ParentBitset object to compare. - */ - eProsima_user_DllExport bool operator ==( - const ParentBitset& x) const; - - /*! - * @brief Comparison operator. - * @param x bitmodule::ParentBitset object to compare. - */ - eProsima_user_DllExport bool operator !=( - const ParentBitset& x) const; - - /*! - * @brief This function sets a value in member parent_bitfield - * @param _parent_bitfield New value for member parent_bitfield - */ - eProsima_user_DllExport void parent_bitfield( - uint32_t _parent_bitfield); - - /*! - * @brief This function returns the value of member parent_bitfield - * @return Value of member parent_bitfield - */ - eProsima_user_DllExport uint32_t parent_bitfield() const; - - - eProsima_user_DllExport std::bitset<17> bitset() const; - - eProsima_user_DllExport void bitset( - const std::bitset<17>&); - - /*! - * @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 bitmodule::ParentBitset& 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: - - std::bitset<17> m_bitset; - }; - /*! - * @brief This class represents the structure MyBitset defined by the user in the IDL file. - * @ingroup new_features_4_2 - */ - class MyBitset : public bitmodule::ParentBitset - { - public: - - /*! - * @brief Default constructor. - */ - eProsima_user_DllExport MyBitset(); - - /*! - * @brief Default destructor. - */ - eProsima_user_DllExport ~MyBitset(); - - /*! - * @brief Copy constructor. - * @param x Reference to the object bitmodule::MyBitset that will be copied. - */ - eProsima_user_DllExport MyBitset( - const MyBitset& x); - - /*! - * @brief Move constructor. - * @param x Reference to the object bitmodule::MyBitset that will be copied. - */ - eProsima_user_DllExport MyBitset( - MyBitset&& x) noexcept; - - /*! - * @brief Copy assignment. - * @param x Reference to the object bitmodule::MyBitset that will be copied. - */ - eProsima_user_DllExport MyBitset& operator =( - const MyBitset& x); - - /*! - * @brief Move assignment. - * @param x Reference to the object bitmodule::MyBitset that will be copied. - */ - eProsima_user_DllExport MyBitset& operator =( - MyBitset&& x) noexcept; - - /*! - * @brief Comparison operator. - * @param x bitmodule::MyBitset object to compare. - */ - eProsima_user_DllExport bool operator ==( - const MyBitset& x) const; - - /*! - * @brief Comparison operator. - * @param x bitmodule::MyBitset object to compare. - */ - eProsima_user_DllExport bool operator !=( - const MyBitset& x) const; - - /*! - * @brief This function sets a value in member a - * @param _a New value for member a - */ - eProsima_user_DllExport void a( - char _a); - - /*! - * @brief This function returns the value of member a - * @return Value of member a - */ - eProsima_user_DllExport char a() const; - - - /*! - * @brief This function sets a value in member b - * @param _b New value for member b - */ - eProsima_user_DllExport void b( - bool _b); - - /*! - * @brief This function returns the value of member b - * @return Value of member b - */ - eProsima_user_DllExport bool b() const; - + * @brief Default constructor. + */ + eProsima_user_DllExport ParentBitset(); + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~ParentBitset(); + + /*! + * @brief Copy constructor. + * @param x Reference to the object bitmodule::ParentBitset that will be copied. + */ + eProsima_user_DllExport ParentBitset( + const ParentBitset& x); + + /*! + * @brief Move constructor. + * @param x Reference to the object bitmodule::ParentBitset that will be copied. + */ + eProsima_user_DllExport ParentBitset( + ParentBitset&& x) noexcept; + + /*! + * @brief Copy assignment. + * @param x Reference to the object bitmodule::ParentBitset that will be copied. + */ + eProsima_user_DllExport ParentBitset& operator =( + const ParentBitset& x); + + /*! + * @brief Move assignment. + * @param x Reference to the object bitmodule::ParentBitset that will be copied. + */ + eProsima_user_DllExport ParentBitset& operator =( + ParentBitset&& x) noexcept; + + /*! + * @brief Comparison operator. + * @param x bitmodule::ParentBitset object to compare. + */ + eProsima_user_DllExport bool operator ==( + const ParentBitset& x) const; - /*! - * @brief This function sets a value in member c - * @param _c New value for member c - */ - eProsima_user_DllExport void c( - uint16_t _c); - - /*! - * @brief This function returns the value of member c - * @return Value of member c - */ - eProsima_user_DllExport uint16_t c() const; - - - /*! - * @brief This function sets a value in member d - * @param _d New value for member d - */ - eProsima_user_DllExport void d( - int16_t _d); - - /*! - * @brief This function returns the value of member d - * @return Value of member d - */ - eProsima_user_DllExport int16_t d() const; - - - /*! - * @brief This function sets a value in member e - * @param _e New value for member e - */ - eProsima_user_DllExport void e( - int16_t _e); - - /*! - * @brief This function returns the value of member e - * @return Value of member e - */ - eProsima_user_DllExport int16_t e() const; - - - /*! - * @brief This function sets a value in member f - * @param _f New value for member f - */ - eProsima_user_DllExport void f( - int16_t _f); - - /*! - * @brief This function returns the value of member f - * @return Value of member f - */ - eProsima_user_DllExport int16_t f() const; - - - eProsima_user_DllExport std::bitset<50> bitset() const; - - eProsima_user_DllExport void bitset( - const std::bitset<50>&); - - /*! - * @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 bitmodule::MyBitset& 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: - - std::bitset<33> m_bitset; - }; - /*! - * @brief This class represents the bitmask MyBitMask defined by the user in the IDL file. - * @ingroup new_features_4_2 - */ - enum MyBitMaskBits : uint8_t - { - flag0 = 0x01ull << 0, - flag1 = 0x01ull << 1, - flag4 = 0x01ull << 4, - flag6 = 0x01ull << 6, - flag7 = 0x01ull << 7 - }; - typedef uint8_t MyBitMask; - - - /*! - * @brief This class represents the structure BitsetBitmask defined by the user in the IDL file. - * @ingroup new_features_4_2 - */ - class BitsetBitmask - { - public: - - /*! - * @brief Default constructor. - */ - eProsima_user_DllExport BitsetBitmask(); - - /*! - * @brief Default destructor. - */ - eProsima_user_DllExport ~BitsetBitmask(); - - /*! - * @brief Copy constructor. - * @param x Reference to the object bitmodule::BitsetBitmask that will be copied. - */ - eProsima_user_DllExport BitsetBitmask( - const BitsetBitmask& x); - - /*! - * @brief Move constructor. - * @param x Reference to the object bitmodule::BitsetBitmask that will be copied. - */ - eProsima_user_DllExport BitsetBitmask( - BitsetBitmask&& x) noexcept; - - /*! - * @brief Copy assignment. - * @param x Reference to the object bitmodule::BitsetBitmask that will be copied. - */ - eProsima_user_DllExport BitsetBitmask& operator =( - const BitsetBitmask& x); - - /*! - * @brief Move assignment. - * @param x Reference to the object bitmodule::BitsetBitmask that will be copied. - */ - eProsima_user_DllExport BitsetBitmask& operator =( - BitsetBitmask&& x) noexcept; - - /*! - * @brief Comparison operator. - * @param x bitmodule::BitsetBitmask object to compare. - */ - eProsima_user_DllExport bool operator ==( - const BitsetBitmask& x) const; - - /*! - * @brief Comparison operator. - * @param x bitmodule::BitsetBitmask object to compare. - */ - eProsima_user_DllExport bool operator !=( - const BitsetBitmask& x) const; - - /*! - * @brief This function copies the value in member mybitset - * @param _mybitset New value to be copied in member mybitset - */ - eProsima_user_DllExport void mybitset( - const bitmodule::MyBitset& _mybitset); - - /*! - * @brief This function moves the value in member mybitset - * @param _mybitset New value to be moved in member mybitset - */ - eProsima_user_DllExport void mybitset( - bitmodule::MyBitset&& _mybitset); - - /*! - * @brief This function returns a constant reference to member mybitset - * @return Constant reference to member mybitset - */ - eProsima_user_DllExport const bitmodule::MyBitset& mybitset() const; - - /*! - * @brief This function returns a reference to member mybitset - * @return Reference to member mybitset - */ - eProsima_user_DllExport bitmodule::MyBitset& mybitset(); - - - /*! - * @brief This function copies the value in member mybitmask - * @param _mybitmask New value to be copied in member mybitmask - */ - eProsima_user_DllExport void mybitmask( - const bitmodule::MyBitMask& _mybitmask); - - /*! - * @brief This function moves the value in member mybitmask - * @param _mybitmask New value to be moved in member mybitmask - */ - eProsima_user_DllExport void mybitmask( - bitmodule::MyBitMask&& _mybitmask); - - /*! - * @brief This function returns a constant reference to member mybitmask - * @return Constant reference to member mybitmask - */ - eProsima_user_DllExport const bitmodule::MyBitMask& mybitmask() const; - - /*! - * @brief This function returns a reference to member mybitmask - * @return Reference to member mybitmask - */ - eProsima_user_DllExport bitmodule::MyBitMask& mybitmask(); - - - /*! - * @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 bitmodule::BitsetBitmask& 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: - - bitmodule::MyBitset m_mybitset; - bitmodule::MyBitMask m_mybitmask; - - }; - - - - /*! - * @brief This class represents the structure BM2 defined by the user in the IDL file. - * @ingroup new_features_4_2 - */ - class BM2 : public bitmodule::BitsetBitmask - { - public: - - /*! - * @brief Default constructor. - */ - eProsima_user_DllExport BM2(); - - /*! - * @brief Default destructor. - */ - eProsima_user_DllExport ~BM2(); - - /*! - * @brief Copy constructor. - * @param x Reference to the object bitmodule::BM2 that will be copied. - */ - eProsima_user_DllExport BM2( - const BM2& x); - - /*! - * @brief Move constructor. - * @param x Reference to the object bitmodule::BM2 that will be copied. - */ - eProsima_user_DllExport BM2( - BM2&& x) noexcept; - - /*! - * @brief Copy assignment. - * @param x Reference to the object bitmodule::BM2 that will be copied. - */ - eProsima_user_DllExport BM2& operator =( - const BM2& x); - - /*! - * @brief Move assignment. - * @param x Reference to the object bitmodule::BM2 that will be copied. - */ - eProsima_user_DllExport BM2& operator =( - BM2&& x) noexcept; - - /*! - * @brief Comparison operator. - * @param x bitmodule::BM2 object to compare. - */ - eProsima_user_DllExport bool operator ==( - const BM2& x) const; - - /*! - * @brief Comparison operator. - * @param x bitmodule::BM2 object to compare. - */ - eProsima_user_DllExport bool operator !=( - const BM2& x) const; - - /*! - * @brief This function copies the value in member two - * @param _two New value to be copied in member two - */ - eProsima_user_DllExport void two( - const bitmodule::MyBitMask& _two); - - /*! - * @brief This function moves the value in member two - * @param _two New value to be moved in member two - */ - eProsima_user_DllExport void two( - bitmodule::MyBitMask&& _two); - - /*! - * @brief This function returns a constant reference to member two - * @return Constant reference to member two - */ - eProsima_user_DllExport const bitmodule::MyBitMask& two() const; - - /*! - * @brief This function returns a reference to member two - * @return Reference to member two - */ - eProsima_user_DllExport bitmodule::MyBitMask& two(); - - - /*! - * @brief This function sets a value in member mylong - * @param _mylong New value for member mylong - */ - eProsima_user_DllExport void mylong( - int32_t _mylong); - - /*! - * @brief This function returns the value of member mylong - * @return Value of member mylong - */ - eProsima_user_DllExport int32_t mylong() const; - - /*! - * @brief This function returns a reference to member mylong - * @return Reference to member mylong - */ - eProsima_user_DllExport int32_t& mylong(); - - - /*! - * @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 bitmodule::BM2& 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: - - bitmodule::MyBitMask m_two; - int32_t m_mylong; - - }; + /*! + * @brief Comparison operator. + * @param x bitmodule::ParentBitset object to compare. + */ + eProsima_user_DllExport bool operator !=( + const ParentBitset& x) const; + + /*! + * @brief This function sets a value in member parent_bitfield + * @param _parent_bitfield New value for member parent_bitfield + */ + eProsima_user_DllExport void parent_bitfield( + uint32_t _parent_bitfield); + + /*! + * @brief This function returns the value of member parent_bitfield + * @return Value of member parent_bitfield + */ + eProsima_user_DllExport uint32_t parent_bitfield() const; + + + eProsima_user_DllExport std::bitset<17> bitset() const; + + eProsima_user_DllExport void bitset( + const std::bitset<17>&); + + /*! + * @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 bitmodule::ParentBitset& 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: + + std::bitset<17> m_bitset; +}; +/*! + * @brief This class represents the structure MyBitset defined by the user in the IDL file. + * @ingroup new_features_4_2 + */ +class MyBitset : public bitmodule::ParentBitset +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport MyBitset(); + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~MyBitset(); + + /*! + * @brief Copy constructor. + * @param x Reference to the object bitmodule::MyBitset that will be copied. + */ + eProsima_user_DllExport MyBitset( + const MyBitset& x); + + /*! + * @brief Move constructor. + * @param x Reference to the object bitmodule::MyBitset that will be copied. + */ + eProsima_user_DllExport MyBitset( + MyBitset&& x) noexcept; + + /*! + * @brief Copy assignment. + * @param x Reference to the object bitmodule::MyBitset that will be copied. + */ + eProsima_user_DllExport MyBitset& operator =( + const MyBitset& x); + + /*! + * @brief Move assignment. + * @param x Reference to the object bitmodule::MyBitset that will be copied. + */ + eProsima_user_DllExport MyBitset& operator =( + MyBitset&& x) noexcept; + + /*! + * @brief Comparison operator. + * @param x bitmodule::MyBitset object to compare. + */ + eProsima_user_DllExport bool operator ==( + const MyBitset& x) const; + + /*! + * @brief Comparison operator. + * @param x bitmodule::MyBitset object to compare. + */ + eProsima_user_DllExport bool operator !=( + const MyBitset& x) const; + + /*! + * @brief This function sets a value in member a + * @param _a New value for member a + */ + eProsima_user_DllExport void a( + char _a); + + /*! + * @brief This function returns the value of member a + * @return Value of member a + */ + eProsima_user_DllExport char a() const; + + + /*! + * @brief This function sets a value in member b + * @param _b New value for member b + */ + eProsima_user_DllExport void b( + bool _b); + + /*! + * @brief This function returns the value of member b + * @return Value of member b + */ + eProsima_user_DllExport bool b() const; + + + + /*! + * @brief This function sets a value in member c + * @param _c New value for member c + */ + eProsima_user_DllExport void c( + uint16_t _c); + + /*! + * @brief This function returns the value of member c + * @return Value of member c + */ + eProsima_user_DllExport uint16_t c() const; + + + /*! + * @brief This function sets a value in member d + * @param _d New value for member d + */ + eProsima_user_DllExport void d( + int16_t _d); + + /*! + * @brief This function returns the value of member d + * @return Value of member d + */ + eProsima_user_DllExport int16_t d() const; + + + /*! + * @brief This function sets a value in member e + * @param _e New value for member e + */ + eProsima_user_DllExport void e( + int16_t _e); + + /*! + * @brief This function returns the value of member e + * @return Value of member e + */ + eProsima_user_DllExport int16_t e() const; + + + /*! + * @brief This function sets a value in member f + * @param _f New value for member f + */ + eProsima_user_DllExport void f( + int16_t _f); + + /*! + * @brief This function returns the value of member f + * @return Value of member f + */ + eProsima_user_DllExport int16_t f() const; + + + eProsima_user_DllExport std::bitset<50> bitset() const; + + eProsima_user_DllExport void bitset( + const std::bitset<50>&); + + /*! + * @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 bitmodule::MyBitset& 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: + + std::bitset<33> m_bitset; +}; +/*! + * @brief This class represents the bitmask MyBitMask defined by the user in the IDL file. + * @ingroup new_features_4_2 + */ +enum MyBitMaskBits : uint8_t +{ + flag0 = 0x01ull << 0, + flag1 = 0x01ull << 1, + flag4 = 0x01ull << 4, + flag6 = 0x01ull << 6, + flag7 = 0x01ull << 7 +}; +typedef uint8_t MyBitMask; + + +/*! + * @brief This class represents the structure BitsetBitmask defined by the user in the IDL file. + * @ingroup new_features_4_2 + */ +class BitsetBitmask +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport BitsetBitmask(); + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~BitsetBitmask(); + + /*! + * @brief Copy constructor. + * @param x Reference to the object bitmodule::BitsetBitmask that will be copied. + */ + eProsima_user_DllExport BitsetBitmask( + const BitsetBitmask& x); + + /*! + * @brief Move constructor. + * @param x Reference to the object bitmodule::BitsetBitmask that will be copied. + */ + eProsima_user_DllExport BitsetBitmask( + BitsetBitmask&& x) noexcept; + + /*! + * @brief Copy assignment. + * @param x Reference to the object bitmodule::BitsetBitmask that will be copied. + */ + eProsima_user_DllExport BitsetBitmask& operator =( + const BitsetBitmask& x); + + /*! + * @brief Move assignment. + * @param x Reference to the object bitmodule::BitsetBitmask that will be copied. + */ + eProsima_user_DllExport BitsetBitmask& operator =( + BitsetBitmask&& x) noexcept; + + /*! + * @brief Comparison operator. + * @param x bitmodule::BitsetBitmask object to compare. + */ + eProsima_user_DllExport bool operator ==( + const BitsetBitmask& x) const; + + /*! + * @brief Comparison operator. + * @param x bitmodule::BitsetBitmask object to compare. + */ + eProsima_user_DllExport bool operator !=( + const BitsetBitmask& x) const; + + /*! + * @brief This function copies the value in member mybitset + * @param _mybitset New value to be copied in member mybitset + */ + eProsima_user_DllExport void mybitset( + const bitmodule::MyBitset& _mybitset); + + /*! + * @brief This function moves the value in member mybitset + * @param _mybitset New value to be moved in member mybitset + */ + eProsima_user_DllExport void mybitset( + bitmodule::MyBitset&& _mybitset); + + /*! + * @brief This function returns a constant reference to member mybitset + * @return Constant reference to member mybitset + */ + eProsima_user_DllExport const bitmodule::MyBitset& mybitset() const; + + /*! + * @brief This function returns a reference to member mybitset + * @return Reference to member mybitset + */ + eProsima_user_DllExport bitmodule::MyBitset& mybitset(); + + + /*! + * @brief This function copies the value in member mybitmask + * @param _mybitmask New value to be copied in member mybitmask + */ + eProsima_user_DllExport void mybitmask( + const bitmodule::MyBitMask& _mybitmask); + + /*! + * @brief This function moves the value in member mybitmask + * @param _mybitmask New value to be moved in member mybitmask + */ + eProsima_user_DllExport void mybitmask( + bitmodule::MyBitMask&& _mybitmask); + + /*! + * @brief This function returns a constant reference to member mybitmask + * @return Constant reference to member mybitmask + */ + eProsima_user_DllExport const bitmodule::MyBitMask& mybitmask() const; + + /*! + * @brief This function returns a reference to member mybitmask + * @return Reference to member mybitmask + */ + eProsima_user_DllExport bitmodule::MyBitMask& mybitmask(); + + + /*! + * @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 bitmodule::BitsetBitmask& 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: + + bitmodule::MyBitset m_mybitset; + bitmodule::MyBitMask m_mybitmask; + +}; + + + +/*! + * @brief This class represents the structure BM2 defined by the user in the IDL file. + * @ingroup new_features_4_2 + */ +class BM2 : public bitmodule::BitsetBitmask +{ +public: + + /*! + * @brief Default constructor. + */ + eProsima_user_DllExport BM2(); + + /*! + * @brief Default destructor. + */ + eProsima_user_DllExport ~BM2(); + + /*! + * @brief Copy constructor. + * @param x Reference to the object bitmodule::BM2 that will be copied. + */ + eProsima_user_DllExport BM2( + const BM2& x); + + /*! + * @brief Move constructor. + * @param x Reference to the object bitmodule::BM2 that will be copied. + */ + eProsima_user_DllExport BM2( + BM2&& x) noexcept; + + /*! + * @brief Copy assignment. + * @param x Reference to the object bitmodule::BM2 that will be copied. + */ + eProsima_user_DllExport BM2& operator =( + const BM2& x); + + /*! + * @brief Move assignment. + * @param x Reference to the object bitmodule::BM2 that will be copied. + */ + eProsima_user_DllExport BM2& operator =( + BM2&& x) noexcept; + + /*! + * @brief Comparison operator. + * @param x bitmodule::BM2 object to compare. + */ + eProsima_user_DllExport bool operator ==( + const BM2& x) const; + + /*! + * @brief Comparison operator. + * @param x bitmodule::BM2 object to compare. + */ + eProsima_user_DllExport bool operator !=( + const BM2& x) const; + + /*! + * @brief This function copies the value in member two + * @param _two New value to be copied in member two + */ + eProsima_user_DllExport void two( + const bitmodule::MyBitMask& _two); + + /*! + * @brief This function moves the value in member two + * @param _two New value to be moved in member two + */ + eProsima_user_DllExport void two( + bitmodule::MyBitMask&& _two); + + /*! + * @brief This function returns a constant reference to member two + * @return Constant reference to member two + */ + eProsima_user_DllExport const bitmodule::MyBitMask& two() const; + + /*! + * @brief This function returns a reference to member two + * @return Reference to member two + */ + eProsima_user_DllExport bitmodule::MyBitMask& two(); + + + /*! + * @brief This function sets a value in member mylong + * @param _mylong New value for member mylong + */ + eProsima_user_DllExport void mylong( + int32_t _mylong); + + /*! + * @brief This function returns the value of member mylong + * @return Value of member mylong + */ + eProsima_user_DllExport int32_t mylong() const; + + /*! + * @brief This function returns a reference to member mylong + * @return Reference to member mylong + */ + eProsima_user_DllExport int32_t& mylong(); + + + /*! + * @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 bitmodule::BM2& 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: + + bitmodule::MyBitMask m_two; + int32_t m_mylong; + +}; } // namespace bitmodule @@ -1672,11 +1647,11 @@ class StructTest : public NewAliases /*! - * @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. - */ + * @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); @@ -1710,18 +1685,17 @@ class StructTest : public NewAliases /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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: OctetUnion m_octetUnion; diff --git a/test/unittest/rtps/history/CMakeLists.txt b/test/unittest/rtps/history/CMakeLists.txt index 45c8c474232..6819d713df4 100644 --- a/test/unittest/rtps/history/CMakeLists.txt +++ b/test/unittest/rtps/history/CMakeLists.txt @@ -77,6 +77,7 @@ target_include_directories(ReaderHistoryTests PRIVATE ${PROJECT_SOURCE_DIR}/src/cpp ${PROJECT_SOURCE_DIR}/include ${PROJECT_BINARY_DIR}/include) target_link_libraries(ReaderHistoryTests + fastcdr GTest::gmock ${CMAKE_DL_LIBS}) gtest_discover_tests(ReaderHistoryTests) diff --git a/test/unittest/rtps/persistence/CMakeLists.txt b/test/unittest/rtps/persistence/CMakeLists.txt index a678ecb6064..c9fc2d0ac07 100644 --- a/test/unittest/rtps/persistence/CMakeLists.txt +++ b/test/unittest/rtps/persistence/CMakeLists.txt @@ -42,6 +42,7 @@ if(SQLITE3_SUPPORT) ${PROJECT_SOURCE_DIR}/src/cpp ) target_link_libraries(PersistenceTests + fastcdr foonathan_memory GTest::gmock ${CMAKE_DL_LIBS} diff --git a/test/unittest/rtps/reader/CMakeLists.txt b/test/unittest/rtps/reader/CMakeLists.txt index 2fcc32b4074..18e2a995832 100644 --- a/test/unittest/rtps/reader/CMakeLists.txt +++ b/test/unittest/rtps/reader/CMakeLists.txt @@ -51,7 +51,7 @@ target_include_directories(WriterProxyTests PRIVATE ${PROJECT_SOURCE_DIR}/include ${PROJECT_BINARY_DIR}/include ${PROJECT_SOURCE_DIR}/src/cpp ) -target_link_libraries(WriterProxyTests foonathan_memory +target_link_libraries(WriterProxyTests fastcdr foonathan_memory GTest::gmock ${CMAKE_DL_LIBS}) gtest_discover_tests(WriterProxyTests) @@ -96,7 +96,7 @@ target_include_directories(WriterProxyStopTest PRIVATE ${PROJECT_SOURCE_DIR}/include ${PROJECT_BINARY_DIR}/include ${PROJECT_SOURCE_DIR}/src/cpp ) -target_link_libraries(WriterProxyStopTest foonathan_memory +target_link_libraries(WriterProxyStopTest fastcdr foonathan_memory GTest::gmock ${CMAKE_DL_LIBS}) gtest_discover_tests(WriterProxyStopTest) @@ -140,7 +140,7 @@ target_include_directories(WriterProxyAcknackTests PRIVATE ${PROJECT_SOURCE_DIR}/include ${PROJECT_BINARY_DIR}/include ${PROJECT_SOURCE_DIR}/src/cpp ) -target_link_libraries(WriterProxyAcknackTests foonathan_memory +target_link_libraries(WriterProxyAcknackTests fastcdr foonathan_memory GTest::gmock ${CMAKE_DL_LIBS}) gtest_discover_tests(WriterProxyAcknackTests) diff --git a/test/unittest/rtps/writer/CMakeLists.txt b/test/unittest/rtps/writer/CMakeLists.txt index ab2645c1c64..6a03a34c0a6 100644 --- a/test/unittest/rtps/writer/CMakeLists.txt +++ b/test/unittest/rtps/writer/CMakeLists.txt @@ -90,6 +90,7 @@ target_include_directories(LivelinessManagerTests PRIVATE ${PROJECT_SOURCE_DIR}/src/cpp ) target_link_libraries(LivelinessManagerTests PRIVATE + fastcdr GTest::gmock) gtest_discover_tests(LivelinessManagerTests) diff --git a/test/unittest/security/accesscontrol/AccessControlTests.cpp b/test/unittest/security/accesscontrol/AccessControlTests.cpp index beb97e9269d..afdfe5c4f51 100644 --- a/test/unittest/security/accesscontrol/AccessControlTests.cpp +++ b/test/unittest/security/accesscontrol/AccessControlTests.cpp @@ -229,7 +229,7 @@ void AccessControlTest::check_remote_datareader( SecurityException exception; ReaderProxyData reader_proxy_data(1, 1); - reader_proxy_data.topicName(eprosima::fastrtps::string_255(topic_name)); + reader_proxy_data.topicName(eprosima::fastcdr::string_255(topic_name)); reader_proxy_data.m_qos.m_partition.setNames(partitions); bool relay_only; bool result = access_plugin.check_remote_datareader( @@ -287,7 +287,7 @@ void AccessControlTest::check_remote_datawriter( SecurityException exception; WriterProxyData writer_proxy_data(1, 1); - writer_proxy_data.topicName(eprosima::fastrtps::string_255(topic_name)); + writer_proxy_data.topicName(eprosima::fastcdr::string_255(topic_name)); writer_proxy_data.m_qos.m_partition.setNames(partitions); bool result = access_plugin.check_remote_datawriter( *access_handle, diff --git a/test/unittest/statistics/rtps/RTPSStatisticsTests.cpp b/test/unittest/statistics/rtps/RTPSStatisticsTests.cpp index 863c0b20a79..111f5a6d41c 100644 --- a/test/unittest/statistics/rtps/RTPSStatisticsTests.cpp +++ b/test/unittest/statistics/rtps/RTPSStatisticsTests.cpp @@ -352,8 +352,8 @@ class RTPSStatisticsTestsImpl void match_endpoints( bool key, - fastrtps::string_255 data_type, - fastrtps::string_255 topic_name) + fastcdr::string_255 data_type, + fastcdr::string_255 topic_name) { using namespace fastrtps; using namespace fastrtps::rtps; diff --git a/test/unittest/utils/CMakeLists.txt b/test/unittest/utils/CMakeLists.txt index ce3534c8954..9ace045dbe4 100644 --- a/test/unittest/utils/CMakeLists.txt +++ b/test/unittest/utils/CMakeLists.txt @@ -25,9 +25,6 @@ set(STRINGMATCHINGTESTS_SOURCE ${PROJECT_SOURCE_DIR}/src/cpp/utils/StringMatching.cpp ${PROJECT_SOURCE_DIR}/src/cpp/utils/SystemInfo.cpp) -set(FIXEDSIZESTRINGTESTS_SOURCE - FixedSizeStringTests.cpp) - set(BITMAPRANGETESTS_SOURCE BitmapRangeTests.cpp) @@ -72,17 +69,6 @@ endif() gtest_discover_tests(StringMatchingTests) -add_executable(FixedSizeStringTests ${FIXEDSIZESTRINGTESTS_SOURCE}) -target_compile_definitions(FixedSizeStringTests PRIVATE - $<$>,$>:__DEBUG> - $<$:__INTERNALDEBUG> # Internal debug activated. - ) -target_include_directories(FixedSizeStringTests PRIVATE - ${PROJECT_SOURCE_DIR}/include ${PROJECT_BINARY_DIR}/include) -target_link_libraries(FixedSizeStringTests GTest::gtest ${MOCKS}) -gtest_discover_tests(FixedSizeStringTests) - - add_executable(BitmapRangeTests ${BITMAPRANGETESTS_SOURCE}) target_compile_definitions(BitmapRangeTests PRIVATE $<$>,$>:__DEBUG> diff --git a/test/unittest/utils/FixedSizeStringTests.cpp b/test/unittest/utils/FixedSizeStringTests.cpp deleted file mode 100644 index d0c25ef2660..00000000000 --- a/test/unittest/utils/FixedSizeStringTests.cpp +++ /dev/null @@ -1,273 +0,0 @@ -// Copyright 2018 Proyectos y Sistemas de Mantenimiento SL (eProsima). -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#include -#include - -using namespace eprosima::fastrtps; - -constexpr size_t MAX_CHARS = 255; -constexpr size_t OTHER_MAX_CHARS = 127; - -class FixedSizeStringTests : public ::testing::Test -{ -public: - - char const* pattern0 = "foo/bar/baz"; - char const* long_pattern = - "0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF" - "0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF" - "0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF" - "0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF" - "0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF" - "0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF" - "0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF" - "0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF"; - - size_t pattern0_len = strlen(pattern0); -}; - -TEST_F(FixedSizeStringTests, default_constructor) -{ - std::string std_s; - fixed_string fixed_s; - - ASSERT_EQ(fixed_s.size(), 0u); - ASSERT_EQ(fixed_s, ""); - ASSERT_EQ(fixed_s, std_s); -} - -TEST_F(FixedSizeStringTests, construct_with_empty_c_string) -{ - std::string std_s; - fixed_string fixed_s(""); - - ASSERT_EQ(fixed_s.size(), 0u); - ASSERT_EQ(fixed_s, ""); - ASSERT_EQ(fixed_s, std_s); -} - -TEST_F(FixedSizeStringTests, construct_with_empty_std_string) -{ - std::string std_s; - fixed_string fixed_s(std_s); - - ASSERT_EQ(fixed_s.size(), 0u); - ASSERT_EQ(fixed_s, ""); - ASSERT_EQ(fixed_s, std_s); -} - -TEST_F(FixedSizeStringTests, construct_with_c_string) -{ - fixed_string fixed_s(pattern0); - - ASSERT_EQ(fixed_s.size(), pattern0_len); - ASSERT_EQ(fixed_s, pattern0); -} - -TEST_F(FixedSizeStringTests, construct_with_std_string) -{ - std::string std_string(pattern0); - fixed_string fixed_s(std_string); - - ASSERT_EQ(fixed_s.size(), pattern0_len); - ASSERT_EQ(fixed_s, std_string); -} - -TEST_F(FixedSizeStringTests, construct_with_long_c_string) -{ - fixed_string fixed_s(long_pattern); - - ASSERT_EQ(fixed_s.size(), MAX_CHARS); - ASSERT_EQ(fixed_s, long_pattern); -} - -TEST_F(FixedSizeStringTests, construct_with_long_std_string) -{ - std::string std_string(long_pattern); - fixed_string fixed_s(std_string); - - ASSERT_EQ(fixed_s.size(), MAX_CHARS); - ASSERT_EQ(fixed_s, std_string); -} - -TEST_F(FixedSizeStringTests, assign_operators_and_inequality) -{ - fixed_string fixed_s; - - std::string std_s_empty; - std::string std_s(pattern0); - std::string std_s_long(long_pattern); - - fixed_s = std_s_long; - ASSERT_EQ(fixed_s.size(), MAX_CHARS); - ASSERT_EQ(fixed_s, long_pattern); - ASSERT_NE(fixed_s, pattern0); - ASSERT_NE(fixed_s, ""); - - fixed_s = pattern0; - ASSERT_EQ(fixed_s.size(), pattern0_len); - ASSERT_EQ(fixed_s, std_s); - ASSERT_NE(fixed_s, std_s_empty); - ASSERT_NE(fixed_s, std_s_long); - - fixed_s = std_s_empty; - ASSERT_EQ(fixed_s.size(), 0u); - ASSERT_EQ(fixed_s, ""); - ASSERT_NE(fixed_s, long_pattern); - ASSERT_NE(fixed_s, pattern0); - - fixed_s = long_pattern; - ASSERT_EQ(fixed_s.size(), MAX_CHARS); - ASSERT_EQ(fixed_s, std_s_long); - ASSERT_NE(fixed_s, std_s); - ASSERT_NE(fixed_s, std_s_empty); - - fixed_s = std_s; - ASSERT_EQ(fixed_s.size(), pattern0_len); - ASSERT_EQ(fixed_s, pattern0); - ASSERT_NE(fixed_s, ""); - ASSERT_NE(fixed_s, long_pattern); - - fixed_s = ""; - ASSERT_EQ(fixed_s.size(), 0u); - ASSERT_EQ(fixed_s, std_s_empty); - ASSERT_NE(fixed_s, std_s_long); - ASSERT_NE(fixed_s, std_s); -} - -TEST_F(FixedSizeStringTests, different_fixed_sizes) -{ - fixed_string s1; - fixed_string s2; - - ASSERT_EQ(s1, s2); - - s1 = long_pattern; - ASSERT_NE(s1, s2); - - s2 = s1; - ASSERT_EQ(s2, s1); - - s2 = pattern0; - ASSERT_NE(s2, s1); - - s1 = s2; - ASSERT_EQ(s1, s2); -} - -TEST_F(FixedSizeStringTests, comparisons) -{ - const char* c_string_short = "test string"; - const char* c_string_a = "test string a"; - const char* c_string_b = "test string b"; - const char* c_string_c = "test string c"; - const char* c_string_large = "test string b "; - std::string std_string_short = "test string"; - std::string std_string_a = "test string a"; - std::string std_string_b = "test string b"; - std::string std_string_c = "test string c"; - std::string std_string_large = "test string b "; - fixed_string fixed_short = "test string"; - fixed_string fixed_a = "test string a"; - fixed_string fixed_b = "test string b"; - fixed_string fixed_c = "test string c"; - fixed_string fixed_large = "test string b "; - - ASSERT_NE(fixed_b, c_string_short); - ASSERT_NE(fixed_b, c_string_a); - ASSERT_EQ(fixed_b, c_string_b); - ASSERT_NE(fixed_b, c_string_c); - ASSERT_NE(fixed_b, c_string_large); - - ASSERT_LT(0, fixed_b.compare(c_string_short)); - ASSERT_LT(0, fixed_b.compare(c_string_a)); - ASSERT_EQ(0, fixed_b.compare(c_string_b)); - ASSERT_GT(0, fixed_b.compare(c_string_c)); - ASSERT_GT(0, fixed_b.compare(c_string_large)); - - ASSERT_NE(fixed_b, std_string_short); - ASSERT_NE(fixed_b, std_string_a); - ASSERT_EQ(fixed_b, std_string_b); - ASSERT_NE(fixed_b, std_string_c); - ASSERT_NE(fixed_b, std_string_large); - - ASSERT_LE(0, fixed_b.compare(std_string_short)); - ASSERT_LE(0, fixed_b.compare(std_string_a)); - ASSERT_EQ(0, fixed_b.compare(std_string_b)); - ASSERT_GT(0, fixed_b.compare(std_string_c)); - ASSERT_GT(0, fixed_b.compare(std_string_large)); - - ASSERT_NE(fixed_b, fixed_short); - ASSERT_NE(fixed_b, fixed_a); - ASSERT_EQ(fixed_b, fixed_b); - ASSERT_NE(fixed_b, fixed_c); - ASSERT_NE(fixed_b, fixed_large); - - ASSERT_LE(0, fixed_b.compare(fixed_short)); - ASSERT_LE(0, fixed_b.compare(fixed_a)); - ASSERT_EQ(0, fixed_b.compare(fixed_b)); - ASSERT_GT(0, fixed_b.compare(fixed_c)); - ASSERT_GT(0, fixed_b.compare(fixed_large)); -} - -TEST_F(FixedSizeStringTests, less_than_operator_fixed_string) -{ - fixed_string fixed_string_short = "test string"; - fixed_string fixed_string_long = "test string long"; - - ASSERT_FALSE(fixed_string_short < fixed_string_short); - ASSERT_FALSE(fixed_string_long < fixed_string_long); - ASSERT_TRUE(fixed_string_short < fixed_string_long); - ASSERT_FALSE(fixed_string_long < fixed_string_short); -} - -TEST_F(FixedSizeStringTests, less_than_operator_std_string) -{ - fixed_string fixed_string_short = "test string"; - std::string std_string_long = "test string long"; - std::string std_string_short = "test"; - - ASSERT_TRUE(fixed_string_short < std_string_long); - ASSERT_FALSE(fixed_string_short < std_string_short); -} - -TEST_F(FixedSizeStringTests, greater_than_operator_fixed_string) -{ - fixed_string fixed_string_short = "test string"; - fixed_string fixed_string_long = "test string long"; - - ASSERT_FALSE(fixed_string_short > fixed_string_short); - ASSERT_FALSE(fixed_string_long > fixed_string_long); - ASSERT_FALSE(fixed_string_short > fixed_string_long); - ASSERT_TRUE(fixed_string_long > fixed_string_short); -} - -TEST_F(FixedSizeStringTests, greater_than_operator_std_string) -{ - fixed_string fixed_string_short = "test string"; - std::string std_string_long = "test string long"; - std::string std_string_short = "test"; - - ASSERT_FALSE(fixed_string_short > std_string_long); - ASSERT_TRUE(fixed_string_short > std_string_short); -} - -int main( - int argc, - char** argv) -{ - testing::InitGoogleTest(&argc, argv); - return RUN_ALL_TESTS(); -} diff --git a/test/unittest/xtypes/idl/Typesv1.cxx b/test/unittest/xtypes/idl/Typesv1.cxx index 54b0d494ecc..098cc1b3b0a 100644 --- a/test/unittest/xtypes/idl/Typesv1.cxx +++ b/test/unittest/xtypes/idl/Typesv1.cxx @@ -2295,7 +2295,7 @@ void LargeStringStruct::serializeKey( * @param _my_large_string New value to be copied in member my_large_string */ void LargeStringStruct::my_large_string( - const eprosima::fastrtps::fixed_string<41925>& _my_large_string) + const eprosima::fastcdr::fixed_string<41925>& _my_large_string) { m_my_large_string = _my_large_string; } @@ -2305,7 +2305,7 @@ void LargeStringStruct::my_large_string( * @param _my_large_string New value to be moved in member my_large_string */ void LargeStringStruct::my_large_string( - eprosima::fastrtps::fixed_string<41925>&& _my_large_string) + eprosima::fastcdr::fixed_string<41925>&& _my_large_string) { m_my_large_string = std::move(_my_large_string); } @@ -2314,7 +2314,7 @@ void LargeStringStruct::my_large_string( * @brief This function returns a constant reference to member my_large_string * @return Constant reference to member my_large_string */ -const eprosima::fastrtps::fixed_string<41925>& LargeStringStruct::my_large_string() const +const eprosima::fastcdr::fixed_string<41925>& LargeStringStruct::my_large_string() const { return m_my_large_string; } @@ -2323,7 +2323,7 @@ const eprosima::fastrtps::fixed_string<41925>& LargeStringStruct::my_large_strin * @brief This function returns a reference to member my_large_string * @return Reference to member my_large_string */ -eprosima::fastrtps::fixed_string<41925>& LargeStringStruct::my_large_string() +eprosima::fastcdr::fixed_string<41925>& LargeStringStruct::my_large_string() { return m_my_large_string; } diff --git a/test/unittest/xtypes/idl/Typesv1.h b/test/unittest/xtypes/idl/Typesv1.h index d350f662843..347a0fba76c 100644 --- a/test/unittest/xtypes/idl/Typesv1.h +++ b/test/unittest/xtypes/idl/Typesv1.h @@ -26,9 +26,6 @@ #ifndef _FAST_DDS_GENERATED_TYPES_H_ #define _FAST_DDS_GENERATED_TYPES_H_ - -#include - #include #include #include @@ -37,6 +34,8 @@ #include #include +#include + #if defined(_WIN32) #if defined(EPROSIMA_USER_DLL_EXPORT) #define eProsima_user_DllExport __declspec( dllexport ) @@ -172,11 +171,11 @@ class MyEnumStruct /*! - * @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. - */ + * @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); @@ -210,18 +209,17 @@ class MyEnumStruct /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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: MyEnum m_my_enum; @@ -311,11 +309,11 @@ class MyBadEnumStruct /*! - * @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. - */ + * @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); @@ -349,18 +347,17 @@ class MyBadEnumStruct /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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: MyBadEnum m_my_enum; @@ -452,11 +449,11 @@ class MyAliasEnumStruct /*! - * @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. - */ + * @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); @@ -490,18 +487,17 @@ class MyAliasEnumStruct /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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: MyAliasEnum m_my_enum; @@ -638,11 +634,11 @@ class BasicStruct /*! - * @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. - */ + * @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); @@ -676,18 +672,17 @@ class BasicStruct /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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: bool m_my_bool; @@ -826,11 +821,11 @@ class BasicNamesStruct /*! - * @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. - */ + * @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); @@ -864,18 +859,17 @@ class BasicNamesStruct /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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: bool m_my_bool_name; @@ -1014,11 +1008,11 @@ class BasicBadStruct /*! - * @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. - */ + * @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); @@ -1052,18 +1046,17 @@ class BasicBadStruct /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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: uint8_t m_my_bool; @@ -1249,11 +1242,11 @@ class BasicWideStruct /*! - * @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. - */ + * @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); @@ -1287,18 +1280,17 @@ class BasicWideStruct /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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: bool m_my_bool; @@ -1486,11 +1478,11 @@ class BadBasicWideStruct /*! - * @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. - */ + * @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); @@ -1524,18 +1516,17 @@ class BadBasicWideStruct /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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_new_int32; @@ -1636,11 +1627,11 @@ class StringStruct /*! - * @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. - */ + * @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); @@ -1674,18 +1665,17 @@ class StringStruct /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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::string m_my_string; @@ -1759,34 +1749,34 @@ class LargeStringStruct * @param _my_large_string New value to be copied in member my_large_string */ eProsima_user_DllExport void my_large_string( - const eprosima::fastrtps::fixed_string<41925>& _my_large_string); + const eprosima::fastcdr::fixed_string<41925>& _my_large_string); /*! * @brief This function moves the value in member my_large_string * @param _my_large_string New value to be moved in member my_large_string */ eProsima_user_DllExport void my_large_string( - eprosima::fastrtps::fixed_string<41925>&& _my_large_string); + eprosima::fastcdr::fixed_string<41925>&& _my_large_string); /*! * @brief This function returns a constant reference to member my_large_string * @return Constant reference to member my_large_string */ - eProsima_user_DllExport const eprosima::fastrtps::fixed_string<41925>& my_large_string() const; + eProsima_user_DllExport const eprosima::fastcdr::fixed_string<41925>& my_large_string() const; /*! * @brief This function returns a reference to member my_large_string * @return Reference to member my_large_string */ - eProsima_user_DllExport eprosima::fastrtps::fixed_string<41925>& my_large_string(); + eProsima_user_DllExport eprosima::fastcdr::fixed_string<41925>& my_large_string(); /*! - * @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. - */ + * @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); @@ -1820,21 +1810,20 @@ class LargeStringStruct /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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::fastrtps::fixed_string<41925> m_my_large_string; + eprosima::fastcdr::fixed_string<41925> m_my_large_string; }; @@ -1928,11 +1917,11 @@ class WStringStruct /*! - * @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. - */ + * @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); @@ -1966,18 +1955,17 @@ class WStringStruct /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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::wstring m_my_wstring; @@ -2074,11 +2062,11 @@ class LargeWStringStruct /*! - * @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. - */ + * @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); @@ -2112,18 +2100,17 @@ class LargeWStringStruct /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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::wstring m_my_large_wstring; @@ -2220,11 +2207,11 @@ class ArrayStruct /*! - * @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. - */ + * @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); @@ -2258,18 +2245,17 @@ class ArrayStruct /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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_my_array; @@ -2366,11 +2352,11 @@ class ArrayStructEqual /*! - * @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. - */ + * @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); @@ -2404,18 +2390,17 @@ class ArrayStructEqual /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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_my_array_equal; @@ -2512,11 +2497,11 @@ class ArrayBadStruct /*! - * @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. - */ + * @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); @@ -2550,18 +2535,17 @@ class ArrayBadStruct /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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_my_array; @@ -2658,11 +2642,11 @@ class ArrayDimensionsStruct /*! - * @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. - */ + * @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); @@ -2696,18 +2680,17 @@ class ArrayDimensionsStruct /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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, 2> m_my_array; @@ -2804,11 +2787,11 @@ class ArraySizeStruct /*! - * @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. - */ + * @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); @@ -2842,18 +2825,17 @@ class ArraySizeStruct /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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_my_array; @@ -2952,11 +2934,11 @@ class SequenceStruct /*! - * @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. - */ + * @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); @@ -2990,18 +2972,17 @@ class SequenceStruct /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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::vector m_my_sequence; @@ -3100,11 +3081,11 @@ class SequenceStructEqual /*! - * @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. - */ + * @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); @@ -3138,18 +3119,17 @@ class SequenceStructEqual /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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::vector m_my_sequence_equal; @@ -3248,11 +3228,11 @@ class SequenceBadStruct /*! - * @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. - */ + * @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); @@ -3286,18 +3266,17 @@ class SequenceBadStruct /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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::vector m_my_sequence; @@ -3396,11 +3375,11 @@ class SequenceBoundsStruct /*! - * @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. - */ + * @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); @@ -3434,18 +3413,17 @@ class SequenceBoundsStruct /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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::vector m_my_sequence; @@ -3546,11 +3524,11 @@ class SequenceSequenceStruct /*! - * @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. - */ + * @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); @@ -3584,18 +3562,17 @@ class SequenceSequenceStruct /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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::vector> m_my_sequence_sequence; @@ -3696,11 +3673,11 @@ class SequenceSequenceBoundsStruct /*! - * @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. - */ + * @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); @@ -3734,18 +3711,17 @@ class SequenceSequenceBoundsStruct /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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::vector> m_my_sequence_sequence; @@ -3844,11 +3820,11 @@ class MapStruct /*! - * @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. - */ + * @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); @@ -3882,18 +3858,17 @@ class MapStruct /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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::map m_my_map; @@ -3992,11 +3967,11 @@ class MapStructEqual /*! - * @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. - */ + * @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); @@ -4030,18 +4005,17 @@ class MapStructEqual /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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::map m_my_map_equal; @@ -4140,11 +4114,11 @@ class MapBadKeyStruct /*! - * @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. - */ + * @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); @@ -4178,18 +4152,17 @@ class MapBadKeyStruct /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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::map m_my_map; @@ -4288,11 +4261,11 @@ class MapBadElemStruct /*! - * @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. - */ + * @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); @@ -4326,18 +4299,17 @@ class MapBadElemStruct /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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::map m_my_map; @@ -4436,11 +4408,11 @@ class MapBoundsStruct /*! - * @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. - */ + * @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); @@ -4474,18 +4446,17 @@ class MapBoundsStruct /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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::map m_my_map; @@ -4586,11 +4557,11 @@ class MapMapStruct /*! - * @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. - */ + * @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); @@ -4624,18 +4595,17 @@ class MapMapStruct /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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::map> m_my_map_map; @@ -4736,11 +4706,11 @@ class MapMapBoundsStruct /*! - * @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. - */ + * @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); @@ -4774,18 +4744,17 @@ class MapMapBoundsStruct /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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::map> m_my_map_map; @@ -4944,10 +4913,6 @@ class SimpleUnion eProsima_user_DllExport void deserialize( eprosima::fastcdr::Cdr& cdr); - - - - private: int32_t m__d; @@ -5108,10 +5073,6 @@ class SimpleUnionNames eProsima_user_DllExport void deserialize( eprosima::fastcdr::Cdr& cdr); - - - - private: int32_t m__d; @@ -5272,10 +5233,6 @@ class SimpleTypeUnion eProsima_user_DllExport void deserialize( eprosima::fastcdr::Cdr& cdr); - - - - private: int32_t m__d; @@ -5436,10 +5393,6 @@ class SimpleBadUnion eProsima_user_DllExport void deserialize( eprosima::fastcdr::Cdr& cdr); - - - - private: int32_t m__d; @@ -5600,10 +5553,6 @@ class SimpleBadDiscUnion eProsima_user_DllExport void deserialize( eprosima::fastcdr::Cdr& cdr); - - - - private: uint8_t m__d; @@ -5702,11 +5651,11 @@ class SimpleUnionStruct /*! - * @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. - */ + * @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); @@ -5740,18 +5689,17 @@ class SimpleUnionStruct /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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: SimpleUnion m_my_union; @@ -5848,11 +5796,11 @@ class SimpleUnionStructEqual /*! - * @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. - */ + * @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); @@ -5886,18 +5834,17 @@ class SimpleUnionStructEqual /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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: SimpleUnion m_my_union_equal; @@ -5994,11 +5941,11 @@ class SimpleUnionNamesStruct /*! - * @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. - */ + * @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); @@ -6032,18 +5979,17 @@ class SimpleUnionNamesStruct /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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: SimpleUnionNames m_my_union; @@ -6140,11 +6086,11 @@ class SimpleTypeUnionStruct /*! - * @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. - */ + * @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); @@ -6178,18 +6124,17 @@ class SimpleTypeUnionStruct /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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: SimpleTypeUnion m_my_union; @@ -6286,11 +6231,11 @@ class SimpleBadUnionStruct /*! - * @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. - */ + * @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); @@ -6324,18 +6269,17 @@ class SimpleBadUnionStruct /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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: SimpleBadUnion m_my_union; @@ -6432,11 +6376,11 @@ class SimplBadDiscUnionStruct /*! - * @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. - */ + * @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); @@ -6470,18 +6414,17 @@ class SimplBadDiscUnionStruct /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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: SimpleBadDiscUnion m_my_union; diff --git a/test/unittest/xtypes/idl/WideEnum.h b/test/unittest/xtypes/idl/WideEnum.h index 3a731aeb935..6ec2c5b51ba 100644 --- a/test/unittest/xtypes/idl/WideEnum.h +++ b/test/unittest/xtypes/idl/WideEnum.h @@ -34,12 +34,9 @@ #include #include -#include #include #include - - #if defined(_WIN32) #if defined(EPROSIMA_USER_DLL_EXPORT) #define eProsima_user_DllExport __declspec( dllexport ) diff --git a/test/unittest/xtypes/idl/WideEnumv1.h b/test/unittest/xtypes/idl/WideEnumv1.h index aac7aeb1a72..4b9c16c495c 100644 --- a/test/unittest/xtypes/idl/WideEnumv1.h +++ b/test/unittest/xtypes/idl/WideEnumv1.h @@ -27,7 +27,7 @@ #define _FAST_DDS_GENERATED_WIDEENUM_H_ -#include +#include #include #include @@ -163,11 +163,11 @@ class MyEnumWideStruct /*! - * @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. - */ + * @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); @@ -201,18 +201,17 @@ class MyEnumWideStruct /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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: MyEnumWide m_my_enum_wide; @@ -393,10 +392,6 @@ class SimpleWideUnion eProsima_user_DllExport void deserialize( eprosima::fastcdr::Cdr& cdr); - - - - private: int32_t m__d; @@ -496,11 +491,11 @@ class SimpleWideUnionStruct /*! - * @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. - */ + * @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); @@ -534,18 +529,17 @@ class SimpleWideUnionStruct /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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: SimpleWideUnion m_my_union; diff --git a/test/xtypes/TestPublisher.cpp b/test/xtypes/TestPublisher.cpp index 399990f6124..7b591722303 100644 --- a/test/xtypes/TestPublisher.cpp +++ b/test/xtypes/TestPublisher.cpp @@ -250,7 +250,7 @@ void TestPublisher::PubListener::on_publication_matched( void TestPublisher::PartListener::on_type_discovery( eprosima::fastdds::dds::DomainParticipant*, const rtps::SampleIdentity&, - const eprosima::fastrtps::string_255& topic, + const eprosima::fastcdr::string_255& topic, const eprosima::fastrtps::types::TypeIdentifier*, const eprosima::fastrtps::types::TypeObject*, eprosima::fastrtps::types::DynamicType_ptr dyn_type) @@ -267,8 +267,8 @@ void TestPublisher::PartListener::on_type_discovery( void TestPublisher::PartListener::on_type_information_received( eprosima::fastdds::dds::DomainParticipant*, - const eprosima::fastrtps::string_255 topic_name, - const eprosima::fastrtps::string_255 type_name, + const eprosima::fastcdr::string_255 topic_name, + const eprosima::fastcdr::string_255 type_name, const eprosima::fastrtps::types::TypeInformation& type_information) { std::function callback = diff --git a/test/xtypes/TestPublisher.h b/test/xtypes/TestPublisher.h index ccf9bf6cfe4..1e1d1f000d6 100644 --- a/test/xtypes/TestPublisher.h +++ b/test/xtypes/TestPublisher.h @@ -160,15 +160,15 @@ class TestPublisher void on_type_discovery( eprosima::fastdds::dds::DomainParticipant* participant, const eprosima::fastrtps::rtps::SampleIdentity& request_sample_id, - const eprosima::fastrtps::string_255& topic, + const eprosima::fastcdr::string_255& topic, const eprosima::fastrtps::types::TypeIdentifier* identifier, const eprosima::fastrtps::types::TypeObject* object, eprosima::fastrtps::types::DynamicType_ptr dyn_type) override; void on_type_information_received( eprosima::fastdds::dds::DomainParticipant* participant, - const eprosima::fastrtps::string_255 topic_name, - const eprosima::fastrtps::string_255 type_name, + const eprosima::fastcdr::string_255 topic_name, + const eprosima::fastcdr::string_255 type_name, const eprosima::fastrtps::types::TypeInformation& type_information) override; TestPublisher* parent_; diff --git a/test/xtypes/TestSubscriber.cpp b/test/xtypes/TestSubscriber.cpp index a1bbb453897..9d9cbc823cd 100644 --- a/test/xtypes/TestSubscriber.cpp +++ b/test/xtypes/TestSubscriber.cpp @@ -285,7 +285,7 @@ void TestSubscriber::SubListener::on_data_available( void TestSubscriber::PartListener::on_type_discovery( eprosima::fastdds::dds::DomainParticipant*, const rtps::SampleIdentity&, - const eprosima::fastrtps::string_255& topic, + const eprosima::fastcdr::string_255& topic, const eprosima::fastrtps::types::TypeIdentifier*, const eprosima::fastrtps::types::TypeObject*, eprosima::fastrtps::types::DynamicType_ptr dyn_type) @@ -302,8 +302,8 @@ void TestSubscriber::PartListener::on_type_discovery( void TestSubscriber::PartListener::on_type_information_received( eprosima::fastdds::dds::DomainParticipant*, - const eprosima::fastrtps::string_255 topic_name, - const eprosima::fastrtps::string_255 type_name, + const eprosima::fastcdr::string_255 topic_name, + const eprosima::fastcdr::string_255 type_name, const eprosima::fastrtps::types::TypeInformation& type_information) { std::function callback = diff --git a/test/xtypes/TestSubscriber.h b/test/xtypes/TestSubscriber.h index 21e54e0f4ce..ae6603b3c33 100644 --- a/test/xtypes/TestSubscriber.h +++ b/test/xtypes/TestSubscriber.h @@ -139,15 +139,15 @@ class TestSubscriber void on_type_discovery( eprosima::fastdds::dds::DomainParticipant* participant, const eprosima::fastrtps::rtps::SampleIdentity& request_sample_id, - const eprosima::fastrtps::string_255& topic, + const eprosima::fastcdr::string_255& topic, const eprosima::fastrtps::types::TypeIdentifier* identifier, const eprosima::fastrtps::types::TypeObject* object, eprosima::fastrtps::types::DynamicType_ptr dyn_type) override; void on_type_information_received( eprosima::fastdds::dds::DomainParticipant* participant, - const eprosima::fastrtps::string_255 topic_name, - const eprosima::fastrtps::string_255 type_name, + const eprosima::fastcdr::string_255 topic_name, + const eprosima::fastcdr::string_255 type_name, const eprosima::fastrtps::types::TypeInformation& type_information) override; TestSubscriber* parent_; diff --git a/test/xtypes/idl/Typesv1.cxx b/test/xtypes/idl/Typesv1.cxx index 54b0d494ecc..098cc1b3b0a 100644 --- a/test/xtypes/idl/Typesv1.cxx +++ b/test/xtypes/idl/Typesv1.cxx @@ -2295,7 +2295,7 @@ void LargeStringStruct::serializeKey( * @param _my_large_string New value to be copied in member my_large_string */ void LargeStringStruct::my_large_string( - const eprosima::fastrtps::fixed_string<41925>& _my_large_string) + const eprosima::fastcdr::fixed_string<41925>& _my_large_string) { m_my_large_string = _my_large_string; } @@ -2305,7 +2305,7 @@ void LargeStringStruct::my_large_string( * @param _my_large_string New value to be moved in member my_large_string */ void LargeStringStruct::my_large_string( - eprosima::fastrtps::fixed_string<41925>&& _my_large_string) + eprosima::fastcdr::fixed_string<41925>&& _my_large_string) { m_my_large_string = std::move(_my_large_string); } @@ -2314,7 +2314,7 @@ void LargeStringStruct::my_large_string( * @brief This function returns a constant reference to member my_large_string * @return Constant reference to member my_large_string */ -const eprosima::fastrtps::fixed_string<41925>& LargeStringStruct::my_large_string() const +const eprosima::fastcdr::fixed_string<41925>& LargeStringStruct::my_large_string() const { return m_my_large_string; } @@ -2323,7 +2323,7 @@ const eprosima::fastrtps::fixed_string<41925>& LargeStringStruct::my_large_strin * @brief This function returns a reference to member my_large_string * @return Reference to member my_large_string */ -eprosima::fastrtps::fixed_string<41925>& LargeStringStruct::my_large_string() +eprosima::fastcdr::fixed_string<41925>& LargeStringStruct::my_large_string() { return m_my_large_string; } diff --git a/test/xtypes/idl/Typesv1.h b/test/xtypes/idl/Typesv1.h index d350f662843..347a0fba76c 100644 --- a/test/xtypes/idl/Typesv1.h +++ b/test/xtypes/idl/Typesv1.h @@ -26,9 +26,6 @@ #ifndef _FAST_DDS_GENERATED_TYPES_H_ #define _FAST_DDS_GENERATED_TYPES_H_ - -#include - #include #include #include @@ -37,6 +34,8 @@ #include #include +#include + #if defined(_WIN32) #if defined(EPROSIMA_USER_DLL_EXPORT) #define eProsima_user_DllExport __declspec( dllexport ) @@ -172,11 +171,11 @@ class MyEnumStruct /*! - * @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. - */ + * @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); @@ -210,18 +209,17 @@ class MyEnumStruct /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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: MyEnum m_my_enum; @@ -311,11 +309,11 @@ class MyBadEnumStruct /*! - * @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. - */ + * @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); @@ -349,18 +347,17 @@ class MyBadEnumStruct /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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: MyBadEnum m_my_enum; @@ -452,11 +449,11 @@ class MyAliasEnumStruct /*! - * @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. - */ + * @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); @@ -490,18 +487,17 @@ class MyAliasEnumStruct /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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: MyAliasEnum m_my_enum; @@ -638,11 +634,11 @@ class BasicStruct /*! - * @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. - */ + * @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); @@ -676,18 +672,17 @@ class BasicStruct /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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: bool m_my_bool; @@ -826,11 +821,11 @@ class BasicNamesStruct /*! - * @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. - */ + * @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); @@ -864,18 +859,17 @@ class BasicNamesStruct /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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: bool m_my_bool_name; @@ -1014,11 +1008,11 @@ class BasicBadStruct /*! - * @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. - */ + * @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); @@ -1052,18 +1046,17 @@ class BasicBadStruct /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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: uint8_t m_my_bool; @@ -1249,11 +1242,11 @@ class BasicWideStruct /*! - * @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. - */ + * @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); @@ -1287,18 +1280,17 @@ class BasicWideStruct /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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: bool m_my_bool; @@ -1486,11 +1478,11 @@ class BadBasicWideStruct /*! - * @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. - */ + * @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); @@ -1524,18 +1516,17 @@ class BadBasicWideStruct /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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_new_int32; @@ -1636,11 +1627,11 @@ class StringStruct /*! - * @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. - */ + * @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); @@ -1674,18 +1665,17 @@ class StringStruct /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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::string m_my_string; @@ -1759,34 +1749,34 @@ class LargeStringStruct * @param _my_large_string New value to be copied in member my_large_string */ eProsima_user_DllExport void my_large_string( - const eprosima::fastrtps::fixed_string<41925>& _my_large_string); + const eprosima::fastcdr::fixed_string<41925>& _my_large_string); /*! * @brief This function moves the value in member my_large_string * @param _my_large_string New value to be moved in member my_large_string */ eProsima_user_DllExport void my_large_string( - eprosima::fastrtps::fixed_string<41925>&& _my_large_string); + eprosima::fastcdr::fixed_string<41925>&& _my_large_string); /*! * @brief This function returns a constant reference to member my_large_string * @return Constant reference to member my_large_string */ - eProsima_user_DllExport const eprosima::fastrtps::fixed_string<41925>& my_large_string() const; + eProsima_user_DllExport const eprosima::fastcdr::fixed_string<41925>& my_large_string() const; /*! * @brief This function returns a reference to member my_large_string * @return Reference to member my_large_string */ - eProsima_user_DllExport eprosima::fastrtps::fixed_string<41925>& my_large_string(); + eProsima_user_DllExport eprosima::fastcdr::fixed_string<41925>& my_large_string(); /*! - * @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. - */ + * @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); @@ -1820,21 +1810,20 @@ class LargeStringStruct /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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::fastrtps::fixed_string<41925> m_my_large_string; + eprosima::fastcdr::fixed_string<41925> m_my_large_string; }; @@ -1928,11 +1917,11 @@ class WStringStruct /*! - * @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. - */ + * @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); @@ -1966,18 +1955,17 @@ class WStringStruct /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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::wstring m_my_wstring; @@ -2074,11 +2062,11 @@ class LargeWStringStruct /*! - * @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. - */ + * @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); @@ -2112,18 +2100,17 @@ class LargeWStringStruct /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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::wstring m_my_large_wstring; @@ -2220,11 +2207,11 @@ class ArrayStruct /*! - * @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. - */ + * @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); @@ -2258,18 +2245,17 @@ class ArrayStruct /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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_my_array; @@ -2366,11 +2352,11 @@ class ArrayStructEqual /*! - * @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. - */ + * @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); @@ -2404,18 +2390,17 @@ class ArrayStructEqual /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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_my_array_equal; @@ -2512,11 +2497,11 @@ class ArrayBadStruct /*! - * @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. - */ + * @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); @@ -2550,18 +2535,17 @@ class ArrayBadStruct /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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_my_array; @@ -2658,11 +2642,11 @@ class ArrayDimensionsStruct /*! - * @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. - */ + * @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); @@ -2696,18 +2680,17 @@ class ArrayDimensionsStruct /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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, 2> m_my_array; @@ -2804,11 +2787,11 @@ class ArraySizeStruct /*! - * @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. - */ + * @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); @@ -2842,18 +2825,17 @@ class ArraySizeStruct /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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_my_array; @@ -2952,11 +2934,11 @@ class SequenceStruct /*! - * @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. - */ + * @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); @@ -2990,18 +2972,17 @@ class SequenceStruct /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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::vector m_my_sequence; @@ -3100,11 +3081,11 @@ class SequenceStructEqual /*! - * @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. - */ + * @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); @@ -3138,18 +3119,17 @@ class SequenceStructEqual /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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::vector m_my_sequence_equal; @@ -3248,11 +3228,11 @@ class SequenceBadStruct /*! - * @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. - */ + * @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); @@ -3286,18 +3266,17 @@ class SequenceBadStruct /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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::vector m_my_sequence; @@ -3396,11 +3375,11 @@ class SequenceBoundsStruct /*! - * @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. - */ + * @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); @@ -3434,18 +3413,17 @@ class SequenceBoundsStruct /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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::vector m_my_sequence; @@ -3546,11 +3524,11 @@ class SequenceSequenceStruct /*! - * @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. - */ + * @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); @@ -3584,18 +3562,17 @@ class SequenceSequenceStruct /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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::vector> m_my_sequence_sequence; @@ -3696,11 +3673,11 @@ class SequenceSequenceBoundsStruct /*! - * @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. - */ + * @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); @@ -3734,18 +3711,17 @@ class SequenceSequenceBoundsStruct /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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::vector> m_my_sequence_sequence; @@ -3844,11 +3820,11 @@ class MapStruct /*! - * @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. - */ + * @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); @@ -3882,18 +3858,17 @@ class MapStruct /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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::map m_my_map; @@ -3992,11 +3967,11 @@ class MapStructEqual /*! - * @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. - */ + * @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); @@ -4030,18 +4005,17 @@ class MapStructEqual /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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::map m_my_map_equal; @@ -4140,11 +4114,11 @@ class MapBadKeyStruct /*! - * @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. - */ + * @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); @@ -4178,18 +4152,17 @@ class MapBadKeyStruct /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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::map m_my_map; @@ -4288,11 +4261,11 @@ class MapBadElemStruct /*! - * @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. - */ + * @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); @@ -4326,18 +4299,17 @@ class MapBadElemStruct /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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::map m_my_map; @@ -4436,11 +4408,11 @@ class MapBoundsStruct /*! - * @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. - */ + * @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); @@ -4474,18 +4446,17 @@ class MapBoundsStruct /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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::map m_my_map; @@ -4586,11 +4557,11 @@ class MapMapStruct /*! - * @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. - */ + * @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); @@ -4624,18 +4595,17 @@ class MapMapStruct /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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::map> m_my_map_map; @@ -4736,11 +4706,11 @@ class MapMapBoundsStruct /*! - * @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. - */ + * @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); @@ -4774,18 +4744,17 @@ class MapMapBoundsStruct /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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::map> m_my_map_map; @@ -4944,10 +4913,6 @@ class SimpleUnion eProsima_user_DllExport void deserialize( eprosima::fastcdr::Cdr& cdr); - - - - private: int32_t m__d; @@ -5108,10 +5073,6 @@ class SimpleUnionNames eProsima_user_DllExport void deserialize( eprosima::fastcdr::Cdr& cdr); - - - - private: int32_t m__d; @@ -5272,10 +5233,6 @@ class SimpleTypeUnion eProsima_user_DllExport void deserialize( eprosima::fastcdr::Cdr& cdr); - - - - private: int32_t m__d; @@ -5436,10 +5393,6 @@ class SimpleBadUnion eProsima_user_DllExport void deserialize( eprosima::fastcdr::Cdr& cdr); - - - - private: int32_t m__d; @@ -5600,10 +5553,6 @@ class SimpleBadDiscUnion eProsima_user_DllExport void deserialize( eprosima::fastcdr::Cdr& cdr); - - - - private: uint8_t m__d; @@ -5702,11 +5651,11 @@ class SimpleUnionStruct /*! - * @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. - */ + * @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); @@ -5740,18 +5689,17 @@ class SimpleUnionStruct /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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: SimpleUnion m_my_union; @@ -5848,11 +5796,11 @@ class SimpleUnionStructEqual /*! - * @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. - */ + * @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); @@ -5886,18 +5834,17 @@ class SimpleUnionStructEqual /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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: SimpleUnion m_my_union_equal; @@ -5994,11 +5941,11 @@ class SimpleUnionNamesStruct /*! - * @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. - */ + * @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); @@ -6032,18 +5979,17 @@ class SimpleUnionNamesStruct /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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: SimpleUnionNames m_my_union; @@ -6140,11 +6086,11 @@ class SimpleTypeUnionStruct /*! - * @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. - */ + * @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); @@ -6178,18 +6124,17 @@ class SimpleTypeUnionStruct /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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: SimpleTypeUnion m_my_union; @@ -6286,11 +6231,11 @@ class SimpleBadUnionStruct /*! - * @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. - */ + * @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); @@ -6324,18 +6269,17 @@ class SimpleBadUnionStruct /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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: SimpleBadUnion m_my_union; @@ -6432,11 +6376,11 @@ class SimplBadDiscUnionStruct /*! - * @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. - */ + * @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); @@ -6470,18 +6414,17 @@ class SimplBadDiscUnionStruct /*! - * @brief This function tells you if the Key has been defined for this type - */ + * @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. - */ + * @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: SimpleBadDiscUnion m_my_union;