123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115 |
- #ifndef _FASTDDS_RTPS_ENDPOINT_H_
- #define _FASTDDS_RTPS_ENDPOINT_H_
- #include <fastdds/rtps/common/Types.h>
- #include <fastdds/rtps/common/Locator.h>
- #include <fastdds/rtps/common/Guid.h>
- #include <fastdds/rtps/attributes/EndpointAttributes.h>
- #include <fastrtps/utils/TimedMutex.hpp>
- namespace eprosima {
- namespace fastrtps{
- namespace rtps {
- class RTPSParticipantImpl;
- class ResourceEvent;
- class Endpoint
- {
- friend class RTPSParticipantImpl;
- protected:
- Endpoint(
- RTPSParticipantImpl* pimpl,
- const GUID_t& guid,
- const EndpointAttributes& att)
- : mp_RTPSParticipant(pimpl)
- , m_guid(guid)
- , m_att(att)
- #if HAVE_SECURITY
- ,supports_rtps_protection_(true)
- #endif
- {
- }
- virtual ~Endpoint() = default;
- public:
-
- RTPS_DllAPI inline const GUID_t& getGuid() const { return m_guid; }
-
- RTPS_DllAPI inline RecursiveTimedMutex& getMutex() { return mp_mutex; }
-
- RTPS_DllAPI inline EndpointAttributes& getAttributes() { return m_att; }
- #if HAVE_SECURITY
- bool supports_rtps_protection() { return supports_rtps_protection_; }
- #endif
- protected:
-
- RTPSParticipantImpl* mp_RTPSParticipant;
-
- const GUID_t m_guid;
-
- EndpointAttributes m_att;
-
- mutable RecursiveTimedMutex mp_mutex;
- private:
- Endpoint& operator=(const Endpoint&) = delete;
- #if HAVE_SECURITY
- bool supports_rtps_protection_;
- #endif
- };
- }
- }
- }
- #endif
|