ot::FileSink Class Reference

#include <FileSink.h>

Inheritance diagram for ot::FileSink:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

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

Public Attributes

Filefile
 Output File object associated with this node.
int station
 station number

Protected Member Functions

 FileSink (File &file_, int station_=0)

Friends

class FileModule

Constructor & Destructor Documentation

ot::FileSink::FileSink File file_,
int  station_ = 0
[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::FileSink::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::FileSink::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 FileModule [friend]
 


Member Data Documentation

File& ot::FileSink::file
 

Output File object associated with this node.

int ot::FileSink::station
 

station number


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