XML loaded

3 posts / 0 new
Last post
Offline
Last seen: 11 years 3 months ago
Joined: 04/09/2013
Posts: 13
XML loaded

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.

Organization:
Keywords:
Gerardo Pardo's picture
Offline
Last seen: 13 hours 14 min ago
Joined: 06/02/2010
Posts: 602

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

Gerardo Pardo's picture
Offline
Last seen: 13 hours 14 min ago
Joined: 06/02/2010
Posts: 602

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_profileget_datawriter_qos_from_profile, etc.

Gerardo