📄 notifier__ext_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>notifier_ext.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="namespaces.html">Namespace List</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>notifier_ext.h File Reference</h1><p><a href="notifier__ext_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><a class="el" href="classPNotifierList.html">PNotifierList</a></td></tr><tr><td nowrap align=right valign=top>class </td><td valign=bottom><a class="el" href="classPSmartNotifieeRegistrar.html">PSmartNotifieeRegistrar</a></td></tr><tr><td nowrap align=right valign=top>class </td><td valign=bottom><a class="el" href="classPSmartNotifierFunction.html">PSmartNotifierFunction</a></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="notifier__ext_8h.html#a0">PDECLARE_SMART_NOTIFIEE</a> <a class="el" href="classPSmartNotifieeRegistrar.html">PSmartNotifieeRegistrar</a> m_Registrar; \</td></tr><tr><td nowrap align=right valign=top>#define </td><td valign=bottom><a class="el" href="notifier__ext_8h.html#a1">PCREATE_SMART_NOTIFIEE</a> m_Registrar.Init(this)</td></tr><tr><td nowrap align=right valign=top>#define </td><td valign=bottom><a class="el" href="notifier__ext_8h.html#a2">PDECLARE_SMART_NOTIFIER</a>(notifier, notifiee, func)</td></tr><tr><td nowrap align=right valign=top>#define </td><td valign=bottom><a class="el" href="notifier__ext_8h.html#a3">PCREATE_SMART_NOTIFIER</a>(func) <a class="el" href="classPNotifier.html">PNotifier</a>(new func##_PSmartNotifier(m_Registrar.GetID()))</td></tr></table><hr><h2>Define Documentation</h2><a name="a1" doxytag="notifier_ext.h::PCREATE_SMART_NOTIFIEE"></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 PCREATE_SMART_NOTIFIEE m_Registrar.Init(this) </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p> </td> </tr></table><a name="a3" doxytag="notifier_ext.h::PCREATE_SMART_NOTIFIER"></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 PCREATE_SMART_NOTIFIER</td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">func </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap> <a class="el" href="classPNotifier.html">PNotifier</a>(new func##_PSmartNotifier(m_Registrar.GetID())) </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p> </td> </tr></table><a name="a0" doxytag="notifier_ext.h::PDECLARE_SMART_NOTIFIEE"></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 PDECLARE_SMART_NOTIFIEE <a class="el" href="classPSmartNotifieeRegistrar.html">PSmartNotifieeRegistrar</a> m_Registrar; \ </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p> </td> </tr></table><a name="a2" doxytag="notifier_ext.h::PDECLARE_SMART_NOTIFIER"></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 PDECLARE_SMART_NOTIFIER</td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">notifier, <tr> <td></td> <td></td> <td class="md" nowrap>notifiee, <tr> <td></td> <td></td> <td class="md" nowrap>func </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">class </span>func##_PSmartNotifier : <span class="keyword">public</span> <a class="code" href="classPSmartNotifierFunction.html">PSmartNotifierFunction</a> { \ <span class="keyword">public</span>: \ func##_PSmartNotifier(<span class="keywordtype">unsigned</span> id) : <a class="code" href="classPSmartNotifierFunction.html">PSmartNotifierFunction</a>(id) { } \ <span class="keyword">virtual</span> <span class="keywordtype">void</span> Call(<a class="code" href="classPObject.html">PObject</a> & note, INT extra) <span class="keyword">const</span> \ { \ <span class="keywordtype">void</span> * obj = GetNotifiee(); \ <span class="keywordflow">if</span> (obj) \ ((notifiee*)obj)->func((notifier &)note, extra); \ <span class="keywordflow">else</span> \ <a class="code" href="object_8h.html#a16">PTRACE</a>(2, <span class="stringliteral">"Invalid notifiee"</span>); \ } \ }; \ <span class="keyword">friend</span> <span class="keyword">class </span>func##_PSmartNotifier; \ <span class="keyword">virtual</span> <span class="keywordtype">void</span> func(notifier & note, INT extra)</pre></div> </td> </tr></table><hr><address style="align: right;"><small>Generated on Wed Sep 29 22:44:12 2004 for PWLib 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 + -