ALib C++ Framework
by
Library Version: 2605 R0
Documentation generated by doxygen
Loading...
Searching...
No Matches
alib::app::Parameter Struct Reference

Description:

A declaration for a Parameter.

Definition at line 211 of file cliargtypes.hpp.

#include <cliargtypes.hpp>

Inheritance diagram for alib::app::Parameter:
[legend]
Collaboration diagram for alib::app::Parameter:
[legend]

Public Field Index:

ListMA< String, Recycling::Shared > Args
 Arguments belonging to us.
ParameterDeclDeclaration = nullptr
 The underlying declaration.
Public Field Index: inherited from alib::app::Parsed
CommandLineCmdLine
 The cli command-line.
integer ConsumedArguments
integer Position

Public Method Index:

 Parameter (CommandLine *cmdLine)
bool Read (ParameterDecl &decl)
Public Method Index: inherited from alib::app::Parsed
 Parsed (CommandLine *cmdLine)

Field Details:

◆ Args

ListMA<String, Recycling::Shared> alib::app::Parameter::Args

Arguments belonging to us.

Definition at line 216 of file cliargtypes.hpp.

◆ Declaration

ParameterDecl* alib::app::Parameter::Declaration = nullptr

The underlying declaration.

Definition at line 213 of file cliargtypes.hpp.

Constructor(s) / Destructor Details:

◆ Parameter()

alib::app::Parameter::Parameter ( CommandLine * cmdLine)
inline

Constructor

Parameters
cmdLineThe command-line instance.

Definition at line 499 of file cli.hpp.

Here is the call graph for this function:

Method Details:

◆ Read()

bool alib::app::Parameter::Read ( ParameterDecl & decl)

Tries to read the object from the front of StdVectorMA< integer > ArgsLeft. Success is indicated by setting inherited fields integer Position and integer ConsumedArguments to values greater than 0.

If it could not be decided if the actual CLI argument contains this parameter, false is returned to indicate that parsing commands has to stop now.

This is done in the following cases:

See ReadNextCommands for details

Parameters
declThe declaration used for reading
Returns
The true on success, false indicates that parsing has to end here.

Definition at line 173 of file cliargtypes.cpp.

Here is the call graph for this function:

The documentation for this struct was generated from the following files: