Class DurabilityQosPolicy

Inheritance Relationships

Base Types

Class Documentation

class DurabilityQosPolicy : public eprosima::fastdds::dds::Parameter_t, public eprosima::fastdds::dds::QosPolicy

This policy expresses if the data should ‘outlive’ their writing time.

Note

Immutable Qos Policy

Public Functions

inline RTPS_DllAPI DurabilityQosPolicy()

Constructor.

virtual RTPS_DllAPI ~DurabilityQosPolicy() = default

Destructor.

inline fastrtps::rtps::DurabilityKind_t durabilityKind() const

Translates kind to rtps layer equivalent

Returns

fastrtps::rtps::DurabilityKind_t

inline bool operator==(const DurabilityQosPolicy &b) const
inline void durabilityKind(const fastrtps::rtps::DurabilityKind_t new_kind)

Set kind passing the rtps layer equivalent kind

Parameters

new_kindfastrtps::rtps::DurabilityKind_t

inline virtual void clear() override

Clears the QosPolicy object.

Public Members

DurabilityQosPolicyKind_t kind

DurabilityQosPolicyKind.

By default the value for DataReaders: VOLATILE_DURABILITY_QOS, for DataWriters TRANSIENT_LOCAL_DURABILITY_QOS.