Homepage | Demos | Overview | Downloads | Tutorials | Reference | Credits |
00001 //-*-c++-*- 00002 #ifndef INCLUDED_EvtRptBehavior_h_ 00003 #define INCLUDED_EvtRptBehavior_h_ 00004 00005 #include "Behaviors/BehaviorBase.h" 00006 00007 //! A simple behavior to test event reports 00008 class EvtRptBehavior : public BehaviorBase { 00009 public: 00010 //!constructor 00011 EvtRptBehavior() 00012 : BehaviorBase() 00013 {} 00014 //!destructor 00015 virtual ~EvtRptBehavior() {} 00016 00017 //! Subscribes to various events 00018 virtual void DoStart(); 00019 00020 //! Cancels event subscriptions 00021 virtual void DoStop(); 00022 00023 //! prints out data on subscribed events 00024 virtual void processEvent(const EventBase& event); 00025 00026 virtual std::string getName() const { return "EvtRptBehavior"; } 00027 static std::string getClassDescription() { return "A simple behavior to test event reports"; } 00028 }; 00029 00030 /*! @file 00031 * @brief Describes EvtRptBehavior, which couts information about events it sees 00032 * @author tss (Creator) 00033 */ 00034 00035 #endif
Tekkotsu v1.4 |
Generated Sat Jul 19 00:06:30 2003 by Doxygen 1.3.2 |