#include <Commandline.h>
Inheritance diagram for Tagcoll::commandline::Option:

Public Member Functions | |
| Option (const std::string &name) | |
| Option (const std::string &name, char shortName, const std::string &longName) | |
| virtual | ~Option () |
| const std::string & | name () const |
| void | addAlias (char c) |
| void | addAlias (const std::string &str) |
| virtual bool | boolValue () const=0 |
| virtual std::string | stringValue () const=0 |
| virtual int | intValue () const |
| virtual bool | parse (const char *str=0)=0 |
| Signal that the option has been found, with the given argument (or 0 if no argument). | |
| const std::string & | fullUsage () const |
| Return a full usage message including all the aliases for this option. | |
| std::string | fullUsageForMan () const |
Public Attributes | |
| std::vector< char > | shortNames |
| std::vector< std::string > | longNames |
| std::string | usage |
| std::string | description |
| Tagcoll::commandline::Option::Option | ( | const std::string & | name | ) | [inline] |
| Tagcoll::commandline::Option::Option | ( | const std::string & | name, | |
| char | shortName, | |||
| const std::string & | longName | |||
| ) | [inline] |
| virtual Tagcoll::commandline::Option::~Option | ( | ) | [inline, virtual] |
| const std::string& Tagcoll::commandline::Option::name | ( | ) | const [inline] |
| void Tagcoll::commandline::Option::addAlias | ( | char | c | ) | [inline] |
| void Tagcoll::commandline::Option::addAlias | ( | const std::string & | str | ) | [inline] |
| virtual bool Tagcoll::commandline::Option::boolValue | ( | ) | const [pure virtual] |
| virtual std::string Tagcoll::commandline::Option::stringValue | ( | ) | const [pure virtual] |
| int Tagcoll::commandline::Option::intValue | ( | ) | const [virtual] |
Reimplemented in Tagcoll::commandline::IntOption.
| virtual bool Tagcoll::commandline::Option::parse | ( | const char * | str = 0 |
) | [pure virtual] |
Signal that the option has been found, with the given argument (or 0 if no argument).
Implemented in Tagcoll::commandline::BoolOption, Tagcoll::commandline::StringOption, Tagcoll::commandline::IntOption, and Tagcoll::commandline::ExistingFileOption.
| const std::string & Tagcoll::commandline::Option::fullUsage | ( | ) | const |
Return a full usage message including all the aliases for this option.
| std::string Tagcoll::commandline::Option::fullUsageForMan | ( | ) | const |
| std::vector<char> Tagcoll::commandline::Option::shortNames |
| std::vector<std::string> Tagcoll::commandline::Option::longNames |
| std::string Tagcoll::commandline::Option::usage |
| std::string Tagcoll::commandline::Option::description |
1.5.1