Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

RTC::FactoryCXX Class Reference

#include <Factory.h>

Inheritance diagram for RTC::FactoryCXX:

RTC::FactoryBase List of all members.

Public Member Functions

 FactoryCXX (const Properties &profile, RtcNewFunc new_func, RtcDeleteFunc delete_func, NumberingPolicy *policy=new DefaultNumberingPolicy())
 RtcFactoryCXX class constructor.
virtual RtcBasecreate (Manager *mgr)
 Create component.
virtual void destroy (RtcBase *comp)
 Destroy component.
virtual Propertiesprofile ()
 Get component profile.
virtual int number ()
 Get number of component instances.

Protected Attributes

RtcNewFunc m_New
 The pointer to component object create function.
RtcDeleteFunc m_Delete
 The pointer to component object delete function.
NumberingPolicym_policy
Properties m_Profile
 Component profile.
int m_Number
 Number of current component instances.

Constructor & Destructor Documentation

RTC::FactoryCXX::FactoryCXX const Properties profile,
RtcNewFunc  new_func,
RtcDeleteFunc  delete_func,
NumberingPolicy policy = new DefaultNumberingPolicy()
 

RtcFactoryCXX class constructor.

RtcFactoryCXX class constructor. Create component factory class with three arguments: component profile, function pointer to object create function and object delete function.

Parameters:
profile Component profile
new_func Pointer to component create function
delete_func Pointer to component delete function


Member Function Documentation

virtual RtcBase* RTC::FactoryCXX::create Manager mgr  )  [virtual]
 

Create component.

Create component implemented in Python.

Parameters:
mgr pointer to RtcManager

Implements RTC::FactoryBase.

virtual void RTC::FactoryCXX::destroy RtcBase comp  )  [virtual]
 

Destroy component.

Destroy component instance

Parameters:
comp pointer to RtcBase

Implements RTC::FactoryBase.

virtual int RTC::FactoryBase::number  )  [virtual, inherited]
 

Get number of component instances.

Get number of current component instances.

virtual Properties& RTC::FactoryBase::profile  )  [virtual, inherited]
 

Get component profile.

Get component profile.


Member Data Documentation

RtcDeleteFunc RTC::FactoryCXX::m_Delete [protected]
 

The pointer to component object delete function.

RtcNewFunc RTC::FactoryCXX::m_New [protected]
 

The pointer to component object create function.

int RTC::FactoryBase::m_Number [protected, inherited]
 

Number of current component instances.

NumberingPolicy* RTC::FactoryCXX::m_policy [protected]
 

Properties RTC::FactoryBase::m_Profile [protected, inherited]
 

Component profile.


The documentation for this class was generated from the following file:
Generated on Fri Oct 5 05:16:03 2007 for OpenRTM by  doxygen 1.4.1