RTI Connext Modern C++ API
Version 5.2.0
|
<<value-type>> Container of the QoS policies that a dds::sub::DataReader supports More...
#include <dds/sub/qos/DataReaderQos.hpp>
Public Member Functions | |
DataReaderQos () | |
Creates a DataReaderQos with the default value for each policy. | |
DataReaderQos & | operator= (const dds::topic::qos::TopicQos &topic_qos) |
Copies into this DataReaderQos those policies that are also in TopicQos. | |
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 > | |
DataReaderQos & | policy (const Policy &p) |
Sets a policy. | |
template<typename Policy > | |
DataReaderQos & | operator<< (const Policy &p) |
Sets a policy. | |
template<typename Policy > | |
const DataReaderQos & | operator>> (Policy &p) const |
Copies the values of a policy. | |
<<value-type>> Container of the QoS policies that a dds::sub::DataReader supports
A DataReaderQos 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:
dds::core::policy::Deadline .period >= dds::core::policy::TimeBasedFilter .minimum_separation
dds::core::policy::History .depth <= dds::core::policy::ResourceLimits .max_samples_per_instance
dds::core::policy::ResourceLimits .max_samples_per_instance <= dds::core::policy::ResourceLimits .max_samples dds::core::policy::ResourceLimits .initial_samples <= dds::core::policy::ResourceLimits .max_samples
dds::core::policy::ResourceLimits .initial_instances <= dds::core::policy::ResourceLimits .max_instances
rti::core::policy::DataReaderResourceLimits .initial_remote_writers_per_instance <= rti::core::policy::DataReaderResourceLimits .max_remote_writers_per_instance
rti::core::policy::DataReaderResourceLimits .initial_infos <= rti::core::policy::DataReaderResourceLimits .max_infos
rti::core::policy::DataReaderResourceLimits .max_remote_writers_per_instance <= rti::core::policy::DataReaderResourceLimits .max_remote_writers
rti::core::policy::DataReaderResourceLimits .max_samples_per_remote_writer <= dds::core::policy::ResourceLimits .max_samples
length of dds::core::policy::UserData .value <= dds::domain::qos::DomainParticipantQos::resource_limits .reader_user_data_max_length
If any of the above are not true, dds::sub::DataReader::qos(const dds::sub::qos::DataReaderQos&) will fail with dds::core::InconsistentPolicyError
|
inline |
Creates a DataReaderQos with the default value for each policy.
|
inline |
Copies into this DataReaderQos those policies that are also in TopicQos.
topic_qos | The TopicQos to copy the common policies from. |
const POLICY& dds::sub::qos::DataReaderQos::policy | ( | ) | const |
Gets a QoS policy by const reference.
Policy | One of the DataReaderQos policies |
POLICY& dds::sub::qos::DataReaderQos::policy | ( | ) |
Gets a QoS policy by reference.
Policy | One of the DataReaderQos 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 |