wibble
0.1.28
|
#include <options.h>
Public Member Functions | |
bool | boolValue () const |
const std::vector< typename T::value_type > & | values () const |
Protected Member Functions | |
VectorOption (const std::string &name) | |
VectorOption (const std::string &name, char shortName, const std::string &longName, const std::string &usage=std::string(), const std::string &description=std::string()) | |
ArgList::iterator | parse (ArgList &list, ArgList::iterator begin) |
Parse the next commandline parameter after the short form of the command has been found. | |
bool | parse (const std::string ¶m) |
Parse the commandline parameter of a long commandline switch. | |
void | parse_noarg () |
Notify that the option is present in the command line, but has no arguments. | |
Friends | |
class | OptionGroup |
class | Engine |
wibble::commandline::VectorOption< T >::VectorOption | ( | const std::string & | name | ) | [inline, protected] |
References wibble::commandline::Option::usage.
wibble::commandline::VectorOption< T >::VectorOption | ( | const std::string & | name, |
char | shortName, | ||
const std::string & | longName, | ||
const std::string & | usage = std::string() , |
||
const std::string & | description = std::string() |
||
) | [inline, protected] |
References wibble::commandline::Option::usage.
bool wibble::commandline::VectorOption< T >::boolValue | ( | ) | const [inline] |
ArgList::iterator wibble::commandline::VectorOption< T >::parse | ( | ArgList & | list, |
ArgList::iterator | begin | ||
) | [inline, protected, virtual] |
Parse the next commandline parameter after the short form of the command has been found.
It may or may not remove the parameter from the list, depending on if the option wants a value or not.
Signal that the option has been found, with the given argument (or 0 if no argument).
Implements wibble::commandline::Option.
References wibble::commandline::ArgList::eraseAndAdvance(), and wibble::commandline::Option::m_isset.
bool wibble::commandline::VectorOption< T >::parse | ( | const std::string & | param | ) | [inline, protected, virtual] |
Parse the commandline parameter of a long commandline switch.
Implements wibble::commandline::Option.
References wibble::commandline::Option::m_isset.
void wibble::commandline::VectorOption< T >::parse_noarg | ( | ) | [inline, protected, virtual] |
Notify that the option is present in the command line, but has no arguments.
Implements wibble::commandline::Option.
const std::vector< typename T::value_type >& wibble::commandline::VectorOption< T >::values | ( | ) | const [inline] |
friend class Engine [friend] |
Reimplemented from wibble::commandline::Option.
friend class OptionGroup [friend] |
Reimplemented from wibble::commandline::Option.