next up previous
Next: 5.5.2 Image modules Up: 5.5.1 General classes Previous: 5.5.1.1 Param

5.5.1.2 FactoryInput, FactoryOutput, FactoryProcess

The Factory classes, FactoryInput, FactoryOutput and FactoryProcess are used to abstract the selection of specific Input, Output and Process classes given a string which is considered to be the name of the module.

Specifically, these modules contain a choose() method, which passes the name of the module as a string, and the arguments for the module as a vector of strings. The name is used in a standard if-else-if ladder to select which specific class is required, this is then instantiated using the given arguments and returned to the caller.

Presently, this is only used by the main stereocam program and the InputDual module.



Kevin Pulo
2000-08-22