pkgname-component.cpp
Go to the documentation of this file.
1 #include "@pkgname@-component.hpp"
2 #include <rtt/Component.hpp>
3 #include <iostream>
4 
5 @Pkgname@::@Pkgname@(std::string const& name) : TaskContext(name){
6  std::cout << "@Pkgname@ constructed !" <<std::endl;
7 }
8 
9 bool @Pkgname@::configureHook(){
10  std::cout << "@Pkgname@ configured !" <<std::endl;
11  return true;
12 }
13 
14 bool @Pkgname@::startHook(){
15  std::cout << "@Pkgname@ started !" <<std::endl;
16  return true;
17 }
18 
19 void @Pkgname@::updateHook(){
20  std::cout << "@Pkgname@ executes updateHook !" <<std::endl;
21 }
22 
23 void @Pkgname@::stopHook() {
24  std::cout << "@Pkgname@ executes stopping !" <<std::endl;
25 }
26 
27 void @Pkgname@::cleanupHook() {
28  std::cout << "@Pkgname@ cleaning up !" <<std::endl;
29 }
30 
31 /*
32  * Using this macro, only one component may live
33  * in one library *and* you may *not* link this library
34  * with another component library. Use
35  * ORO_CREATE_COMPONENT_TYPE()
36  * ORO_LIST_COMPONENT_TYPE(@Pkgname@)
37  * In case you want to link with another library that
38  * already contains components.
39  *
40  * If you have put your component class
41  * in a namespace, don't forget to add it here too:
42  */
ORO_CREATE_COMPONENT(OCL::logging::Log4cxxAppender)


ocl
Author(s): OCL Development Team
autogenerated on Mon Mar 23 2020 04:47:19