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 Member Functions

virtual ~EnumMapBase ()
virtual const std::string & FromEnum (long int i) const =0
virtual long int FromString (const std::string &str) const =0


Detailed Description

A base type for all templated EnumMap types.

Definition at line 42 of file Enum.h.


Constructor & Destructor Documentation

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

Virtual dtor.

Definition at line 46 of file Enum.h.


Member Function Documentation

virtual const std::string& GG::EnumMapBase::FromEnum ( long 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 long 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 Sat Mar 26 07:08:38 2011 for GG by  doxygen 1.5.9