![]() |
CPP-ARGON 4.0.1
Command-Line Argument Parser for C++20
|
Argument class interface. More...
#include <argument_base.hpp>
Public Member Functions | |
| virtual | ~argument_base ()=default |
| virtual bool | is_positional () const noexcept=0 |
| virtual bool | is_optional () const noexcept=0 |
| virtual const argument_name & | name () const noexcept=0 |
| virtual const std::optional< std::string > & | help () const noexcept=0 |
| virtual bool | is_hidden () const noexcept=0 |
| virtual bool | is_required () const noexcept=0 |
| virtual bool | suppresses_arg_checks () const noexcept=0 |
| virtual bool | suppresses_group_checks () const noexcept=0 |
| virtual bool | is_greedy () const noexcept=0 |
Protected Member Functions | |
| virtual detail::help_builder | help_builder (const bool verbose) const noexcept=0 |
| virtual bool | mark_used ()=0 |
| Mark the argument as used. | |
| virtual bool | is_used () const noexcept=0 |
| virtual std::size_t | count () const noexcept=0 |
| virtual bool | set_value (const std::string &value)=0 |
| Set the value for the argument. | |
| virtual bool | has_value () const noexcept=0 |
| virtual bool | has_parsed_values () const noexcept=0 |
| virtual bool | has_predefined_values () const noexcept=0 |
| virtual std::weak_ordering | nvalues_ordering () const noexcept=0 |
| virtual const std::any & | value () const =0 |
| virtual const std::vector< std::any > & | values () const =0 |
Friends | |
| class | ::argon::argument_parser |
Argument class interface.
Definition at line 26 of file argument_base.hpp.
|
virtualdefault |
|
protectedpure virtualnoexcept |
Implemented in argon::argument< ArgT, T >.
|
protectedpure virtualnoexcept |
true if the argument has parsed values., false otherwise. Implemented in argon::argument< ArgT, T >.
|
protectedpure virtualnoexcept |
true if the argument has predefined values, false otherwise. Implemented in argon::argument< ArgT, T >.
true if the argument has a value, false otherwise. Implemented in argon::argument< ArgT, T >.
|
pure virtualnoexcept |
Implemented in argon::argument< ArgT, T >.
|
protectedpure virtualnoexcept |
| verbose | The verbosity mode value. If true all non-default parameters will be included in the output. |
Implemented in argon::argument< ArgT, T >.
true if the argument is greedy, false otherwise. Implemented in argon::argument< ArgT, T >.
true if the argument is hidden from help output, false otherwise. Implemented in argon::argument< ArgT, T >.
true if the argument is an optional argument instance, false otherwise. Implemented in argon::argument< ArgT, T >.
true if the argument is a positional argument instance, false otherwise. Implemented in argon::argument< ArgT, T >.
true if the argument is required, false otherwise. Implemented in argon::argument< ArgT, T >.
true if the argument has been used, false otherwise. Implemented in argon::argument< ArgT, T >.
Mark the argument as used.
true if the argument accepts further values, false otherwise. Implemented in argon::argument< ArgT, T >.
|
pure virtualnoexcept |
Implemented in argon::argument< ArgT, T >.
|
protectedpure virtualnoexcept |
Implemented in argon::argument< ArgT, T >.
|
protectedpure virtual |
Set the value for the argument.
| value | The string representation of the value. |
true if the argument accepts further values, false otherwise. Implemented in argon::argument< ArgT, T >.
true if argument checks suppressing is enabled for the argument, false otherwise. Implemented in argon::argument< ArgT, T >.
true if argument group checks suppressing is enabled for the argument, false otherwise. Implemented in argon::argument< ArgT, T >.
Implemented in argon::argument< ArgT, T >.
|
protectedpure virtual |
Implemented in argon::argument< ArgT, T >.
Definition at line 57 of file argument_base.hpp.