CPP-AP 2.2.6
Command-line argument parser for C++20
|
Structure representing a single command-line argument token. More...
#include <argument_token.hpp>
Public Types | |
enum class | token_type : bool { t_flag , t_value } |
The token type discriminator. More... | |
Public Member Functions | |
argument_token (const argument_token &)=default | |
argument_token (argument_token &&)=default | |
argument_token & | operator= (const argument_token &)=default |
argument_token & | operator= (argument_token &&)=default |
argument_token (const token_type type, const std::string &value) | |
Constructor of a command-line argument. | |
bool | operator== (const argument_token &other) const noexcept |
Equality operator for comparing argument_token instances. | |
Public Attributes | |
token_type | type |
std::string | value |
Structure representing a single command-line argument token.
Definition at line 14 of file argument_token.hpp.
|
strong |
The token type discriminator.
Definition at line 16 of file argument_token.hpp.
|
inline |
Constructor of a command-line argument.
type | Type type of the token (flag or value). |
value | The value of the argument. |
Definition at line 32 of file argument_token.hpp.
|
inlinenoexcept |
Equality operator for comparing argument_token instances.
other | An argument_token instance to compare with. |
Definition at line 41 of file argument_token.hpp.
token_type ap::detail::argument_token::type |
Definition at line 45 of file argument_token.hpp.
std::string ap::detail::argument_token::value |
Definition at line 46 of file argument_token.hpp.