You do not have to explicitly call load_profiles(). QoS profiles are loaded when any of these DomainParticipantFactory operations are called:
In the Modern C++ API, the previous operations cause the default QosProvider (QosProvider::Default()) to load the QoS profiles. Any other QosProvider that an application instantiates will load the QoS Profiles it is configured to load in its constructor.
QoS profiles are reloaded when either of these DomainParticipantFactory operations are called:
It is important to distinguish between loading and reloading:
The DomainParticipantFactory also has an unload_profiles() operation that frees the resources associated with the XML QoS profiles.
DDS_ReturnCode_t unload_profiles()
© 2016 RTI