OpenRTM-aist  1.2.1
Public Member Functions | Protected Attributes | List of all members
RTC::FactoryBase Class Referenceabstract

FactoryBase base class. More...

#include <Factory.h>

Inheritance diagram for RTC::FactoryBase:
Inheritance graph
[legend]
Collaboration diagram for RTC::FactoryBase:
Collaboration graph
[legend]

Public Member Functions

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

Protected Attributes

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

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 coil::Properties profile)

Constructor.

Constructor.

Parameters
profileComponent profile
virtual RTC::FactoryBase::~FactoryBase ( void  )
virtual

Destructor.

Destructor

Member Function Documentation

virtual RTObject_impl* RTC::FactoryBase::create ( Manager mgr)
pure virtual

Create components.

Pure virtual function to create RT-Component's instances

Parameters
mgrManager object
Returns
Created RT-Components

Implemented in RTC::FactoryCXX.

Referenced by RTC::FactoryCXX::~FactoryCXX().

virtual void RTC::FactoryBase::destroy ( RTObject_impl comp)
pure virtual

Destroy components.

Pure virtual function to destroy RT-Component's instances

Parameters
compThe target RT-Component for destruction

Implemented in RTC::FactoryCXX.

Referenced by RTC::FactoryCXX::~FactoryCXX().

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
virtual coil::Properties& RTC::FactoryBase::profile ( )
virtual

Get the component profile.

Get the component profile.

Returns
The component profile

Referenced by RTC::Manager::FactoryPredicate::operator()(), and RTC::Manager::ModuleFactories::operator()().

Member Data Documentation

int RTC::FactoryBase::m_Number
protected

Number of current RT-Component's instances.

coil::Properties RTC::FactoryBase::m_Profile
protected

Component profile.


The documentation for this class was generated from the following file: