RTC::FactoryBase Class Reference

FactoryBase base class. More...

#include <Factory.h>

Inheritance diagram for RTC::FactoryBase:

RTC::FactoryCXX

List of all members.

Public Member Functions

 FactoryBase (const Properties &profile)
 Constructor.
virtual ~FactoryBase ()
 Destructor.
virtual RtcBasecreate (Manager *mgr)=0
 Create components.
virtual void destroy (RtcBase *comp)=0
 Destroy components.
virtual Propertiesprofile ()
 Get the component profile.
virtual int number ()
 Get the number of current instances.

Protected Attributes

Properties m_Profile
 Component profile.
int m_Number
 Number of current RT-Component's instances.


Detailed Description

FactoryBase base class.

This is a base class for RT-Component factory.

Since:
0.2.0

Constructor & Destructor Documentation

RTC::FactoryBase::FactoryBase ( const Properties profile  ) 

Constructor.

Constructor.

Parameters:
profile Component profile

virtual RTC::FactoryBase::~FactoryBase (  )  [virtual]

Destructor.

Destructor


Member Function Documentation

virtual RtcBase* RTC::FactoryBase::create ( Manager mgr  )  [pure virtual]

Create components.

Pure virtual function to create RT-Component's instances

Parameters:
mgr Manager object
Returns:
Created RT-Components

Implemented in RTC::FactoryCXX.

virtual void RTC::FactoryBase::destroy ( RtcBase comp  )  [pure virtual]

Destroy components.

Pure virtual function to destroy RT-Component's instances

Parameters:
comp The target RT-Component for destruction

Implemented in RTC::FactoryCXX.

virtual Properties& RTC::FactoryBase::profile (  )  [virtual]

Get the component profile.

Get the component profile.

Returns:
The component profile

virtual int RTC::FactoryBase::number (  )  [virtual]

Get the number of current instances.

Get the number of current RT-Component's instances.

Returns:
Number of RT-Component's instances


Member Data Documentation

Properties RTC::FactoryBase::m_Profile [protected]

Component profile.

int RTC::FactoryBase::m_Number [protected]

Number of current RT-Component's instances.


Generated on Wed May 21 05:17:34 2008 for OpenRTM by  doxygen 1.5.3