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 
49  {
50  }
51 
59  const char* ECFactoryCXX::name()
60  {
61  return m_name.c_str();
62  }
63 
72  {
73  return m_New();
74  }
75 
84  {
85  m_Delete(ec);
86  }
87 
88 };
RT-Component.
~ECFactoryCXX(void)
Virtual destructor.
Definition: ECFactory.cpp:48
A base class for ExecutionContext.
virtual void destroy(ExecutionContextBase *comp)
Destroy the target ExecutionContext&#39;s instances.
Definition: ECFactory.cpp:83
ECFactoryCXX(const char *name, ECNewFunc new_func, ECDeleteFunc delete_func)
Constructor.
Definition: ECFactory.cpp:32
ECNewFunc m_New
Function to create the target ExecutionContext.
Definition: ECFactory.h:349
virtual const char * name()
Get names of the target ExecutionContext for creation.
Definition: ECFactory.cpp:59
ECDeleteFunc m_Delete
Function to destroy the target ExecutionContext.
Definition: ECFactory.h:358
ExecutionContext Factory class.
ExecutionContextBase *(* ECNewFunc)()
Definition: ECFactory.h:29
RTComponent header.
void(* ECDeleteFunc)(ExecutionContextBase *ec)
Definition: ECFactory.h:30
virtual ExecutionContextBase * create()
Create the target ExecutionContext&#39;s instances.
Definition: ECFactory.cpp:71
std::string m_name
Names of the target ExecutionContext for creation.
Definition: ECFactory.h:340


openrtm_aist
Author(s): Noriaki Ando
autogenerated on Mon Jun 10 2019 14:07:52