|
STXXL
1.4-dev
|
specialization of argument for SI/IEC suffixes byte size options or parameters
Inheritance diagram for stxxl::cmdline_parser::argument_bytes32:
Collaboration diagram for stxxl::cmdline_parser::argument_bytes32:Public Member Functions | |
| argument_bytes32 (char key, const std::string &longkey, const std::string &keytype, const std::string &desc, bool required, uint32 &dest) | |
| contructor filling most attributes More... | |
| virtual void | print_value (std::ostream &os) const |
| format value to ostream More... | |
| virtual bool | process (int &argc, const char *const *&argv) |
| parse byte size using SI/IEC parser from stxxl. More... | |
| virtual const char * | type_name () const |
| return formatted type name to user More... | |
Public Member Functions inherited from stxxl::cmdline_parser::argument | |
| 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 | |
| uint32 & | m_dest |
Public Attributes inherited from stxxl::cmdline_parser::argument | |
| 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 |
parse byte size using SI/IEC parser from stxxl.
Implements stxxl::cmdline_parser::argument.
Definition at line 262 of file cmdline.h.
References stxxl::parse_SI_IEC_size().
|
inlinevirtual |
return formatted type name to user
Implements stxxl::cmdline_parser::argument.