FactoryCXX class. More...
#include <Factory.h>
Public Member Functions | |
virtual RTObject_impl * | create (Manager *mgr) |
Create RT-Components. | |
virtual void | destroy (RTObject_impl *comp) |
Destroy RT-Components. | |
FactoryCXX (const coil::Properties &profile, RtcNewFunc new_func, RtcDeleteFunc delete_func, NumberingPolicy *policy=new DefaultNumberingPolicy()) | |
Constructor. | |
virtual | ~FactoryCXX () |
Protected Attributes | |
RtcDeleteFunc | m_Delete |
The pointer to component object destroy function. | |
RtcNewFunc | m_New |
The pointer to component object create function. | |
NumberingPolicy * | m_policy |
The naming policy on creating the components. |
FactoryCXX class.
RT-Component factory class for C++.
Definition at line 286 of file rtm/Factory.h.
RTC::FactoryCXX::FactoryCXX | ( | const coil::Properties & | profile, |
RtcNewFunc | new_func, | ||
RtcDeleteFunc | delete_func, | ||
NumberingPolicy * | policy = new DefaultNumberingPolicy() |
||
) |
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) |
Definition at line 79 of file Factory.cpp.
virtual RTC::FactoryCXX::~FactoryCXX | ( | ) | [inline, virtual] |
Definition at line 328 of file rtm/Factory.h.
RTObject_impl * RTC::FactoryCXX::create | ( | Manager * | mgr | ) | [virtual] |
Create RT-Components.
Create RT-Component's instances
mgr | Manager object |
Implements RTC::FactoryBase.
Definition at line 99 of file Factory.cpp.
void RTC::FactoryCXX::destroy | ( | RTObject_impl * | comp | ) | [virtual] |
Destroy RT-Components.
Destroy RT-Component's instances
comp | The target RT-Component for destruction |
Implements RTC::FactoryBase.
Definition at line 129 of file Factory.cpp.
RtcDeleteFunc RTC::FactoryCXX::m_Delete [protected] |
The pointer to component object destroy function.
Definition at line 396 of file rtm/Factory.h.
RtcNewFunc RTC::FactoryCXX::m_New [protected] |
The pointer to component object create function.
Definition at line 387 of file rtm/Factory.h.
NumberingPolicy* RTC::FactoryCXX::m_policy [protected] |
The naming policy on creating the components.
Definition at line 405 of file rtm/Factory.h.