pkgname-component.cpp
Go to the documentation of this file.
00001 #include "@pkgname@-component.hpp"
00002 #include <rtt/Component.hpp>
00003 #include <iostream>
00004 
00005 @Pkgname@::@Pkgname@(std::string const& name) : TaskContext(name){
00006   std::cout << "@Pkgname@ constructed !" <<std::endl;
00007 }
00008 
00009 bool @Pkgname@::configureHook(){
00010   std::cout << "@Pkgname@ configured !" <<std::endl;
00011   return true;
00012 }
00013 
00014 bool @Pkgname@::startHook(){
00015   std::cout << "@Pkgname@ started !" <<std::endl;
00016   return true;
00017 }
00018 
00019 void @Pkgname@::updateHook(){
00020   std::cout << "@Pkgname@ executes updateHook !" <<std::endl;
00021 }
00022 
00023 void @Pkgname@::stopHook() {
00024   std::cout << "@Pkgname@ executes stopping !" <<std::endl;
00025 }
00026 
00027 void @Pkgname@::cleanupHook() {
00028   std::cout << "@Pkgname@ cleaning up !" <<std::endl;
00029 }
00030 
00031 /*
00032  * Using this macro, only one component may live
00033  * in one library *and* you may *not* link this library
00034  * with another component library. Use
00035  * ORO_CREATE_COMPONENT_TYPE()
00036  * ORO_LIST_COMPONENT_TYPE(@Pkgname@)
00037  * In case you want to link with another library that
00038  * already contains components.
00039  *
00040  * If you have put your component class
00041  * in a namespace, don't forget to add it here too:
00042  */
00043 ORO_CREATE_COMPONENT(@Pkgname@)


ocl
Author(s): OCL Development Team
autogenerated on Thu Jan 2 2014 11:38:08