GG: GG::EnumMapBase Struct Reference

GG

- Main Page
- Related Pages
- Namespaces
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Member Functions | List of all members
GG::EnumMapBase Struct Referenceabstract

`#include <Enum.h>`

Inheritance diagram for GG::EnumMapBase:

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

## 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:

- Enum.h