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


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