Fast DDS  Version 3.1.2
Fast DDS
Loading...
Searching...
No Matches
QosPolicy Class Referenceabstract

Class QosPolicy, base for all QoS policies defined for Writers and Readers. More...

#include <QosPolicies.hpp>

Inheritance diagram for QosPolicy:

Public Member Functions

 QosPolicy ()
 Constructor without parameters.
 
 QosPolicy (bool send_always)
 Constructor.
 
 QosPolicy (const QosPolicy &b)=default
 Copy Constructor.
 
virtual ~QosPolicy ()=default
 Destructor.
 
bool operator== (const QosPolicy &b) const
 
QosPolicyoperator= (const QosPolicy &b)=default
 
virtual bool send_always () const
 Whether it should always be sent.
 
virtual void clear ()=0
 Clears the QosPolicy object.
 

Public Attributes

bool hasChanged
 Boolean that indicates if the Qos has been changed with respect to the default Qos.
 

Protected Attributes

bool send_always_
 Boolean that indicates if the Qos has to be sent even if it is not changed.
 

Detailed Description

Class QosPolicy, base for all QoS policies defined for Writers and Readers.

Constructor & Destructor Documentation

◆ QosPolicy() [1/3]

QosPolicy ( )
inline

Constructor without parameters.

◆ QosPolicy() [2/3]

QosPolicy ( bool send_always)
inlineexplicit

Constructor.

Parameters
send_alwaysBoolean that set if the Qos need to be sent even if it is not changed

◆ QosPolicy() [3/3]

QosPolicy ( const QosPolicy & b)
default

Copy Constructor.

Parameters
bAnother instance of QosPolicy

◆ ~QosPolicy()

virtual ~QosPolicy ( )
virtualdefault

Destructor.

Member Function Documentation

◆ clear()

◆ operator=()

QosPolicy & operator= ( const QosPolicy & b)
default

◆ operator==()

bool operator== ( const QosPolicy & b) const
inline

◆ send_always()

virtual bool send_always ( ) const
inlinevirtual

Whether it should always be sent.

Returns
True if it should always be sent.

Member Data Documentation

◆ hasChanged

bool hasChanged

Boolean that indicates if the Qos has been changed with respect to the default Qos.

◆ send_always_

bool send_always_
protected

Boolean that indicates if the Qos has to be sent even if it is not changed.


The documentation for this class was generated from the following file: