#include <Parse.h>
Inheritance diagram for Parse::CommandLineParser:


Public Methods | |
| CommandLineParser (int argc, char *argv[], string tagChars="-") | |
CommandLineParser is used to make the parsing of command line arguments easier. Command line arguments are broken down into two seperate categories.
Identifiers must start with a tag character(passed to constructor) to mark the string as an identifier
Arbitraryly long sequences of values can follow an identifier.
Identifiers are matched to ParseActions via addAction. A space delimited sequence of values in a std::istream& is passed to the ParseAction matching the identifier. The sequence of values passed to each ParseAction is determined by checking for the presense of the leading tag character. If it is there, it is assumed to be an identifier, if it is not, it is assumed to be a value.
Definition at line 137 of file Parse.h.
|
||||||||||||||||
|
|
|
|
Reimplemented from Parse::Parser. |
1.2.12 written by Dimitri van Heesch,
© 1997-2001