Inherits Polymorphic.
Inherited by ArgumentParser::NamedArgument, and ArgumentParser::OrphanArgument.
◆ Flag
Argument flags.
Enumerator |
---|
EXPLICIT | The value was specified.
|
LATER | Argument is given later.
|
EARLIER | Argument is given earlier.
|
DEFAULT | Default value.
|
◆ Argument()
ArgumentParser::Argument::Argument |
( |
unsigned int |
_flags = 0 | ) |
|
|
inlinenoexcept |
Initializes the argument with the specified flags.
◆ getFlags()
unsigned int ArgumentParser::Argument::getFlags |
( |
| ) |
const |
|
inlinenoexcept |
◆ isEarlier()
bool ArgumentParser::Argument::isEarlier |
( |
| ) |
const |
|
inlinenoexcept |
Returns true if the argument is a repetition of an earlier argument.
◆ isExplicit()
bool ArgumentParser::Argument::isExplicit |
( |
| ) |
const |
|
inlinenoexcept |
Returns true if the value was specified.
◆ isLater()
bool ArgumentParser::Argument::isLater |
( |
| ) |
const |
|
inlinenoexcept |
Returns true if the argument is repeted again later.
◆ setFlags()
void ArgumentParser::Argument::setFlags |
( |
unsigned int |
flags | ) |
|
|
inlinenoexcept |