RTI Connext Modern C++ API
Version 5.3.1
|
<<value-type>> Container of the QoS policies that a dds::pub::Publisher supports More...
#include <dds/pub/qos/PublisherQos.hpp>
Public Member Functions | |
template<typename POLICY > | |
const POLICY & | policy () const |
Gets a QoS policy by const reference. | |
template<typename POLICY > | |
POLICY & | policy () |
Gets a QoS policy by reference. | |
template<typename Policy > | |
PublisherQos & | policy (const Policy &p) |
Sets a policy. | |
template<typename Policy > | |
PublisherQos & | operator<< (const Policy &p) |
Sets a policy. | |
template<typename Policy > | |
const PublisherQos & | operator>> (Policy &p) const |
Copies the values of a policy. | |
Related Functions | |
(Note that these are not member functions.) | |
void | swap (PublisherQosImpl &left, PublisherQosImpl &right) OMG_NOEXCEPT |
Swap the contents of two PublisherQos objects. | |
<<value-type>> Container of the QoS policies that a dds::pub::Publisher supports
A PublisherQos contains the following policies:
To get or set policies use the policy() getters and setters or operator << (see examples).
You must set certain members in a consistent manner:
length of dds::core::policy::GroupData::value <= rti::core::policy::DomainParticipantResourceLimits::publisher_group_data_max_length
length of dds::core::policy::Partition::name <= rti::core::policy::DomainParticipantResourceLimits::max_partitions
combined number of characters (including terminating 0) in dds::core::policy::Partition::name <= rti::core::policy::DomainParticipantResourceLimits::max_partition_cumulative_characters
If any of the above are not true, dds::pub::Publisher::qos(const dds::pub::qos::PublisherQos&) and dds::pub::Publisher::set_qos_with_profile will fail with dds::core::InconsistentPolicyError and the dds::pub::Publisher constructors will fail with dds::core::Error
const POLICY& dds::pub::qos::PublisherQos::policy | ( | ) | const |
Gets a QoS policy by const reference.
Policy | One of the PublisherQos Policies |
POLICY& dds::pub::qos::PublisherQos::policy | ( | ) |
Gets a QoS policy by reference.
Policy | One of the PublisherQos Policies |
|
inline |
Sets a policy.
|
inline |
Sets a policy.
|
inline |
Copies the values of a policy.
p | The destination where to copy the current value of the Policy |
|
related |
Swap the contents of two PublisherQos objects.
left | A PublisherQos |
right | The other PublisherQos |