HelloRTWorld.cpp
Go to the documentation of this file.
00001 // -*- C++ -*-
00012 #include "HelloRTWorld.h"
00013 #include <iostream>
00014 
00015 using namespace std;
00016 
00017 HelloRTWorld::HelloRTWorld(RtcManager* manager)
00018   : RtcBase(manager) 
00019         
00020 {
00021   appendAlias("/example/HelloRTWorld|rtc");
00022 }
00023 
00024 RtmRes HelloRTWorld::rtc_active_do()
00025 {
00026   std::cout << "Hello RT World!" << std::endl;
00027   return RTM_OK;
00028 }
00029 
00030 extern "C" {
00031   
00032   RtcBase* HelloRTWorldNew(RtcManager* manager)
00033   {
00034         return new HelloRTWorld(manager);
00035   }
00036   
00037   
00038   void HelloRTWorldDelete(RtcBase* p)
00039   {
00040         delete (HelloRTWorld *)p;
00041         return;
00042   }
00043   
00044   
00045   void HelloRTWorldInit(RtcManager* manager)
00046   {
00047         RtcModuleProfile profile(hellortworld_spec);
00048         manager->registerComponent(profile, HelloRTWorldNew, HelloRTWorldDelete);
00049   }
00050 };
00051 


openrtm_aist
Author(s): Noriaki Ando
autogenerated on Sun Mar 26 2017 03:37:15