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


Public Member Functions | |
| CallbackModule () | |
| virtual | ~CallbackModule () |
| virtual Node * | createNode (const std::string &name, StringTable &attributes) |
| void | getLocalCallbackMap (fctmap_type &fmap) |
| void | setCallback (const std::string &name, OTCallbackFunction *function, void *data=NULL) |
| void | setGlobalCallback (OTGlobalCallbackFunction *function, void *data=NULL) |
| OTGlobalCallbackFunction * | getGlobalCallbackFunction () const |
| void * | getGlobalCallbackData () const |
Protected Attributes | |
| NodeMap | nodes |
| map of strings onto nodes | |
| OTGlobalCallbackFunction * | gcbfunction |
| global callback function pointer | |
| void * | gcbdata |
| data passed to global callback function | |
| fctmap_type | lcbmap |
|
|
constructor method. |
|
|
Destructor method, clears nodes member. |
|
||||||||||||
|
This method is called to construct a new Node. It compares name to the TestSource element name, and if it matches creates a new TestSource node.
Implements ot::NodeFactory. |
|
|
returns the global callback function data |
|
|
returns the global callback function |
|
|
This method can be used to setup a map of the existing per node callback functions and data registered in all nodes of the module regardless of their current existance. This function is internally used to keep registered callback functions alive, when the context is newly set up or copied |
|
||||||||||||||||
|
sets a callback on a certain node. The node is identified by its unique name. Any present callback function in the node is overwritten by the new one.
|
|
||||||||||||
|
sets a global callback. Any present global callback function in the module is overwritten by the new one.
|
|
|
data passed to global callback function
|
|
|
global callback function pointer
|
|
|
map storing all local callbacks -> even if the nodes are not there Thus Callbacks are bound when the node is created later on |
|
|
map of strings onto nodes
|
1.4.6