A command argument of the command-line.
Definition at line 496 of file cliargtypes.hpp.
#include <cliargtypes.hpp>
Public Field Index: | |
| CommandDecl * | Declaration = nullptr |
| The underlying declaration. | |
| ListMA< Parameter *, Recycling::Shared > | ParametersMandatory |
| Mandatory parameters parsed. | |
| ListMA< Parameter *, Recycling::Shared > | ParametersOptional |
| Optional parameters parsed. | |
| Public Field Index: inherited from alib::app::Parsed | |
| CommandLine * | CmdLine |
| The cli command-line. | |
| integer | ConsumedArguments |
| integer | Position |
Public Method Index: | |
| Command (CommandLine *cmdLine) | |
| Parameter * | GetParsedParameter (const String &name) |
| String | GetParsedParameterArg (const String &name) |
| bool | Read (CommandDecl &decl) |
| Public Method Index: inherited from alib::app::Parsed | |
| Parsed (CommandLine *cmdLine) | |
| CommandDecl* alib::app::Command::Declaration = nullptr |
The underlying declaration.
Definition at line 498 of file cliargtypes.hpp.
Mandatory parameters parsed.
Definition at line 501 of file cliargtypes.hpp.
Optional parameters parsed.
Definition at line 504 of file cliargtypes.hpp.
|
inline |
Searches in ParametersMandatory and ParametersOptional for parameter name.
| name | The declaration name of the parameter. |
nullptr if parameter was not parsed. Definition at line 144 of file cliargtypes.cpp.
Searches in ParametersMandatory and ParametersOptional for parameter name and returns its (first) argument.
| name | The declaration name of the parameter. |
NULL_STRING if parameter was not parsed if not given. Definition at line 166 of file cliargtypes.cpp.
| bool alib::app::Command::Read | ( | CommandDecl & | decl | ) |
Tries to read the object from the front of StdVectorMA< integer > ArgsLeft.
| decl | The declaration used for reading. |
true on success, false otherwise. Definition at line 102 of file cliargtypes.cpp.