StringOutComp.cpp
Go to the documentation of this file.
00001 // -*- C++ -*-
00012 #include <rtm/RtcManager.h>
00013 #include <iostream>
00014 #include <string>
00015 #include "StringOut.h"
00016 
00017 
00018 void MyModuleInit(RtcManager* manager)
00019 {
00020   StringOutInit(manager);
00021 
00022   std::string name;
00023   RtcBase* comp;
00024   comp = manager->createComponent("StringOut", "Generic", name);
00025 
00026   std::cout << "RTComponent: " << name << " was created." << std::endl;
00027 
00028   return;
00029 }
00030 
00031 
00032 int main (int argc, char** argv)
00033 {
00034   RTM::RtcManager manager(argc, argv);
00035   // Initialize manager
00036   manager.initManager();
00037   // Activate manager and register to naming service
00038   manager.activateManager();
00039   // Initialize my module on this maneger
00040   manager.initModuleProc(MyModuleInit);
00041   // Main loop
00042   manager.runManager();
00043   return 0;
00044 }
00045 
00046 


openrtm_aist
Author(s): Noriaki Ando
autogenerated on Thu Aug 27 2015 14:16:39