RTI Connext Modern C++ API
Version 5.3.0
|
<<value-type>> Container of the QoS policies that a dds::topic::Topic supports More...
#include <dds/topic/qos/TopicQos.hpp>
Public Member Functions | |
TopicQos () | |
Creates a TopicQos with the default value for each policy. | |
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 > | |
TopicQos & | policy (const Policy &p) |
Sets a policy. | |
template<typename Policy > | |
TopicQos & | operator<< (const Policy &p) |
Sets a policy. | |
template<typename Policy > | |
const TopicQos & | operator>> (Policy &p) const |
Copies the values of a policy. | |
<<value-type>> Container of the QoS policies that a dds::topic::Topic supports
A TopicQos 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::topic::qos::TopicQos::topic_data .value <= dds::domain::qos::DomainParticipantQos::resource_limits .topic_data_max_length
If any of the above are not true, dds::topic::Topic::qos(const dds::topic::qos::TopicQos&), dds::topic::Topic::qos() and dds::domain::DomainParticipant::default_topic_qos will fail with dds::core::InconsistentPolicyError and the dds::topic::Topic constructors will fail with dds::core::Error
|
inline |
Creates a TopicQos with the default value for each policy.
const POLICY& dds::topic::qos::TopicQos::policy | ( | ) | const |
Gets a QoS policy by const reference.
Policy | One of the TopicQos Policies |
POLICY& dds::topic::qos::TopicQos::policy | ( | ) |
Gets a QoS policy by reference.
Policy | One of the TopicQos 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 |