You are here: Part 3: Advanced Concepts > Configuring QoS with XML > QoS Libraries

QoS Libraries

A QoS Library is a named set of QoS profiles.

One configuration file may have several QoS libraries, each one defining its own QoS profiles.

All QoS libraries must be declared within <dds> and </dds> tags. For example:

<dds>
    <qos_library name="RTILibrary">
        <!-- Individual QoSs are shortcuts 
             for QoS Profiles with 1 QoS -->
	<datawriter_qos name="KeepAllWriter">
		<history>
			<kind>KEEP_ALL_HISTORY_QOS</kind>
		</history>
	</datawriter_qos>
	<!-- Qos Profile -->
		<qos_profile name=
		    "StrictReliableCommunicationProfile">
		<datawriter_qos>
			<history>
			    <kind>KEEP_ALL_HISTORY_QOS</kind>
			</history>
			<reliability>
			    <kind>RELIABLE_RELIABILITY_QOS</kind>
			</reliability> 
		</datawriter_qos>
		<datareader_qos>
			<history>
			    <kind>KEEP_ALL_HISTORY_QOS</kind>
			</history>
			<reliability>
			    <kind>RELIABLE_RELIABILITY_QOS</kind>
			</reliability> 
	    	</datareader_qos>
	</qos_profile>
    </qos_library>
</dds>

A QoS library can be reopened within the same configuration file or across different configuration files. For example:

<dds>
	<qos_library name="RTILibrary">
       ...
    </qos_library>
    ...
	<qos_library name="RTILibrary">
       ...
    </qos_library>    
</dds>

© 2016 RTI