ot::MedScanSink Class Reference
[Common Classes]

#include <MedScanSink.h>

Inheritance diagram for ot::MedScanSink:

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

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
int server_fd
std::string service
std::string host
std::string port
std::string service_options

Protected Member Functions

 MedScanSink (int number_)

Friends

class MedScanModule


Constructor & Destructor Documentation

ot::MedScanSink::MedScanSink 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::MedScanSink::isEventGenerator  )  [inline, virtual]
 

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

Returns:
always 1

Reimplemented from ot::Node.

void ot::MedScanSink::onEventGenerated Event event,
Node generator
[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 MedScanModule [friend]
 


Member Data Documentation

std::string ot::MedScanSink::host
 

int ot::MedScanSink::number
 

station number

Output File object associated with this node.

std::string ot::MedScanSink::port
 

int ot::MedScanSink::server_fd
 

std::string ot::MedScanSink::service
 

std::string ot::MedScanSink::service_options
 


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