RTI Connext DDS Micro C++ API
Version 2.4.12
|
<<eXtension>> A run-time component factory. More...
#include <dds_cpp_rt.hxx>
Public Member Functions | |
bool | register_component (const char *name, RT_ComponentFactoryI *intf, RT_ComponentFactoryProperty *property, RT_ComponentFactoryListener *listener) |
<<cert>> Register a factory of RT components | |
bool | unregister (const char *name, RT_ComponentFactoryProperty **property, RT_ComponentFactoryListener **listener) |
<<cert>> Remove a component factory from the registry |
<<eXtension>> A run-time component factory.
bool RTRegistry::register_component | ( | const char * | name, |
RT_ComponentFactoryI * | intf, | ||
RT_ComponentFactoryProperty * | property, | ||
RT_ComponentFactoryListener * | listener | ||
) |
<<cert>> Register a factory of RT components
In order to make a component available, it is necessary to register a factory for the components. The factory is responsible for creating and deleting components.
The name of the factory must be unique. Otherwise, if a factory already exists with the the same name, the registration will fail.
name | <<in>> Name of the component factory |
intf | <<in>> Pointer to the implementation of the factory interface |
property | <<in>> Properties with which to create the factory |
listener | <<in>> The listener to install with the factory |
bool RTRegistry::unregister | ( | const char * | name, |
RT_ComponentFactoryProperty ** | property, | ||
RT_ComponentFactoryListener ** | listener | ||
) |
<<cert>> Remove a component factory from the registry
After a component factory is unregistered, it will no longer be possible to create or delete components with the factory.
name | <<in>> Name of the component factory |
property | <<in>> Properties with which the factory was created |
listener | <<in>> The listener installed with the factory |