Murl::Util::Environment::SInt32ArrayParameter Class Reference

The integer array parameter class. More...

#include "murl_util_environment.h"

Inheritance diagram for Murl::Util::Environment::SInt32ArrayParameter:

Public Member Functions

 SInt32ArrayParameter (ParameterType type, const String &longId, const String &shortId, const String &description, SInt32 defaultValue)
 The constructor taking a default value, see Parameter::Parameter(). More...
 
 SInt32ArrayParameter (ParameterType type, const String &longId, const String &shortId, const String &description)
 The constructor, see Parameter::Parameter(). More...
 
SInt32 Process (SInt32 currentIndex, SInt32 argC, const char **argV) override
 Overload of Parameter::Process() converting the mValue(s). More...
 
- Public Member Functions inherited from Murl::Util::Environment::Parameter
 Parameter (ParameterType type, const String &longId, const String &shortId, const String &description, SInt32 skip, Bool isArray)
 The constructor. More...
 
virtual ~Parameter ()
 The destructor.
 

Public Attributes

Bool mHasDefaultValue
 Flag if mValue array has a default value set.
 
SInt32Array mValue
 The processed argument values.
 
- Public Attributes inherited from Murl::Util::Environment::Parameter
ParameterType mType
 The parameter type.
 
String mLongId
 The long parameter identifier string.
 
String mShortId
 The short parameter identifier string.
 
String mDescription
 The parameter description string.
 
Bool mIsSet
 Flag if the parameter is set.
 
SInt32 mSkip
 The number of arguments used by the parameter.
 
Bool mIsArray
 Signature for parameter arrays.
 

Additional Inherited Members

- Public Types inherited from Murl::Util::Environment::Parameter
using AutoPtr = AutoPointer< Parameter >
 Definition of the parameter auto pointer.
 

Detailed Description

The integer array parameter class.

The default value is replaced by the first argument processed.

Constructor & Destructor Documentation

◆ SInt32ArrayParameter() [1/2]

Murl::Util::Environment::SInt32ArrayParameter::SInt32ArrayParameter ( ParameterType  type,
const String longId,
const String shortId,
const String description,
SInt32  defaultValue 
)

The constructor taking a default value, see Parameter::Parameter().

Parameters
typeThe type of the parameter.
longIdThe long parameter identifier string.
shortIdThe short parameter identifier string.
descriptionThe parameter description string.
defaultValueThe default value.

◆ SInt32ArrayParameter() [2/2]

Murl::Util::Environment::SInt32ArrayParameter::SInt32ArrayParameter ( ParameterType  type,
const String longId,
const String shortId,
const String description 
)

The constructor, see Parameter::Parameter().

Parameters
typeThe type of the parameter.
longIdThe long parameter identifier string.
shortIdThe short parameter identifier string.
descriptionThe parameter description string.

Member Function Documentation

◆ Process()

SInt32 Murl::Util::Environment::SInt32ArrayParameter::Process ( SInt32  currentIndex,
SInt32  argC,
const char **  argV 
)
overridevirtual

Overload of Parameter::Process() converting the mValue(s).

Parameters
currentIndexThe zero-based index to the current argument.
argCThe number of arguments.
argVThe argument string values.
Returns
The number of arguments processed or -1 if parsing the argument failed.

Reimplemented from Murl::Util::Environment::Parameter.


The documentation for this class was generated from the following file:
  • murl_util_environment.h


Copyright © 2011-2024 Spraylight GmbH.