OpenSplice ISO C++ 2 DCPS  v6.x
ISO C++ 2 OpenSplice Data Distribution Service Data-Centric Publish-Subscribe API
QosProviderImpl.hpp
Go to the documentation of this file.
1 /*
2  * Vortex OpenSplice
3  *
4  * This software and documentation are Copyright 2006 to 2021 ADLINK
5  * Technology Limited, its affiliated companies and licensors. All rights
6  * reserved.
7  *
8  * Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  *
12  * http://www.apache.org/licenses/LICENSE-2.0
13  *
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  *
20  */
21 #ifndef OSPL_DDS_CORE_DETAIL_TQOSPROVIDERIMPL_HPP_
22 #define OSPL_DDS_CORE_DETAIL_TQOSPROVIDERIMPL_HPP_
23 
28 /*
29  * OMG PSM class declaration
30  */
31 #include <dds/core/QosProvider.hpp>
32 
33 // Implementation
34 namespace dds
35 {
36 namespace core
37 {
38 
39 
40 QosProvider::QosProvider(const std::string& uri, const std::string& profile)
41  : Reference(new DELEGATE(uri, profile)) { }
42 
43 
44 QosProvider::QosProvider(const std::string& uri)
45  : Reference(new DELEGATE(uri)) { }
46 
47 
50 {
51  ISOCPP_REPORT_STACK_NC_BEGIN();
52  return this->delegate()->participant_qos(NULL);
53 }
54 
55 
57 QosProvider::participant_qos(const std::string& id)
58 {
59  ISOCPP_REPORT_STACK_NC_BEGIN();
60  return this->delegate()->participant_qos(id.c_str());
61 }
62 
63 
66 {
67  ISOCPP_REPORT_STACK_NC_BEGIN();
68  return this->delegate()->topic_qos(NULL);
69 }
70 
71 
73 QosProvider::topic_qos(const std::string& id)
74 {
75  ISOCPP_REPORT_STACK_NC_BEGIN();
76  return this->delegate()->topic_qos(id.c_str());
77 }
78 
79 
80 
83 {
84  ISOCPP_REPORT_STACK_NC_BEGIN();
85  return this->delegate()->subscriber_qos(NULL);
86 }
87 
88 
90 QosProvider::subscriber_qos(const std::string& id)
91 {
92  ISOCPP_REPORT_STACK_NC_BEGIN();
93  return this->delegate()->subscriber_qos(id.c_str());
94 }
95 
96 
99 {
100  ISOCPP_REPORT_STACK_NC_BEGIN();
101  return this->delegate()->datareader_qos(NULL);
102 }
103 
104 
106 QosProvider::datareader_qos(const std::string& id)
107 {
108  ISOCPP_REPORT_STACK_NC_BEGIN();
109  return this->delegate()->datareader_qos(id.c_str());
110 }
111 
112 
115 {
116  ISOCPP_REPORT_STACK_NC_BEGIN();
117  return this->delegate()->publisher_qos(NULL);
118 }
119 
120 
122 QosProvider::publisher_qos(const std::string& id)
123 {
124  ISOCPP_REPORT_STACK_NC_BEGIN();
125  return this->delegate()->publisher_qos(id.c_str());
126 }
127 
128 
131 {
132  ISOCPP_REPORT_STACK_NC_BEGIN();
133  return this->delegate()->datawriter_qos(NULL);
134 }
135 
136 
138 QosProvider::datawriter_qos(const std::string& id)
139 {
140  ISOCPP_REPORT_STACK_NC_BEGIN();
141  return this->delegate()->datawriter_qos(id.c_str());
142 }
143 }
144 }
145 // End of implementation
146 
147 #endif /* OSPL_DDS_CORE_DETAIL_TQOSPROVIDERIMPL_HPP_ */
dds::domain::qos::DomainParticipantQos participant_qos()
This class provides the basic mechanism for an application to specify Quality of Service attributes f...
This object provides the basic mechanism for an application to specify Quality of Service attributes ...
dds::sub::qos::DataReaderQos datareader_qos()
dds::sub::qos::SubscriberQos subscriber_qos()
Definition: array.hpp:23
Base class for reference-counted objects.
Definition: Reference.hpp:94
This struct provides the basic mechanism for an application to specify Quality of Service attributes ...
Definition: TopicQos.hpp:67
dds::pub::qos::DataWriterQos datawriter_qos()
QosProvider(const std::string &uri, const std::string &profile)
dds::pub::qos::PublisherQos publisher_qos()
This object provides the basic mechanism for an application to specify Quality of Service attributes ...
This class provides the basic mechanism for an application to specify Quality of Service attributes f...
dds::topic::qos::TopicQos topic_qos()
This class provides the basic mechanism for an application to specify Quality of Service attributes f...