LTL
2.0.x
|
Implementation of an util::OptionReader for command line processing. More...
Inherits util::OptionReader.
Public Member Functions | |
CommandLineReader (int argc, char *argv[]) | |
virtual | ~CommandLineReader () |
virtual std::string | nextOptionName () |
virtual std::string | nextOptionValue (const Option *op) |
virtual bool | done () |
std::list< std::string > | fileArguments () |
std::vector< std::string > | fileArgumentsVector () |
std::string | progName () |
Protected Attributes | |
int | argc_ |
char ** | argv_ |
int | cur_ |
bool | done_ |
Implementation of an util::OptionReader for command line processing.
Also provides a list (or vector) of file arguments.
Assumed syntax is:
command -s SHORTOPTION --long LONGOPTION ... file_arguments something -s string -f 1.234 --integerarray 1,2,3,4 file1 file2 file3
File options must follow directly after command. No intervening file arguments!
util::CommandLineReader::CommandLineReader | ( | int | argc, |
char * | argv[] | ||
) |
|
virtual |
|
virtual |
Implements util::OptionReader.
|
virtual |
Implements util::OptionReader.
|
virtual |
Implements util::OptionReader.
std::list<std::string> util::CommandLineReader::fileArguments | ( | ) |
std::vector<std::string> util::CommandLineReader::fileArgumentsVector | ( | ) |
std::string util::CommandLineReader::progName | ( | ) |
|
protected |
|
protected |
|
protected |
|
protected |