?? typereg_8h.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> <a class="qindex" href="hierarchy.html">Class Hierarchy</a> <a class="qindex" href="annotated.html">Compound List</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="functions.html">Compound Members</a> <a class="qindex" href="globals.html">File Members</a> </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 <map></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 </td><td valign=bottom><b>CTypeCreator</b></td></tr><tr><td nowrap align=right valign=top>class </td><td valign=bottom><b>CTypeMaker</b></td></tr><tr><td nowrap align=right valign=top>class </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 </td><td valign=bottom><a class="el" href="typereg_8h.html#a0">ZIG_SERIALIZABLE_CLASS_H</a>(X)</td></tr><tr><td> </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 </td><td valign=bottom><a class="el" href="typereg_8h.html#a1">ZIG_SERIALIZABLE_CLASS_CPP</a>(X) CTypeCreator <X> X::oCreator;</td></tr><tr><td> </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">( </td> <td class="md" nowrap valign="top">X </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p><b>Value:</b><div class="fragment"><pre><span class="keyword">static</span> CTypeCreator<X> 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 + -