| 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
28 namespace eprosima {
29 namespace fastdds {
30 namespace dds {
31
32 class ReplierQos
33{
34 public:
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) &&
61 (this->request_topic_name == b.request_topic_name) &&
62 (this->reply_topic_name == b.reply_topic_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
83 DataWriterQos writer_qos;
84
86 DataReaderQos reader_qos;
87};
88
89} // namespace dds
90} // namespace fastdds
91} // namespace eprosima
92
93#endif // FASTDDS_DDS_DOMAIN_QOS__REPLIERQOS_HPP
eprosima::fastdds::dds::DataReaderQos
Class DataReaderQos, containing all the possible Qos that can be set for a determined DataReader.
Definition DataReaderQos.hpp:44
eprosima::fastdds::dds::DataWriterQos
Class DataWriterQos, containing all the possible Qos that can be set for a determined DataWriter.
Definition DataWriterQos.hpp:44
eprosima::fastdds::dds::ReplierQos::request_type
std::string request_type
Request type.
Definition ReplierQos.hpp:71
eprosima::fastdds::dds::ReplierQos::service_name
std::string service_name
Service name.
Definition ReplierQos.hpp:68
eprosima::fastdds::dds::ReplierQos::reply_topic_name
std::string reply_topic_name
Reply topic name.
Definition ReplierQos.hpp:80
eprosima::fastdds::dds::ReplierQos::operator==
FASTDDS_EXPORTED_API bool operator==(const ReplierQos &b) const
Equal comparison operator.
Definition ReplierQos.hpp:57
eprosima::fastdds::dds::ReplierQos::reader_qos
DataReaderQos reader_qos
DataReader QoS for the reply reader.
Definition ReplierQos.hpp:86
eprosima::fastdds::dds::ReplierQos::request_topic_name
std::string request_topic_name
Request topic name.
Definition ReplierQos.hpp:77
eprosima::fastdds::dds::ReplierQos::writer_qos
DataWriterQos writer_qos
DataWriter QoS for the reply writer.
Definition ReplierQos.hpp:83
eprosima::fastdds::dds::ReplierQos::reply_type
std::string reply_type
Reply type.
Definition ReplierQos.hpp:74
eprosima::fastdds::dds::ReplierQos::ReplierQos
FASTDDS_EXPORTED_API ReplierQos()
Constructor.
Definition ReplierQos.hpp:39
eprosima::fastdds::dds
Definition BuiltinTopicKey.hpp:26
eprosima::fastdds::dds::RELIABLE_RELIABILITY_QOS
@ RELIABLE_RELIABILITY_QOS
Specifies the Service will attempt to deliver all samples in its history.
Definition QosPolicies.hpp:561
eprosima::fastdds::dds::VOLATILE_DURABILITY_QOS
@ 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
eprosima::fastdds::dds::KEEP_ALL_HISTORY_QOS
@ 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::fastdds
eprosima
eProsima namespace.