Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

ArgParser Class Reference

#include <args.h>

List of all members.

Public Member Functions

 ArgParser (const NumberParameter *numeric, StringParameter *string, PublicValues &ctrl=defaultControl)
 Parses commanline, stores numeric pars in control and string pars in StringParameter.value.

void parse (int argc, char *argv[])
void print ()
 print current values of the parameters


Protected Types

typedef std::map< std::string,
const NumberParameter * > 
Mn
typedef std::map< std::string,
StringParameter * > 
Ms

Protected Member Functions

void error (const std::string txt)
void help ()

Protected Attributes

Mn mn
Ms ms
PublicValues & control


Member Typedef Documentation

typedef std::map<std::string, const NumberParameter*> Mn [protected]
 

typedef std::map<std::string, StringParameter*> Ms [protected]
 


Constructor & Destructor Documentation

ArgParser const NumberParameter numeric,
StringParameter string,
PublicValues &  ctrl = defaultControl
 

Parses commanline, stores numeric pars in control and string pars in StringParameter.value.

Also sets defaults if not specified.

Parameters:
numeric,string - list of accepted arguments terminated by .name=NULL


Member Function Documentation

void error const std::string  txt  )  [protected]
 

void help  )  [protected]
 

void parse int  argc,
char *  argv[]
 

void print  ) 
 

print current values of the parameters


Member Data Documentation

PublicValues& control [protected]
 

Mn mn [protected]
 

Ms ms [protected]
 


The documentation for this class was generated from the following file:
Generated on Fri Jun 18 13:18:52 2004 for Annie by doxygen 1.3.5