Tagcoll::commandline::BoolOption Class Reference

Boolean option. More...

#include <Commandline.h>

Inheritance diagram for Tagcoll::commandline::BoolOption:

Inheritance graph
[legend]
Collaboration diagram for Tagcoll::commandline::BoolOption:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 BoolOption (const std::string &name)
 BoolOption (const std::string &name, char shortName, const std::string &longName)
bool boolValue () const
std::string stringValue () const
bool parse (const char *str)
 Signal that the option has been found, with the given argument (or 0 if no argument).

Detailed Description

Boolean option.


Constructor & Destructor Documentation

Tagcoll::commandline::BoolOption::BoolOption const std::string &  name  )  [inline]
 

Tagcoll::commandline::BoolOption::BoolOption const std::string &  name,
char  shortName,
const std::string &  longName
[inline]
 


Member Function Documentation

bool Tagcoll::commandline::BoolOption::boolValue  )  const [inline, virtual]
 

Implements Tagcoll::commandline::Option.

bool Tagcoll::commandline::BoolOption::parse const char *  str  )  [inline, virtual]
 

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 Tagcoll::commandline::Option.

std::string Tagcoll::commandline::BoolOption::stringValue  )  const [inline, virtual]
 

Implements Tagcoll::commandline::Option.


The documentation for this class was generated from the following file:
Generated on Mon Jun 19 17:32:50 2006 for libtagcoll by  doxygen 1.4.6