|
OpenRTM-aist 2.1.0
|
FactoryCXX class. More...
#include <Factory.h>


Public Member Functions | |
| FactoryCXX (const coil::Properties &profile, RtcNewFunc new_func, RtcDeleteFunc delete_func, RTM::NumberingPolicyBase *policy=new RTM::ProcessUniquePolicy()) | |
| Constructor. | |
| ~FactoryCXX () override | |
| RTObject_impl * | create (Manager *mgr) override |
| Create RT-Components. | |
| void | destroy (RTObject_impl *comp) override |
| Destroy RT-Components. | |
Public Member Functions inherited from RTC::FactoryBase | |
| FactoryBase (const coil::Properties &profile) | |
| Constructor. | |
| virtual | ~FactoryBase () |
| Destructor. | |
| virtual coil::Properties & | profile () |
| Get the component profile. | |
| virtual int | number () |
| Get the number of current instances. | |
Protected Attributes | |
| RtcNewFunc | m_New |
| The pointer to component object create function . | |
| RtcDeleteFunc | m_Delete |
| The pointer to component object destroy function . | |
| RTM::NumberingPolicyBase * | m_policy |
| The naming policy on creating the components . | |
Protected Attributes inherited from RTC::FactoryBase | |
| coil::Properties | m_Profile |
| Component profile . | |
| int | m_Number |
| Number of current RT-Component's instances. . | |
| RTC::FactoryCXX::FactoryCXX | ( | const coil::Properties & | profile, |
| RtcNewFunc | new_func, | ||
| RtcDeleteFunc | delete_func, | ||
| RTM::NumberingPolicyBase * | policy = new RTM::ProcessUniquePolicy() |
||
| ) |
Constructor.
Constructor. Create component factory class with three arguments: component profile, function pointer to object create function and object destroy function.
| profile | Component profile |
| new_func | Pointer to component create function |
| delete_func | Pointer to component destroy function |
| policy | The naming policy at component creation (The default value:DefaultNumberingPolicy) |
|
inlineoverride |
References m_policy.
|
overridevirtual |
Create RT-Components.
Create RT-Component's instances
| mgr | Manager object |
Implements RTC::FactoryBase.
|
overridevirtual |
Destroy RT-Components.
Destroy RT-Component's instances
| comp | The target RT-Component for destruction |
Implements RTC::FactoryBase.
|
protected |
The pointer to component object destroy function .
|
protected |
The pointer to component object create function .
|
protected |
The naming policy on creating the components .
Referenced by ~FactoryCXX().