#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 |
|
|
|
|
|
|
|
|
|
|
|
Implemented in Tagcoll::commandline::BoolOption, Tagcoll::commandline::StringOption, Tagcoll::commandline::IntOption, and Tagcoll::commandline::ExistingFileOption. |
|
Return a full usage message including all the aliases for this option.
|
|
|
|
Reimplemented in Tagcoll::commandline::IntOption. |
|
|
|
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. |
|
Implemented in Tagcoll::commandline::BoolOption, Tagcoll::commandline::StringOption, Tagcoll::commandline::IntOption, and Tagcoll::commandline::ExistingFileOption. |
|
|
|
|
|
|
|
|