RTI Connext Modern C++ API  Version 5.2.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
dds::sub::qos::DataReaderQos Class Reference

<<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.
 
DataReaderQosoperator= (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 >
DataReaderQospolicy (const Policy &p)
 Sets a policy.
 
template<typename Policy >
DataReaderQosoperator<< (const Policy &p)
 Sets a policy.
 
template<typename Policy >
const DataReaderQosoperator>> (Policy &p) const
 Copies the values of a policy.
 

Detailed Description

<<value-type>> Container of the QoS policies that a dds::sub::DataReader supports

DataReaderQos policies

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

See Also
Qos Use Cases

Constructor & Destructor Documentation

dds::sub::qos::DataReaderQos::DataReaderQos ( )
inline

Creates a DataReaderQos with the default value for each policy.

Member Function Documentation

DataReaderQos& dds::sub::qos::DataReaderQos::operator= ( const dds::topic::qos::TopicQos topic_qos)
inline

Copies into this DataReaderQos those policies that are also in TopicQos.

Parameters
topic_qosThe TopicQos to copy the common policies from.
template<typename POLICY >
const POLICY& dds::sub::qos::DataReaderQos::policy ( ) const

Gets a QoS policy by const reference.

Template Parameters
PolicyOne of the DataReaderQos policies
See Also
Setting Qos Values
template<typename POLICY >
POLICY& dds::sub::qos::DataReaderQos::policy ( )

Gets a QoS policy by reference.

Template Parameters
PolicyOne of the DataReaderQos policies
See Also
Setting Qos Values
template<typename Policy >
DataReaderQos& dds::sub::qos::DataReaderQos::policy ( const Policy &  p)
inline

Sets a policy.

See Also
policy()
Setting Qos Values
template<typename Policy >
DataReaderQos& dds::sub::qos::DataReaderQos::operator<< ( const Policy &  p)
inline

Sets a policy.

See Also
policy()
Setting Qos Values
template<typename Policy >
const DataReaderQos& dds::sub::qos::DataReaderQos::operator>> ( Policy &  p) const
inline

Copies the values of a policy.

Parameters
pThe destination where to copy the current value of the Policy
See Also
policy()
Setting Qos Values

RTI Connext Modern C++ API Version 5.2.0 Copyright © Sun Jun 21 2015 Real-Time Innovations, Inc