Main Page   Class Hierarchy   Data Structures   File List   Data Fields   Globals  

Program Class Reference

#include <program.h>


Public Methods

 Program ()
 Program (string)
 ~Program ()
void init (int argc, string *argv)
void append (string skeyvalhelp)
void parse (void)
int go (void)
void fini (void)
Program* main (void)
void show (void)
string get (string key)
int count (string key)
int get_debug (void)
int dec_error (void)
int get_argc (void)
char** get_argv (void)

Private Methods

void set_debug (string)
void set_error (string)
void set_help (string)
void help (void)
void addkey (int, string, int)
int findkey (string)

Private Attributes

string package
string progname
int argc
stringargv
int nkeys
Keywordkeys
int debug_level
int error_level
int help_level

Static Private Attributes

string keywords []
string usage
string version
string description
string examples
Program* self


Constructor & Destructor Documentation

Program::Program ( )
 

Program::Program ( string )
 

Program::~Program ( )
 


Member Function Documentation

void Program::addkey ( int,
string,
int ) [private]
 

void Program::append ( string skeyvalhelp )
 

int Program::count ( string key )
 

Referenced by isdefault().

int Program::dec_error ( void )
 

Referenced by Error().

int Program::findkey ( string ) [private]
 

void Program::fini ( void )
 

Referenced by main().

string Program::get ( string key )
 

Referenced by Error(), Warning(), getflag(), getiparam(), getparam(), getrparam(), and hasvalue().

int Program::get_argc ( void )
 

Referenced by get_argc().

char** Program::get_argv ( void )
 

Referenced by get_argv().

int Program::get_debug ( void )
 

Referenced by Dprintf(), and Error().

int Program::go ( void )
 

Referenced by main().

void Program::help ( void ) [private]
 

void Program::init ( int argc,
string * argv )
 

Referenced by main().

Program* Program::main ( void )
 

void Program::parse ( void )
 

Referenced by main().

void Program::set_debug ( string ) [private]
 

void Program::set_error ( string ) [private]
 

void Program::set_help ( string ) [private]
 

void Program::show ( void )
 


Field Documentation

int Program::argc [private]
 

Definition at line 51 of file program.h.

string* Program::argv [private]
 

Definition at line 52 of file program.h.

int Program::debug_level [private]
 

Definition at line 90 of file program.h.

string Program::description [static, private]
 

Definition at line 44 of file program.h.

int Program::error_level [private]
 

Definition at line 91 of file program.h.

string Program::examples [static, private]
 

Definition at line 45 of file program.h.

int Program::help_level [private]
 

Definition at line 92 of file program.h.

Keyword* Program::keys [private]
 

Definition at line 55 of file program.h.

string Program::keywords[] [static, private]
 

Definition at line 41 of file program.h.

int Program::nkeys [private]
 

Definition at line 54 of file program.h.

string Program::package [private]
 

Definition at line 49 of file program.h.

string Program::progname [private]
 

Definition at line 50 of file program.h.

Program* Program::self [static, private]
 

Definition at line 57 of file program.h.

string Program::usage [static, private]
 

Definition at line 42 of file program.h.

string Program::version [static, private]
 

Definition at line 43 of file program.h.


The documentation for this class was generated from the following file:
Generated at Sun Feb 24 09:57:34 2002 for STARLAB by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001