8#ifndef INCLUDED_BDLAR_ENUMVTABLEUTIL
9#define INCLUDED_BDLAR_ENUMVTABLEUTIL
52#include <bdlar_enumvtable.h>
72 template <
class t_ENUM>
73 static int fromInt(
void *result,
int number);
79 template <
class t_ENUM>
80 static int fromString(
void *result,
const char *
string,
int stringLength);
84 template <
class t_ENUM>
85 static bool hasFallback(
const void *value);
89 template <
class t_ENUM>
90 static bool isFallback(
const void *value);
95 template <
class t_ENUM>
96 static int makeFallback(
void *result);
100 template <
class t_ENUM>
101 static void reset(
void *
object);
105 template <
class t_ENUM>
106 static void toInt(
int *result,
const void *value);
110 template <
class t_ENUM>
111 static void toString(
bsl::string *result,
const void *value);
114 template <
class t_ENUM>
115 static const char *xsdName(
const void *
object,
int format);
126 template <
class t_ENUM>
131 template <
class t_ENUM>
144template <
class t_ENUM>
145int EnumVtableUtil::fromInt(
void *result,
int number)
150template <
class t_ENUM>
151int EnumVtableUtil::fromString(
void *result,
160template <
class t_ENUM>
161bool EnumVtableUtil::hasFallback(
const void *value)
164 *
static_cast<const t_ENUM *
>(value));
167template <
class t_ENUM>
168bool EnumVtableUtil::isFallback(
const void *value)
171 *
static_cast<const t_ENUM *
>(value));
174template <
class t_ENUM>
175int EnumVtableUtil::makeFallback(
void *result)
180template <
class t_ENUM>
181void EnumVtableUtil::reset(
void *
object)
186template <
class t_ENUM>
187void EnumVtableUtil::toInt(
int *result,
const void *value)
192template <
class t_ENUM>
193void EnumVtableUtil::toString(
bsl::string *result,
const void *value)
198template <
class t_ENUM>
199const char *EnumVtableUtil::xsdName(
const void *
object,
int format)
206template <
class t_ENUM>
212 &hasFallback<t_ENUM>,
219template <
class t_ENUM>
226 &hasFallback<t_ENUM>,
232 &makeFallback<t_ENUM>,
Definition bdlar_enumvtableutil.h:65
EnumConstVtable ConstVtableType
Definition bdlar_enumvtableutil.h:120
EnumVtable VtableType
Definition bdlar_enumvtableutil.h:119
static const EnumVtable * getVtable()
Definition bdlar_enumvtableutil.h:220
static const EnumConstVtable * getConstVtable()
Definition bdlar_enumvtableutil.h:207
Definition bslstl_string.h:1252
static const char * xsdName(const TYPE &object, int format)
Definition bdlat_typename.h:1047
#define BSLS_IDENT(str)
BSLS_IDENT() - insert string into .comment binary segment (if supported)
Definition bsls_ident.h:238
Definition bdlar_accessorref.h:59
void toInt(int *result, const TYPE &value)
int fromString(TYPE *result, const char *string, int stringLength)
int fromInt(TYPE *result, int number)
void toString(bsl::string *result, const TYPE &value)
int makeFallback(TYPE *result)
bool hasFallback(const TYPE &value)
bool isFallback(const TYPE &value)
void reset(TYPE *object)
Reset the value of the specified object to its default value.
Definition bdlar_enumvtable.h:67
Definition bdlar_enumvtable.h:92