first commit
This commit is contained in:
30
include/platform/reflection/nenum_string.h
Normal file
30
include/platform/reflection/nenum_string.h
Normal file
@ -0,0 +1,30 @@
|
||||
/* -----------------------------------------------------------------------------
|
||||
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__
|
||||
Reference in New Issue
Block a user