DomainParticipantFactoryQos.hpp 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. // Copyright 2019 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 DomainParticipantFactoryQos.hpp
  16. *
  17. */
  18. #ifndef _FASTDDS_PARTICIPANTFACTORYQOS_HPP_
  19. #define _FASTDDS_PARTICIPANTFACTORYQOS_HPP_
  20. #include <fastrtps/fastrtps_dll.h>
  21. #include <fastdds/dds/core/policy/QosPolicies.hpp>
  22. namespace eprosima {
  23. namespace fastdds {
  24. namespace dds {
  25. /**
  26. * Class DomainParticipantFactoryQos, contains all the possible Qos that can be set for a determined participant.
  27. * Please consult each of them to check for implementation details and default values.
  28. * @ingroup FASTDDS_QOS_MODULE
  29. */
  30. class DomainParticipantFactoryQos
  31. {
  32. public:
  33. /**
  34. * @brief Constructor
  35. */
  36. RTPS_DllAPI DomainParticipantFactoryQos()
  37. {
  38. }
  39. /**
  40. * @brief Destructor
  41. */
  42. RTPS_DllAPI virtual ~DomainParticipantFactoryQos()
  43. {
  44. }
  45. bool operator ==(
  46. const DomainParticipantFactoryQos& b) const
  47. {
  48. return (this->entity_factory_ == b.entity_factory());
  49. }
  50. /**
  51. * Getter for EntityFactoryQosPolicy
  52. * @return EntityFactoryQosPolicy reference
  53. */
  54. const EntityFactoryQosPolicy& entity_factory() const
  55. {
  56. return entity_factory_;
  57. }
  58. /**
  59. * Getter for EntityFactoryQosPolicy
  60. * @return EntityFactoryQosPolicy reference
  61. */
  62. EntityFactoryQosPolicy& entity_factory()
  63. {
  64. return entity_factory_;
  65. }
  66. /**
  67. * Setter for EntityFactoryQosPolicy
  68. * @param entity_factory EntityFactoryQosPolicy
  69. */
  70. void entity_factory(
  71. const EntityFactoryQosPolicy& entity_factory)
  72. {
  73. entity_factory_ = entity_factory;
  74. }
  75. private:
  76. //!EntityFactoryQosPolicy, implemented in the library.
  77. EntityFactoryQosPolicy entity_factory_;
  78. };
  79. } /* namespace dds */
  80. } /* namespace fastdds */
  81. } /* namespace eprosima */
  82. #endif /* _FASTDDS_PARTICIPANTFACTORYQOS_HPP_ */