Go to the documentation of this file.
17 #error enum.h MUST be included prior to including this header
20#if !defined(ENUM_TYPE) || !defined(ENUM_DEF)
21 #error both ENUM_TYPE and ENUM_DEF macros must be defined before including this header
28 #undef ENUM_ITEM_WITH_VALUE
29 #define _MUST_RESTORE_ENUM_ITEM
34#define _xstr(s) _str(s)
37#define ENUM_ITEM(i) i,
38#define ENUM_ITEM_WITH_VALUE(i,v) i=v,
44#undef ENUM_ITEM_WITH_VALUE
48 #define ENUM_PREFIX ""
59 #define ENUM_ITEM_WITH_VALUE(i,v) {ENUM_TYPE::i,#i},
60 #define ENUM_ITEM(i) {ENUM_TYPE::i,#i},
62 #undef ENUM_ITEM_WITH_VALUE
67#define __TO_STRING(T) inline const char* __ ## T ## ToString(ENUM_TYPE value){ return EnumTraits<ENUM_TYPE>::name(value).value(); }
68#define _TO_STRING(T) __TO_STRING(T)
85#ifdef _MUST_RESTORE_ENUM_ITEM
86 #define ENUM_ITEM(element) element,
87 #define ENUM_ITEM_WITH_VALUE(element, val) element = val,
88 #undef _MUST_RESTORE_ENUM_ITEM
static constexpr std::initializer_list< EnumItem > value_to_name
static constexpr const char opt_prefix[]
static constexpr const char * enum_name
static constexpr size_t opt_prefix_len
This page is part of the
OOFEM-3.0 documentation. Copyright Copyright (C) 1994-2025 Borek Patzak
Bořek Patzák
Project e-mail:
oofem@fsv.cvut.cz
Generated at for OOFEM by
doxygen
1.15.0 written by Dimitri van Heesch,
© 1997-2011