My Project
 All Classes Functions Variables Pages
Public Member Functions | List of all members
ArgTable Class Reference

Public Member Functions

 ArgTable ()
 
 ~ArgTable ()
 
ArgTableEntry_Date addDate (std::string name, std::string shortopts, std::string longopts, std::string glossary)
 
ArgTableEntry_Double addDouble (std::string name, std::string shortopts, std::string longopts, std::string glossary)
 
ArgTableEntry_File addFile (std::string name, std::string shortopts, std::string longopts, std::string glossary)
 
ArgTableEntry_Int addInt (std::string name, std::string shortopts, std::string longopts, std::string glossary)
 
ArgTableEntry_Lit addLit (std::string name, std::string shortopts, std::string longopts, std::string glossary)
 
ArgTableEntry_String addString (std::string name, std::string shortopts, std::string longopts, std::string glossary, int min, int max)
 
int parse (int argc, char *argv[])
 
void printErrors (FILE *fp, std::string progName="")
 

Constructor & Destructor Documentation

ArgTable::ArgTable ( )

Example: Argtable argtable; argtable.addString("myparam", "l", "list", "Get Listings"); argtable.parse(argc, argv); ArgTableEntry_String* pStr = (ArgTableEntry_String*)argTable.get("myparam"); pStr->getValue(); Argtable instance constructor.

ArgTable::~ArgTable ( )

Argtable instance destructor.

Member Function Documentation

int ArgTable::parse ( int  argc,
char *  argv[] 
)

Parse the input and output parameters against this argtable.

Parameters
argcA count of the number of parameters.
argvAn array of string parameters.
Returns
The number of errors detected.
void ArgTable::printErrors ( FILE *  fp,
std::string  progName = "" 
)

Print any errors associated with the parsing.


The documentation for this class was generated from the following files: