⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 typereg_8h.html

📁 用来介绍ZIG Library游戏网络引擎的文档
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>typereg.h File Reference</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.2.18 --><center><a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; <a class="qindex" href="globals.html">File Members</a> &nbsp; </center><hr><h1>typereg.h File Reference</h1>Defines support classes and macros for ZIG's "object serialization" support. <a href="#_details">More...</a><p><code>#include &lt;map&gt;</code><br><p><a href="typereg_8h-source.html">Go to the source code of this file.</a><table border=0 cellpadding=0 cellspacing=0><tr><td></td></tr><tr><td colspan=2><br><h2>Compounds</h2></td></tr><tr><td nowrap align=right valign=top>class &nbsp;</td><td valign=bottom><b>CTypeCreator</b></td></tr><tr><td nowrap align=right valign=top>class &nbsp;</td><td valign=bottom><b>CTypeMaker</b></td></tr><tr><td nowrap align=right valign=top>class &nbsp;</td><td valign=bottom><b>CTypeRegister</b></td></tr><tr><td colspan=2><br><h2>Defines</h2></td></tr><tr><td nowrap align=right valign=top>#define&nbsp;</td><td valign=bottom><a class="el" href="typereg_8h.html#a0">ZIG_SERIALIZABLE_CLASS_H</a>(X)</td></tr><tr><td>&nbsp;</td><td><font size=-1><em>MAGIC MACRO: must declare this like it was a member of class "X" when you want class "X" to be "serializable" (probably in a HEADER).</em> <a href="#a0"></a><em></em></font><br><br></td></tr><tr><td nowrap align=right valign=top><a name="a1" doxytag="typereg.h::ZIG_SERIALIZABLE_CLASS_CPP"></a>#define&nbsp;</td><td valign=bottom><a class="el" href="typereg_8h.html#a1">ZIG_SERIALIZABLE_CLASS_CPP</a>(X)&nbsp;&nbsp;&nbsp;CTypeCreator &lt;X&gt; X::oCreator;</td></tr><tr><td>&nbsp;</td><td><font size=-1><em>MAGIC MACRO: must declare this in the .CPP that implements the class.</em></font><br><br></td></tr></table><hr><a name="_details"></a><h2>Detailed Description</h2>Defines support classes and macros for ZIG's "object serialization" support.<p><p><hr><h2>Define Documentation</h2><a name="a0" doxytag="typereg.h::ZIG_SERIALIZABLE_CLASS_H"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> #define ZIG_SERIALIZABLE_CLASS_H</td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">X&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p><b>Value:</b><div class="fragment"><pre><span class="keyword">static</span> CTypeCreator&lt;X&gt; oCreator;                                 \    <span class="keyword">virtual</span> <span class="keywordtype">int</span> ZIG_GetMySizeof()<span class="keyword"> const </span>{<span class="keywordflow">return</span> <span class="keyword">sizeof</span>(X);}          \    <span class="keyword">virtual</span> <span class="keywordtype">int</span> ZIG_GetTypeId()<span class="keyword"> const </span>{<span class="keywordflow">return</span> oCreator.GetTypeId();}</pre></div>MAGIC MACRO: must declare this like it was a member of class "X" when you want class "X" to be "serializable" (probably in a HEADER).<p>    </td>  </tr></table><hr><address style="align: right;"><small>Generated on Mon Jan 24 21:14:23 2005 for ZIG by<a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border=0 width=110 height=53></a>1.2.18 </small></address></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -