ALib C++ Library
Library Version: 2312 R0
Documentation generated by doxygen
Public Fields | Public Methods | List of all members
Parameter Struct Reference

#include <arguments.hpp>

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

Class Description

A declaration for a cli::Parameter.

Definition at line 257 of file arguments.hpp.

Public Fields

List< String, Recycling::SharedArgs
 
ParameterDeclDeclaration = nullptr
 
- Public Fields inherited from Parsed
CommandLineCmdLine
 
integer Position
 
integer QtyArgsConsumed
 

Public Methods

 Parameter (CommandLine *cmdLine)
 
ALIB_API bool Read (ParameterDecl &decl)
 
- Public Methods inherited from Parsed
 Parsed (CommandLine *cmdLine)
 

Constructor & Destructor Documentation

◆ Parameter()

Parameter ( CommandLine cmdLine)
inline

Constructor

Parameters
cmdLineThe command line instance.

Definition at line 600 of file commandline.hpp.

Member Function Documentation

◆ Read()

bool Read ( ParameterDecl decl)

Tries to read the object from the front of CommandLine::ArgsLeft. Success is indicated by setting inherited fields Parsed::Position and Parsed::QtyArgsConsumed 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 217 of file arguments.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ Args

Arguments belonging to us.

Definition at line 263 of file arguments.hpp.

◆ Declaration

ParameterDecl* Declaration = nullptr

The underlying declaration.

Definition at line 260 of file arguments.hpp.


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