Murl::Util::Environment::EnumArrayParameter< EnumType > Class Template Reference

The enumeration array parameter template class. More...

#include "murl_util_environment.h"

Inheritance diagram for Murl::Util::Environment::EnumArrayParameter< EnumType >:

Public Member Functions

 EnumArrayParameter (ParameterType type, const String &longId, const String &shortId, const String &description, const Enum< EnumType > &enumClass, EnumType defaultValue)
 The constructor taking a default value. More...
 
 EnumArrayParameter (ParameterType type, const String &longId, const String &shortId, const String &description, const Enum< EnumType > &enumClass)
 The constructor. More...
 
virtual SInt32 Process (SInt32 currentIndex, SInt32 argC, const char **argV)
 Overload of Parameter::Process() converting the mValue(s).
 
- 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

const Enum< EnumType > & mEnum
 The enumeration string mapping class. More...
 
Bool mHasDefaultValue
 Flag if mValue array has a default value set. More...
 
Array< EnumType > mValue
 The 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.
 

Detailed Description

template<class EnumType>
class Murl::Util::Environment::EnumArrayParameter< EnumType >

The enumeration array parameter template class.

Constructor & Destructor Documentation

◆ EnumArrayParameter() [1/2]

template<class EnumType >
Murl::Util::Environment::EnumArrayParameter< EnumType >::EnumArrayParameter ( ParameterType  type,
const String longId,
const String shortId,
const String description,
const Enum< EnumType > &  enumClass,
EnumType  defaultValue 
)
inline

The constructor taking a default value.

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

◆ EnumArrayParameter() [2/2]

template<class EnumType >
Murl::Util::Environment::EnumArrayParameter< EnumType >::EnumArrayParameter ( ParameterType  type,
const String longId,
const String shortId,
const String description,
const Enum< EnumType > &  enumClass 
)
inline

The constructor.

Parameters
typeThe type of the parameter.
longIdThe long parameter identifier string.
shortIdThe short parameter identifier string.
descriptionThe parameter description string.
enumClassThe enumeration string mapping class.

Member Data Documentation

◆ mEnum

template<class EnumType >
const Enum<EnumType>& Murl::Util::Environment::EnumArrayParameter< EnumType >::mEnum

The enumeration string mapping class.

◆ mHasDefaultValue

template<class EnumType >
Bool Murl::Util::Environment::EnumArrayParameter< EnumType >::mHasDefaultValue

Flag if mValue array has a default value set.

◆ mValue

template<class EnumType >
Array<EnumType> Murl::Util::Environment::EnumArrayParameter< EnumType >::mValue

The processed argument values.


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


Copyright © 2011-2018 Spraylight GmbH.