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

Description:

ALib Enum Record type used by class OptionDecl.

Definition at line 245 of file cliargtypes.hpp.

#include <cliargtypes.hpp>

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

Public Field Index:

String identifierChar
integer RequiredArguments
String shortcutReplacementString
String valueSeparator
Public Field Index: inherited from alib::enumrecords::ERSerializable
String EnumElementName
 The name of the enum element.
int MinimumRecognitionLength

Public Method Index:

 EROptionDecl () noexcept=default
void Parse ()
 Implementation of void Parse() .
Public Method Index: inherited from alib::enumrecords::ERSerializable
 ERSerializable () noexcept=default
 Defaulted constructor leaving the record undefined.
 ERSerializable (const String &name, int minLength=0) noexcept
void Parse ()

Field Details:

◆ identifierChar

String alib::app::EROptionDecl::identifierChar

The name of the option as parsed from command-line if single hyphen '-' is used. Defined as string to be able to have empty strings, which disables single character options.

Definition at line 249 of file cliargtypes.hpp.

◆ RequiredArguments

integer alib::app::EROptionDecl::RequiredArguments

The number of arguments to consume and store in ListMA< String, Recycling::Shared > Args. If this field is set and this value is not 0, then a missing separator string leads to a parsing exception.

Definition at line 259 of file cliargtypes.hpp.

◆ shortcutReplacementString

String alib::app::EROptionDecl::shortcutReplacementString

If not empty, the argument string will be replaced by this and the search for next options continues. Note: Shortcut options have to occur earlier in the enumeration's resource definition.

Definition at line 264 of file cliargtypes.hpp.

◆ valueSeparator

String alib::app::EROptionDecl::valueSeparator

An optional separator string (usually "=") that separates the option name from a value within the first argument itself. If this is not given, field RequiredArguments has to be 0.

Definition at line 254 of file cliargtypes.hpp.

Constructor(s) / Destructor Details:

◆ EROptionDecl()

alib::app::EROptionDecl::EROptionDecl ( )
defaultnoexcept

Defaulted constructor leaving the record undefined. (Implementation required as documented here.)

Here is the call graph for this function:

Method Details:

◆ Parse()

void alib::app::EROptionDecl::Parse ( )

Implementation of void Parse() .

Definition at line 233 of file cliargtypes.cpp.

Here is the call graph for this function:

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