00001 #ifndef OROCOS_@PKGNAME@_COMPONENT_HPP 00002 #define OROCOS_@PKGNAME@_COMPONENT_HPP 00003 00004 #include <rtt/RTT.hpp> 00005 #include <iostream> 00006 00007 class @Pkgname@ 00008 : public RTT::TaskContext 00009 { 00010 public: 00011 @Pkgname@(string const& name) 00012 : TaskContext(name) 00013 { 00014 std::cout << "@Pkgname@ constructed !" <<std::endl; 00015 } 00016 00017 bool configureHook() { 00018 std::cout << "@Pkgname@ configured !" <<std::endl; 00019 return true; 00020 } 00021 00022 bool startHook() { 00023 std::cout << "@Pkgname@ started !" <<std::endl; 00024 return true; 00025 } 00026 00027 void updateHook() { 00028 std::cout << "@Pkgname@ executes updateHook !" <<std::endl; 00029 } 00030 00031 void stopHook() { 00032 std::cout << "@Pkgname@ executes stopping !" <<std::endl; 00033 } 00034 00035 void cleanupHook() { 00036 std::cout << "@Pkgname@ cleaning up !" <<std::endl; 00037 } 00038 }; 00039 00040 #endif