Main Page
+
Namespaces
Namespace List
+
Namespace Members
+
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
y
z
+
Functions
_
a
b
c
d
e
f
g
i
l
m
n
o
p
r
s
t
u
w
z
+
Variables
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
y
+
Typedefs
c
d
e
f
g
i
l
m
n
o
p
r
s
t
u
v
Enumerations
+
Enumerator
a
b
c
e
i
n
o
p
r
u
+
Classes
Class List
Class Hierarchy
+
Class Members
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
y
~
+
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
x
~
+
Variables
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
y
+
Typedefs
a
b
c
d
e
f
g
i
m
n
o
p
r
s
t
v
Enumerations
+
Enumerator
a
b
c
e
f
i
n
p
r
s
t
u
Properties
Related Functions
+
Files
File List
+
File Members
+
All
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
x
+
Functions
a
c
d
e
f
h
i
l
m
o
p
r
s
t
u
w
+
Variables
_
a
c
d
g
h
i
l
m
n
o
p
r
s
u
Typedefs
Enumerations
Enumerator
+
Macros
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
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 Mon Feb 28 2022 23:00:42