#include <cmdline.h>
|
typedef std::vector< std::string > | argst |
|
|
virtual bool | parse (int argc, const char **argv, const char *optstring) |
|
std::string | get_value (char option) const |
|
std::string | get_value (const char *option) const |
|
const std::list< std::string > & | get_values (const std::string &option) const |
|
const std::list< std::string > & | get_values (char option) const |
|
std::list< std::string > | get_comma_separated_values (const char *option) const |
|
virtual bool | isset (char option) const |
|
virtual bool | isset (const char *option) const |
|
virtual void | set (const std::string &option, bool value=true) |
| Set option option to value , or true if the value is omitted. More...
|
|
virtual void | set (const std::string &option, const std::string &value) |
|
virtual void | set (const std::string &option, const char *value) |
|
virtual void | clear () |
|
bool | has_option (const std::string &option) const |
|
option_namest | option_names () const |
| Pseudo-object that can be used to iterate over options in this cmdlinet (should not outlive this) More...
|
|
| cmdlinet () |
|
virtual | ~cmdlinet () |
|
std::vector< std::string > | get_argument_suggestions (const std::string &unknown_argument) |
|
Definition at line 20 of file cmdline.h.
◆ argst
◆ cmdlinet()
◆ ~cmdlinet()
◆ clear()
void cmdlinet::clear |
( |
void |
| ) |
|
|
virtual |
◆ get_argument_suggestions()
std::vector< std::string > cmdlinet::get_argument_suggestions |
( |
const std::string & |
unknown_argument | ) |
|
◆ get_comma_separated_values()
std::list< std::string > cmdlinet::get_comma_separated_values |
( |
const char * |
option | ) |
const |
◆ get_value() [1/2]
std::string cmdlinet::get_value |
( |
char |
option | ) |
const |
◆ get_value() [2/2]
std::string cmdlinet::get_value |
( |
const char * |
option | ) |
const |
◆ get_values() [1/2]
const std::list< std::string > & cmdlinet::get_values |
( |
char |
option | ) |
const |
◆ get_values() [2/2]
const std::list< std::string > & cmdlinet::get_values |
( |
const std::string & |
option | ) |
const |
◆ getoptnr() [1/2]
optionalt< std::size_t > cmdlinet::getoptnr |
( |
char |
option | ) |
const |
|
protected |
◆ getoptnr() [2/2]
optionalt< std::size_t > cmdlinet::getoptnr |
( |
const std::string & |
option | ) |
const |
|
protected |
◆ has_option()
bool cmdlinet::has_option |
( |
const std::string & |
option | ) |
const |
|
inline |
◆ isset() [1/2]
bool cmdlinet::isset |
( |
char |
option | ) |
const |
|
virtual |
◆ isset() [2/2]
bool cmdlinet::isset |
( |
const char * |
option | ) |
const |
|
virtual |
◆ option_names()
Pseudo-object that can be used to iterate over options in this cmdlinet (should not outlive this)
Definition at line 249 of file cmdline.cpp.
◆ parse()
bool cmdlinet::parse |
( |
int |
argc, |
|
|
const char ** |
argv, |
|
|
const char * |
optstring |
|
) |
| |
|
virtual |
◆ set() [1/3]
void cmdlinet::set |
( |
const std::string & |
option, |
|
|
bool |
value = true |
|
) |
| |
|
virtual |
◆ set() [2/3]
virtual void cmdlinet::set |
( |
const std::string & |
option, |
|
|
const char * |
value |
|
) |
| |
|
inlinevirtual |
◆ set() [3/3]
void cmdlinet::set |
( |
const std::string & |
option, |
|
|
const std::string & |
value |
|
) |
| |
|
virtual |
◆ args
◆ options
std::vector<optiont> cmdlinet::options |
|
protected |
◆ unknown_arg
std::string cmdlinet::unknown_arg |
The documentation for this class was generated from the following files: