|
| 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="") |
|
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 instance destructor.
int ArgTable::parse |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
Parse the input and output parameters against this argtable.
- Parameters
-
argc | A count of the number of parameters. |
argv | An 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: