Murl Engine API  Version 2018.3
Murl::Util::Environment::StringPairArrayParameter Class Reference

The string pair array parameter class. More...

#include <murl_util_environment.h>

Detailed Description

The string pair array parameter class.

Takes two string arguments for each parameter.

Inheritance diagram for Murl::Util::Environment::StringPairArrayParameter:
Murl::Util::Environment::Parameter

Public Member Functions

 StringPairArrayParameter (ParameterType type, const String &longId, const String &shortId, const String &description)
 The constructor, see Parameter::Parameter(). More...
 
virtual SInt32 Process (SInt32 currentIndex, SInt32 argC, const char **argV)
 Overload of Parameter::Process() converting the mValue[1|2](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

StringArray mValue1
 The first processed argument values. More...
 
StringArray mValue2
 The second processed argument values. More...
 
- Public Attributes inherited from Murl::Util::Environment::Parameter
ParameterType mType
 The parameter type. More...
 
String mLongId
 The long parameter identifier string. More...
 
String mShortId
 The short parameter identifier string. More...
 
String mDescription
 The parameter description string. More...
 
Bool mIsSet
 Flag if the parameter is set. More...
 
SInt32 mSkip
 The number of arguments used by the parameter. More...
 
Bool mIsArray
 Signature for parameter arrays. More...
 

Additional Inherited Members

- Public Types inherited from Murl::Util::Environment::Parameter
typedef AutoPointer< ParameterAutoPtr
 Definition of the parameter auto pointer.
 

Constructor & Destructor Documentation

◆ StringPairArrayParameter()

Murl::Util::Environment::StringPairArrayParameter::StringPairArrayParameter ( 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()

virtual SInt32 Murl::Util::Environment::StringPairArrayParameter::Process ( SInt32  currentIndex,
SInt32  argC,
const char **  argV 
)
virtual

Overload of Parameter::Process() converting the mValue[1|2](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.

Member Data Documentation

◆ mValue1

StringArray Murl::Util::Environment::StringPairArrayParameter::mValue1

The first processed argument values.

◆ mValue2

StringArray Murl::Util::Environment::StringPairArrayParameter::mValue2

The second processed argument values.


The documentation for this class was generated from the following file: