RTI Connext Modern C++ API
Version 7.0.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. More... | |
DataReaderQos (const dds::topic::qos::TopicQos &topic_qos) | |
Creates a DataReaderQos with the given TopicQos. More... | |
DataReaderQos & | operator= (const dds::topic::qos::TopicQos &topic_qos) |
Copies into this DataReaderQos those policies that are also in TopicQos. More... | |
template<typename POLICY > | |
const POLICY & | policy () const |
Gets a QoS policy by const reference. More... | |
template<typename POLICY > | |
POLICY & | policy () |
Gets a QoS policy by reference. More... | |
template<typename Policy > | |
DataReaderQos & | policy (const Policy &p) |
Sets a policy. More... | |
template<typename Policy > | |
DataReaderQos & | operator<< (const Policy &p) |
Sets a policy. More... | |
template<typename Policy > | |
const DataReaderQos & | operator>> (Policy &p) const |
Copies the values of a policy. More... | |
Related Functions | |
(Note that these are not member functions.) | |
std::string | to_string (const DataReaderQos &qos, const rti::core::QosPrintFormat &format=rti::core::QosPrintFormat()) |
<<extension>> Obtains a string representation of the dds::sub::qos::DataReaderQos More... | |
std::string | to_string (const DataReaderQos &qos, const DataReaderQos &base, const rti::core::QosPrintFormat &format=rti::core::QosPrintFormat()) |
<<extension>> Obtains a string representation of the dds::sub::qos::DataReaderQos More... | |
std::string | to_string (const DataReaderQos &qos, const rti::core::qos_print_all_t &qos_print_all, const rti::core::QosPrintFormat &format=rti::core::QosPrintFormat()) |
<<extension>> Obtains a string representation of the dds::sub::qos::DataReaderQos More... | |
std::ostream & | operator<< (std::ostream &out, const rti::sub::qos::DataReaderQos &qos) |
<<extension>> Prints a dds::sub::qos::DataReaderQos to an output stream. More... | |
<<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 and the dds::sub::DataReader constructors will fail with dds::core::Error
dds::sub::qos::DataReaderQos::DataReaderQos | ( | ) |
Creates a DataReaderQos with the default value for each policy.
dds::sub::qos::DataReaderQos::DataReaderQos | ( | const dds::topic::qos::TopicQos & | topic_qos | ) |
Creates a DataReaderQos with the given TopicQos.
A dds::topic::qos::TopicQos contains a subset of the policies of a DataReaderQos. This constructor copies those common policies into this instance while initializing the policies that are only defined in DataReaderQos to their default vaues.
topic_qos | The TopicQos bring copied. |
Example:
|
inline |
Copies into this DataReaderQos those policies that are also in TopicQos.
A dds::topic::qos::TopicQos contains a subset of the policies of a DataReaderQos. This assignment operator copies those common policies into this instance while leaving the policies that are only defined in DataReaderQos unaltered.
topic_qos | The TopicQos to copy the common policies from. |
For example:
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 |
|
related |
<<extension>> Obtains a string representation of the dds::sub::qos::DataReaderQos
qos | The qos object to convert to a string |
format | The optional print format used to format the output string. |
The several to_string overloads allow formatting the output and printing only the differences with respect to another Qos object.
This overload uses the default print format and only prints the differences between qos and the documented default.
|
related |
<<extension>> Obtains a string representation of the dds::sub::qos::DataReaderQos
qos | The qos object to convert to a string |
base | The base qos. Only the differences between base and qos are included in the output string. If you want to print everything within the QoS, use the overload that accepts a rti::core::qos_print_all_t. |
format | The optional print format used to format the output string. |
This overload prints the differences between qos and base. If no print format is specified, the default will be used.
|
related |
<<extension>> Obtains a string representation of the dds::sub::qos::DataReaderQos
qos | The qos object to convert to a string |
qos_print_all | The sentinel value indicating that the entire QoS should be converted to a string. The other overloads of this API only print the differences with respect to a base profile, or to the documented default. |
format | The optional print format used to format the output string. |
This overload prints all of the policies within qos. If no print format is specified, the default will be used.
The only valid value for the qos_print_all argument is rti::core::qos_print_all
For example:
|
related |
<<extension>> Prints a dds::sub::qos::DataReaderQos to an output stream.