31 lines
545 B
C++
31 lines
545 B
C++
/* -----------------------------------------------------------------------------
|
|
GSFramework
|
|
Copyright 2001-2013 Emmanuel Julien. All Rights Reserved.
|
|
----------------------------------------------------------------------------- */
|
|
|
|
|
|
#ifndef __NENUM_STRING__
|
|
#define __NENUM_STRING__
|
|
|
|
|
|
namespace GS {
|
|
namespace Reflection {
|
|
|
|
struct Enum
|
|
{
|
|
struct Dict
|
|
{
|
|
int enum_v;
|
|
const char *string_v;
|
|
};
|
|
|
|
static const char *toString(int, Dict *);
|
|
static int fromString(const char *, Dict *);
|
|
};
|
|
|
|
} // Reflection
|
|
} // GS
|
|
|
|
|
|
#endif // __NENUM_STRING__
|