diff --git a/include/fastdds/rtps/reader/LocalReaderPointer.hpp b/include/fastdds/rtps/reader/LocalReaderPointer.hpp index 63735de025..c5adb067f4 100644 --- a/include/fastdds/rtps/reader/LocalReaderPointer.hpp +++ b/include/fastdds/rtps/reader/LocalReaderPointer.hpp @@ -19,6 +19,8 @@ #ifndef FASTDDS_RTPS_READER__LOCALREADERPOINTER_HPP #define FASTDDS_RTPS_READER__LOCALREADERPOINTER_HPP +#ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC + #include namespace eprosima { @@ -28,10 +30,15 @@ namespace rtps { class RTPSReader; -using LocalReaderPointer = RefCountedPointer; +struct LocalReaderPointer : public RefCountedPointer +{ + +}; } // namespace rtps } // namespace fastdds } // namespace eprosima +#endif // ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC + #endif // FASTDDS_RTPS_READER__LOCALREADERPOINTER_HPP diff --git a/include/fastdds/rtps/reader/RTPSReader.h b/include/fastdds/rtps/reader/RTPSReader.h index 8b9a8c4ac1..fd6deb1531 100644 --- a/include/fastdds/rtps/reader/RTPSReader.h +++ b/include/fastdds/rtps/reader/RTPSReader.h @@ -29,7 +29,6 @@ #include #include #include -#include #include #include #include @@ -47,6 +46,7 @@ struct CacheChange_t; struct ReaderHistoryState; class WriterProxyData; class IDataSharingListener; +struct LocalReaderPointer; /** * Class RTPSReader, manages the reception of data from its matched writers. @@ -208,14 +208,6 @@ class RTPSReader RTPS_DllAPI bool setListener( ReaderListener* target); - /** - * @brief Retrieves the local pointer to this reader - * to be used by other local entities. - * - * @return Local pointer to this reader. - */ - RTPS_DllAPI std::shared_ptr get_local_pointer(); - /** * Reserve a CacheChange_t. * @param change Pointer to pointer to the Cache. @@ -499,6 +491,14 @@ class RTPSReader bool is_datasharing_compatible_with( const WriterProxyData& wdata); + /** + * @brief Retrieves the local pointer to this reader + * to be used by other local entities. + * + * @return Local pointer to this reader. + */ + std::shared_ptr get_local_pointer(); + //!ReaderHistory ReaderHistory* mp_history; //!Listener diff --git a/include/fastrtps/utils/RefCountedPointer.hpp b/include/fastrtps/utils/RefCountedPointer.hpp index 2044cce22f..572ef84dff 100644 --- a/include/fastrtps/utils/RefCountedPointer.hpp +++ b/include/fastrtps/utils/RefCountedPointer.hpp @@ -19,6 +19,8 @@ #ifndef UTILS__REFCOUNTEDPOINTER_HPP #define UTILS__REFCOUNTEDPOINTER_HPP +#ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC + #include #include #include @@ -215,4 +217,6 @@ class RefCountedPointer } // namespace fastdds } // namespace eprosima +#endif // DOXYGEN_SHOULD_SKIP_THIS_PUBLIC + #endif // UTILS__REFCOUNTEDPOINTER_HPP diff --git a/src/cpp/rtps/participant/RTPSParticipantImpl.h b/src/cpp/rtps/participant/RTPSParticipantImpl.h index 999e9d00f1..4cb4f3f8b2 100644 --- a/src/cpp/rtps/participant/RTPSParticipantImpl.h +++ b/src/cpp/rtps/participant/RTPSParticipantImpl.h @@ -45,7 +45,6 @@ #include #include #include -#include #include #include #include @@ -122,6 +121,7 @@ class PDP; class PDPSimple; class IPersistenceService; class WLP; +struct LocalReaderPointer; /** * @brief Class RTPSParticipantImpl, it contains the private implementation of the RTPSParticipant functions and