next up previous
Next: FactoryInput, FactoryOutput, FactoryProcess Up: 5.5.1 General classes Previous: 5.5.1 General classes Param

The Param class is an abstraction of a command line parameter. It has a name and a series of arguments which is stored as a vector of strings. It can parse a vector of strings, each of which is a word, into a vector of Param objects, where each Param object represents text of the form -name argument1 argument2 ...

The Param class is the basis for all the parameter and option handling in the implementation, and is used in a recursive fashion. For example, the main program uses it to break the command line into sections bounded by the parameters acceptable at that level, namely -input, -output, -process, -quiet, -verbose and -help. Subsequently, an Input, Output or Process module may then use it to break its arguments into sections bounded by its acceptable parameters, and so on.

Kevin Pulo