Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

Pipeline Class Reference

The Pipeline class manages the PuppetMaster input and output pipeline. More...

#include <Pipeline.h>

List of all members.

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

vpHashcontrolMap
 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.


Detailed Description

The Pipeline class manages the PuppetMaster input and output pipeline.

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.

See also:
PIPELINE_THREAD_INTERVAL


Constructor & Destructor Documentation

Pipeline::Pipeline vpHash   controlMap
 

Constructor.

Parameters:
controlMap  Pointer to a vpHash control map.


Member Function Documentation

unsigned int Pipeline::addInputObject InputObject   input
 

Adds a new InputObject to the internal inputObjects vector.

Parameters:
input  Pointer to an InputObject instance.
Returns:
The internal index of the added InputObject.

unsigned int Pipeline::addOutputObject OutputObject   output
 

Adds a new OutputObject to the internal onputObjects vector.

Parameters:
output  Pointer to an OutputObject instance.
Returns:
The internal index of the added OutputObject.


The documentation for this class was generated from the following files:
Generated on Tue Oct 16 14:06:19 2001 for PuppetMaster by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001