Is there a programmatic method of verifying the XML file was loaded.
For our test verification we have to simulate various possible failures.
One of the possible failures is a missing xml file. In software we need
a method to check if an XML file was loaded or if defaults values are being used.
You mean the XML file that can be used to set the QoS of the different entities?
There are several things you could do:
You could use the call to DomainParticipantFactory::get_qos_profile_libraries to get the list of libraries that were loaded. For each of the libraries you can call DomainParticipantFactory::get_qos_profiles to get the list of Qos Profile names.
Another possibility would be to set some QoS that you can then lookup. There are some good candidates for this, notably ENTITY_NAME, USER_DATA, and PROPERTY.
Gerardo
Hi,
In addition to the things I mentioned in the previous post you can also call the operations on the DomainParticipantFactory that lookup the QoS associated with different profile names. These include get_participant_qos_from_profile, get_publisher_qos_from_profile, get_datawriter_qos_from_profile, etc.
Gerardo