WSF
FieldEnumDefines.hpp File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define ADD_ENUM(X)
#define ADD_ENUM2(A, B)
#define ADD_ENUM4(A, B, C, D)
#define ADD_ENUM8(A, B, C, D, E, F, G, H)
#define ADD_ENUM16(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P)
#define DEFINE_GET_ENUM_STRING(_CLASS_)
#define IMPLEMENT_ENUM_MAP(_CLASS_)

Macro Definition Documentation

◆ ADD_ENUM

◆ ADD_ENUM16

#define ADD_ENUM16 ( A,
B,
C,
D,
E,
F,
G,
H,
I,
J,
K,
L,
M,
N,
O,
P )
Value:
ADD_ENUM8(A, B, C, D, E, F, G, H) ADD_ENUM8(I, J, K, L, M, N, O, P)
#define ADD_ENUM8(A, B, C, D, E, F, G, H)
Definition FieldEnumDefines.hpp:18

◆ ADD_ENUM2

◆ ADD_ENUM4

◆ ADD_ENUM8

#define ADD_ENUM8 ( A,
B,
C,
D,
E,
F,
G,
H )

◆ DEFINE_GET_ENUM_STRING

#define DEFINE_GET_ENUM_STRING ( _CLASS_)
Value:
const char* _CLASS_::GetEnumString(int aValue) \
{ \
std::map<int, const char*>::iterator i = sEnumMap.find(aValue); \
if (i != sEnumMap.end()) \
{ \
return i->second; \
} \
return 0; \
}

◆ IMPLEMENT_ENUM_MAP

#define IMPLEMENT_ENUM_MAP ( _CLASS_)
Value:
std::map<int, const char*> _CLASS_::sEnumMap; \
DEFINE_GET_ENUM_STRING(_CLASS_) \
void _CLASS_::CreateEnumMap()
Copyrights Multiple, All Rights Reserved