Fast DDS  Version 3.6.1.0
Fast DDS
ReaderQos.hpp
1 // Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima).
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 
20 #ifndef FASTDDS_DDS_SUBSCRIBER_QOS__READERQOS_HPP
21 #define FASTDDS_DDS_SUBSCRIBER_QOS__READERQOS_HPP
22 
23 #include <fastdds/dds/core/policy/QosPolicies.hpp>
24 
25 namespace eprosima {
26 namespace fastdds {
27 namespace dds {
28 
36 FASTDDS_TODO_BEFORE(4, 0, "Remove this class in favor of SubscriptionBuiltinTopicData");
37 class ReaderQos
38 {
39 public:
40 
41  FASTDDS_EXPORTED_API ReaderQos()
42  {
43  }
44 
45  FASTDDS_EXPORTED_API virtual ~ReaderQos()
46  {
47  }
48 
50  const ReaderQos& b) const
51  {
52  return (m_durability == b.m_durability) &&
53  (m_deadline == b.m_deadline) &&
55  (m_liveliness == b.m_liveliness) &&
57  (m_ownership == b.m_ownership) &&
59  (m_userData == b.m_userData) &&
62  (m_partition == b.m_partition) &&
63  (m_topicData == b.m_topicData) &&
64  (m_groupData == b.m_groupData) &&
66  (m_lifespan == b.m_lifespan) &&
71  }
72 
75 
78 
81 
84 
87 
90 
93 
95  UserDataQosPolicy m_userData;
96 
99 
102 
105 
107  TopicDataQosPolicy m_topicData;
108 
110  GroupDataQosPolicy m_groupData;
111 
114 
117 
120 
123 
126 
129 
137  FASTDDS_EXPORTED_API void setQos(
138  const ReaderQos& readerqos,
139  bool first_time);
140 
147  FASTDDS_EXPORTED_API bool checkQos() const;
148 
156  FASTDDS_EXPORTED_API bool canQosBeUpdated(
157  const ReaderQos& qos) const;
158 
162  void clear();
163 };
164 
165 } //namespace dds
166 } //namespace fastdds
167 } //namespace eprosima
168 
169 #endif // FASTDDS_DDS_SUBSCRIBER_QOS__READERQOS_HPP
With multiple standard data Representations available, and vendor-specific extensions possible,...
Definition: QosPolicies.hpp:2070
Qos Policy to configure the data sharing.
Definition: QosPolicies.hpp:2952
DataReader expects a new sample updating the value of each instance at least once every deadline peri...
Definition: QosPolicies.hpp:363
Controls the criteria used to determine the logical order among changes made by Publisher entities to...
Definition: QosPolicies.hpp:719
Class DisablePositiveACKsQosPolicy to disable sending of positive ACKs.
Definition: QosPolicies.hpp:2222
This policy expresses if the data should ‘outlive’ their writing time.
Definition: QosPolicies.hpp:278
Specifies the configuration of the durability service.
Definition: QosPolicies.hpp:1789
Specifies the maximum acceptable delay from the time the data is written until the data is inserted i...
Definition: QosPolicies.hpp:416
Specifies the maximum duration of validity of the data written by the DataWriter.
Definition: QosPolicies.hpp:1877
Determines the mechanism and parameters used by the application to determine whether an Entity is “ac...
Definition: QosPolicies.hpp:488
Specifies whether it is allowed for multiple DataWriters to write the same instance of the data and i...
Definition: QosPolicies.hpp:652
Set of strings that introduces a logical partition among the topics visible by the Publisher and Subs...
Definition: QosPolicies.hpp:1286
Specifies how the samples representing changes to data instances are presented to the subscribing app...
Definition: QosPolicies.hpp:1156
Definition: ReaderQos.hpp:38
LifespanQosPolicy m_lifespan
Lifespan Qos, NOT implemented in the library.
Definition: ReaderQos.hpp:116
UserDataQosPolicy m_userData
UserData Qos, NOT implemented in the library.
Definition: ReaderQos.hpp:95
bool operator==(const ReaderQos &b) const
Definition: ReaderQos.hpp:49
DataRepresentationQosPolicy representation
Data Representation Qos, implemented in the library.
Definition: ReaderQos.hpp:119
DisablePositiveACKsQosPolicy m_disablePositiveACKs
Disable positive ACKs QoS.
Definition: ReaderQos.hpp:125
FASTDDS_EXPORTED_API ReaderQos()
Definition: ReaderQos.hpp:41
PresentationQosPolicy m_presentation
Presentation Qos, NOT implemented in the library.
Definition: ReaderQos.hpp:101
DestinationOrderQosPolicy m_destinationOrder
Destinatio Order Qos, NOT implemented in the library.
Definition: ReaderQos.hpp:92
virtual FASTDDS_EXPORTED_API ~ReaderQos()
Definition: ReaderQos.hpp:45
OwnershipQosPolicy m_ownership
Ownership Qos, implemented in the library.
Definition: ReaderQos.hpp:89
FASTDDS_EXPORTED_API void setQos(const ReaderQos &readerqos, bool first_time)
Set Qos from another class.
DurabilityQosPolicy m_durability
Durability Qos, implemented in the library.
Definition: ReaderQos.hpp:74
DurabilityServiceQosPolicy m_durabilityService
Durability Service Qos, NOT implemented in the library.
Definition: ReaderQos.hpp:113
PartitionQosPolicy m_partition
Partition Qos, implemented in the library.
Definition: ReaderQos.hpp:104
TypeConsistencyEnforcementQosPolicy type_consistency
Type consistency enforcement Qos, NOT implemented in the library.
Definition: ReaderQos.hpp:122
DataSharingQosPolicy data_sharing
Information for data sharing compatibility check.
Definition: ReaderQos.hpp:128
FASTDDS_EXPORTED_API bool checkQos() const
Check if the Qos values are compatible between each other.
LatencyBudgetQosPolicy m_latencyBudget
Latency Budget Qos, NOT implemented in the library.
Definition: ReaderQos.hpp:80
DeadlineQosPolicy m_deadline
Deadline Qos, implemented in the library.
Definition: ReaderQos.hpp:77
LivelinessQosPolicy m_liveliness
Liveliness Qos, implemented in the library.
Definition: ReaderQos.hpp:83
FASTDDS_EXPORTED_API bool canQosBeUpdated(const ReaderQos &qos) const
Check if the Qos can be update with the values provided.
TopicDataQosPolicy m_topicData
Topic Data Qos, NOT implemented in the library.
Definition: ReaderQos.hpp:107
GroupDataQosPolicy m_groupData
GroupData Qos, NOT implemented in the library.
Definition: ReaderQos.hpp:110
ReliabilityQosPolicy m_reliability
ReliabilityQos, implemented in the library.
Definition: ReaderQos.hpp:86
TimeBasedFilterQosPolicy m_timeBasedFilter
Time Based Filter Qos, NOT implemented in the library.
Definition: ReaderQos.hpp:98
Indicates the reliability of the endpoint.
Definition: QosPolicies.hpp:570
Filter that allows a DataReader to specify that it is interested only in (potentially) a subset of th...
Definition: QosPolicies.hpp:1082
The TypeConsistencyEnforcementQosPolicy defines the rules for determining whether the type used to pu...
Definition: QosPolicies.hpp:2132
Definition: DomainParticipant.hpp:46
FASTDDS_TODO_BEFORE(4, 0, "Remove 'hasChanged' and 'send_always_' as they were replaced by 'should_be_sent'.")
Class QosPolicy, base for all QoS policies defined for Writers and Readers.