XML profiles can be described using strings. This configuration is useful for architectures without a file system.
There are two different ways to configure Entities via XML strings:
str://"<dds><qos_library>...</qos_library></dds>"
The string URLs can be specified in the environment variable NDDS_QOS_PROFILES as well as in the field url_profile in 9.4.2 PROFILE QosPolicy (DDS Extension) . Each string URL must contain a whole XML document.
const char * MyXML[4] = { "<dds>", "<qos_library name=\"MyLibrary\">", "</qos_library>", "</dds>" }; factoryQos.profile.string_profile.from_array(MyXML,4);
Only one XML document can be specified with the string_profile field.
© 2020 RTI