StringOutComp.cpp
Go to the documentation of this file.
1 // -*- C++ -*-
12 #include <rtm/RtcManager.h>
13 #include <iostream>
14 #include <string>
15 #include "StringOut.h"
16 
17 
18 void MyModuleInit(RtcManager* manager)
19 {
20  StringOutInit(manager);
21 
22  std::string name;
23  RtcBase* comp;
24  comp = manager->createComponent("StringOut", "Generic", name);
25 
26  std::cout << "RTComponent: " << name << " was created." << std::endl;
27 
28  return;
29 }
30 
31 
32 int main (int argc, char** argv)
33 {
34  RTM::RtcManager manager(argc, argv);
35  // Initialize manager
36  manager.initManager();
37  // Activate manager and register to naming service
38  manager.activateManager();
39  // Initialize my module on this maneger
40  manager.initModuleProc(MyModuleInit);
41  // Main loop
42  manager.runManager();
43  return 0;
44 }
45 
46 
void StringOutInit(RtcManager *manager)
Definition: StringOut.cpp:200
Sample string out component.
void MyModuleInit(RtcManager *manager)
int main(int argc, char **argv)
RTObject_impl RtcBase
Definition: Manager.h:55


openrtm_aist
Author(s): Noriaki Ando
autogenerated on Thu Jun 6 2019 19:26:00