Homepage Demos Overview Downloads Tutorials Reference
Credits
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members | Related Pages | Search

EvtRptBehavior Class Reference

#include <EvtRptBehavior.h>

Inheritance diagram for EvtRptBehavior:

Inheritance graph
[legend]
List of all members.

Detailed Description

A simple behavior to test event reports.

Definition at line 8 of file EvtRptBehavior.h.

Public Member Functions

 EvtRptBehavior ()
 constructor

virtual ~EvtRptBehavior ()
 destructor

virtual void DoStart ()
 Subscribes to various events.

virtual void DoStop ()
 Cancels event subscriptions.

virtual void processEvent (const EventBase &event)
 prints out data on subscribed events

virtual std::string getName () const
 Identifies the behavior in menus and such.


Static Public Member Functions

std::string getClassDescription ()
 Gives a short description of what this class of behaviors does... you should override this (but don't have to).


Constructor & Destructor Documentation

EvtRptBehavior::EvtRptBehavior  )  [inline]
 

constructor

Definition at line 11 of file EvtRptBehavior.h.

virtual EvtRptBehavior::~EvtRptBehavior  )  [inline, virtual]
 

destructor

Definition at line 15 of file EvtRptBehavior.h.


Member Function Documentation

void EvtRptBehavior::DoStart  )  [virtual]
 

Subscribes to various events.

Reimplemented from BehaviorBase.

Definition at line 7 of file EvtRptBehavior.cc.

References EventRouter::addListener(), BehaviorBase::DoStart(), Vision::enableEvents(), erouter, EventBase::locomotionEGID, vision, and EventBase::visionEGID.

void EvtRptBehavior::DoStop  )  [virtual]
 

Cancels event subscriptions.

Reimplemented from BehaviorBase.

Definition at line 18 of file EvtRptBehavior.cc.

References Vision::disableEvents(), BehaviorBase::DoStop(), erouter, EventRouter::forgetListener(), and vision.

std::string EvtRptBehavior::getClassDescription  )  [inline, static]
 

Gives a short description of what this class of behaviors does... you should override this (but don't have to).

Reimplemented from BehaviorBase.

Definition at line 27 of file EvtRptBehavior.h.

virtual std::string EvtRptBehavior::getName  )  const [inline, virtual]
 

Identifies the behavior in menus and such.

Implements BehaviorBase.

Definition at line 26 of file EvtRptBehavior.h.

void EvtRptBehavior::processEvent const EventBase event  )  [virtual]
 

prints out data on subscribed events

Reimplemented from BehaviorBase.

Definition at line 28 of file EvtRptBehavior.cc.

References EventBase::getGeneratorID(), EventBase::getSourceID(), EventBase::getTypeID(), EventBase::locomotionEGID, EventBase::statusETID, and EventBase::visionEGID.


The documentation for this class was generated from the following files:
Tekkotsu v1.4
Generated Sat Jul 19 00:08:57 2003 by Doxygen 1.3.2