System::EnumValuesBase Class Referenceabstract

A base class for a class that represents meta information of enumeration type. More...

Inherited by System::EnumValues< E, Guard >.

Static Public Member Functions

static ASPOSECPP_SHARED_API ArrayPtr< int64_t > GetValues (const TypeInfo &type)
 
static ASPOSECPP_SHARED_API SharedPtr< ObjectParse (const TypeInfo &type, const String &str, bool ignoreCase)
 

Detailed Description

A base class for a class that represents meta information of enumeration type.

Member Function Documentation

◆ GetValues()

static ASPOSECPP_SHARED_API ArrayPtr<int64_t> System::EnumValuesBase::GetValues ( const TypeInfo type)
static

Returns an array containing all values of the specified enumeration type.

Parameters
typeThe TypeInfo object representing the type of the enumeration whose values to return
Returns
An array containing values of all enumeration constants of the enumeration type specified by type.

◆ Parse()

static ASPOSECPP_SHARED_API SharedPtr<Object> System::EnumValuesBase::Parse ( const TypeInfo type,
const String str,
bool  ignoreCase 
)
static

Returns an object that represents a value of enumeration constant of the specified enumeration type with the specified name.

Parameters
typeThe TypeInfo object representing the type of the enumeration value to return
strThe name of the enum constant
ignoreCaseSpecifeis if the case should be ignored when interpreting the name of the enum constant
Returns
An object that represents the value of the enum constant whose name is specified in str.