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


openrtm_aist
Author(s): Noriaki Ando
autogenerated on Mon Feb 28 2022 23:00:42