#include <AbstractModule.h>
Public Member Functions | |
AbstractModule () | |
Constructor. | |
virtual | ~AbstractModule () |
Destructor - deletes GUI if there is one. | |
virtual void | processFrameData (IFrameData *data)=0 |
void | assertFramedataType (IFrameData *data, std::string type, std::string where) throw (WarningWrongFrameDataType) |
Helper function. | |
Protected Member Functions | |
void | deleteGUI () |
Cleans up the memory. | |
void | setGUI (AbstractModuleGUI *gui) |
AbstractModuleGUI * | getGUI () const |
General interface for modules as described in the decorator pattern
Definition at line 19 of file AbstractModule.h.
AbstractModule::AbstractModule | ( | ) | [inline] |
virtual AbstractModule::~AbstractModule | ( | ) | [inline, virtual] |
void AbstractModule::assertFramedataType | ( | IFrameData * | data, | |
std::string | type, | |||
std::string | where | |||
) | throw (WarningWrongFrameDataType) |
Helper function.
Throws a Warning if incoming data is not of expected type
data | Incoming data | |
type | Expected type | |
where | Additional information of where this happened |
Definition at line 18 of file AbstractModule.cpp.
void AbstractModule::deleteGUI | ( | ) | [protected] |
AbstractModuleGUI* AbstractModule::getGUI | ( | ) | const [inline, protected] |
virtual void AbstractModule::processFrameData | ( | IFrameData * | data | ) | [pure virtual] |
The modules work is done here
data | Incoming data for the module |
Implemented in DirectionFilter, GestureFinder, HMMModule, OutputModule, ProcessModule, and Smoother.
void AbstractModule::setGUI | ( | AbstractModuleGUI * | gui | ) | [protected] |
Set GUI of this module. May only be called by module itself
gui | The GUI |
Definition at line 12 of file AbstractModule.cpp.