#include <iostream>#include <stdlib.h>#include <sstream>#include <fstream>#include <string>#include <vector>#include <algorithm>#include <map>#include <list>

Go to the source code of this file.
Data Structures | |
| struct | ArgumentBase |
| Abstract base class for all command line arguments. More... | |
| struct | Argument< T > |
| Command line argument. More... | |
| class | ArgumentParser |
| Command line parser. More... | |
Typedefs | |
| typedef std::istringstream | istrstream |
Functions | |
| ArgumentParser | parse (const std::string &helpstr="", char hs='h', const std::string &hl="help") |
| Parse a command line. | |
| typedef std::istringstream istrstream |
Definition at line 44 of file argumentParser.h.
| ArgumentParser parse | ( | const std::string & | helpstr = "", |
|
| char | hs = 'h', |
|||
| const std::string & | hl = "help" | |||
| ) | [inline] |
Parse a command line.
| helpstr | General help message | |
| hs | short name for help | |
| hl | long name for help This method frees the programmer from explicitly creating an ArgumentParser, which makes the program (hopefully) more readable. Using this method, the ArgumentParser is transparently created, it receives and processes the arguments, then it is destroyed. |
Definition at line 389 of file argumentParser.h.
Referenced by main().
1.5.7.1