GG::EnumMapBase Struct Reference

A base type for all templated EnumMap types. More...

#include <Enum.h>

Inheritance diagram for GG::EnumMapBase:

GG::EnumMap< E > List of all members.

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

Detailed Description

A base type for all templated EnumMap types.

Definition at line 40 of file Enum.h.


Member Enumeration Documentation

anonymous enum

Enumerator:
BAD_VALUE 

Definition at line 42 of file Enum.h.


Constructor & Destructor Documentation

virtual GG::EnumMapBase::~EnumMapBase (  )  [inline, virtual]

Virtual dtor.

Definition at line 44 of file Enum.h.


Member Function Documentation

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 >.


The documentation for this struct was generated from the following file:
Generated on Wed Mar 26 14:35:42 2008 for GG by  doxygen 1.5.2