RTI Connext Modern C++ API
Version 7.0.0
|
<<value-type>> Container of the QoS policies that a dds::sub::Subscriber supports More...
#include "dds/sub/qos/SubscriberQos.hpp"
Public Member Functions | |
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... | |
Related Functions | |
(Note that these are not member functions.) | |
std::string | to_string (const SubscriberQos &qos, const rti::core::QosPrintFormat &format=rti::core::QosPrintFormat()) |
<<extension>> Obtains a string representation of the dds::sub::qos::SubscriberQos More... | |
std::string | to_string (const SubscriberQos &qos, const SubscriberQos &base, const rti::core::QosPrintFormat &format=rti::core::QosPrintFormat()) |
<<extension>> Obtains a string representation of the dds::sub::qos::SubscriberQos More... | |
std::string | to_string (const SubscriberQos &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::SubscriberQos More... | |
std::ostream & | operator<< (std::ostream &out, const rti::sub::qos::SubscriberQos &qos) |
<<extension>> Prints a dds::sub::qos::SubscriberQos to an output stream. More... | |
<<value-type>> Container of the QoS policies that a dds::sub::Subscriber supports
You must set certain members in a consistent manner:
length of dds::core::policy::GroupData::value <= rti::core::policy::DomainParticipantResourceLimits::subscriber_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::sub::Subscriber::qos(const dds::sub::qos::SubscriberQos&) will fail with dds::core::InconsistentPolicyError
const POLICY& dds::sub::qos::SubscriberQos::policy | ( | ) | const |
Gets a QoS policy by const reference.
POLICY& dds::sub::qos::SubscriberQos::policy | ( | ) |
Gets a QoS policy by reference.
Policy | One of the Subscriber QoS policies: |
|
related |
<<extension>> Obtains a string representation of the dds::sub::qos::SubscriberQos
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::SubscriberQos
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::SubscriberQos
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::SubscriberQos to an output stream.