Hello all,
I am loading an XML QOS using the QosProvider. How can I set the domain id in the XML QOS file?
At the moment DOMAIN_ID is just some hard coded number:
dds::domain::DomainParticipant(DOMAIN_ID, qos_provider.participant_qos());
Best regards,
Andreas
dds::domain::DomainParticipant(DOMAIN_ID, qos_provider.participant_qos());
Hi Andreas,
You can set the domain_id in teh XML file but you have to use the XML Application Creation Syntax which allows you to defined named DomainParticipant entities and not just their Qos. This is becuase the domain_id is not considered part of the Qos. See the XML Application Creation Getting Started for details.
The syntax of the XML application creation files is an superset of the syntax for the QoS profiles XML. The XSD that validates this files can be found in your Connext DDS installation directory under resource/schema/rti_dds_profiles.xsd or you can access it on-line here: https://community.rti.com/schema/5.2.0/rti_dds_profiles.xsd.
Once you have the XML yu can use it to construct a DomainParticipantConfigParams object which can be used to create a DomainParcipant using the operation QosProvider::create_participant_from_config().
Gerardo