Go to the documentation of this file.00001
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
00037 manager.initManager();
00038
00039 manager.activateManager();
00040
00041 manager.initModuleProc(MyModuleInit);
00042
00043 manager.runManager();
00044 return 0;
00045 }
00046