Elm
2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
|
#include <elm/rtti/Type.h>
Public Member Functions | |
virtual | ~Enumerable (void) |
virtual const Type & | type (void) const =0 |
virtual int | valueFor (string text) const =0 |
virtual cstring | nameFor (int value) const =0 |
This interface is provided by type supporting enumerated data.
|
virtual |
|
pure virtual |
Find the name corresponding to the gi en enumerated value.
value | Value to look text for. |
Implemented in Enum.
Referenced by TextSerializer::onEnum(), and XOMElementSerializer::onEnum().
Get the type corresponding to this enumerable interface.
Implemented in Enum.
|
pure virtual |
text | Text of the value for. |
Implemented in Enum.
Referenced by XOMUnserializer::onEnum().