Quick Links: |
Classes | |
struct | IsEnumeration |
Functions | |
template<class TYPE > | |
int | fromInt (TYPE *result, int number) |
template<class TYPE > | |
int | fromString (TYPE *result, const char *string, int stringLength) |
template<class TYPE > | |
void | toInt (int *result, const TYPE &value) |
template<class TYPE > | |
void | toString (bsl::string *result, const TYPE &value) |
template<class TYPE > | |
int | bdlat_enumFromInt (TYPE *result, int number) |
template<class TYPE > | |
int | bdlat_enumFromString (TYPE *result, const char *string, int stringLength) |
template<class TYPE > | |
void | bdlat_enumToInt (int *result, const TYPE &value) |
template<class TYPE > | |
void | bdlat_enumToString (bsl::string *result, const TYPE &value) |
int bdlat_EnumFunctions::fromInt | ( | TYPE * | result, | |
int | number | |||
) |
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
if number
does not match any enumerator.
int bdlat_EnumFunctions::fromString | ( | TYPE * | result, | |
const char * | string, | |||
int | stringLength | |||
) |
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
if string
and stringLength
do not match any enumerator.
void bdlat_EnumFunctions::toInt | ( | int * | result, | |
const TYPE & | value | |||
) |
Return the integer representation exactly matching the enumerator name corresponding to the specified enumeration value
.
void bdlat_EnumFunctions::toString | ( | bsl::string * | result, | |
const TYPE & | value | |||
) |
Return the string representation exactly matching the enumerator name corresponding to the specified enumeration value
.
int bdlat_EnumFunctions::bdlat_enumFromInt | ( | TYPE * | result, | |
int | number | |||
) |
int bdlat_EnumFunctions::bdlat_enumFromString | ( | TYPE * | result, | |
const char * | string, | |||
int | stringLength | |||
) |
void bdlat_EnumFunctions::bdlat_enumToInt | ( | int * | result, | |
const TYPE & | value | |||
) |
void bdlat_EnumFunctions::bdlat_enumToString | ( | bsl::string * | result, | |
const TYPE & | value | |||
) |