ReplierAttributes.hpp 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. /**
  15. * @file ReplierAttributes.hpp
  16. */
  17. #ifndef REPLIERATTRIBUTES_HPP_
  18. #define REPLIERATTRIBUTES_HPP_
  19. #include "PublisherAttributes.h"
  20. #include "SubscriberAttributes.h"
  21. namespace eprosima {
  22. namespace fastrtps {
  23. class ReplierAttributes
  24. {
  25. public:
  26. ReplierAttributes() = default;
  27. bool operator==(const ReplierAttributes& b) const
  28. {
  29. return (this->service_name == b.service_name) &&
  30. (this->request_topic_name == b.request_topic_name) &&
  31. (this->reply_topic_name == b.reply_topic_name) &&
  32. (this->publisher == b.publisher) &&
  33. (this->subscriber == b.subscriber);
  34. }
  35. std::string service_name;
  36. std::string request_type;
  37. std::string reply_type;
  38. std::string request_topic_name;
  39. std::string reply_topic_name;
  40. PublisherAttributes publisher;
  41. SubscriberAttributes subscriber;
  42. };
  43. } /* namespace fastrtps */
  44. } /* namespace eprosima */
  45. #endif /* REPLIERATTRIBUTES_HPP_ */