|
wibble
0.1.28
|
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.
| std::string wibble::commandline::Parser::next | ( | ) | [inline] |
References m_args.
| bool wibble::commandline::Parser::parse | ( | int | argc, |
| const char * | argv[] | ||
| ) | [inline] |
Parse the commandline.
Reimplemented in wibble::commandline::StandardParserWithMandatoryCommand, wibble::commandline::StandardParserWithManpage, and wibble::commandline::StandardParser.
References m_args, and wibble::commandline::Engine::parseList().
ArgList wibble::commandline::Parser::m_args [protected] |
MemoryManager wibble::commandline::Parser::m_manager [protected] |
Reimplemented from wibble::commandline::Engine.
1.7.6.1