|
STXXL
1.4-dev
|
Inheritance diagram for stxxl::cmdline_parser::argument:Public Member Functions | |
| 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... | |
| virtual void | print_value (std::ostream &os) const =0 |
| format value to ostream More... | |
| virtual bool | process (int &argc, const char *const *&argv)=0 |
| process one item from command line for this argument More... | |
| virtual const char * | type_name () const =0 |
| return formatted type name to user More... | |
Public Attributes | |
| 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 |
|
inline |
return '-s, –longkey [keytype]'
Definition at line 98 of file cmdline.h.
Referenced by stxxl::cmdline_parser::calc_opt_max(), stxxl::cmdline_parser::print_option_error(), stxxl::cmdline_parser::print_result(), and stxxl::cmdline_parser::print_usage().
|
inline |
return 'longkey [keytype]'
Definition at line 88 of file cmdline.h.
Referenced by stxxl::cmdline_parser::calc_param_max(), stxxl::cmdline_parser::print_param_error(), stxxl::cmdline_parser::print_result(), and stxxl::cmdline_parser::print_usage().
|
pure virtual |
format value to ostream
Implemented in stxxl::cmdline_parser::argument_stringlist, stxxl::cmdline_parser::argument_string, stxxl::cmdline_parser::argument_bytes64, stxxl::cmdline_parser::argument_bytes32, stxxl::cmdline_parser::argument_double, stxxl::cmdline_parser::argument_uint, stxxl::cmdline_parser::argument_int, and stxxl::cmdline_parser::argument_flag.
Referenced by stxxl::cmdline_parser::print_result().
|
pure virtual |
process one item from command line for this argument
Implemented in stxxl::cmdline_parser::argument_stringlist, stxxl::cmdline_parser::argument_string, stxxl::cmdline_parser::argument_bytes64, stxxl::cmdline_parser::argument_bytes32, stxxl::cmdline_parser::argument_double, stxxl::cmdline_parser::argument_uint, stxxl::cmdline_parser::argument_int, and stxxl::cmdline_parser::argument_flag.
|
pure virtual |
return formatted type name to user
Implemented in stxxl::cmdline_parser::argument_stringlist, stxxl::cmdline_parser::argument_string, stxxl::cmdline_parser::argument_bytes64, stxxl::cmdline_parser::argument_bytes32, stxxl::cmdline_parser::argument_double, stxxl::cmdline_parser::argument_uint, stxxl::cmdline_parser::argument_int, and stxxl::cmdline_parser::argument_flag.
Referenced by stxxl::cmdline_parser::print_option_error(), stxxl::cmdline_parser::print_param_error(), and stxxl::cmdline_parser::print_result().
| std::string stxxl::cmdline_parser::argument::m_desc |
longer description, which will be wrapped
Definition at line 58 of file cmdline.h.
Referenced by stxxl::cmdline_parser::print_usage().
| bool stxxl::cmdline_parser::argument::m_found |
| char stxxl::cmdline_parser::argument::m_key |
| std::string stxxl::cmdline_parser::argument::m_keytype |
| std::string stxxl::cmdline_parser::argument::m_longkey |
long option key or name for parameters
Definition at line 54 of file cmdline.h.
Referenced by stxxl::cmdline_parser::print_usage().
| bool stxxl::cmdline_parser::argument::m_repeated |
repeated argument, i.e. std::vector<std::string>
Definition at line 64 of file cmdline.h.
Referenced by stxxl::cmdline_parser::print_usage().
| bool stxxl::cmdline_parser::argument::m_required |
required, process() fails if the option/parameter is not found.
Definition at line 60 of file cmdline.h.
Referenced by stxxl::cmdline_parser::print_usage().