|
| option_pointer | cli_long_name_lookup (string_view name) const |
| | Returns the first config_option that matches the CLI name. More...
|
| |
|
option_pointer | cli_short_name_lookup (char short_name) const |
| | Returns the first config_option that matches the CLI short option name.
|
| |
|
option_pointer | qualified_name_lookup (string_view category, string_view long_name) const |
| | Returns the first config_option that matches category and long name.
|
| |
| option_pointer | qualified_name_lookup (string_view name) const |
| | Returns the first config_option that matches the qualified name. More...
|
| |
|
size_t | size () const noexcept |
| | Returns the number of stored config options.
|
| |
|
bool | empty () const noexcept |
| | Returns the number of stored config options.
|
| |
|
iterator | begin () noexcept |
| | Returns an iterator to the first ::config_option object.
|
| |
|
const_iterator | begin () const noexcept |
| | Returns an iterator to the first ::config_option object.
|
| |
|
iterator | end () noexcept |
| | Returns the past-the-end iterator.
|
| |
|
const_iterator | end () const noexcept |
| | Returns the past-the-end iterator.
|
| |
|
template<class T > |
| config_option_set & | add (string_view category, string_view name, string_view description) & |
| | Adds a config option to the set.
|
| |
|
template<class T > |
| config_option_set & | add (string_view name, string_view description) & |
| | Adds a config option to the set.
|
| |
|
template<class T > |
| config_option_set && | add (string_view category, string_view name, string_view description) && |
| | Adds a config option to the set.
|
| |
|
template<class T > |
| config_option_set && | add (string_view name, string_view description) && |
| | Adds a config option to the set.
|
| |
|
template<class T > |
| config_option_set & | add (T &ref, string_view category, string_view name, string_view description) & |
| | Adds a config option to the set that synchronizes its value with ref.
|
| |
|
template<class T > |
| config_option_set & | add (T &ref, string_view name, string_view description) & |
| | Adds a config option to the set that synchronizes its value with ref.
|
| |
|
template<class T > |
| config_option_set && | add (T &ref, string_view category, string_view name, string_view description) && |
| | Adds a config option to the set that synchronizes its value with ref.
|
| |
|
template<class T > |
| config_option_set && | add (T &ref, string_view name, string_view description) && |
| | Adds a config option to the set that synchronizes its value with ref.
|
| |
|
config_option_set & | add (config_option opt) |
| | Adds a config option to the set.
|
| |
|
std::string | help_text (bool global_only=true) const |
| | Generates human-readable help text for all options.
|
| |
|
parse_result | parse (config_map &config, argument_iterator begin, argument_iterator end) const |
| | Parses a given range as CLI arguments into config.
|
| |
|
parse_result | parse (config_map &config, const std::vector< std::string > &args) const |
| | Parses a given range as CLI arguments into config.
|
| |
A set of config_option objects that parses CLI arguments into a config_value::dictionary.