ManagerServant/DummyModule1.cpp
Go to the documentation of this file.
1 // -*- C++ -*-
10 #include "DummyModule1.h"
11 #include <iostream>
12 
13 // Module specification
14 // <rtc-template block="module_spec">
15 static const char* DummyModule1_spec[] =
16  {
17  "implementation_id", "DummyModule1",
18  "type_name", "DummyModule1",
19  "description", "Console input component",
20  "version", "1.0",
21  "vendor", "Noriaki Ando, AIST",
22  "category", "example",
23  "activity_type", "DataFlowComponent",
24  "max_instance", "10",
25  "language", "C++",
26  "lang_type", "compile",
27  ""
28  };
29 // </rtc-template>
30 
32  : RTC::DataFlowComponentBase(manager),
33  // <rtc-template block="initializer">
34 // m_outOut("out", m_out),
35  // </rtc-template>
36  dummy(0)
37 {
38  // Registration: InPort/OutPort/Service
39  // <rtc-template block="registration">
40  // Set InPort buffers
41 
42  // Set OutPort buffer
43 
44  // Set service provider to Ports
45 
46  // Set service consumers to Ports
47 
48  // Set CORBA Service Ports
49 
50  // </rtc-template>
51 
52 }
53 
55 {
56 }
57 
58 /*
59 RTC::ReturnCode_t DummyModule1::onInitialize()
60 {
61  registerOutPort("out", m_outOut);
62  return RTC::RTC_OK;
63 }
64 RTC::ReturnCode_t DummyModule1::onExecute(RTC::UniqueId ec_id)
65 {
66  std::cout << "Please input number: ";
67  std::cin >> m_out.data;
68  std::cout << "Sending to subscriber: " << m_out.data << std::endl;
69  m_outOut.write();
70 
71  return RTC::RTC_OK;
72 }
73 */
74 
75 extern "C"
76 {
77 
79  {
81  manager->registerFactory(profile,
82  RTC::Create<DummyModule1>,
83  RTC::Delete<DummyModule1>);
84 
85  }
86 
87 };
88 
89 
static const char * DummyModule1_spec[]
RT-Component.
DataFlowComponentBase class.
Manager class.
Definition: Manager.h:80
Class represents a set of properties.
Definition: Properties.h:101
void DummyModule1Init(RTC::Manager *manager)
DummyModule1(RTC::Manager *manager)
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 Thu Jun 6 2019 19:25:58