wibble::commandline::VectorOption< T > Class Template Reference

#include <options.h>

Inheritance diagram for wibble::commandline::VectorOption< T >:
[legend]
Collaboration diagram for wibble::commandline::VectorOption< T >:
[legend]

List of all members.

template<typename T>
class wibble::commandline::VectorOption< T >


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 &param)
 Parse the commandline parameter of a long commandline switch.

Friends

class OptionGroup
class Engine

Constructor & Destructor Documentation

template<typename T>
wibble::commandline::VectorOption< T >::VectorOption ( const std::string &  name  )  [inline, protected]

template<typename T>
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]


Member Function Documentation

template<typename T>
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).

Returns:
true if it used the argument, else false

Implements wibble::commandline::Option.

References wibble::commandline::ArgList::eraseAndAdvance(), and wibble::commandline::Option::m_isset.

template<typename T>
bool wibble::commandline::VectorOption< T >::parse ( const std::string &  param  )  [inline, protected, virtual]

Parse the commandline parameter of a long commandline switch.

Returns:
true if the parameter has been used

Implements wibble::commandline::Option.

References wibble::commandline::Option::m_isset.

template<typename T>
bool wibble::commandline::VectorOption< T >::boolValue (  )  const [inline]

template<typename T>
const std::vector< typename T::value_type >& wibble::commandline::VectorOption< T >::values (  )  const [inline]


Friends And Related Function Documentation

template<typename T>
friend class OptionGroup [friend]

Reimplemented from wibble::commandline::Option.

template<typename T>
friend class Engine [friend]

Reimplemented from wibble::commandline::Option.


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

Generated on Wed Aug 20 11:09:58 2008 for wibble by  doxygen 1.5.6