OpenRTM-aist 2.0.2
Loading...
Searching...
No Matches
RTC::ECFactoryCXX Class Reference

ECFactoryCXX class. More...

#include <ECFactory.h>

Inheritance diagram for RTC::ECFactoryCXX:
Collaboration diagram for RTC::ECFactoryCXX:

Public Member Functions

 ECFactoryCXX (const char *name, ECNewFunc new_func, ECDeleteFunc delete_func)
 Constructor.
 
 ~ECFactoryCXX () override
 Virtual destructor.
 
const char * name () override
 Get names of the target ExecutionContext for creation.
 
ExecutionContextBasecreate () override
 Create the target ExecutionContext's instances.
 
void destroy (ExecutionContextBase *ec) override
 Destroy the target ExecutionContext's instances.
 
- Public Member Functions inherited from RTC::ECFactoryBase
virtual ~ECFactoryBase ()=default
 Virtual destructor.
 

Protected Attributes

std::string m_name
 Names of the target ExecutionContext for creation .
 
ECNewFunc m_New
 Function to create the target ExecutionContext .
 
ECDeleteFunc m_Delete
 Function to destroy the target ExecutionContext .
 

Detailed Description

ECFactoryCXX class.

Factory class to create the ExecutionContext's instances for C++.

Since
0.4.0

Constructor & Destructor Documentation

◆ ECFactoryCXX()

RTC::ECFactoryCXX::ECFactoryCXX ( const char * name,
ECNewFunc new_func,
ECDeleteFunc delete_func )

Constructor.

Constructor

Parameters
nameName of the target ExecutionContext for creation
new_funcFunction to create ExecutionContext
delete_funcFunction to destroy ExecutionContext

◆ ~ECFactoryCXX()

RTC::ECFactoryCXX::~ECFactoryCXX ( )
override

Virtual destructor.

Virtual destructor.

Member Function Documentation

◆ create()

ExecutionContextBase * RTC::ECFactoryCXX::create ( )
overridevirtual

Create the target ExecutionContext's instances.

Create the target ExecutionContext class's instances.

Returns
Created ExecutionContext's instances

Implements RTC::ECFactoryBase.

◆ destroy()

void RTC::ECFactoryCXX::destroy ( ExecutionContextBase * ec)
overridevirtual

Destroy the target ExecutionContext's instances.

Destroy the target ExecutionContext's instances.

Parameters
compThe target ExecutionContext's instances to destroy

Implements RTC::ECFactoryBase.

◆ name()

const char * RTC::ECFactoryCXX::name ( )
overridevirtual

Get names of the target ExecutionContext for creation.

Get names of the target ExecutionContext for creation.

Returns
Names of target ExecutionContext for creation

Implements RTC::ECFactoryBase.

Member Data Documentation

◆ m_Delete

ECDeleteFunc RTC::ECFactoryCXX::m_Delete
protected

Function to destroy the target ExecutionContext .

◆ m_name

std::string RTC::ECFactoryCXX::m_name
protected

Names of the target ExecutionContext for creation .

◆ m_New

ECNewFunc RTC::ECFactoryCXX::m_New
protected

Function to create the target ExecutionContext .


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