rti 6.1 read domain id from QOS XMl

4 posts / 0 new
Last post
kapilgupta123's picture
Offline
Last seen: 1 week 1 day ago
Joined: 06/18/2022
Posts: 2
rti 6.1 read domain id from QOS XMl

Hi, i need help to read Domain id from QOS XML file.., i am new to use rti 6.1 version and not able to do. can anyone help

Howard's picture
Offline
Last seen: 3 hours 22 min ago
Joined: 11/29/2012
Posts: 381

Hi, what do you mean by "read Domain id from QOS XML file"?  Properly configured, Connext DDS will load an XML file with QoS profiles as well as definitions of DDS Entities such as DomainParticipants.

You can read about QoS XML files here: https://community.rti.com/static/documentation/connext-dds/6.1.1/doc/manuals/connext_dds_professional/users_manual/index.htm#users_manual/XMLConfiguration.htm

It's unclear what you mean by reading a domain ID?  What code is doing this "reading"?  The XML file loaded by Connext is used by Connext DDS when creating Entities for the user application...and not usually directly used by the user application.

kapilgupta123's picture
Offline
Last seen: 1 week 1 day ago
Joined: 06/18/2022
Posts: 2

means, how can i add Domain_id in XML file with Qos and would like to read domain_id value from
XML file with Qos. i am working in C++17 language and want to know how to write code in c++ to read Domain_id from XML file with Qos

Howard's picture
Offline
Last seen: 3 hours 22 min ago
Joined: 11/29/2012
Posts: 381

Sorry, you cannot read a domain id set in the XML file.  All you can do is set a domain id into the XML file as a part of the definition of a DomainParticipant, and then create a DomainParticipant from the XML definition.

Please see this documentation: https://community.rti.com/static/documentation/connext-dds/6.1.1/doc/manuals/connext_dds_professional/xml_application_creation/index.htm

and this: https://community.rti.com/static/documentation/connext-dds/6.1.1/doc/manuals/connext_dds_professional/xml_application_creation/index.htm#xml_based_app_creation_guide/UnderstandingXMLBased/DomainLibrary.htm