|
RTI Connext Modern C++ API
Version 5.3.0
|
<<value-type>> Container of the QoS policies that a dds::pub::DataWriter supports More...
#include <dds/pub/qos/DataWriterQos.hpp>
Public Member Functions | |
| DataWriterQos () | |
| Creates a DataWriterQos with the default value for each policy. | |
| DataWriterQos & | operator= (const dds::topic::qos::TopicQos &topic_qos) |
| Copies into this DataWriterQos 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 > | |
| DataWriterQos & | policy (const Policy &p) |
| Sets a policy. | |
| template<typename Policy > | |
| DataWriterQos & | operator<< (const Policy &p) |
| Sets a policy. | |
| template<typename Policy > | |
| const DataWriterQos & | operator>> (Policy &p) const |
| Copies the values of a policy. | |
<<value-type>> Container of the QoS policies that a dds::pub::DataWriter supports
A DataWriterQos 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::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
- length of dds::core::policy::UserData .value <= dds::domain::qos::DomainParticipantQos::resource_limits .writer_user_data_max_length
If any of the above are not true, dds::pub::DataWriter::qos(const dds::pub::qos::DataWriterQos&) and dds::pub::DataWriter::set_qos_with_profile and dds::pub::Publisher::default_datawriter_qos(const dds::pub::qos::DataWriterQos&) and dds::pub::Publisher::set_default_datawriter_qos_with_profile will fail with dds::core::InconsistentPolicyError and the dds::pub::DataWriter constructors will fail with dds::core::Error
| dds::pub::qos::DataWriterQos::DataWriterQos | ( | ) |
Creates a DataWriterQos with the default value for each policy.
|
inline |
Copies into this DataWriterQos those policies that are also in TopicQos.
| topic_qos | The TopicQos to copy the common policies from. |
| const Policy& dds::pub::qos::DataWriterQos::policy | ( | ) | const |
Gets a QoS policy by const reference.
| Policy | One of the DataWriterQos policies |
| Policy& dds::pub::qos::DataWriterQos::policy | ( | ) |
Gets a QoS policy by reference.
| Policy | One of the DataWriterQos 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 |