Interface for arguments.
More...
#include <arg_iface.hpp>
Interface for arguments.
Definition at line 51 of file arg_iface.hpp.
◆ ArgIface()
Args::ArgIface::ArgIface |
( |
| ) |
|
|
inline |
◆ ~ArgIface()
virtual Args::ArgIface::~ArgIface |
( |
| ) |
|
|
inlinevirtual |
◆ argumentName()
virtual const String & Args::ArgIface::argumentName |
( |
| ) |
const |
|
pure virtual |
◆ checkCorrectnessAfterParsing()
virtual void Args::ArgIface::checkCorrectnessAfterParsing |
( |
| ) |
const |
|
protectedpure virtual |
◆ checkCorrectnessBeforeParsing()
virtual void Args::ArgIface::checkCorrectnessBeforeParsing |
( |
StringList & |
flags, |
|
|
StringList & |
names |
|
) |
| const |
|
protectedpure virtual |
◆ clear()
virtual void Args::ArgIface::clear |
( |
| ) |
|
|
pure virtual |
◆ cmdLine()
CmdLine * Args::ArgIface::cmdLine |
( |
| ) |
const |
|
inline |
◆ description()
virtual const String & Args::ArgIface::description |
( |
| ) |
const |
|
pure virtual |
◆ findArgument()
virtual ArgIface * Args::ArgIface::findArgument |
( |
const String & |
name | ) |
|
|
protectedpure virtual |
- Returns
- Argument for the given name.
- Return values
-
Pointer | to the ArgIface if this argument handles argument with the given name. |
nullptr | if this argument doesn't know about argument with name. |
- Parameters
-
name | Name of the argument. Can be for example "-t" or "--timeout". |
Implemented in Args::Command, Args::Arg, and Args::GroupIface.
◆ flag()
virtual const String & Args::ArgIface::flag |
( |
| ) |
const |
|
pure virtual |
◆ isDefined()
virtual bool Args::ArgIface::isDefined |
( |
| ) |
const |
|
pure virtual |
◆ isMisspelledName()
virtual bool Args::ArgIface::isMisspelledName |
( |
const String & |
name, |
|
|
StringList & |
possibleNames |
|
) |
| const |
|
pure virtual |
- Returns
- Is given name a misspelled name of the argument.
- Parameters
-
name | Name to check (misspelled). |
possibleNames | List of possible names for the given misspelled name. |
Implemented in Args::Arg, Args::GroupIface, and Args::Command.
◆ isRequired()
virtual bool Args::ArgIface::isRequired |
( |
| ) |
const |
|
pure virtual |
◆ isWithValue()
virtual bool Args::ArgIface::isWithValue |
( |
| ) |
const |
|
pure virtual |
◆ longDescription()
virtual const String & Args::ArgIface::longDescription |
( |
| ) |
const |
|
pure virtual |
◆ name()
virtual String Args::ArgIface::name |
( |
| ) |
const |
|
pure virtual |
- Returns
- Name of the argument.
If name is empty returned value should be a flag. I.e. for example "-t" or "--timeout"
Implemented in Args::Arg, and Args::GroupIface.
◆ process()
virtual void Args::ArgIface::process |
( |
Context & |
context | ) |
|
|
protectedpure virtual |
◆ setCmdLine()
virtual void Args::ArgIface::setCmdLine |
( |
CmdLine * |
cmdLine | ) |
|
|
inlineprotectedvirtual |
◆ type()
virtual ArgType Args::ArgIface::type |
( |
| ) |
const |
|
pure virtual |
◆ valueSpecifier()
virtual const String & Args::ArgIface::valueSpecifier |
( |
| ) |
const |
|
pure virtual |
◆ CmdLine
◆ Command
◆ GroupIface
The documentation for this class was generated from the following file: