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


Public Member Functions | |
| Module () | |
| constructor method | |
| virtual | ~Module () |
| virtual destructor (as it befits any true class hierarchy) | |
| virtual void | close () |
| virtual void | init (StringTable &attributes, ConfigNode *localTree) |
| virtual void | pullEvent () |
| virtual void | pushEvent () |
| virtual void | start () |
| virtual int | stop () |
| virtual void | addNode (const Node *) |
| virtual void | removeNode (Node *) |
| int | isInitialized () |
Static Public Attributes | |
| static Context * | contextx = NULL |
Protected Attributes | |
| int | initialized |
| check if this module appeared in the configuration section | |
| Context * | context |
Friends | |
| class | Context |
|
|
constructor method
|
|
|
virtual destructor (as it befits any true class hierarchy)
|
|
|
This method should be called by the Node's factory, in order to register the Node with its Module. It should be overloaded by descendants that need to keep track of their Nodes. Reimplemented in ot::ICubeXModule. |
|
|
closes the module. A place for cleanup code etc. This class provides an empty implementation for subclasses not doing anything here. Reimplemented in ot::ConsoleModule, ot::FileModule, ot::TimeModule, ot::ThreadModule, ot::ARTDataTrackerModule, ot::DynaSightModule, ot::ECGModule, ot::EndoScoutModule, ot::FastTrakModule, ot::FlashpointModule, ot::FOBModule, ot::GENavModule, ot::GPSModule, ot::ICubeXModule, ot::InterSenseModule, ot::LinmouseModule, ot::MagicYModule, ot::MedScanModule, ot::MulticastInputModule, ot::NDIModule, ot::OrientationModule, ot::ParButtonModule, ot::RDSModule, ot::SerButtonModule, ot::SpeechModule, ot::TerasonModule, ot::UltraTrakModule, ot::XSensModule, ot::NetworkSinkModule, ot::NetworkSourceModule, ot::OldOTNetworkSourceModule, and ot::TCPModule. |
|
||||||||||||
|
initializes the tracker module. This class provides an implementation that sets the initialization flag to true. Subclasses should call this method, if they override it, before doing anything else. It takes the attributes of the element configuring this module and a local tree consisting of the children of the element. This tree must be build of Nodes.
Reimplemented in ot::ConsoleModule, ot::FileModule, ot::LogModule, ot::TimeModule, ot::ARTDataTrackerModule, ot::DynaSightModule, ot::ECGModule, ot::EndoScoutModule, ot::FastTrakModule, ot::FlashpointModule, ot::FOBModule, ot::GENavModule, ot::GPSModule, ot::ICubeXModule, ot::InterSenseModule, ot::LinmouseModule, ot::MagicYModule, ot::MedScanModule, ot::MulticastInputModule, ot::NDIModule, ot::OrientationModule, ot::RDSModule, ot::SpeechControlModule, ot::SpeechModule, ot::TerasonModule, ot::UltraTrakModule, ot::NetworkSinkModule, and ot::TCPModule. |
|
|
tests whether the module was initialized or not.
|
|
|
pulls event information out of the tracker tree. It enables the module to query any EventQueue or TimeDependend node in the shared memory. It is called after pushEvent was executed on each module. Reimplemented in ot::ConsoleModule, ot::NetworkSinkModule, and ot::TCPModule. |
|
|
pushes event information into the tracker tree. It enables the module to push new data into the tree by updating EventGenerator nodes and thereby triggering an event. Reimplemented in ot::ButtonHoldFilterModule, ot::CallforwardModule, ot::ConsoleModule, ot::FileModule, ot::InterpolatorModule, ot::TimestampGeneratorModule, ot::TestModule, ot::ARTDataTrackerModule, ot::DynaSightModule, ot::ECGModule, ot::EndoScoutModule, ot::FastTrakModule, ot::FlashpointModule, ot::FOBModule, ot::GENavModule, ot::GPSModule, ot::ICubeXModule, ot::InterSenseModule, ot::LinmouseModule, ot::MagicYModule, ot::MedScanModule, ot::MulticastInputModule, ot::NDIModule, ot::OrientationModule, ot::ParButtonModule, ot::RDSModule, ot::SerButtonModule, ot::SpeechControlModule, ot::SpeechModule, ot::TerasonModule, ot::UltraTrakModule, ot::XSensModule, ot::NetworkSourceModule, and ot::OldOTNetworkSourceModule. |
|
|
This method deregisters a node from the Module. It is called when removing a node from the graph. It should be overloaded by descendants that need to keep track of their Nodes. Reimplemented in ot::TestModule. |
|
|
This method is called after initialisation is finished and before the main loop is started. It allows the module to finish any setups that need to be done before entering the main loop. Reimplemented in ot::ConsoleModule, ot::TimeModule, ot::ThreadModule, ot::ARTDataTrackerModule, ot::DynaSightModule, ot::ECGModule, ot::EndoScoutModule, ot::FastTrakModule, ot::FlashpointModule, ot::FOBModule, ot::GENavModule, ot::GPSModule, ot::ICubeXModule, ot::InterSenseModule, ot::LinmouseModule, ot::MagicYModule, ot::MedScanModule, ot::MulticastInputModule, ot::NDIModule, ot::OrientationModule, ot::RDSModule, ot::TerasonModule, ot::UltraTrakModule, ot::XSensModule, ot::NetworkSinkModule, ot::NetworkSourceModule, ot::OldOTNetworkSourceModule, and ot::TCPModule. |
|
|
tests whether the module wants the tracker main loop to stop.
Reimplemented in ot::ConsoleModule, ot::TimeModule, and ot::SpeechControlModule. |
|
|
|
|
|
pointer to the context this module is working in. It will be set by the initialize method. |
|
|
|
|
|
check if this module appeared in the configuration section
|
1.4.6