Main Page
Namespaces
Classes
Files
File List
File Members
src
lib
rtm
ECFactory.cpp
Go to the documentation of this file.
1
// -*- C++ -*-
19
#include <
rtm/RTC.h
>
20
#include <
rtm/ECFactory.h
>
21
22
namespace
RTC
23
{
24
32
ECFactoryCXX::ECFactoryCXX
(
const
char
* name,
33
ECNewFunc
new_func,
34
ECDeleteFunc
delete_func)
35
: m_name(name),
36
m_New(new_func),
37
m_Delete(delete_func)
38
{
39
}
40
48
ECFactoryCXX::~ECFactoryCXX
()
49
{
50
}
51
59
const
char
*
ECFactoryCXX::name
()
60
{
61
return
m_name
.c_str();
62
}
63
71
ExecutionContextBase
*
ECFactoryCXX::create
()
72
{
73
return
m_New
();
74
}
75
83
void
ECFactoryCXX::destroy
(
ExecutionContextBase
*
ec
)
84
{
85
m_Delete
(ec);
86
}
87
88
};
RTC
RT-Component.
Definition:
ArtExecutionContext.cpp:29
RTC::ECFactoryCXX::~ECFactoryCXX
~ECFactoryCXX(void)
Virtual destructor.
Definition:
ECFactory.cpp:48
RTC::ExecutionContextBase
A base class for ExecutionContext.
Definition:
ExecutionContextBase.h:51
RTC::ECFactoryCXX::destroy
virtual void destroy(ExecutionContextBase *comp)
Destroy the target ExecutionContext's instances.
Definition:
ECFactory.cpp:83
RTC::ECFactoryCXX::ECFactoryCXX
ECFactoryCXX(const char *name, ECNewFunc new_func, ECDeleteFunc delete_func)
Constructor.
Definition:
ECFactory.cpp:32
RTC::ECFactoryCXX::m_New
ECNewFunc m_New
Function to create the target ExecutionContext.
Definition:
ECFactory.h:349
RTC::ECFactoryCXX::name
virtual const char * name()
Get names of the target ExecutionContext for creation.
Definition:
ECFactory.cpp:59
RTC::ECFactoryCXX::m_Delete
ECDeleteFunc m_Delete
Function to destroy the target ExecutionContext.
Definition:
ECFactory.h:358
ECFactory.h
ExecutionContext Factory class.
RTC::ECNewFunc
ExecutionContextBase *(* ECNewFunc)()
Definition:
ECFactory.h:29
RTC.h
RTComponent header.
RTC::ECDeleteFunc
void(* ECDeleteFunc)(ExecutionContextBase *ec)
Definition:
ECFactory.h:30
AddRemoveRTCTest.ec
ec
Definition:
AddRemoveRTCTest.py:28
RTC::ECFactoryCXX::create
virtual ExecutionContextBase * create()
Create the target ExecutionContext's instances.
Definition:
ECFactory.cpp:71
RTC::ECFactoryCXX::m_name
std::string m_name
Names of the target ExecutionContext for creation.
Definition:
ECFactory.h:340
openrtm_aist
Author(s): Noriaki Ando
autogenerated on Thu Jun 6 2019 19:25:58