ot::ConsoleSink Class Reference

#include <ConsoleSink.h>

Inheritance diagram for ot::ConsoleSink:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

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

Public Attributes

std::string comment
 comment line
Event event
 the event that is stored
int changed
 flag whether event was changed since last display
int active
 flag whether it is displayed or not
int toSysMouse
 flag for forwarding event to system (win only sofar)

Protected Member Functions

 ConsoleSink (const std::string &comment_, int active_=0)

Friends

class ConsoleModule

Constructor & Destructor Documentation

ot::ConsoleSink::ConsoleSink const std::string &  comment_,
int  active_ = 0
[inline, protected]
 

constructor method,sets commend member

Parameters:
comment_ the comment line to use


Member Function Documentation

virtual int ot::ConsoleSink::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::ConsoleSink::onEventGenerated Event e,
Node generator
[inline, virtual]
 

this method notifies the object that a new event was generated. It stores a copy of the received event and passes the event on to its observers.

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 ConsoleModule [friend]
 


Member Data Documentation

int ot::ConsoleSink::active
 

flag whether it is displayed or not

int ot::ConsoleSink::changed
 

flag whether event was changed since last display

std::string ot::ConsoleSink::comment
 

comment line

Event ot::ConsoleSink::event
 

the event that is stored

int ot::ConsoleSink::toSysMouse
 

flag for forwarding event to system (win only sofar)


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