STXXL
1.4.1
|
specialization of argument for boolean flags (can only be set to true).
Public Member Functions | |
argument_flag (char key, const std::string &longkey, const std::string &keytype, const std::string &desc, bool required, bool &dest) | |
contructor filling most attributes More... | |
virtual void | print_value (std::ostream &os) const |
format value to ostream More... | |
virtual bool | process (int &, const char *const *&) |
"process" argument: just set to true, no argument is used. More... | |
virtual const char * | type_name () const |
return formatted type name to user More... | |
![]() | |
argument (char key, const std::string &longkey, const std::string &keytype, const std::string &desc, bool required) | |
contructor filling most attributes More... | |
virtual | ~argument () |
empty virtual destructor More... | |
std::string | option_text () const |
return '-s, –longkey [keytype]' More... | |
std::string | param_text () const |
return 'longkey [keytype]' More... | |
Public Attributes | |
bool & | m_dest |
reference to boolean to set to true More... | |
![]() | |
std::string | m_desc |
longer description, which will be wrapped More... | |
bool | m_found |
found during processing of command line More... | |
char | m_key |
single letter short option, or 0 is none More... | |
std::string | m_keytype |
option type description, e.g. "<#>" to indicate numbers More... | |
std::string | m_longkey |
long option key or name for parameters More... | |
bool | m_repeated |
repeated argument, i.e. std::vector<std::string> More... | |
bool | m_required |
required, process() fails if the option/parameter is not found. More... | |
|
inline |
|
inlinevirtual |
format value to ostream
Implements stxxl::cmdline_parser::argument.
|
inlinevirtual |
"process" argument: just set to true, no argument is used.
Implements stxxl::cmdline_parser::argument.
|
inlinevirtual |
return formatted type name to user
Implements stxxl::cmdline_parser::argument.
bool& stxxl::cmdline_parser::argument_flag::m_dest |