| Fast DDS Version 3.3.0 Fast DDS

Loading...
Searching...
No Matches
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
19
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
37 class SubscriberQos
38{
39 public:
40
44 FASTDDS_EXPORTED_API SubscriberQos()
45 {
46 }
47
51 FASTDDS_EXPORTED_API virtual ~SubscriberQos()
52 {
53 }
54
55 bool operator ==(
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
69 const PresentationQosPolicy& presentation() const
70 {
71 return presentation_;
72 }
73
79 PresentationQosPolicy& presentation()
80 {
81 return presentation_;
82 }
83
89 void presentation(
90 const PresentationQosPolicy& presentation)
91 {
92 presentation_ = presentation;
93 }
94
100 const PartitionQosPolicy& partition() const
101 {
102 return partition_;
103 }
104
110 PartitionQosPolicy& partition()
111 {
112 return partition_;
113 }
114
120 void partition(
121 const PartitionQosPolicy& 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
151 void group_data(
152 const GroupDataQosPolicy& group_data)
153 {
154 group_data_ = group_data;
155 }
156
162 const EntityFactoryQosPolicy& entity_factory() const
163 {
164 return entity_factory_;
165 }
166
172 EntityFactoryQosPolicy& entity_factory()
173 {
174 return entity_factory_;
175 }
176
182 void entity_factory(
183 const EntityFactoryQosPolicy& entity_factory)
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
203FASTDDS_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
eprosima::fastdds::dds::EntityFactoryQosPolicy
Controls the behavior of the entity when acting as a factory for other entities.
Definition QosPolicies.hpp:189
eprosima::fastdds::dds::PartitionQosPolicy
Set of strings that introduces a logical partition among the topics visible by the Publisher and Subs...
Definition QosPolicies.hpp:1286
eprosima::fastdds::dds::PresentationQosPolicy
Specifies how the samples representing changes to data instances are presented to the subscribing app...
Definition QosPolicies.hpp:1156
eprosima::fastdds::dds::SubscriberQos::partition
const PartitionQosPolicy & partition() const
Getter for PartitionQosPolicy.
Definition SubscriberQos.hpp:100
eprosima::fastdds::dds::SubscriberQos::operator==
bool operator==(const SubscriberQos &b) const
Definition SubscriberQos.hpp:55
eprosima::fastdds::dds::SubscriberQos::entity_factory
const EntityFactoryQosPolicy & entity_factory() const
Getter for EntityFactoryQosPolicy.
Definition SubscriberQos.hpp:162
eprosima::fastdds::dds::SubscriberQos::group_data
const GroupDataQosPolicy & group_data() const
Getter for GroupDataQosPolicy.
Definition SubscriberQos.hpp:131
eprosima::fastdds::dds::SubscriberQos::presentation
const PresentationQosPolicy & presentation() const
Getter for PresentationQosPolicy.
Definition SubscriberQos.hpp:69
eprosima::fastdds::dds::SubscriberQos::group_data
void group_data(const GroupDataQosPolicy &group_data)
Setter for GroupDataQosPolicy.
Definition SubscriberQos.hpp:151
eprosima::fastdds::dds::SubscriberQos::SubscriberQos
FASTDDS_EXPORTED_API SubscriberQos()
Constructor.
Definition SubscriberQos.hpp:44
eprosima::fastdds::dds::SubscriberQos::group_data
GroupDataQosPolicy & group_data()
Getter for GroupDataQosPolicy.
Definition SubscriberQos.hpp:141
eprosima::fastdds::dds::SubscriberQos::entity_factory
void entity_factory(const EntityFactoryQosPolicy &entity_factory)
Setter for EntityFactoryQosPolicy.
Definition SubscriberQos.hpp:182
eprosima::fastdds::dds::SubscriberQos::entity_factory
EntityFactoryQosPolicy & entity_factory()
Getter for EntityFactoryQosPolicy.
Definition SubscriberQos.hpp:172
eprosima::fastdds::dds::SubscriberQos::presentation
PresentationQosPolicy & presentation()
Getter for PresentationQosPolicy.
Definition SubscriberQos.hpp:79
eprosima::fastdds::dds::SubscriberQos::partition
PartitionQosPolicy & partition()
Getter for PartitionQosPolicy.
Definition SubscriberQos.hpp:110
eprosima::fastdds::dds::SubscriberQos::~SubscriberQos
virtual FASTDDS_EXPORTED_API ~SubscriberQos()
Destructor.
Definition SubscriberQos.hpp:51
eprosima::fastdds::dds::SubscriberQos::presentation
void presentation(const PresentationQosPolicy &presentation)
Setter for PresentationQosPolicy.
Definition SubscriberQos.hpp:89
eprosima::fastdds::dds::SubscriberQos::partition
void partition(const PartitionQosPolicy &partition)
Setter for PartitionQosPolicy.
Definition SubscriberQos.hpp:120
eprosima::fastdds::dds
Definition BuiltinTopicKey.hpp:26
eprosima::fastdds::dds::SUBSCRIBER_QOS_DEFAULT
FASTDDS_EXPORTED_API const SubscriberQos SUBSCRIBER_QOS_DEFAULT
eprosima::fastdds
eprosima
eProsima namespace.