DummyModule.cpp
Go to the documentation of this file.
2 #include "DummyModule.h"
3 
4 namespace RTC
5 {
6 
7 class Manager;
8 
11 {
12 public:
14  : RTC::DataFlowComponentBase(manager)
15  {
16  };
18 
19  static void InitProc(Manager* manager) { m_counter++; }
20  static int getInitProcCount() { return m_counter; }
21  static void resetInitProcCount() { m_counter = 0; }
22 
23 private:
24  static int m_counter;
25 };
27 
29 {
30  DummyModule::InitProc(manager);
31 }
32 
34 {
36 }
37 
39 {
41 }
42 
43 };
44 
45 static const char* dummy_spec[] =
46  {
47  "implementation_id", "Dummy",
48  "type_name", "Dummy",
49  "description", "",
50  "version", "",
51  "vendor", "",
52  "category", "",
53  "activity_type", "",
54  "max_instance", "10",
55  "language", "C++",
56  "lang_type", "compile",
57  ""
58  };
59 
60 extern "C"
61 {
62 
64  {
65  RTC::Properties profile(dummy_spec);
66  manager->registerFactory(profile,
67  RTC::Create<RTC::DummyModule>,
68  RTC::Delete<RTC::DummyModule>);
69  }
70 
71 };
RT-Component.
static int m_counter
Definition: DummyModule.cpp:24
static const char * dummy_spec[]
Definition: DummyModule.cpp:45
DataFlowComponentBase class.
Manager class.
Definition: Manager.h:80
static int getInitProcCount()
Definition: DummyModule.cpp:20
static void InitProc(Manager *manager)
Definition: DummyModule.cpp:19
DummyModule(RTC::Manager *manager)
Definition: DummyModule.cpp:13
Class represents a set of properties.
Definition: Properties.h:101
static void resetInitProcCount()
Definition: DummyModule.cpp:21
void DummyModuleInit(RTC::Manager *manager)
Definition: DummyModule.cpp:63
bool registerFactory(coil::Properties &profile, RtcNewFunc new_func, RtcDeleteFunc delete_func)
Register RT-Component Factory.
Definition: Manager.cpp:433


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