Generic parser for commandline arguments. More...
#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 |
Generic parser for commandline arguments.
| 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] |
References m_args.
Referenced by wibble::commandline::StandardParserWithMandatoryCommand::parse().
| std::string wibble::commandline::Parser::next | ( | ) | [inline] |
References m_args.
Referenced by wibble::commandline::StandardParserWithMandatoryCommand::parse().
| 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.
1.6.3