00001
00002 #ifndef INCLUDED_HelloWorldBehavior_h_
00003 #define INCLUDED_HelloWorldBehavior_h_
00004
00005 #include "Behaviors/BehaviorBase.h"
00006 #include "Wireless/Wireless.h"
00007
00008
00009 class HelloWorldBehavior : public BehaviorBase {
00010 public:
00011 HelloWorldBehavior() : BehaviorBase() {}
00012
00013 virtual void DoStart() {
00014
00015 BehaviorBase::DoStart();
00016
00017
00018 for(unsigned int i=0; i<100; i++)
00019 serr->printf("Hello serr! This is %d\n",i);
00020 for(unsigned int i=0; i<10; i++)
00021 sout->printf("Hello sout! This is %d\n",i);
00022 for(unsigned int i=0; i<10; i++)
00023 cout << "Hello cout! This is " << i << endl;
00024 for(unsigned int i=0; i<10; i++)
00025 printf("Hello printf! This is %d\n",i);
00026
00027
00028 DoStop();
00029 }
00030
00031 virtual std::string getName() const {
00032
00033 return "HelloWorldBehavior";
00034 }
00035
00036 static std::string getClassDescription() {
00037
00038 return "A little demo of text output";
00039 }
00040
00041 };
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054 #endif