#include <Commandline.h>
Public Member Functions | |
CommandParser (const std::string &name) | |
OptionParser * | lastCommand () const |
OptionParser * | command (const std::string &name) const |
void | add (OptionParser &o) |
virtual iter | parse (arglist &list, iter begin) |
Look for a command as the first non-switch parameter found, then invoke the corresponding switch parser. | |
std::map < std::string, OptionParser * > | getCommandInfo () const |
Public Attributes | |
std::string | usage |
std::string | description |
std::string | longDescription |
Tagcoll::commandline::CommandParser::CommandParser | ( | const std::string & | name | ) | [inline] |
OptionParser* Tagcoll::commandline::CommandParser::lastCommand | ( | ) | const [inline] |
OptionParser * Tagcoll::commandline::CommandParser::command | ( | const std::string & | name | ) | const |
void Tagcoll::commandline::CommandParser::add | ( | OptionParser & | o | ) |
Look for a command as the first non-switch parameter found, then invoke the corresponding switch parser.
After this function, only non-switch arguments will be left in list
If no commands have been found, returns begin.
Implements Tagcoll::commandline::Parser.
std::map< std::string, OptionParser * > Tagcoll::commandline::CommandParser::getCommandInfo | ( | ) | const |
std::string Tagcoll::commandline::CommandParser::usage |
std::string Tagcoll::commandline::CommandParser::description |