A base class for a class that represents meta information of enumeration type.
More...
Inherited by System::EnumValues< E, Guard >.
A base class for a class that represents meta information of enumeration type.
◆ EnumValuesBase()
ASPOSECPP_SHARED_API System::EnumValuesBase::EnumValuesBase |
( |
const TypeInfo & |
type | ) |
|
|
protected |
Constructs an instance that represents metainformation for enum of the specified type.
◆ ~EnumValuesBase()
virtual ASPOSECPP_SHARED_API System::EnumValuesBase::~EnumValuesBase |
( |
| ) |
|
|
protectedvirtual |
◆ GetValueOf()
virtual ASPOSECPP_SHARED_API SharedPtr<Object> System::EnumValuesBase::GetValueOf |
( |
const String & |
str, |
|
|
bool |
ignoreCase |
|
) |
| const |
|
protectedpure virtual |
Returns boxed value of the enum constant with the specified name.
- Parameters
-
str | The name of the enum constant |
ignoreCase | Specifeis if the case should be ignored when interpreting the name of the enum constant |
- Returns
- A boxed value of the enum constant whose name is specified in
str
.
Implemented in System::EnumValues< E, Guard >.
◆ GetValues() [1/2]
virtual ASPOSECPP_SHARED_API ArrayPtr<int64_t> System::EnumValuesBase::GetValues |
( |
| ) |
const |
|
protectedpure virtual |
◆ GetValues() [2/2]
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
-
type | The 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()
Returns an object that represents a value of enumeration constant of the specified enumeration type with the specified name.
- Parameters
-
type | The TypeInfo object representing the type of the enumeration value to return |
str | The name of the enum constant |
ignoreCase | Specifeis 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
.