OpendTect-6_4  6.4
Classes | Macros
enums.h File Reference
Include dependency graph for enums.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  EnumDef
 Holds data pertinent to a certain enum. It does not know the enum values themselves, but treat them as integers. More...
 
class  EnumDefImpl< ENUM >
 

Macros

#define mDeclareEnumUtils(enm)
 Some utilities surrounding the often needed enum <-> string table. More...
 
#define mDeclareNameSpaceEnumUtils(mod, enm)
 
#define _DefineEnumNames(prefix, enm, deflen, prettynm)
 
#define DefineEnumNames(clss, enm, deflen, prettynm)
 
#define DefineNameSpaceEnumNames(nmspc, enm, deflen, prettynm)
 
#define mDefineEnumUtils(clss, enm, prettynm)   DefineEnumNames(clss,enm,0,prettynm)
 
#define mDefineNameSpaceEnumUtils(nmspc, enm, prettynm)   DefineNameSpaceEnumNames(nmspc,enm,0,prettynm)
 
#define DeclareEnumUtils(enm)   mDeclareEnumUtils(enm)
 
#define DefineEnumUtils(clss, enm, prettynm)   mDefineEnumUtils(clss,enm,prettynm)
 
#define DefineNameSpaceEnumUtils(nmspc, enm, prettynm)   mDefineNameSpaceEnumUtils(nmspc,enm,prettynm)
 
#define DeclareNameSpaceEnumUtils(mod, enm)   mDeclareNameSpaceEnumUtils(mod,enm)
 
#define mEnumTr(str)   tr(str)
 

Macro Definition Documentation

#define _DefineEnumNames (   prefix,
  enm,
  deflen,
  prettynm 
)
#define DeclareEnumUtils (   enm)    mDeclareEnumUtils(enm)
#define DeclareNameSpaceEnumUtils (   mod,
  enm 
)    mDeclareNameSpaceEnumUtils(mod,enm)
#define DefineEnumNames (   clss,
  enm,
  deflen,
  prettynm 
)
Value:
ConstPtrMan<EnumDefImpl<clss::enm> > clss::enm##Definition_ = 0; \
_DefineEnumNames( clss, enm, deflen, prettynm )
#define _DefineEnumNames(prefix, enm, deflen, prettynm)
Definition: enums.h:286
Definition: ptrman.h:101
#define DefineEnumUtils (   clss,
  enm,
  prettynm 
)    mDefineEnumUtils(clss,enm,prettynm)
#define DefineNameSpaceEnumNames (   nmspc,
  enm,
  deflen,
  prettynm 
)
Value:
static ConstPtrMan<EnumDefImpl<nmspc::enm> > enm##Definition_ = 0; \
_DefineEnumNames( nmspc, enm, deflen, prettynm )
#define _DefineEnumNames(prefix, enm, deflen, prettynm)
Definition: enums.h:286
Definition: ptrman.h:101
#define DefineNameSpaceEnumUtils (   nmspc,
  enm,
  prettynm 
)    mDefineNameSpaceEnumUtils(nmspc,enm,prettynm)
#define mDeclareNameSpaceEnumUtils (   mod,
  enm 
)
Value:
mExtern(mod) const EnumDefImpl<enm>& enm##Def(); \
mExtern(mod) const char** enm##Names();\
extern const char* enm##Keys_[]; \
mExtern(mod) bool parseEnum(const IOPar&,const char*,enm&); \
mExtern(mod) bool parseEnum(const char*,enm&); \
mExtern(mod) bool parseEnum##enm(const char*,enm&); /*legacy */ \
mExtern(mod) enm parseEnum##enm(const char*); \
mExtern(mod) const char* toString(enm); \
mExtern(mod) uiString toUiString(enm); \
mExtern(mod) const char* get##enm##String(enm); /*legacy */
#define mExtern(module)
Definition: commondefs.h:166
Definition: enums.h:86
#define mDefineEnumUtils (   clss,
  enm,
  prettynm 
)    DefineEnumNames(clss,enm,0,prettynm)
#define mDefineNameSpaceEnumUtils (   nmspc,
  enm,
  prettynm 
)    DefineNameSpaceEnumNames(nmspc,enm,0,prettynm)
#define mEnumTr (   str)    tr(str)

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019