The interface for the Flag classes.
|
virtual const char * | name () const =0 |
| Get the flag name.
|
|
virtual char | short_opt () const =0 |
| Get the flag short option.
|
|
virtual bool | has_arg () const =0 |
| Whether the flag requires an argument.
|
|
virtual const char * | arg_type () const =0 |
| Get the flag argument type.
|
|
virtual std::string | help () const =0 |
| Get the flag help string.
|
|
virtual bool | present () const =0 |
| Check if the flag was present on the command line. Good for switching behaviour when a flag is used. More...
|
|
virtual bool | SetValue (const std::string &input)=0 |
| Set the flag value. More...
|
|
◆ present()
virtual bool ola::FlagInterface::present |
( |
| ) |
const |
|
pure virtual |
Check if the flag was present on the command line. Good for switching behaviour when a flag is used.
- Returns
- true if the flag was present, false otherwise
Implemented in ola::BaseFlag.
◆ SetValue()
virtual bool ola::FlagInterface::SetValue |
( |
const std::string & |
input | ) |
|
|
pure virtual |
The documentation for this class was generated from the following file: