ot::ConsoleSink Class Reference
#include <ConsoleSink.h>
Inheritance diagram for ot::ConsoleSink:


Public Member Functions | |
| virtual int | isEventGenerator () |
| virtual void | onEventGenerated (Event &e, Node &generator) |
Public Attributes | |
| std::string | comment |
| Event | event |
| int | changed |
| int | active |
Protected Member Functions | |
| ConsoleSink (const std::string &comment_, int active_=0) | |
Friends | |
| class | ConsoleModule |
Detailed Description
Definition at line 78 of file ConsoleSink.h.
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
Definition at line 95 of file ConsoleSink.h.
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.
Definition at line 108 of file ConsoleSink.h.
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.
Definition at line 122 of file ConsoleSink.h.
Friends And Related Function Documentation
friend class ConsoleModule [friend] |
Definition at line 132 of file ConsoleSink.h.
Member Data Documentation
| std::string ot::ConsoleSink::comment |
The documentation for this class was generated from the following file: