123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111 |
- #ifndef _FASTDDS_RTPS_ATTRIBUTES_READERATTRIBUTES_H_
- #define _FASTDDS_RTPS_ATTRIBUTES_READERATTRIBUTES_H_
- #include <fastdds/rtps/common/Time_t.h>
- #include <fastdds/rtps/common/Guid.h>
- #include <fastdds/rtps/attributes/EndpointAttributes.h>
- #include <fastrtps/qos/QosPolicies.h>
- #include <fastrtps/utils/collections/ResourceLimitedContainerConfig.hpp>
- #include <functional>
- namespace eprosima {
- namespace fastrtps {
- namespace rtps {
- class ReaderTimes
- {
- public:
- ReaderTimes()
- {
- initialAcknackDelay.nanosec = 70*1000*1000;
- heartbeatResponseDelay.nanosec = 5*1000*1000;
- }
- virtual ~ReaderTimes() {}
- bool operator==(
- const ReaderTimes& b) const
- {
- return (this->initialAcknackDelay == b.initialAcknackDelay) &&
- (this->heartbeatResponseDelay == b.heartbeatResponseDelay);
- }
-
- Duration_t initialAcknackDelay;
-
- Duration_t heartbeatResponseDelay;
- };
- class ReaderAttributes
- {
- public:
- ReaderAttributes()
- : liveliness_kind_(AUTOMATIC_LIVELINESS_QOS)
- , liveliness_lease_duration(TIME_T_INFINITE_SECONDS, TIME_T_INFINITE_NANOSECONDS)
- , expectsInlineQos(false)
- , disable_positive_acks(false)
- {
- endpoint.endpointKind = READER;
- endpoint.durabilityKind = VOLATILE;
- endpoint.reliabilityKind = BEST_EFFORT;
- };
- virtual ~ReaderAttributes() {};
-
- EndpointAttributes endpoint;
-
- ReaderTimes times;
-
- LivelinessQosPolicyKind liveliness_kind_;
-
- Duration_t liveliness_lease_duration;
-
- bool expectsInlineQos;
-
- bool disable_positive_acks;
-
- ResourceLimitedContainerConfig matched_writers_allocation;
- };
- }
- }
- }
- #endif
|