Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

optionvar.h File Reference

Declarations for the obsolete OptionVar class. More...

#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:


class  OptionVar
 The OptionVar class is an obsolete predecessor of Options. More...


enum  VarType {
 The variable types that can be parameterized with OptionVar: unsigned int, int, double, string, bool */.

Detailed Description

Declarations for the obsolete OptionVar class.

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.

Generated on Wed Jun 14 22:25:27 2006 for linalg by  doxygen 1.4.4