Relative Path for QoSProvider XML Files

2 posts / 0 new
Last post
Offline
Last seen: 1 month 5 days ago
Joined: 05/20/2015
Posts: 8
Relative Path for QoSProvider XML Files

Hey guys,

I have tried every format I can think of, but I always get an error (DDS_QosProvider_load_profiles_from_url_groupI:ERROR: opening profiles group files) when attempting to put a relative path in the URL groups for a QosProvider (this is in the Modern C++ API).  Absolute paths work fine with the file:/// prefix.  But there don't seem to be any examples in the docs using relative paths.  How do I specify a relative path in 6.0.1?

In 5.2.3 we could use the following group of relative search paths and it worked great for finding the qos file running executables in multiple locations within the directory structure.

"[avnsil_qos_library.xml|../../../../dds_qos/avnsil_qos_library.xml|../../../../../dds_qos/avnsil_qos_library.xml|../../../../../../dds_qos/avnsil_qos_library.xml|./plugins/avnsil_qos_library.xml]"

Thanks,

- Craig Wilson

Howard's picture
Offline
Last seen: 2 days 21 hours ago
Joined: 11/29/2012
Posts: 131

Hi Craig,

I'm not sure what the exact syntax was accepted in 5.2.3, but if you want to use URI groups, then you will need to use "file://" to identify file paths.  The file path that comes after "file://" (note double slash not triple) can be relative or absolute...absolute paths start with a "/" or "drive:/".

So using your example:

"[file://avnsil_qos_library.xml | file://../../../../dds_qos/avnsil_qos_library.xml| file://../../../../../dds_qos/avnsil_qos_library.xml | file://../../../../../../dds_qos/avnsil_qos_library.xml | file://./plugins/avnsil_qos_library.xml]"

should work...and load the first file that it finds.