1 #ifndef OMG_TDDS_CORE_POLICY_CORE_POLICY_HPP_ 2 #define OMG_TDDS_CORE_POLICY_CORE_POLICY_HPP_ 29 namespace dds {
namespace core {
namespace policy {
60 TUserData(
const uint8_t* value_begin,
const uint8_t* value_end);
75 template <
typename OCTET_ITER>
85 const uint8_t*
begin()
const;
86 const uint8_t*
end()
const;
101 template <
typename D>
118 TGroupData(
const uint8_t* value_begin,
const uint8_t* value_end);
131 template <
typename OCTET_ITER>
146 const uint8_t*
begin()
const;
147 const uint8_t*
end()
const;
160 template <
typename D>
169 TTopicData(
const uint8_t* value_begin,
const uint8_t* value_end);
182 template <
typename OCTET_ITER>
197 const uint8_t*
begin()
const;
198 const uint8_t*
end()
const;
219 template <
typename D>
253 template <
typename D>
263 TTransportPriority&
value(int32_t prio);
264 int32_t
value()
const;
287 template <
typename D>
328 template <
typename D>
347 template <
typename D>
364 template <
typename D>
381 template <
typename D>
385 explicit TPartition(
const std::string& partition);
398 #ifdef OMG_DDS_OWNERSHIP_SUPPORT 400 template <
typename D>
407 explicit TOwnership(dds::core::policy::OwnershipKind::Type the_kind);
408 TOwnership(
const TOwnership& other);
413 TOwnership& kind(dds::core::policy::OwnershipKind::Type the_kind);
414 dds::core::policy::OwnershipKind::Type kind()
const;
417 static TOwnership Exclusive();
418 static TOwnership
Shared();
425 template <
typename D>
428 explicit TOwnershipStrength(int32_t s);
430 TOwnershipStrength(
const TOwnershipStrength& other);
433 int32_t
value()
const;
434 TOwnershipStrength&
value(int32_t s);
437 #endif // OMG_DDS_OWNERSHIP_SUPPORT 442 template <
typename D>
458 template <
typename D>
482 template <
typename D>
489 explicit TDurability(dds::core::policy::DurabilityKind::Type the_kind);
494 dds::core::policy::DurabilityKind::Type
kind()
const;
503 template <
typename D>
512 TPresentation(dds::core::policy::PresentationAccessScopeKind::Type the_access_scope,
513 bool the_coherent_access,
514 bool the_ordered_access);
521 dds::core::policy::PresentationAccessScopeKind::Type
access_scope()
const;
537 template <
typename D>
544 TReliability(dds::core::policy::ReliabilityKind::Type the_kind,
551 dds::core::policy::ReliabilityKind::Type
kind()
const;
564 template <
typename D>
571 explicit TDestinationOrder(dds::core::policy::DestinationOrderKind::Type the_kind);
577 dds::core::policy::DestinationOrderKind::Type
kind()
const;
585 template <
typename D>
592 THistory(dds::core::policy::HistoryKind::Type the_kind, int32_t the_depth);
596 dds::core::policy::HistoryKind::Type
kind()
const;
597 THistory&
kind(dds::core::policy::HistoryKind::Type the_kind);
599 int32_t
depth()
const;
609 template <
typename D>
617 int32_t the_max_instances,
618 int32_t the_max_samples_per_instance);
636 template <
typename D>
643 TLiveliness(dds::core::policy::LivelinessKind::Type the_kind,
649 dds::core::policy::LivelinessKind::Type
kind()
const;
663 #ifdef OMG_DDS_PERSISTENCE_SUPPORT 665 template <
typename D>
668 TDurabilityService();
672 dds::core::policy::HistoryKind::Type the_history_kind,
673 int32_t the_history_depth,
674 int32_t the_max_samples,
675 int32_t the_max_instances,
676 int32_t the_max_samples_per_instance);
678 TDurabilityService(
const TDurabilityService& other);
685 TDurabilityService& history_kind(dds::core::policy::HistoryKind::Type the_kind);
686 dds::core::policy::HistoryKind::Type history_kind()
const;
688 TDurabilityService& history_depth(int32_t the_depth);
690 int32_t history_depth()
const;
692 TDurabilityService&
max_samples(int32_t the_max_samples);
695 TDurabilityService& max_instances(int32_t the_max_instances);
696 int32_t max_instances()
const;
698 TDurabilityService& max_samples_per_instance(int32_t the_max_samples_per_instance);
699 int32_t max_samples_per_instance()
const;
702 #endif // OMG_DDS_PERSISTENCE_SUPPORT 709 #ifdef OMG_DDS_EXTENSIBLE_AND_DYNAMIC_TOPIC_TYPE_SUPPORT 711 template <
typename D>
715 explicit TDataRepresentation(
716 const dds::core::policy::DataRepresentationIdSeq&
value);
718 TDataRepresentation(
const TDataRepresentation& other)
722 TDataRepresentation&
value(
const dds::core::policy::DataRepresentationIdSeq&
value);
724 const dds::core::policy::DataRepresentationIdSeq
value()
const;
726 dds::core::policy::DataRepresentationIdSeq&
727 value(dds::core::policy::DataRepresentationIdSeq& dst)
const;
730 #endif // defined(OMG_DDS_EXTENSIBLE_AND_DYNAMIC_TOPIC_TYPE_SUPPORT) 735 #ifdef OMG_DDS_EXTENSIBLE_AND_DYNAMIC_TOPIC_TYPE_SUPPORT 737 template <
typename D>
740 explicit TTypeConsistencyEnforcement(dds::core::policy::TypeConsistencyEnforcementKind::Type kind);
743 TTypeConsistencyEnforcement& kind(dds::core::policy::TypeConsistencyEnforcementKind::Type
value);
744 dds::core::policy::TypeConsistencyEnforcementKind::Type kind()
const;
747 #endif // defined(OMG_DDS_EXTENSIBLE_AND_DYNAMIC_TOPIC_TYPE_SUPPORT)