ALib C++ Library
Library Version: 2412 R0
Documentation generated by doxygen
Loading...
Searching...
No Matches
ERParameterDecl Struct Reference

Description:

ALib Enum Record type used by class ParameterDecl.

Definition at line 61 of file arguments.hpp.

#include <arguments.hpp>

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

Public Field Index:

String identifier
 The identifier of the parameter.
 
bool isOptional
 Denotes if this is an optional parameter.
 
int RequiredArguments
 
nchar valueListSeparator
 
String valueSeparator
 
- Public Field Index: inherited from ERSerializable
String EnumElementName
 The name of the enum element.
 
int MinimumRecognitionLength
 

Public Method Index:

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

Field Details:

◆ identifier

String identifier

The identifier of the parameter.

Definition at line 64 of file arguments.hpp.

◆ isOptional

bool isOptional

Denotes if this is an optional parameter.

Definition at line 82 of file arguments.hpp.

◆ RequiredArguments

int RequiredArguments

The number of arguments to consume and store in Parameter::Args. If negative, parsing stops. If previous field, separator string is set and this value is equal or greater to 1, then a missing separator string leads to a parsing exception.

Definition at line 79 of file arguments.hpp.

◆ valueListSeparator

nchar valueListSeparator

A separator character for parsing multiple values. If set to 'C', method ParameterDecl::ValueListSeparator will return ',' instead.

Definition at line 73 of file arguments.hpp.

◆ valueSeparator

String valueSeparator

An optional separator string (usually "=") that separates the parameter name from a value given within the parameter itself.

Definition at line 68 of file arguments.hpp.

Constructor(s) / Destructor Details:

◆ ERParameterDecl()

ERParameterDecl ( )
defaultnoexcept

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

Method Details:

◆ Parse()

void Parse ( )

Implementation of EnumRecordPrototype::Parse.

Definition at line 285 of file arguments.cpp.

Here is the call graph for this function:

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