Fast DDS  Version 3.3.0
Fast DDS
Loading...
Searching...
No Matches
RequesterQos.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
19#ifndef FASTDDS_DDS_DOMAIN_QOS__REQUESTERQOS_HPP
20#define FASTDDS_DDS_DOMAIN_QOS__REQUESTERQOS_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 RequesterQos()
40 {
41 // Set reliability to RELIABLE_RELIABILITY_QOS by default
44
45 // Set durability to VOLATILE_DURABILITY_QOS by default
48
49 // Set history to KEEP_ALL_HISTORY_QOS by default
52 }
53
57 FASTDDS_EXPORTED_API bool operator ==(
58 const RequesterQos& 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__REQUESTERQOS_HPP
Class DataReaderQos, containing all the possible Qos that can be set for a determined DataReader.
Definition DataReaderQos.hpp:44
FASTDDS_EXPORTED_API DurabilityQosPolicy & durability()
Getter for DurabilityQosPolicy.
Definition DataReaderQos.hpp:90
FASTDDS_EXPORTED_API ReliabilityQosPolicy & reliability()
Getter for ReliabilityQosPolicy.
Definition DataReaderQos.hpp:214
FASTDDS_EXPORTED_API HistoryQosPolicy & history()
Getter for HistoryQosPolicy.
Definition DataReaderQos.hpp:276
Class DataWriterQos, containing all the possible Qos that can be set for a determined DataWriter.
Definition DataWriterQos.hpp:44
FASTDDS_EXPORTED_API DurabilityQosPolicy & durability()
Getter for DurabilityQosPolicy.
Definition DataWriterQos.hpp:93
FASTDDS_EXPORTED_API ReliabilityQosPolicy & reliability()
Getter for ReliabilityQosPolicy.
Definition DataWriterQos.hpp:248
FASTDDS_EXPORTED_API HistoryQosPolicy & history()
Getter for HistoryQosPolicy.
Definition DataWriterQos.hpp:310
DurabilityQosPolicyKind_t kind
DurabilityQosPolicyKind.
Definition QosPolicies.hpp:352
HistoryQosPolicyKind kind
HistoryQosPolicyKind. By default, KEEP_LAST_HISTORY_QOS.
Definition QosPolicies.hpp:1688
ReliabilityQosPolicyKind kind
Defines the reliability kind of the endpoint.
Definition QosPolicies.hpp:610
Definition RequesterQos.hpp:33
std::string request_type
Request type.
Definition RequesterQos.hpp:71
std::string service_name
Service name.
Definition RequesterQos.hpp:68
std::string reply_topic_name
Reply topic name.
Definition RequesterQos.hpp:80
FASTDDS_EXPORTED_API bool operator==(const RequesterQos &b) const
Equal comparison operator.
Definition RequesterQos.hpp:57
DataReaderQos reader_qos
DataReader QoS for the request reader.
Definition RequesterQos.hpp:86
std::string request_topic_name
Request topic name.
Definition RequesterQos.hpp:77
DataWriterQos writer_qos
DataWriter QoS for the request writer.
Definition RequesterQos.hpp:83
std::string reply_type
Reply type.
Definition RequesterQos.hpp:74
FASTDDS_EXPORTED_API RequesterQos()
Constructor.
Definition RequesterQos.hpp:39
Definition DomainParticipant.hpp:46
@ 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.