#include <Pipeline.h>
Public Methods | |
Pipeline (vpHash *controlMap) | |
Constructor. More... | |
~Pipeline () | |
Destructor. | |
unsigned int | addInputObject (InputObject *input) |
Adds a new InputObject to the internal inputObjects vector. More... | |
unsigned int | addOutputObject (OutputObject *output) |
Adds a new OutputObject to the internal onputObjects vector. More... | |
DWORD | threadProc () |
Main thread procedure. | |
void | threadBegin () |
Starts the pipeline thread. | |
void | threadEnd () |
Stops the pipeline thread. | |
Private Attributes | |
vpHash * | controlMap |
Pointer to a vpHash containing the current control mappings. | |
vector< InputObject *> | inputObjects |
STL vector containing the current list of InputObject instances. | |
vector< OutputObject *> | outputObjects |
STL vector containing the current list of OutputObject instances. | |
HANDLE | inputMutex |
Mutex to lock the inputObjects vector. | |
HANDLE | outputMutex |
Mutex to lock the outputObjects vector. | |
HANDLE | threadHandle |
Handle for the pipeline thread. | |
DWORD | threadID |
DWORD to hold the pipeline thread's ID. | |
bool | isRunning |
Flag to indicate whether the pipeline thread is running. |
The pipeline thread will poll the various InputObject instances for InputEvent structures, generate vpf_packet packets based on the current contents of the vpHash controlMap, and write those packets to the various OutputObject targets.
|
Constructor.
|
|
Adds a new InputObject to the internal inputObjects vector.
|
|
Adds a new OutputObject to the internal onputObjects vector.
|