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

RTM::RtcFactoryCXX Class Reference

RtcFactoryCXX class. More...

#include <RtcFactory.h>

Inheritance diagram for RTM::RtcFactoryCXX:

RTM::RtcFactoryBase List of all members.

Public Member Functions

 RtcFactoryCXX (RtcModuleProfile profile, RtcNewFunc new_func, RtcDeleteFunc delete_func)
 RtcFactoryCXX class constructor.

virtual RtcBasecreate (RtcManager *mgr)
 Create component.

virtual void destroy (RtcBase *comp)
 Destroy component.

virtual RtcModuleProfileprofile ()
 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.

RtcModuleProfile m_Profile
 Component profile.

int m_Number
 Number of current component instances.


Detailed Description

RtcFactoryCXX class.

RTComponent factory class for C++.


Constructor & Destructor Documentation

RTM::RtcFactoryCXX::RtcFactoryCXX RtcModuleProfile  profile,
RtcNewFunc  new_func,
RtcDeleteFunc  delete_func
 

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* RTM::RtcFactoryCXX::create RtcManager mgr  )  [virtual]
 

Create component.

Create component implemented in Python.

Parameters:
mgr pointer to RtcManager

Implements RTM::RtcFactoryBase.

virtual void RTM::RtcFactoryCXX::destroy RtcBase comp  )  [virtual]
 

Destroy component.

Destroy component instance

Parameters:
comp pointer to RtcBase

Implements RTM::RtcFactoryBase.

virtual int& RTM::RtcFactoryBase::number  )  [inline, virtual, inherited]
 

Get number of component instances.

Get number of current component instances.

virtual RtcModuleProfile& RTM::RtcFactoryBase::profile  )  [inline, virtual, inherited]
 

Get component profile.

Get component profile.


Member Data Documentation

RtcDeleteFunc RTM::RtcFactoryCXX::m_Delete [protected]
 

The pointer to component object delete function.

RtcNewFunc RTM::RtcFactoryCXX::m_New [protected]
 

The pointer to component object create function.

int RTM::RtcFactoryBase::m_Number [protected, inherited]
 

Number of current component instances.

RtcModuleProfile RTM::RtcFactoryBase::m_Profile [protected, inherited]
 

Component profile.


The documentation for this class was generated from the following file:
Generated on Thu Dec 16 15:29:19 2004 for OpenRTM by doxygen 1.3.6