#include <s_baltst_myenumerationwithfallback.h>
◆ anonymous enum
Enumerator |
---|
NUM_ENUMERATORS | |
◆ Value
Enumerator |
---|
VALUE1 | |
VALUE2 | |
UNKNOWN | |
◆ fromInt()
static int s_baltst::MyEnumerationWithFallback::fromInt |
( |
Value * |
result, |
|
|
int |
number |
|
) |
| |
|
static |
Load into the specified result
the enumerator matching the specified number
. Return 0 on success, and a non-zero value with no effect on result
otherwise (i.e., number
does not match any enumerator).
◆ fromString() [1/2]
int s_baltst::MyEnumerationWithFallback::fromString |
( |
Value * |
result, |
|
|
const bsl::string & |
string |
|
) |
| |
|
inlinestatic |
Load into the specified result
the enumerator matching the specified string
. Return 0 on success, and a non-zero value with no effect on result
otherwise (i.e., string
does not match any enumerator).
◆ fromString() [2/2]
static int s_baltst::MyEnumerationWithFallback::fromString |
( |
Value * |
result, |
|
|
const char * |
string, |
|
|
int |
stringLength |
|
) |
| |
|
static |
Load into the specified result
the enumerator matching the specified string
of the specified stringLength
. Return 0 on success, and a non-zero value with no effect on result
otherwise (i.e., string
does not match any enumerator).
◆ hasFallback()
static bool s_baltst::MyEnumerationWithFallback::hasFallback |
( |
Value |
| ) |
|
|
static |
Return true
to indicate that this type supports a fallback enumerator.
◆ isFallback()
static bool s_baltst::MyEnumerationWithFallback::isFallback |
( |
Value |
value | ) |
|
|
static |
Return true
if the specified value
equals the fallback enumerator, and false
otherwise.
◆ makeFallback()
static int s_baltst::MyEnumerationWithFallback::makeFallback |
( |
Value * |
result | ) |
|
|
static |
Load into the specified result
the fallback enumerator value and return 0 to indicate success.
◆ print()
Write to the specified stream
the string representation of the specified enumeration value
. Return a reference to the modifiable stream
.
◆ toString()
static const char * s_baltst::MyEnumerationWithFallback::toString |
( |
Value |
value | ) |
|
|
static |
Return the string representation exactly matching the enumerator name corresponding to the specified enumeration value
.
◆ CLASS_NAME
const char s_baltst::MyEnumerationWithFallback::CLASS_NAME[] |
|
static |
◆ ENUMERATOR_INFO_ARRAY
The documentation for this struct was generated from the following file: