|
ui-utilcpp
1.8.3
|
Class representing a command line option with mandatory argument. More...
#include <GetOpt.hpp>


Public Member Functions | |
| CLOptionArg (std::string const &nameLong, char nameShort, std::string const &doc="No documentation for this option.", std::string const &defaultArg="") | |
| Standard constructor. More... | |
| virtual void | printUsage () const |
| Print usage information for this option. | |
| virtual option * | getCOptLong (option *opt) const |
| Get GNU getopt_long(3) represention of this option. More... | |
| virtual std::string | getCOptShort () const |
| Get GNU getopt(3) represention of this option. More... | |
Public Member Functions inherited from UI::Util::CLOption | |
| CLOption (std::string const &nameLong, char nameShort, std::string const &doc="No documentation for this option.", std::string const &defaultArg="") | |
| Standard constructor. Normally, you would not use this directly, but rather use GetOpt::set. More... | |
| std::string | getNameLong () const |
| Get the long name. More... | |
| char | getNameShort () const |
| Get the short name. More... | |
| std::string | getDoc () const |
| Get the documentation. More... | |
| bool | isGiven () const |
| Check if this option was given. More... | |
| std::string | getArg () const |
| Get argument given with this option. More... | |
| virtual void | setGiven (std::string const &arg="") |
| Mark this option as "given", and optionally set the argument. More... | |
Additional Inherited Members | |
Protected Attributes inherited from UI::Util::CLOption | |
| std::string const | defaultArg_ |
Class representing a command line option with mandatory argument.
| UI::Util::CLOptionArg::CLOptionArg | ( | std::string const & | nameLong, |
| char | nameShort, | ||
| std::string const & | doc = "No documentation for this option.", |
||
| std::string const & | defaultArg = "" |
||
| ) |
Standard constructor.
|
virtual |
Get GNU getopt_long(3) represention of this option.
Reimplemented from UI::Util::CLOption.
References UI::Util::CLOption::getCOptLong().
|
virtual |
Get GNU getopt(3) represention of this option.
Reimplemented from UI::Util::CLOption.
References UI::Util::CLOption::getNameShort().
1.8.9.1