Argument class interface.
More...
#include <argument_base.hpp>
Argument class interface.
Definition at line 26 of file argument_base.hpp.
◆ ~argument_base()
virtual ap::detail::argument_base::~argument_base |
( |
| ) |
|
|
virtualdefault |
◆ argument_base()
ap::detail::argument_base::argument_base |
( |
const argument_name & |
name, |
|
|
const bool |
required = false |
|
) |
| |
|
inlineprotected |
◆ bypass_required_enabled()
bool ap::detail::argument_base::bypass_required_enabled |
( |
| ) |
const |
|
inlineprotectednoexcept |
- Returns
true
if required argument bypassing is enabled for the argument, false
otherwise.
- Note
- Required argument bypassing is enabled only when both
required
and bypass_required
flags are set to true
.
Definition at line 60 of file argument_base.hpp.
◆ count()
virtual std::size_t ap::detail::argument_base::count |
( |
| ) |
const |
|
protectedpure virtualnoexcept |
◆ desc()
|
protectedpure virtualnoexcept |
◆ has_parsed_values()
virtual bool ap::detail::argument_base::has_parsed_values |
( |
| ) |
const |
|
protectedpure virtualnoexcept |
◆ has_value()
virtual bool ap::detail::argument_base::has_value |
( |
| ) |
const |
|
protectedpure virtualnoexcept |
◆ help()
const std::optional< std::string > & ap::detail::argument_base::help |
( |
| ) |
const |
|
inlineprotectednoexcept |
- Returns
- Optional help message for the positional argument.
Definition at line 42 of file argument_base.hpp.
◆ is_hidden()
bool ap::detail::argument_base::is_hidden |
( |
| ) |
const |
|
inlineprotectednoexcept |
- Returns
true
if the argument is hidden, false
otherwise
Definition at line 47 of file argument_base.hpp.
◆ is_required()
bool ap::detail::argument_base::is_required |
( |
| ) |
const |
|
inlineprotectednoexcept |
- Returns
true
if the argument is required, false
otherwise
Definition at line 52 of file argument_base.hpp.
◆ is_used()
virtual bool ap::detail::argument_base::is_used |
( |
| ) |
const |
|
protectedpure virtualnoexcept |
◆ mark_used()
virtual bool ap::detail::argument_base::mark_used |
( |
| ) |
|
|
protectedpure virtual |
◆ name()
- Returns
- Reference the name of the positional argument.
Definition at line 37 of file argument_base.hpp.
◆ nvalues_ordering()
virtual std::weak_ordering ap::detail::argument_base::nvalues_ordering |
( |
| ) |
const |
|
protectedpure virtualnoexcept |
◆ set_value()
virtual bool ap::detail::argument_base::set_value |
( |
const std::string & |
value | ) |
|
|
protectedpure virtual |
◆ value()
virtual const std::any & ap::detail::argument_base::value |
( |
| ) |
const |
|
protectedpure virtual |
◆ values()
virtual const std::vector< std::any > & ap::detail::argument_base::values |
( |
| ) |
const |
|
protectedpure virtual |
◆ ::ap::argument_parser
◆ _bypass_required
bool ap::detail::argument_base::_bypass_required |
|
protected |
◆ _help_msg
std::optional<std::string> ap::detail::argument_base::_help_msg |
|
protected |
◆ _hidden
bool ap::detail::argument_base::_hidden |
|
protected |
◆ _name
◆ _required
bool ap::detail::argument_base::_required |
|
protected |
The documentation for this class was generated from the following file: