15.1.1.3.2. DataRepresentationQosPolicy

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

With multiple standard data Representations available, and vendor-specific extensions possible, DataWriters and DataReaders must be able to negotiate which data representation(s) to use. This negotiation shall occur based on DataRepresentationQosPolicy.

Warning

If a writer’s offered representation is contained within a reader’s sequence, the offer satisfies the request and the policies are compatible. Otherwise, they are incompatible.

Note

Immutable Qos Policy

Public Functions

DataRepresentationQosPolicy()

Constructor.

~DataRepresentationQosPolicy() override = default

Destructor.

bool operator==(const DataRepresentationQosPolicy &b) const

Compares the given policy to check if it’s equal.

Return

True if the policy is equal.

Parameters
  • b: QoS Policy.

void clear() override

Clears the QosPolicy object.

Public Members

std::vector<DataRepresentationId_t> m_value

List of DataRepresentationId.

By default, empty list.