Homepage Demos Overview Downloads Tutorials Reference
Credits

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(), erouter, EventBase::locomotionEGID, and EventBase::visionEGID.

Here is the call graph for this function:

void EvtRptBehavior::DoStop  )  [virtual]
 

Cancels event subscriptions.

Reimplemented from BehaviorBase.

Definition at line 13 of file EvtRptBehavior.cc.

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

Here is the call graph for this function:

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 19 of file EvtRptBehavior.cc.

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

Here is the call graph for this function:


The documentation for this class was generated from the following files:
Tekkotsu v1.5
Generated Fri Oct 10 15:56:01 2003 by Doxygen 1.3.4