Fast RTPS  Version 2.7.1
Fast RTPS
RequesterAttributes.hpp
1 // Copyright 2016 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 REQUESTERATTRIBUTES_HPP_
20 #define REQUESTERATTRIBUTES_HPP_
21 
22 #include "PublisherAttributes.h"
23 #include "SubscriberAttributes.h"
24 
25 namespace eprosima {
26 namespace fastrtps {
27 
29 {
30 public:
31  RequesterAttributes() = default;
32 
33  bool operator==(const RequesterAttributes& b) const
34  {
35  return (this->service_name == b.service_name) &&
37  (this->reply_topic_name == b.reply_topic_name) &&
38  (this->publisher == b.publisher) &&
39  (this->subscriber == b.subscriber);
40  }
41 
42  std::string service_name;
43  std::string request_type;
44  std::string reply_type;
45  std::string request_topic_name;
46  std::string reply_topic_name;
49 };
50 
51 
52 } /* namespace fastrtps */
53 } /* namespace eprosima */
54 
55 #endif /* REQUESTERATTRIBUTES_HPP_ */
Class PublisherAttributes, used by the user to define the attributes of a Publisher.
Definition: PublisherAttributes.h:41
Definition: RequesterAttributes.hpp:29
std::string request_type
Definition: RequesterAttributes.hpp:43
std::string service_name
Definition: RequesterAttributes.hpp:42
std::string reply_topic_name
Definition: RequesterAttributes.hpp:46
SubscriberAttributes subscriber
Definition: RequesterAttributes.hpp:48
std::string request_topic_name
Definition: RequesterAttributes.hpp:45
bool operator==(const RequesterAttributes &b) const
Definition: RequesterAttributes.hpp:33
PublisherAttributes publisher
Definition: RequesterAttributes.hpp:47
std::string reply_type
Definition: RequesterAttributes.hpp:44
Class SubscriberAttributes, used by the user to define the attributes of a Subscriber.
Definition: SubscriberAttributes.h:39
eProsima namespace.
Definition: LibrarySettingsAttributes.h:23