#include <flags.h>
|
| | flags ()=default |
| |
| bool | register_bool_flag (const std::string &name, bool default_value=false, std::string help_message="") |
| |
| bool | register_int32_flag (const std::string &name, int32_t default_value=0, std::string help_message="") |
| |
| bool | register_double_flag (const std::string &name, double default_value=0.0, std::string help_message="") |
| |
| bool | register_string_flag (const std::string &name, std::string default_value="", std::string help_message="") |
| |
| bool | parse_flags (int argc, char ***argv) |
| | parse command line and remove registered flags More...
|
| |
| bool | has_flag (const std::string &name) const |
| |
| bool | bool_ref (const std::string &name) |
| |
| int32_t & | int32_ref (const std::string &name) |
| |
| double & | double_ref (const std::string &name) |
| |
| std::string & | string_ref (const std::string &name) |
| |
| std::string | help () const |
| |
◆ flags()
◆ bool_ref()
| bool liph::flags::bool_ref |
( |
const std::string & |
name | ) |
|
◆ double_ref()
| double & liph::flags::double_ref |
( |
const std::string & |
name | ) |
|
◆ has_flag()
| bool liph::flags::has_flag |
( |
const std::string & |
name | ) |
const |
◆ help()
| std::string liph::flags::help |
( |
| ) |
const |
◆ int32_ref()
| int32_t & liph::flags::int32_ref |
( |
const std::string & |
name | ) |
|
◆ parse_flags()
| bool liph::flags::parse_flags |
( |
int |
argc, |
|
|
char *** |
argv |
|
) |
| |
parse command line and remove registered flags
◆ register_bool_flag()
| bool liph::flags::register_bool_flag |
( |
const std::string & |
name, |
|
|
bool |
default_value = false, |
|
|
std::string |
help_message = "" |
|
) |
| |
◆ register_double_flag()
| bool liph::flags::register_double_flag |
( |
const std::string & |
name, |
|
|
double |
default_value = 0.0, |
|
|
std::string |
help_message = "" |
|
) |
| |
◆ register_int32_flag()
| bool liph::flags::register_int32_flag |
( |
const std::string & |
name, |
|
|
int32_t |
default_value = 0, |
|
|
std::string |
help_message = "" |
|
) |
| |
◆ register_string_flag()
| bool liph::flags::register_string_flag |
( |
const std::string & |
name, |
|
|
std::string |
default_value = "", |
|
|
std::string |
help_message = "" |
|
) |
| |
◆ string_ref()
| std::string & liph::flags::string_ref |
( |
const std::string & |
name | ) |
|
The documentation for this class was generated from the following files: