62.4 Tags for Configuring QoS with XML

To configure the QoS for an Entity using XML, use the following tags:

  • <participant_factory_qos>
  • Note: The only QoS policies that can be configured for the DomainParticipantFactory are <entity_factory> and <logging>.

  • <domain_participant_qos>
  • <publisher_qos>
  • <subscriber_qos>
  • <topic_qos>
  • <datawriter_qos> or <writer_qos> (writer_qos is valid only with DTD validation)
  • <datareader_qos> or <reader_qos> (reader_qos is valid only with DTD validation)

Each QoS can be identified by a name. The QoS can inherit its values from other QoSs described in the XML file. For example:

<datawriter_qos name="DerivedWriterQos" base_name="Lib::BaseWriterQos">
    <history>
        <kind>KEEP_ALL_HISTORY_QOS</kind>
    </history>
</datawriter_qos>

In the above example, the datawriter_qos named 'DerivedWriterQos' inherits the values from 'BaseWriterQos' in the library 'Lib'. The HistoryQosPolicy kind is set to KEEP_ALL_HISTORY_QOS.

Each XML tag with an associated name can be uniquely identified by its fully qualified name in C++ style.

The writer, reader and topic QoSs can also contain an attribute called topic_filter that will be used to associate a set of topics to a specific QoS when that QoS is part of a QoS profile. See 62.2.4 Topic Filters and 62.2 QoS Profiles.