wibble 0.1.28
Public Member Functions | Public Attributes | Protected Attributes
wibble::commandline::StandardParser Class Reference

Parser for commandline arguments, with builting help functions. More...

#include <parser.h>

Inheritance diagram for wibble::commandline::StandardParser:
Inheritance graph
[legend]
Collaboration diagram for wibble::commandline::StandardParser:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 StandardParser (const std::string &appname, const std::string &version)
void outputHelp (std::ostream &out)
bool parse (int argc, const char *argv[])
 Parse the commandline.

Public Attributes

OptionGrouphelpGroup
BoolOptionhelp
BoolOptionversion

Protected Attributes

std::string m_version

Detailed Description

Parser for commandline arguments, with builting help functions.


Constructor & Destructor Documentation

wibble::commandline::StandardParser::StandardParser ( const std::string &  appname,
const std::string &  version 
) [inline]

Member Function Documentation

void wibble::commandline::StandardParser::outputHelp ( std::ostream &  out)
bool wibble::commandline::StandardParser::parse ( int  argc,
const char *  argv[] 
)

Parse the commandline.

Returns:
true if it also took care of performing the action requested by the user, or false if the caller should do it instead.

Reimplemented from wibble::commandline::Parser.

Reimplemented in wibble::commandline::StandardParserWithManpage, and wibble::commandline::StandardParserWithMandatoryCommand.

References wibble::commandline::Help::outputVersion().


Member Data Documentation

Referenced by StandardParser(), and withCommands().

Referenced by withCommands().


The documentation for this class was generated from the following files: