<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <title>GG: GG::EnumMapBase Struct Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <link href="doxygen.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td style="padding-left: 0.5em;"> <div id="projectname">GG </div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.1 --> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li class="current"><a href="annotated.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="classes.html"><span>Class Index</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> <div id="nav-path" class="navpath"> <ul> <li class="navelem"><a class="el" href="namespaceGG.html">GG</a></li><li class="navelem"><a class="el" href="structGG_1_1EnumMapBase.html">EnumMapBase</a></li> </ul> </div> </div><!-- top --> <div class="header"> <div class="summary"> <a href="#pub-methods">Public Member Functions</a> </div> <div class="headertitle"> <div class="title">GG::EnumMapBase Struct Reference</div> </div> </div><!--header--> <div class="contents"> <p><code>#include <<a class="el" href="Enum_8h_source.html">Enum.h</a>></code></p> <div class="dynheader"> Inheritance diagram for GG::EnumMapBase:</div> <div class="dyncontent"> <div class="center"> <img src="structGG_1_1EnumMapBase.png" usemap="#GG::EnumMapBase_map" alt=""/> <map id="GG::EnumMapBase_map" name="GG::EnumMapBase_map"> <area href="structGG_1_1EnumMap.html" title="A mapping between the values of an enum and the string representations of the enum's values..." alt="GG::EnumMap< E >" shape="rect" coords="0,56,124,80"/> </map> </div></div> <p><a href="structGG_1_1EnumMapBase-members.html">List of all members.</a></p> <table class="memberdecls"> <tr class="heading"><td colspan="2"><h2><a name="pub-methods"></a> Public Member Functions</h2></td></tr> <tr class="memitem:a9f18a08e3400d35330361deb188be840"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9f18a08e3400d35330361deb188be840"></a> virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="structGG_1_1EnumMapBase.html#a9f18a08e3400d35330361deb188be840">~EnumMapBase</a> ()</td></tr> <tr class="memitem:a04cbc636bf1b7798b42b3e467c224907"><td class="memItemLeft" align="right" valign="top">virtual const std::string & </td><td class="memItemRight" valign="bottom"><a class="el" href="structGG_1_1EnumMapBase.html#a04cbc636bf1b7798b42b3e467c224907">FromEnum</a> (long int i) const =0</td></tr> <tr class="memitem:a726de246b498b73aba5359c8a7e5e6fd"><td class="memItemLeft" align="right" valign="top">virtual long int </td><td class="memItemRight" valign="bottom"><a class="el" href="structGG_1_1EnumMapBase.html#a726de246b498b73aba5359c8a7e5e6fd">FromString</a> (const std::string &str) const =0</td></tr> </table> <hr/><a name="details" id="details"></a><h2>Detailed Description</h2> <div class="textblock"><p>A base type for all templated <a class="el" href="structGG_1_1EnumMap.html" title="A mapping between the values of an enum and the string representations of the enum's values...">EnumMap</a> types. </p> <p>Definition at line <a class="el" href="Enum_8h_source.html#l00042">42</a> of file <a class="el" href="Enum_8h_source.html">Enum.h</a>.</p> </div><hr/><h2>Member Function Documentation</h2> <a class="anchor" id="a04cbc636bf1b7798b42b3e467c224907"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">virtual const std::string& GG::EnumMapBase::FromEnum </td> <td>(</td> <td class="paramtype">long int </td> <td class="paramname"><em>i</em></td><td>)</td> <td> const</td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Returns the string associated with the enumeration value <em>i</em>, or the empty string if <em>i</em> is unknown. </p> <p>Implemented in <a class="el" href="structGG_1_1EnumMap.html#aae7ed1339695ffa83ace609ab61fe95f">GG::EnumMap< E ></a>.</p> </div> </div> <a class="anchor" id="a726de246b498b73aba5359c8a7e5e6fd"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">virtual long int GG::EnumMapBase::FromString </td> <td>(</td> <td class="paramtype">const std::string & </td> <td class="paramname"><em>str</em></td><td>)</td> <td> const</td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Returns the enumeration value associated with the string <em>str</em>, or BAD_VALUE if <em>str</em> is unknown. </p> <p>Implemented in <a class="el" href="structGG_1_1EnumMap.html#ab3002d6df0f711960e5b7a6f31d9ed2e">GG::EnumMap< E ></a>.</p> </div> </div> <hr/>The documentation for this struct was generated from the following file:<ul> <li><a class="el" href="Enum_8h_source.html">Enum.h</a></li> </ul> </div><!-- contents --> <!-- start footer part --> <hr class="footer"/><address class="footer"><small> Generated on Fri Jun 15 2012 15:13:31 for GG by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/> </a> 1.8.1 </small></address> </body> </html>