QosPolicies.h 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  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 QosPolicies.h
  16. *
  17. */
  18. #ifndef QOS_POLICIES_H_
  19. #define QOS_POLICIES_H_
  20. #include <fastdds/dds/core/policy/QosPolicies.hpp>
  21. #include <vector>
  22. #include <fastdds/rtps/common/Types.h>
  23. #include <fastdds/rtps/common/Time_t.h>
  24. #include <fastrtps/qos/ParameterTypes.h>
  25. namespace eprosima {
  26. namespace fastrtps {
  27. using QosPolicy = fastdds::dds::QosPolicy;
  28. using DurabilityQosPolicyKind = fastdds::dds::DurabilityQosPolicyKind;
  29. constexpr DurabilityQosPolicyKind VOLATILE_DURABILITY_QOS = DurabilityQosPolicyKind::VOLATILE_DURABILITY_QOS;
  30. constexpr DurabilityQosPolicyKind TRANSIENT_LOCAL_DURABILITY_QOS =
  31. DurabilityQosPolicyKind::TRANSIENT_LOCAL_DURABILITY_QOS;
  32. constexpr DurabilityQosPolicyKind TRANSIENT_DURABILITY_QOS = DurabilityQosPolicyKind::TRANSIENT_DURABILITY_QOS;
  33. constexpr DurabilityQosPolicyKind PERSISTENT_DURABILITY_QOS = DurabilityQosPolicyKind::PERSISTENT_DURABILITY_QOS;
  34. using DurabilityQosPolicy = fastdds::dds::DurabilityQosPolicy;
  35. using DeadlineQosPolicy = fastdds::dds::DeadlineQosPolicy;
  36. using LatencyBudgetQosPolicy = fastdds::dds::LatencyBudgetQosPolicy;
  37. using LivelinessQosPolicyKind = fastdds::dds::LivelinessQosPolicyKind;
  38. constexpr LivelinessQosPolicyKind AUTOMATIC_LIVELINESS_QOS = LivelinessQosPolicyKind::AUTOMATIC_LIVELINESS_QOS;
  39. constexpr LivelinessQosPolicyKind MANUAL_BY_PARTICIPANT_LIVELINESS_QOS =
  40. LivelinessQosPolicyKind::MANUAL_BY_PARTICIPANT_LIVELINESS_QOS;
  41. constexpr LivelinessQosPolicyKind MANUAL_BY_TOPIC_LIVELINESS_QOS =
  42. LivelinessQosPolicyKind::MANUAL_BY_TOPIC_LIVELINESS_QOS;
  43. using LivelinessQosPolicy = fastdds::dds::LivelinessQosPolicy;
  44. using ReliabilityQosPolicyKind = fastdds::dds::ReliabilityQosPolicyKind;
  45. constexpr ReliabilityQosPolicyKind BEST_EFFORT_RELIABILITY_QOS = ReliabilityQosPolicyKind::BEST_EFFORT_RELIABILITY_QOS;
  46. constexpr ReliabilityQosPolicyKind RELIABLE_RELIABILITY_QOS = ReliabilityQosPolicyKind::RELIABLE_RELIABILITY_QOS;
  47. using ReliabilityQosPolicy = fastdds::dds::ReliabilityQosPolicy;
  48. using OwnershipQosPolicyKind = fastdds::dds::OwnershipQosPolicyKind;
  49. constexpr OwnershipQosPolicyKind SHARED_OWNERSHIP_QOS = OwnershipQosPolicyKind::SHARED_OWNERSHIP_QOS;
  50. constexpr OwnershipQosPolicyKind EXCLUSIVE_OWNERSHIP_QOS = OwnershipQosPolicyKind::EXCLUSIVE_OWNERSHIP_QOS;
  51. using OwnershipQosPolicy = fastdds::dds::OwnershipQosPolicy;
  52. using DestinationOrderQosPolicyKind = fastdds::dds::DestinationOrderQosPolicyKind;
  53. constexpr DestinationOrderQosPolicyKind BY_RECEPTION_TIMESTAMP_DESTINATIONORDER_QOS =
  54. DestinationOrderQosPolicyKind::BY_RECEPTION_TIMESTAMP_DESTINATIONORDER_QOS;
  55. constexpr DestinationOrderQosPolicyKind BY_SOURCE_TIMESTAMP_DESTINATIONORDER_QOS =
  56. DestinationOrderQosPolicyKind::BY_SOURCE_TIMESTAMP_DESTINATIONORDER_QOS;
  57. using DestinationOrderQosPolicy = fastdds::dds::DestinationOrderQosPolicy;
  58. using TimeBasedFilterQosPolicy = fastdds::dds::TimeBasedFilterQosPolicy;
  59. using PresentationQosPolicyAccessScopeKind = fastdds::dds::PresentationQosPolicyAccessScopeKind;
  60. constexpr PresentationQosPolicyAccessScopeKind INSTANCE_PRESENTATION_QOS =
  61. PresentationQosPolicyAccessScopeKind::INSTANCE_PRESENTATION_QOS;
  62. constexpr PresentationQosPolicyAccessScopeKind TOPIC_PRESENTATION_QOS =
  63. PresentationQosPolicyAccessScopeKind::TOPIC_PRESENTATION_QOS;
  64. constexpr PresentationQosPolicyAccessScopeKind GROUP_PRESENTATION_QOS =
  65. PresentationQosPolicyAccessScopeKind::GROUP_PRESENTATION_QOS;
  66. using PresentationQosPolicy = fastdds::dds::PresentationQosPolicy;
  67. using PartitionQosPolicy = fastdds::dds::PartitionQosPolicy;
  68. using UserDataQosPolicy = fastdds::dds::UserDataQosPolicy;
  69. using TopicDataQosPolicy = fastdds::dds::TopicDataQosPolicy;
  70. using GroupDataQosPolicy = fastdds::dds::GroupDataQosPolicy;
  71. using HistoryQosPolicyKind = fastdds::dds::HistoryQosPolicyKind;
  72. constexpr HistoryQosPolicyKind KEEP_LAST_HISTORY_QOS = HistoryQosPolicyKind::KEEP_LAST_HISTORY_QOS;
  73. constexpr HistoryQosPolicyKind KEEP_ALL_HISTORY_QOS = HistoryQosPolicyKind::KEEP_ALL_HISTORY_QOS;
  74. using HistoryQosPolicy = fastdds::dds::HistoryQosPolicy;
  75. using ResourceLimitsQosPolicy = fastdds::dds::ResourceLimitsQosPolicy;
  76. using DurabilityServiceQosPolicy = fastdds::dds::DurabilityServiceQosPolicy;
  77. using LifespanQosPolicy = fastdds::dds::LifespanQosPolicy;
  78. using OwnershipStrengthQosPolicy = fastdds::dds::OwnershipStrengthQosPolicy;
  79. using TransportPriorityQosPolicy = fastdds::dds::TransportPriorityQosPolicy;
  80. using PublishModeQosPolicyKind = fastdds::dds::PublishModeQosPolicyKind;
  81. constexpr PublishModeQosPolicyKind SYNCHRONOUS_PUBLISH_MODE = PublishModeQosPolicyKind::SYNCHRONOUS_PUBLISH_MODE;
  82. constexpr PublishModeQosPolicyKind ASYNCHRONOUS_PUBLISH_MODE = PublishModeQosPolicyKind::ASYNCHRONOUS_PUBLISH_MODE;
  83. using PublishModeQosPolicy = fastdds::dds::PublishModeQosPolicy;
  84. using DataRepresentationId = fastdds::dds::DataRepresentationId;
  85. using DataRepresentationQosPolicy = fastdds::dds::DataRepresentationQosPolicy;
  86. using TypeConsistencyKind = fastdds::dds::TypeConsistencyKind;
  87. constexpr TypeConsistencyKind DISALLOW_TYPE_COERCION = TypeConsistencyKind::DISALLOW_TYPE_COERCION;
  88. constexpr TypeConsistencyKind ALLOW_TYPE_COERCION = TypeConsistencyKind::ALLOW_TYPE_COERCION;
  89. using TypeConsistencyEnforcementQosPolicy = fastdds::dds::TypeConsistencyEnforcementQosPolicy;
  90. using DisablePositiveACKsQosPolicy = fastdds::dds::DisablePositiveACKsQosPolicy;
  91. using TypeIdV1 = fastdds::dds::TypeIdV1;
  92. using TypeObjectV1 = fastdds::dds::TypeObjectV1;
  93. namespace xtypes {
  94. using TypeInformation = fastdds::dds::xtypes::TypeInformation;
  95. } //namespace xtypes
  96. }
  97. }
  98. #endif /* QOS_POLICIES_H_ */