aboutsummaryrefslogtreecommitdiff
path: root/docs/doxygen/nel/a02479.html
diff options
context:
space:
mode:
authorneodarz <neodarz@neodarz.net>2018-08-11 20:21:34 +0200
committerneodarz <neodarz@neodarz.net>2018-08-11 20:21:34 +0200
commit0ea5fc66924303d1bf73ba283a383e2aadee02f2 (patch)
tree2568e71a7ccc44ec23b8bb3f0ff97fb6bf2ed709 /docs/doxygen/nel/a02479.html
downloadnevrax-website-self-hostable-0ea5fc66924303d1bf73ba283a383e2aadee02f2.tar.xz
nevrax-website-self-hostable-0ea5fc66924303d1bf73ba283a383e2aadee02f2.zip
Initial commit
Diffstat (limited to '')
-rw-r--r--docs/doxygen/nel/a02479.html538
1 files changed, 538 insertions, 0 deletions
diff --git a/docs/doxygen/nel/a02479.html b/docs/doxygen/nel/a02479.html
new file mode 100644
index 00000000..6f518017
--- /dev/null
+++ b/docs/doxygen/nel/a02479.html
@@ -0,0 +1,538 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
+<title>NeL: NLMISC::CEventServer class Reference</title>
+<link href="doxygen.css" rel="stylesheet" type="text/css">
+</head><body>
+<!-- Generated by Doxygen 1.3.6 -->
+<div class="qindex"> <form class="search" action="search.php" method="get">
+<a class="qindex" href="main.html">Main&nbsp;Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical&nbsp;List</a> | <a class="qindex" href="annotated.html">Data&nbsp;Structures</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="namespacemembers.html">Namespace&nbsp;Members</a> | <a class="qindex" href="functions.html">Data&nbsp;Fields</a> | <a class="qindex" href="globals.html">Globals</a> | <a class="qindex" href="pages.html">Related&nbsp;Pages</a> | <span class="search"><u>S</u>earch&nbsp;for&nbsp;<input class="search" type="text" name="query" value="" size="20" accesskey="s"/></span></form></div>
+<h1>NLMISC::CEventServer Class Reference</h1><code>#include &lt;<a class="el" href="a05689.html">event_server.h</a>&gt;</code>
+<p>
+<hr><a name="_details"></a><h2>Detailed Description</h2>
+<a class="el" href="a02479.html">CEventServer</a> <dl compact><dt><b>Author:</b></dt><dd>Stephane Coutelas <p>
+Nevrax France </dd></dl>
+<dl compact><dt><b>Date:</b></dt><dd>2000 </dd></dl>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a05689.html#l00052">52</a> of file <a class="el" href="a05689.html">event_server.h</a>.<table border=0 cellpadding=0 cellspacing=0>
+<tr><td></td></tr>
+<tr><td colspan=2><br><h2>Public Member Functions</h2></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02479.html#NLMISC_1_1CEventServera0">addEmitter</a> (<a class="el" href="a03852.html">IEventEmitter</a> *emitter)</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02479.html#NLMISC_1_1CEventServera1">addListener</a> (<a class="el" href="a02341.html">CClassId</a> <a class="el" href="a04223.html#a564">id</a>, <a class="el" href="a02464.html">IEventListener</a> *listener)</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02479.html#NLMISC_1_1CEventServera2">postEvent</a> (<a class="el" href="a02461.html">CEvent</a> *event)</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02479.html#NLMISC_1_1CEventServera3">pump</a> (bool allWindows=false)</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02479.html#NLMISC_1_1CEventServera4">removeEmitter</a> (<a class="el" href="a03852.html">IEventEmitter</a> *emitter)</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02479.html#NLMISC_1_1CEventServera5">removeListener</a> (<a class="el" href="a02341.html">CClassId</a> <a class="el" href="a04223.html#a564">id</a>, <a class="el" href="a02464.html">IEventListener</a> *listener)</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>virtual&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02479.html#NLMISC_1_1CEventServera6">~CEventServer</a> ()</td></tr>
+
+<tr><td colspan=2><br><h2>Protected Member Functions</h2></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top>virtual bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02479.html#NLMISC_1_1CEventServerb0">pumpEvent</a> (<a class="el" href="a02461.html">CEvent</a> *event)</td></tr>
+
+<tr><td colspan=2><br><h2>Private Attributes</h2></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top>std::list&lt; <a class="el" href="a03852.html">IEventEmitter</a> * &gt;&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02479.html#NLMISC_1_1CEventServerr0">_Emitters</a></td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>std::list&lt; <a class="el" href="a02461.html">CEvent</a> * &gt;&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02479.html#NLMISC_1_1CEventServerr1">_Events</a></td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a05378.html#a46">mapListener</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02479.html#NLMISC_1_1CEventServerr2">_Listeners</a></td></tr>
+
+</table>
+<hr><h2>Constructor &amp; Destructor Documentation</h2>
+<a class="anchor" name="NLMISC_1_1CEventServera6" doxytag="NLMISC::CEventServer::~CEventServer" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> virtual NLMISC::CEventServer::~<a class="el" href="a02479.html">CEventServer</a> </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap><code> [inline, virtual]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a05689.html#l00059">59</a> of file <a class="el" href="a05689.html">event_server.h</a>.
+<p>
+<div class="fragment"><pre>00059 {}
+</pre></div> </td>
+ </tr>
+</table>
+<hr><h2>Member Function Documentation</h2>
+<a class="anchor" name="NLMISC_1_1CEventServera0" doxytag="NLMISC::CEventServer::addEmitter" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> void NLMISC::CEventServer::addEmitter </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top"><a class="el" href="a03852.html">IEventEmitter</a> *&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>emitter</em> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Add an Emitter to the server <dl compact><dt><b>Parameters:</b></dt><dd>
+ <table border="0" cellspacing="2" cellpadding="0">
+ <tr><td valign=top><em>emitter</em>&nbsp;</td><td></td></tr>
+ </table>
+</dl>
+
+<p>
+Definition at line <a class="el" href="a05688.html#l00136">136</a> of file <a class="el" href="a05688.html">event_server.cpp</a>.
+<p>
+Referenced by <a class="el" href="a05657.html#l00230">NL3D::CDriverUser::setDisplay()</a>.
+<p>
+<div class="fragment"><pre>00137 {
+00138 <a class="code" href="a02479.html#NLMISC_1_1CEventServerr0">_Emitters</a>.push_back(emitter);
+00139 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CEventServera1" doxytag="NLMISC::CEventServer::addListener" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> void NLMISC::CEventServer::addListener </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top"><a class="el" href="a02341.html">CClassId</a>&nbsp;</td>
+ <td class="mdname" nowrap> <em>id</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap><a class="el" href="a02464.html">IEventListener</a> *&nbsp;</td>
+ <td class="mdname" nowrap> <em>listener</em></td>
+ </tr>
+ <tr>
+ <td></td>
+ <td class="md">)&nbsp;</td>
+ <td class="md" colspan="2"></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Add a callback (associated with an id) <dl compact><dt><b>Parameters:</b></dt><dd>
+ <table border="0" cellspacing="2" cellpadding="0">
+ <tr><td valign=top><em>id</em>&nbsp;</td><td>of the <a class="el" href="a02461.html">CEvent</a> class to hook </td></tr>
+ <tr><td valign=top><em>listener</em>&nbsp;</td><td>to use with this event</td></tr>
+ </table>
+</dl>
+
+<p>
+Definition at line <a class="el" href="a05688.html#l00105">105</a> of file <a class="el" href="a05688.html">event_server.cpp</a>.
+<p>
+References <a class="el" href="a05689.html#l00054">_Listeners</a>.
+<p>
+Referenced by <a class="el" href="a05686.html#l00323">NL3D::CEvent3dMouseListener::addToServer()</a>, and <a class="el" href="a05684.html#l00058">NLMISC::CEventListenerAsync::addToServer()</a>.
+<p>
+<div class="fragment"><pre>00106 {
+00107 <a class="code" href="a02479.html#NLMISC_1_1CEventServerr2">_Listeners</a>.insert( mapListener::value_type(<span class="keywordtype">id</span>, listener));
+00108 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CEventServera2" doxytag="NLMISC::CEventServer::postEvent" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> void NLMISC::CEventServer::postEvent </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top"><a class="el" href="a02461.html">CEvent</a> *&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>event</em> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+add event to the list <dl compact><dt><b>Parameters:</b></dt><dd>
+ <table border="0" cellspacing="2" cellpadding="0">
+ <tr><td valign=top><em>event</em>&nbsp;</td><td></td></tr>
+ </table>
+</dl>
+
+<p>
+Definition at line <a class="el" href="a05688.html#l00041">41</a> of file <a class="el" href="a05688.html">event_server.cpp</a>.
+<p>
+<div class="fragment"><pre>00042 {
+00043 <a class="code" href="a02479.html#NLMISC_1_1CEventServerr1">_Events</a>.push_back(event);
+00044 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CEventServera3" doxytag="NLMISC::CEventServer::pump" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> void NLMISC::CEventServer::pump </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">bool&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>allWindows</em> = false </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+get call every callbacks associated with event id <dl compact><dt><b>Parameters:</b></dt><dd>
+ <table border="0" cellspacing="2" cellpadding="0">
+ <tr><td valign=top><em>allWindows</em>&nbsp;</td><td>is true : pump the messages of all windows, not only the driver window.</td></tr>
+ </table>
+</dl>
+
+<p>
+Definition at line <a class="el" href="a05688.html#l00051">51</a> of file <a class="el" href="a05688.html">event_server.cpp</a>.
+<p>
+References <a class="el" href="a05688.html#l00080">pumpEvent()</a>.
+<p>
+<div class="fragment"><pre>00052 {
+00053 std::list&lt;IEventEmitter*&gt;::iterator item = <a class="code" href="a02479.html#NLMISC_1_1CEventServerr0">_Emitters</a>.begin();
+00054
+00055 <span class="comment">// getting events from emitters</span>
+00056 <span class="keywordflow">while</span>(item!=<a class="code" href="a02479.html#NLMISC_1_1CEventServerr0">_Emitters</a>.end())
+00057 {
+00058 <span class="comment">// ask emitters to submit their events to server</span>
+00059 (*item)-&gt;submitEvents(*<span class="keyword">this</span>, allWindows);
+00060 item++;
+00061 }
+00062
+00063
+00064 std::list&lt;CEvent*&gt;::iterator itev = <a class="code" href="a02479.html#NLMISC_1_1CEventServerr1">_Events</a>.begin();
+00065
+00066 <span class="keywordflow">while</span>(itev!=<a class="code" href="a02479.html#NLMISC_1_1CEventServerr1">_Events</a>.end())
+00067 {
+00068 <span class="comment">// pump event</span>
+00069 <span class="keywordtype">bool</span> bDelete=<a class="code" href="a02479.html#NLMISC_1_1CEventServerb0">pumpEvent</a>(*itev);
+00070 <span class="keywordflow">if</span> (bDelete)
+00071 <span class="keyword">delete</span> *itev;
+00072 itev=<a class="code" href="a02479.html#NLMISC_1_1CEventServerr1">_Events</a>.erase (itev);
+00073 }
+00074 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CEventServerb0" doxytag="NLMISC::CEventServer::pumpEvent" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> bool NLMISC::CEventServer::pumpEvent </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top"><a class="el" href="a02461.html">CEvent</a> *&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>event</em> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap><code> [protected, virtual]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+call every callbacks associated with event id <dl compact><dt><b>Parameters:</b></dt><dd>
+ <table border="0" cellspacing="2" cellpadding="0">
+ <tr><td valign=top><em>event</em>&nbsp;</td><td></td></tr>
+ </table>
+</dl>
+<dl compact><dt><b>Returns:</b></dt><dd>true if the pointer must be delete, false if it not. (post to another message queue...)</dd></dl>
+
+<p>
+Definition at line <a class="el" href="a05688.html#l00080">80</a> of file <a class="el" href="a05688.html">event_server.cpp</a>.
+<p>
+References <a class="el" href="a05689.html#l00054">_Listeners</a>, and <a class="el" href="a05981.html#l00102">uint64</a>.
+<p>
+Referenced by <a class="el" href="a05688.html#l00051">pump()</a>.
+<p>
+<div class="fragment"><pre>00081 {
+00082 <span class="comment">// taking id</span>
+00083 <a class="code" href="a04558.html#a13">uint64</a> <span class="keywordtype">id</span> = (<a class="code" href="a04558.html#a13">uint64</a>) *event;
+00084
+00085 <span class="comment">// looking for the first occurence of id</span>
+00086 mapListener::iterator it = <a class="code" href="a02479.html#NLMISC_1_1CEventServerr2">_Listeners</a>.find(<span class="keywordtype">id</span>);
+00087
+00088 <span class="comment">// calling every callbacks</span>
+00089 <span class="keywordflow">while</span>(it!=<a class="code" href="a02479.html#NLMISC_1_1CEventServerr2">_Listeners</a>.end() &amp;&amp; (<a class="code" href="a04558.html#a13">uint64</a>)(*it).first == <span class="keywordtype">id</span>)
+00090 {
+00091 IEventListener *a = (IEventListener *)((*it).second);
+00092 (*a) (*event);
+00093 it++;
+00094 }
+00095
+00096 <span class="comment">// delete the pointer</span>
+00097 <span class="keywordflow">return</span> <span class="keyword">true</span>;
+00098 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CEventServera4" doxytag="NLMISC::CEventServer::removeEmitter" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> void NLMISC::CEventServer::removeEmitter </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top"><a class="el" href="a03852.html">IEventEmitter</a> *&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>emitter</em> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Remove an Emitter from the server <dl compact><dt><b>Parameters:</b></dt><dd>
+ <table border="0" cellspacing="2" cellpadding="0">
+ <tr><td valign=top><em>emitter</em>&nbsp;</td><td></td></tr>
+ </table>
+</dl>
+
+<p>
+Definition at line <a class="el" href="a05688.html#l00145">145</a> of file <a class="el" href="a05688.html">event_server.cpp</a>.
+<p>
+Referenced by <a class="el" href="a05657.html#l00285">NL3D::CDriverUser::release()</a>.
+<p>
+<div class="fragment"><pre>00146 {
+00147 <a class="code" href="a02479.html#NLMISC_1_1CEventServerr0">_Emitters</a>.remove(emitter);
+00148 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CEventServera5" doxytag="NLMISC::CEventServer::removeListener" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> void NLMISC::CEventServer::removeListener </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top"><a class="el" href="a02341.html">CClassId</a>&nbsp;</td>
+ <td class="mdname" nowrap> <em>id</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap><a class="el" href="a02464.html">IEventListener</a> *&nbsp;</td>
+ <td class="mdname" nowrap> <em>listener</em></td>
+ </tr>
+ <tr>
+ <td></td>
+ <td class="md">)&nbsp;</td>
+ <td class="md" colspan="2"></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Remove a callback <dl compact><dt><b>Parameters:</b></dt><dd>
+ <table border="0" cellspacing="2" cellpadding="0">
+ <tr><td valign=top><em>id</em>&nbsp;</td><td>of event's callback </td></tr>
+ <tr><td valign=top><em>listener</em>&nbsp;</td><td>to be removed</td></tr>
+ </table>
+</dl>
+
+<p>
+Definition at line <a class="el" href="a05688.html#l00114">114</a> of file <a class="el" href="a05688.html">event_server.cpp</a>.
+<p>
+References <a class="el" href="a05689.html#l00054">_Listeners</a>.
+<p>
+Referenced by <a class="el" href="a05686.html#l00332">NL3D::CEvent3dMouseListener::removeFromServer()</a>, and <a class="el" href="a05684.html#l00065">NLMISC::CEventListenerAsync::removeFromServer()</a>.
+<p>
+<div class="fragment"><pre>00115 {
+00116 <span class="comment">// looking for the first occurence of id</span>
+00117 mapListener::iterator it = <a class="code" href="a02479.html#NLMISC_1_1CEventServerr2">_Listeners</a>.find(<span class="keywordtype">id</span>);
+00118
+00119 <span class="comment">// looking for occurence with the right callback</span>
+00120 <span class="keywordflow">while</span>(it!=<a class="code" href="a02479.html#NLMISC_1_1CEventServerr2">_Listeners</a>.end() &amp;&amp; (*it).first == <span class="keywordtype">id</span>)
+00121 {
+00122 <span class="keywordflow">if</span>((*it).second==listener)
+00123 {
+00124 <span class="comment">// erasing pair</span>
+00125 <a class="code" href="a02479.html#NLMISC_1_1CEventServerr2">_Listeners</a>.erase(it);
+00126 <span class="keywordflow">return</span>;
+00127 }
+00128 it++;
+00129 }
+00130 }
+</pre></div> </td>
+ </tr>
+</table>
+<hr><h2>Field Documentation</h2>
+<a class="anchor" name="NLMISC_1_1CEventServerr0" doxytag="NLMISC::CEventServer::_Emitters" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> std::list&lt;<a class="el" href="a03852.html">IEventEmitter</a>*&gt; <a class="el" href="a02479.html#NLMISC_1_1CEventServerr0">NLMISC::CEventServer::_Emitters</a><code> [private]</code>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a05689.html#l00055">55</a> of file <a class="el" href="a05689.html">event_server.h</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CEventServerr1" doxytag="NLMISC::CEventServer::_Events" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> std::list&lt;<a class="el" href="a02461.html">CEvent</a>*&gt; <a class="el" href="a02479.html#NLMISC_1_1CEventServerr1">NLMISC::CEventServer::_Events</a><code> [private]</code>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a05689.html#l00056">56</a> of file <a class="el" href="a05689.html">event_server.h</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CEventServerr2" doxytag="NLMISC::CEventServer::_Listeners" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> <a class="el" href="a05378.html#a46">mapListener</a> <a class="el" href="a02479.html#NLMISC_1_1CEventServerr2">NLMISC::CEventServer::_Listeners</a><code> [private]</code>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a05689.html#l00054">54</a> of file <a class="el" href="a05689.html">event_server.h</a>.
+<p>
+Referenced by <a class="el" href="a05688.html#l00105">addListener()</a>, <a class="el" href="a05688.html#l00080">pumpEvent()</a>, and <a class="el" href="a05688.html#l00114">removeListener()</a>. </td>
+ </tr>
+</table>
+<hr>The documentation for this class was generated from the following files:<ul>
+<li><a class="el" href="a05689.html">event_server.h</a><li><a class="el" href="a05688.html">event_server.cpp</a></ul>
+<hr size="1"><address style="align: right;"><small>Generated on Tue Mar 16 13:12:07 2004 for NeL by
+<a href="http://www.doxygen.org/index.html">
+<img src="doxygen.png" alt="doxygen" align="middle" border=0 >
+</a>1.3.6 </small></address>
+</body>
+</html>