#include <Enum.h>
Inheritance diagram for GG::EnumMapBase:
Public Types | |
enum | { BAD_VALUE = -5000000 } |
Public Member Functions | |
virtual | ~EnumMapBase () |
virtual const std::string & | FromEnum (int i) const=0 |
virtual int | FromString (const std::string &str) const=0 |
Definition at line 40 of file Enum.h.
virtual GG::EnumMapBase::~EnumMapBase | ( | ) | [inline, virtual] |
virtual const std::string& GG::EnumMapBase::FromEnum | ( | int | i | ) | const [pure virtual] |
Returns the string associated with the enumeration value i, or the empty string if i is unknown.
Implemented in GG::EnumMap< E >.
virtual int GG::EnumMapBase::FromString | ( | const std::string & | str | ) | const [pure virtual] |
Returns the enumeration value associated with the string str, or BAD_VALUE if str is unknown.
Implemented in GG::EnumMap< E >.