ParticipantAttributes.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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 ParticipantAttributes.h
  16. *
  17. */
  18. #ifndef PARTICIPANTATTRIBUTES_H_
  19. #define PARTICIPANTATTRIBUTES_H_
  20. #include <fastdds/rtps/attributes/RTPSParticipantAttributes.h>
  21. namespace eprosima {
  22. namespace fastrtps {
  23. /**
  24. * Class ParticipantAttributes, used by the user to define the attributes of a Participant.
  25. * The Participants in the Publisher-Subscriber layer are only a container to a RTPSParticipant, so their attributes are the same.
  26. * Still to maintain the equivalence this class is used to define them.
  27. * @ingroup FASTRTPS_ATTRIBUTES_MODULE
  28. */
  29. class ParticipantAttributes
  30. {
  31. public:
  32. //! DomainId to be used by the associated RTPSParticipant (default: 0)
  33. uint32_t domainId = 0;
  34. //!Attributes of the associated RTPSParticipant.
  35. rtps::RTPSParticipantAttributes rtps;
  36. ParticipantAttributes()
  37. {
  38. }
  39. virtual ~ParticipantAttributes()
  40. {
  41. }
  42. bool operator ==(
  43. const ParticipantAttributes& b) const
  44. {
  45. return (this->rtps == b.rtps);
  46. }
  47. };
  48. }
  49. }
  50. #endif /* PARTICIPANTATTRIBUTES_H_ */