123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124 |
- #ifndef _FASTDDS_ENDPOINTATTRIBUTES_H_
- #define _FASTDDS_ENDPOINTATTRIBUTES_H_
- #include <fastdds/rtps/common/Types.h>
- #include <fastdds/rtps/common/Locator.h>
- #include <fastdds/rtps/attributes/PropertyPolicy.h>
- #include <fastdds/rtps/security/accesscontrol/EndpointSecurityAttributes.h>
- namespace eprosima {
- namespace fastrtps{
- namespace rtps {
- class EndpointAttributes
- {
- public:
-
- EndpointKind_t endpointKind;
-
- TopicKind_t topicKind;
-
- ReliabilityKind_t reliabilityKind;
-
- DurabilityKind_t durabilityKind;
-
- GUID_t persistence_guid;
-
- LocatorList_t unicastLocatorList;
-
- LocatorList_t multicastLocatorList;
-
- LocatorList_t remoteLocatorList;
-
- PropertyPolicy properties;
- EndpointAttributes()
- : endpointKind(WRITER)
- , topicKind(NO_KEY)
- , reliabilityKind(BEST_EFFORT)
- , durabilityKind(VOLATILE)
- , persistence_guid()
- , m_userDefinedID(-1)
- , m_entityID(-1)
- {
- }
- virtual ~EndpointAttributes(){};
-
- inline int16_t getUserDefinedID() const { return m_userDefinedID; }
-
- inline int16_t getEntityID() const { return m_entityID; }
-
- inline void setUserDefinedID(uint8_t id) { m_userDefinedID = id; }
-
- inline void setEntityID(uint8_t id) { m_entityID = id; }
- #if HAVE_SECURITY
- const security::EndpointSecurityAttributes& security_attributes() const { return security_attributes_; }
- security::EndpointSecurityAttributes& security_attributes() { return security_attributes_; }
- #endif
- private:
-
- int16_t m_userDefinedID;
-
- int16_t m_entityID;
- #if HAVE_SECURITY
- security::EndpointSecurityAttributes security_attributes_;
- #endif
- };
- }
- }
- }
- #endif
|