I think you could achieve this using XML to define the QoS, or at least the default QoS.
For example, if you have a file called USER_QOS_PROFILES.xml in the workign directory from which you run your application then this file will be read and yiu have the opportunity to configure the default QoS there. This is done with the attribute setting is_default_qos="true" in the profile you want to make the default (see snipped below). You can then use the topic_filter attribute setting on specific QoS profiles to associate different QoS to different topic names. Note the topic_filter could be a regular expression, not just the name of a single topic. For example:
Hi,
I think you could achieve this using XML to define the QoS, or at least the default QoS.
For example, if you have a file called USER_QOS_PROFILES.xml in the workign directory from which you run your application then this file will be read and yiu have the opportunity to configure the default QoS there. This is done with the attribute setting
is_default_qos="true"
in the profile you want to make the default (see snipped below). You can then use thetopic_filter
attribute setting on specific QoS profiles to associate different QoS to different topic names. Note thetopic_filter
could be a regular expression, not just the name of a single topic. For example:You can get more information on the use of QoS profiles in section 17.9 of the Connext DDS User's Manual 5.1.
Gerardo