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


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