Fast DDS  Version 3.3.0
Fast DDS
Loading...
Searching...
No Matches
ReplierQos.hpp
1// Copyright 2024 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
18
19#ifndef FASTDDS_DDS_DOMAIN_QOS__REPLIERQOS_HPP
20#define FASTDDS_DDS_DOMAIN_QOS__REPLIERQOS_HPP
21
22#include <string>
23
24#include <fastdds/dds/publisher/qos/DataWriterQos.hpp>
25#include <fastdds/dds/subscriber/qos/DataReaderQos.hpp>
26#include <fastdds/fastdds_dll.hpp>
27
28namespace eprosima {
29namespace fastdds {
30namespace dds {
31
33{
34public:
35
39 FASTDDS_EXPORTED_API ReplierQos()
40 {
41 // Set reliability to RELIABLE_RELIABILITY_QOS by default
42 writer_qos.reliability().kind = RELIABLE_RELIABILITY_QOS;
43 reader_qos.reliability().kind = RELIABLE_RELIABILITY_QOS;
44
45 // Set durability to VOLATILE_DURABILITY_QOS by default
46 writer_qos.durability().kind = VOLATILE_DURABILITY_QOS;
47 reader_qos.durability().kind = VOLATILE_DURABILITY_QOS;
48
49 // Set history to KEEP_ALL_HISTORY_QOS by default
50 writer_qos.history().kind = KEEP_ALL_HISTORY_QOS;
51 reader_qos.history().kind = KEEP_ALL_HISTORY_QOS;
52 }
53
57 FASTDDS_EXPORTED_API bool operator ==(
58 const ReplierQos& b) const
59 {
60 return (this->service_name == b.service_name) &&
63 (this->writer_qos == b.writer_qos) &&
64 (this->reader_qos == b.reader_qos);
65 }
66
68 std::string service_name;
69
71 std::string request_type;
72
74 std::string reply_type;
75
77 std::string request_topic_name;
78
80 std::string reply_topic_name;
81
84
87};
88
89} // namespace dds
90} // namespace fastdds
91} // namespace eprosima
92
93#endif // FASTDDS_DDS_DOMAIN_QOS__REPLIERQOS_HPP
Class DataReaderQos, containing all the possible Qos that can be set for a determined DataReader.
Definition DataReaderQos.hpp:44
Class DataWriterQos, containing all the possible Qos that can be set for a determined DataWriter.
Definition DataWriterQos.hpp:44
std::string request_type
Request type.
Definition ReplierQos.hpp:71
std::string service_name
Service name.
Definition ReplierQos.hpp:68
std::string reply_topic_name
Reply topic name.
Definition ReplierQos.hpp:80
FASTDDS_EXPORTED_API bool operator==(const ReplierQos &b) const
Equal comparison operator.
Definition ReplierQos.hpp:57
DataReaderQos reader_qos
DataReader QoS for the reply reader.
Definition ReplierQos.hpp:86
std::string request_topic_name
Request topic name.
Definition ReplierQos.hpp:77
DataWriterQos writer_qos
DataWriter QoS for the reply writer.
Definition ReplierQos.hpp:83
std::string reply_type
Reply type.
Definition ReplierQos.hpp:74
FASTDDS_EXPORTED_API ReplierQos()
Constructor.
Definition ReplierQos.hpp:39
Definition BuiltinTopicKey.hpp:26
@ RELIABLE_RELIABILITY_QOS
Specifies the Service will attempt to deliver all samples in its history.
Definition QosPolicies.hpp:561
@ VOLATILE_DURABILITY_QOS
The Service does not need to keep any samples of data-instances on behalf of any DataReader that is n...
Definition QosPolicies.hpp:250
@ KEEP_ALL_HISTORY_QOS
On the publishing side, the Service will attempt to keep all samples (representing each value written...
Definition QosPolicies.hpp:1636
eProsima namespace.