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

OutputNode Class Reference

#include <OutputNode.h>

Inheritance diagram for OutputNode:

Inheritance graph
[legend]
List of all members.

Detailed Description

A very simple StateNode that outputs its name to a given ostream upon activation, handy for debugging.

Definition at line 10 of file OutputNode.h.

Public Member Functions

 OutputNode ()
 constructor, uses cout for output

 OutputNode (const char *nm, StateNode *par, ostream &output)
 constructor, sets name and ostream to use for output

 OutputNode (const char *nm, StateNode *par, ostream &output, StateNode *nextstate)
 constructor, sets name and another state which will immediately be transitioned to upon activation

virtual void DoStart ()
 outputs this state's name, will transition to next if non-NULL


Protected Attributes

StateNodenext
 the state to transition to upon entering, can be NULL

ostreamout
 the stream to use for output - if not specified (default constructor) cout will be used


Private Member Functions

 OutputNode (const OutputNode &node)
 don't call this

OutputNode operator= (const OutputNode &node)
 don't call this


Constructor & Destructor Documentation

OutputNode::OutputNode  )  [inline]
 

constructor, uses cout for output

Definition at line 13 of file OutputNode.h.

References next, and out.

OutputNode::OutputNode const char *  nm,
StateNode par,
ostream output
[inline]
 

constructor, sets name and ostream to use for output

Definition at line 15 of file OutputNode.h.

References next, and out.

OutputNode::OutputNode const char *  nm,
StateNode par,
ostream output,
StateNode nextstate
[inline]
 

constructor, sets name and another state which will immediately be transitioned to upon activation

Definition at line 17 of file OutputNode.h.

References next, and out.

OutputNode::OutputNode const OutputNode node  )  [private]
 

don't call this


Member Function Documentation

virtual void OutputNode::DoStart  )  [inline, virtual]
 

outputs this state's name, will transition to next if non-NULL

if next is NULL, the state will simply stay active until some other transition causes it to leave

Reimplemented from StateNode.

Definition at line 21 of file OutputNode.h.

References StateNode::DoStart(), StateNode::DoStop(), StateNode::name, next, and out.

OutputNode OutputNode::operator= const OutputNode node  )  [private]
 

don't call this


Member Data Documentation

StateNode* OutputNode::next [protected]
 

the state to transition to upon entering, can be NULL

Definition at line 30 of file OutputNode.h.

ostream& OutputNode::out [protected]
 

the stream to use for output - if not specified (default constructor) cout will be used

Definition at line 31 of file OutputNode.h.


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