#include <CallbackNode.h>
Inheritance diagram for ot::CallbackNode:


Public Member Functions | |
| virtual int | isEventGenerator () |
| virtual void | onEventGenerated (Event &event, Node &generator) |
| const std::string & | getCallbackName (void) const |
Public Attributes | |
| std::string | name |
| OTCallbackFunction * | function |
| callback function | |
| void * | data |
| data pointer | |
| Event | event |
| the event passed to the function and the parent | |
| mutex_type | eventmutex |
| mutex to protect the event | |
| CallbackModule * | cbmodule |
| pointer to creating module CallbackModule | |
Protected Member Functions | |
| CallbackNode (const std::string &name_) | |
Friends | |
| class | CallbackModule |
|
|
constructor method,sets commend member
|
|
|
This method returns the value set by the name attribute of the CallbackNode. This is a different value then the one returned by getName() which is the value set by the attribute DEF.
|
|
|
tests for EventGenerator interface being present. Is overriden to return 1 always.
Reimplemented from ot::Node. |
|
||||||||||||
|
This method notifies the object that a new event was generated.
Reimplemented from ot::Node. |
|
|
|
|
|
pointer to creating module CallbackModule
|
|
|
data pointer
|
|
|
the event passed to the function and the parent
|
|
|
mutex to protect the event
|
|
|
callback function
|
|
|
name of the CallbackNode for retrieving it from the module. Note that this is not the name returned by getName(), rather the value set by the attribute name. Reimplemented from ot::Node. |
1.4.6