#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <iostream>
#include <fstream>
#include <string>
#include <vector>
#include <list>
Include dependency graph for optionvar.h:
This graph shows which files directly or indirectly include this file:
Classes | |
class | OptionVar |
The OptionVar class is an obsolete predecessor of Options. More... | |
Enumerations | |
enum | VarType { UINT, INT, DOUBLE, STRING, BOOL } |
The variable types that can be parameterized with OptionVar: unsigned int, int, double, string, bool */. |
The OptionVar class provides a simple interface for setting options from the command line. Any variable of type {int, unsigned int, double, char*, bool} can be associated with a name, and that variable can be set transparently from the command line. The pseudocode syntax is: --------------------------------------------
<< In Program >> [type] Variable = Default_Value; OptionVar MyOptions; MyOptions.AddOption( "Name",Variable ); MyOptions.ParseOptions( Input ); ... UserFunction( Variable ); << Command Line >> MyProgram Name=Value ...
WARNING: OptionVar is considered obsolete as of 6/2006. It's only provided for backward compatibility, and will be removed soon. Use the Options class instead.