ot::TerasonSink Class Reference
[Common Classes]

#include <TerasonSink.h>

Inheritance diagram for ot::TerasonSink:

Inheritance graph
[legend]
Collaboration diagram for ot::TerasonSink:

Collaboration graph
[legend]
List of all members.

Detailed Description

This class implements a simple EventGenerator that writes any incoming events to the associated file.
Author:
Gerhard Reitmayr


Public Member Functions

virtual int isEventGenerator ()
virtual void onEventGenerated (Event &event, Node &generator)

Public Attributes

int number
 station number

Protected Member Functions

 TerasonSink (int number_)

Friends

class TerasonModule


Constructor & Destructor Documentation

ot::TerasonSink::TerasonSink int  number_  )  [inline, protected]
 

constructor method,sets commend member

Parameters:
file_ the File object to write to
station_ the station number to use


Member Function Documentation

virtual int ot::TerasonSink::isEventGenerator  )  [inline, virtual]
 

tests for EventGenerator interface being present. Is overriden to return 1 always.

Returns:
always 1

Reimplemented from ot::Node.

virtual void ot::TerasonSink::onEventGenerated Event event,
Node generator
[inline, virtual]
 

this method notifies the object that a new event was generated. It writes the event value out to the file and passes it on to its parent.

Parameters:
event reference to the new event. Do not change the event values, make a copy and change that !
generator reference to the EventGenerator object that notified the EventObserver.

Reimplemented from ot::Node.


Friends And Related Function Documentation

friend class TerasonModule [friend]
 


Member Data Documentation

int ot::TerasonSink::number
 

station number

Output File object associated with this node.


The documentation for this class was generated from the following file:
Generated on Wed Feb 28 15:33:12 2007 for NaviTrack by  doxygen 1.4.6