Fast DDS  Version 3.6.1.0
Fast DDS
SubscriberQos.hpp
1 // Copyright 2019 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__SUBSCRIBERQOS_HPP
21 #define FASTDDS_DDS_SUBSCRIBER_QOS__SUBSCRIBERQOS_HPP
22 
23 #include <fastdds/dds/core/policy/QosPolicies.hpp>
24 
25 namespace eprosima {
26 namespace fastdds {
27 namespace dds {
28 
38 {
39 public:
40 
44  FASTDDS_EXPORTED_API SubscriberQos()
45  {
46  }
47 
51  FASTDDS_EXPORTED_API virtual ~SubscriberQos()
52  {
53  }
54 
56  const SubscriberQos& b) const
57  {
58  return (presentation_ == b.presentation_) &&
59  (partition_ == b.partition_) &&
60  (group_data_ == b.group_data_) &&
61  (entity_factory_ == b.entity_factory_);
62  }
63 
70  {
71  return presentation_;
72  }
73 
80  {
81  return presentation_;
82  }
83 
91  {
92  presentation_ = presentation;
93  }
94 
101  {
102  return partition_;
103  }
104 
111  {
112  return partition_;
113  }
114 
120  void partition(
122  {
123  partition_ = partition;
124  }
125 
131  const GroupDataQosPolicy& group_data() const
132  {
133  return group_data_;
134  }
135 
141  GroupDataQosPolicy& group_data()
142  {
143  return group_data_;
144  }
145 
152  const GroupDataQosPolicy& group_data)
153  {
154  group_data_ = group_data;
155  }
156 
163  {
164  return entity_factory_;
165  }
166 
173  {
174  return entity_factory_;
175  }
176 
184  {
185  entity_factory_ = entity_factory;
186  }
187 
188 private:
189 
191  PresentationQosPolicy presentation_;
192 
194  PartitionQosPolicy partition_;
195 
197  GroupDataQosPolicy group_data_;
198 
200  EntityFactoryQosPolicy entity_factory_;
201 };
202 
203 FASTDDS_EXPORTED_API extern const SubscriberQos SUBSCRIBER_QOS_DEFAULT;
204 
205 
206 } // namespace dds
207 } // namespace fastdds
208 } // namespace eprosima
209 
210 #endif // FASTDDS_DDS_SUBSCRIBER_QOS__SUBSCRIBERQOS_HPP
Controls the behavior of the entity when acting as a factory for other entities.
Definition: QosPolicies.hpp:189
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
Class SubscriberQos, contains all the possible Qos that can be set for a determined Subscriber.
Definition: SubscriberQos.hpp:38
PartitionQosPolicy & partition()
Getter for PartitionQosPolicy.
Definition: SubscriberQos.hpp:110
const PresentationQosPolicy & presentation() const
Getter for PresentationQosPolicy.
Definition: SubscriberQos.hpp:69
const GroupDataQosPolicy & group_data() const
Getter for GroupDataQosPolicy.
Definition: SubscriberQos.hpp:131
bool operator==(const SubscriberQos &b) const
Definition: SubscriberQos.hpp:55
void group_data(const GroupDataQosPolicy &group_data)
Setter for GroupDataQosPolicy.
Definition: SubscriberQos.hpp:151
FASTDDS_EXPORTED_API SubscriberQos()
Constructor.
Definition: SubscriberQos.hpp:44
void entity_factory(const EntityFactoryQosPolicy &entity_factory)
Setter for EntityFactoryQosPolicy.
Definition: SubscriberQos.hpp:182
PresentationQosPolicy & presentation()
Getter for PresentationQosPolicy.
Definition: SubscriberQos.hpp:79
const PartitionQosPolicy & partition() const
Getter for PartitionQosPolicy.
Definition: SubscriberQos.hpp:100
const EntityFactoryQosPolicy & entity_factory() const
Getter for EntityFactoryQosPolicy.
Definition: SubscriberQos.hpp:162
virtual FASTDDS_EXPORTED_API ~SubscriberQos()
Destructor.
Definition: SubscriberQos.hpp:51
EntityFactoryQosPolicy & entity_factory()
Getter for EntityFactoryQosPolicy.
Definition: SubscriberQos.hpp:172
GroupDataQosPolicy & group_data()
Getter for GroupDataQosPolicy.
Definition: SubscriberQos.hpp:141
void presentation(const PresentationQosPolicy &presentation)
Setter for PresentationQosPolicy.
Definition: SubscriberQos.hpp:89
void partition(const PartitionQosPolicy &partition)
Setter for PartitionQosPolicy.
Definition: SubscriberQos.hpp:120
Definition: DomainParticipant.hpp:46
FASTDDS_EXPORTED_API const SubscriberQos SUBSCRIBER_QOS_DEFAULT