#include <arguments.hpp>
A command of a ALib CLI command line.
Definition at line 640 of file arguments.hpp.
Public Fields | |
| CommandDecl * | Declaration = nullptr |
| List< Parameter *, Recycling::Shared > | ParametersMandatory |
| List< Parameter *, Recycling::Shared > | ParametersOptional |
Public Fields inherited from Parsed | |
| CommandLine * | CmdLine |
| integer | Position |
| integer | QtyArgsConsumed |
Public Methods | |
| Command (CommandLine *cmdLine) | |
| ALIB_API Parameter * | GetParsedParameter (const String &name) |
| ALIB_API String | GetParsedParameterArg (const String &name) |
| ALIB_API bool | Read (CommandDecl &decl) |
Public Methods inherited from Parsed | |
| Parsed (CommandLine *cmdLine) | |
|
inline |
Constructor
| cmdLine | The command line instance. |
Definition at line 623 of file commandline.hpp.
Searches in ParametersMandatory and ParametersOptional for parameter name.
| name | The declaration name of the parameter. |
nullptr if parameter was not parsed. Definition at line 185 of file arguments.cpp.
Searches in ParametersMandatory and ParametersOptional for parameter name and returns its (first) argument.
| name | The declaration name of the parameter. |
Definition at line 209 of file arguments.cpp.
| bool Read | ( | CommandDecl & | decl | ) |
Tries to read the object from the front of CommandLine::ArgsLeft.
| decl | The declaration used for reading. |
true on success, false otherwise. Definition at line 140 of file arguments.cpp.
| CommandDecl* Declaration = nullptr |
The underlying declaration.
Definition at line 643 of file arguments.hpp.
| List<Parameter*, Recycling::Shared> ParametersMandatory |
Mandatory parameters parsed.
Definition at line 646 of file arguments.hpp.
| List<Parameter*, Recycling::Shared> ParametersOptional |
Optional parameters parsed.
Definition at line 649 of file arguments.hpp.