#include <ProcessModule.h>
Public Member Functions | |
ProcessModule (AbstractModule *successor) | |
virtual | ~ProcessModule () |
Destructor. | |
virtual void | processFrameData (IFrameData *data) |
bool | isSignal (IFrameData *data) |
void | passSignal (IFrameData *data) |
bool | isSignal (IFrameData *data, SignalFrameData::eSignal sig) |
General functions for process modules as described in the decorator pattern.
Definition at line 14 of file ProcessModule.h.
ProcessModule::ProcessModule | ( | AbstractModule * | successor | ) |
Called by child classes
successor | Next module in chain |
Definition at line 3 of file ProcessModule.cpp.
ProcessModule::~ProcessModule | ( | ) | [virtual] |
bool ProcessModule::isSignal | ( | IFrameData * | data, | |
SignalFrameData::eSignal | sig | |||
) |
data | The SignalFrameData to be tested | |
sig | Signal type |
Definition at line 24 of file ProcessModule.cpp.
bool ProcessModule::isSignal | ( | IFrameData * | data | ) |
data | The framedata to be tested |
Definition at line 19 of file ProcessModule.cpp.
void ProcessModule::passSignal | ( | IFrameData * | data | ) |
Passes data to the next module. Throws Warning if data is not of type Signal
data | The Signal to be passed |
Definition at line 29 of file ProcessModule.cpp.
void ProcessModule::processFrameData | ( | IFrameData * | data | ) | [virtual] |
Passes the data to the next module
data | The data to be passed |
Implements AbstractModule.
Reimplemented in DirectionFilter, GestureFinder, HMMModule, and Smoother.
Definition at line 14 of file ProcessModule.cpp.