#include <parser.h>
Public Member Functions | |
Parser (const std::string &name, const std::string &usage=std::string(), const std::string &description=std::string(), const std::string &longDescription=std::string()) | |
bool | parse (int argc, const char *argv[]) |
Parse the commandline. | |
bool | hasNext () const |
std::string | next () |
Protected Attributes | |
ArgList | m_args |
MemoryManager | m_manager |
wibble::commandline::Parser::Parser | ( | const std::string & | name, | |
const std::string & | usage = std::string() , |
|||
const std::string & | description = std::string() , |
|||
const std::string & | longDescription = std::string() | |||
) | [inline] |
bool wibble::commandline::Parser::hasNext | ( | ) | const [inline] |
std::string wibble::commandline::Parser::next | ( | ) | [inline] |
bool wibble::commandline::Parser::parse | ( | int | argc, | |
const char * | argv[] | |||
) | [inline] |
Parse the commandline.
Reimplemented in wibble::commandline::StandardParser, wibble::commandline::StandardParserWithManpage, and wibble::commandline::StandardParserWithMandatoryCommand.
References m_args, and wibble::commandline::Engine::parseList().
Referenced by wibble::commandline::StandardParser::parse().
ArgList wibble::commandline::Parser::m_args [protected] |
MemoryManager wibble::commandline::Parser::m_manager [protected] |
Reimplemented from wibble::commandline::Engine.