RTC::FactoryCXX Class Reference

FactoryCXX class. More...

#include <Factory.h>

Inheritance diagram for RTC::FactoryCXX:
RTC::FactoryBase

List of all members.

Public Member Functions

 FactoryCXX (const coil::Properties &profile, RtcNewFunc new_func, RtcDeleteFunc delete_func, NumberingPolicy *policy=new DefaultNumberingPolicy())
 Constructor.
virtual ~FactoryCXX ()
virtual RTObject_implcreate (Manager *mgr)
 Create RT-Components.
virtual void destroy (RTObject_impl *comp)
 Destroy RT-Components.

Protected Attributes

RtcNewFunc m_New
 The pointer to component object create function.
RtcDeleteFunc m_Delete
 The pointer to component object destroy function.
NumberingPolicym_policy
 The naming policy on creating the components.

Detailed Description

FactoryCXX class.

RT-Component factory class for C++.

Since:
0.2.0

Constructor & Destructor Documentation

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.

Parameters:
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)
virtual RTC::FactoryCXX::~FactoryCXX (  )  [inline, virtual]

References m_policy.


Member Function Documentation

virtual RTObject_impl* RTC::FactoryCXX::create ( Manager mgr  )  [virtual]

Create RT-Components.

Create RT-Component's instances

Parameters:
mgr Manager object
Returns:
Created RT-Components

Implements RTC::FactoryBase.

virtual void RTC::FactoryCXX::destroy ( RTObject_impl comp  )  [virtual]

Destroy RT-Components.

Destroy RT-Component's instances

Parameters:
comp The target RT-Component for destruction

Implements RTC::FactoryBase.


Member Data Documentation

The pointer to component object destroy function.

The pointer to component object create function.

The naming policy on creating the components.

Referenced by ~FactoryCXX().

Generated on Fri Oct 28 18:31:18 2016 for OpenRTM-aist by  doxygen 1.6.3