aboutsummaryrefslogtreecommitdiff
path: root/docs/doxygen/nel/a02669.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/a02669.html
downloadnevrax-website-self-hostable-0ea5fc66924303d1bf73ba283a383e2aadee02f2.tar.xz
nevrax-website-self-hostable-0ea5fc66924303d1bf73ba283a383e2aadee02f2.zip
Initial commit
Diffstat (limited to 'docs/doxygen/nel/a02669.html')
-rw-r--r--docs/doxygen/nel/a02669.html503
1 files changed, 503 insertions, 0 deletions
diff --git a/docs/doxygen/nel/a02669.html b/docs/doxygen/nel/a02669.html
new file mode 100644
index 00000000..e16ec2f5
--- /dev/null
+++ b/docs/doxygen/nel/a02669.html
@@ -0,0 +1,503 @@
+<!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::CInputDeviceServer 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::CInputDeviceServer Class Reference</h1><code>#include &lt;<a class="el" href="a05821.html">input_device_server.h</a>&gt;</code>
+<p>
+<hr><a name="_details"></a><h2>Detailed Description</h2>
+Base class for an input device server. Unlike an event server, it manages several devices, and can sort their events (by date for example). It keeps a list of active devices. It can poll datas from every active device. It can sort devices messages to submit them in correct order to a <a class="el" href="a02479.html">CEventServer</a>.
+<p>
+
+<p>
+Definition at line <a class="el" href="a05821.html#l00047">47</a> of file <a class="el" href="a05821.html">input_device_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><a class="el" href="a03855.html">IInputDevice</a> *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02669.html#NLMISC_1_1CInputDeviceServera0">getDevice</a> (<a class="el" href="a04558.html#a15">uint</a> <a class="el" href="a04223.html#a566">index</a>)</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a15">uint</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02669.html#NLMISC_1_1CInputDeviceServera1">getNumDevices</a> () const </td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02669.html#NLMISC_1_1CInputDeviceServera2">isDevice</a> (<a class="el" href="a03855.html">IInputDevice</a> *device) const </td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Test wether the given device is handled by this server. <a href="#NLMISC_1_1CInputDeviceServera2"></a><br><br></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02669.html#NLMISC_1_1CInputDeviceServera3">poll</a> (<a class="el" href="a02479.html">CEventServer</a> *server)</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Retrieve datas from the devices, and submit them to the given <a class="el" href="a02479.html">CEventServer</a>. <a href="#NLMISC_1_1CInputDeviceServera3"></a><br><br></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02669.html#NLMISC_1_1CInputDeviceServera4">registerDevice</a> (<a class="el" href="a03855.html">IInputDevice</a> *device)</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">register a device into this device server. <a href="#NLMISC_1_1CInputDeviceServera4"></a><br><br></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02669.html#NLMISC_1_1CInputDeviceServera5">removeDevice</a> (<a class="el" href="a03855.html">IInputDevice</a> *device)</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">remove a device from this server (but does not delete it). <a href="#NLMISC_1_1CInputDeviceServera5"></a><br><br></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02669.html#NLMISC_1_1CInputDeviceServera6">submitEvent</a> (<a class="el" href="a03857.html">IInputDeviceEvent</a> *deviceEvent)</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Allow an input device to register an event. The event will then be deleted by this server. <a href="#NLMISC_1_1CInputDeviceServera6"></a><br><br></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top>virtual&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02669.html#NLMISC_1_1CInputDeviceServera7">~CInputDeviceServer</a> ()</td></tr>
+
+<tr><td colspan=2><br><h2>Private Types</h2></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top>typedef std::vector&lt; <a class="el" href="a03855.html">IInputDevice</a> * &gt;&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02669.html#NLMISC_1_1CInputDeviceServery0">TDeviceCont</a></td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>typedef std::vector&lt; <a class="el" href="a03857.html">IInputDeviceEvent</a> * &gt;&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02669.html#NLMISC_1_1CInputDeviceServery1">TEventCont</a></td></tr>
+
+<tr><td colspan=2><br><h2>Private Attributes</h2></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a02669.html#NLMISC_1_1CInputDeviceServery0">TDeviceCont</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02669.html#NLMISC_1_1CInputDeviceServerr0">_Devices</a></td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a02669.html#NLMISC_1_1CInputDeviceServery1">TEventCont</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02669.html#NLMISC_1_1CInputDeviceServerr1">_Events</a></td></tr>
+
+</table>
+<hr><h2>Member Typedef Documentation</h2>
+<a class="anchor" name="NLMISC_1_1CInputDeviceServery0" doxytag="NLMISC::CInputDeviceServer::TDeviceCont" ></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"> typedef std::vector&lt;<a class="el" href="a03855.html">IInputDevice</a> *&gt; <a class="el" href="a02669.html#NLMISC_1_1CInputDeviceServery0">NLMISC::CInputDeviceServer::TDeviceCont</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="a05821.html#l00067">67</a> of file <a class="el" href="a05821.html">input_device_server.h</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CInputDeviceServery1" doxytag="NLMISC::CInputDeviceServer::TEventCont" ></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"> typedef std::vector&lt;<a class="el" href="a03857.html">IInputDeviceEvent</a> *&gt; <a class="el" href="a02669.html#NLMISC_1_1CInputDeviceServery1">NLMISC::CInputDeviceServer::TEventCont</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="a05821.html#l00068">68</a> of file <a class="el" href="a05821.html">input_device_server.h</a>. </td>
+ </tr>
+</table>
+<hr><h2>Constructor &amp; Destructor Documentation</h2>
+<a class="anchor" name="NLMISC_1_1CInputDeviceServera7" doxytag="NLMISC::CInputDeviceServer::~CInputDeviceServer" ></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::CInputDeviceServer::~<a class="el" href="a02669.html">CInputDeviceServer</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="a05821.html#l00065">65</a> of file <a class="el" href="a05821.html">input_device_server.h</a>.
+<p>
+<div class="fragment"><pre>00065 {}
+</pre></div> </td>
+ </tr>
+</table>
+<hr><h2>Member Function Documentation</h2>
+<a class="anchor" name="NLMISC_1_1CInputDeviceServera0" doxytag="NLMISC::CInputDeviceServer::getDevice" ></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="a03855.html">IInputDevice</a>* NLMISC::CInputDeviceServer::getDevice </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a15">uint</a>&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>index</em> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap><code> [inline]</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="a05821.html#l00057">57</a> of file <a class="el" href="a05821.html">input_device_server.h</a>.
+<p>
+References <a class="el" href="a05821.html#l00070">_Devices</a>, <a class="el" href="a05646.html#l00225">index</a>, and <a class="el" href="a05981.html#l00105">uint</a>.
+<p>
+<div class="fragment"><pre>00057 { <span class="keywordflow">return</span> <a class="code" href="a02669.html#NLMISC_1_1CInputDeviceServerr0">_Devices</a>[<a class="code" href="a04223.html#a566">index</a>]; }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CInputDeviceServera1" doxytag="NLMISC::CInputDeviceServer::getNumDevices" ></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="a04558.html#a15">uint</a> NLMISC::CInputDeviceServer::getNumDevices </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> const<code> [inline]</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="a05821.html#l00055">55</a> of file <a class="el" href="a05821.html">input_device_server.h</a>.
+<p>
+References <a class="el" href="a05821.html#l00070">_Devices</a>, and <a class="el" href="a05981.html#l00105">uint</a>.
+<p>
+<div class="fragment"><pre>00055 { <span class="keywordflow">return</span> <a class="code" href="a02669.html#NLMISC_1_1CInputDeviceServerr0">_Devices</a>.size(); }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CInputDeviceServera2" doxytag="NLMISC::CInputDeviceServer::isDevice" ></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::CInputDeviceServer::isDevice </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top"><a class="el" href="a03855.html">IInputDevice</a> *&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>device</em> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap> const</td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Test wether the given device is handled by this server.
+<p>
+
+<p>
+Definition at line <a class="el" href="a05820.html#l00050">50</a> of file <a class="el" href="a05820.html">input_device_server.cpp</a>.
+<p>
+References <a class="el" href="a05821.html#l00070">_Devices</a>.
+<p>
+Referenced by <a class="el" href="a05820.html#l00035">registerDevice()</a>.
+<p>
+<div class="fragment"><pre>00051 {
+00052 TDeviceCont::const_iterator it = std::find(<a class="code" href="a02669.html#NLMISC_1_1CInputDeviceServerr0">_Devices</a>.begin(), <a class="code" href="a02669.html#NLMISC_1_1CInputDeviceServerr0">_Devices</a>.end(), device);
+00053 <span class="keywordflow">return</span> it != <a class="code" href="a02669.html#NLMISC_1_1CInputDeviceServerr0">_Devices</a>.end();
+00054 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CInputDeviceServera3" doxytag="NLMISC::CInputDeviceServer::poll" ></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::CInputDeviceServer::poll </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top"><a class="el" href="a02479.html">CEventServer</a> *&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>server</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>
+Retrieve datas from the devices, and submit them to the given <a class="el" href="a02479.html">CEventServer</a>.
+<p>
+
+<p>
+Definition at line <a class="el" href="a05820.html#l00067">67</a> of file <a class="el" href="a05820.html">input_device_server.cpp</a>.
+<p>
+References <a class="el" href="a05821.html#l00070">_Devices</a>, <a class="el" href="a05622.html#l00290">nlassert</a>, and <a class="el" href="a05818.html#l00081">NLMISC::IInputDevice::transitionOccured()</a>.
+<p>
+<div class="fragment"><pre>00068 {
+00069 <a class="code" href="a04199.html#a6">nlassert</a>(<a class="code" href="a02669.html#NLMISC_1_1CInputDeviceServerr1">_Events</a>.empty());
+00070 TDeviceCont::iterator deviceIt;
+00071 <span class="keywordflow">for</span> (deviceIt = <a class="code" href="a02669.html#NLMISC_1_1CInputDeviceServerr0">_Devices</a>.begin(); deviceIt != <a class="code" href="a02669.html#NLMISC_1_1CInputDeviceServerr0">_Devices</a>.end(); ++deviceIt)
+00072 {
+00073 (*deviceIt)-&gt;begin(server);
+00074 (*deviceIt)-&gt;poll(<span class="keyword">this</span>);
+00075 }
+00076 <span class="comment">// Sort the messages to get the right dates.</span>
+00077 std::sort(<a class="code" href="a02669.html#NLMISC_1_1CInputDeviceServerr1">_Events</a>.begin(), <a class="code" href="a02669.html#NLMISC_1_1CInputDeviceServerr1">_Events</a>.end(), CInputDeviceEventLess());
+00078 <span class="comment">// submit the result to the server</span>
+00079 IInputDevice *lastVisitedDevice = NULL;
+00080 TEventCont::iterator eventIt;
+00081 <span class="keywordflow">for</span> (eventIt = <a class="code" href="a02669.html#NLMISC_1_1CInputDeviceServerr1">_Events</a>.begin(); eventIt != <a class="code" href="a02669.html#NLMISC_1_1CInputDeviceServerr1">_Events</a>.end(); ++eventIt)
+00082 {
+00083 <span class="comment">// see if this message is from a previous device then the last we visited.</span>
+00084 <span class="keywordflow">if</span> (lastVisitedDevice &amp;&amp; (*eventIt)-&gt;Emitter != lastVisitedDevice)
+00085 {
+00086 <span class="comment">// yes, tells that a transition occured</span>
+00087 lastVisitedDevice-&gt;transitionOccured(server, *eventIt);
+00088 lastVisitedDevice = (*eventIt)-&gt;Emitter;
+00089 }
+00090 <a class="code" href="a04199.html#a6">nlassert</a>((*eventIt)-&gt;Emitter != NULL);
+00091 (*eventIt)-&gt;Emitter-&gt;submit(*eventIt, server);
+00092 }
+00093 <span class="comment">//</span>
+00094 <span class="keywordflow">for</span> (deviceIt = <a class="code" href="a02669.html#NLMISC_1_1CInputDeviceServerr0">_Devices</a>.begin(); deviceIt != <a class="code" href="a02669.html#NLMISC_1_1CInputDeviceServerr0">_Devices</a>.end(); ++deviceIt)
+00095 {
+00096 (*deviceIt)-&gt;transitionOccured(server, NULL);
+00097 }
+00098 <span class="comment">// delete the messages</span>
+00099 <span class="keywordflow">for</span> (eventIt = <a class="code" href="a02669.html#NLMISC_1_1CInputDeviceServerr1">_Events</a>.begin(); eventIt != <a class="code" href="a02669.html#NLMISC_1_1CInputDeviceServerr1">_Events</a>.end(); ++eventIt)
+00100 {
+00101 <span class="keyword">delete</span> *eventIt;
+00102 }
+00103 <span class="comment">//</span>
+00104 <a class="code" href="a02669.html#NLMISC_1_1CInputDeviceServerr1">_Events</a>.clear();
+00105 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CInputDeviceServera4" doxytag="NLMISC::CInputDeviceServer::registerDevice" ></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::CInputDeviceServer::registerDevice </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top"><a class="el" href="a03855.html">IInputDevice</a> *&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>device</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>
+register a device into this device server.
+<p>
+
+<p>
+Definition at line <a class="el" href="a05820.html#l00035">35</a> of file <a class="el" href="a05820.html">input_device_server.cpp</a>.
+<p>
+References <a class="el" href="a05821.html#l00070">_Devices</a>, <a class="el" href="a05820.html#l00050">isDevice()</a>, and <a class="el" href="a05622.html#l00290">nlassert</a>.
+<p>
+<div class="fragment"><pre>00036 {
+00037 <a class="code" href="a04199.html#a6">nlassert</a>(!<a class="code" href="a02669.html#NLMISC_1_1CInputDeviceServera2">isDevice</a>(device));
+00038 <a class="code" href="a02669.html#NLMISC_1_1CInputDeviceServerr0">_Devices</a>.push_back(device);
+00039 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CInputDeviceServera5" doxytag="NLMISC::CInputDeviceServer::removeDevice" ></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::CInputDeviceServer::removeDevice </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top"><a class="el" href="a03855.html">IInputDevice</a> *&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>device</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 a device from this server (but does not delete it).
+<p>
+
+<p>
+Definition at line <a class="el" href="a05820.html#l00042">42</a> of file <a class="el" href="a05820.html">input_device_server.cpp</a>.
+<p>
+References <a class="el" href="a05821.html#l00070">_Devices</a>, and <a class="el" href="a05622.html#l00290">nlassert</a>.
+<p>
+<div class="fragment"><pre>00043 {
+00044 TDeviceCont::iterator it = std::find(<a class="code" href="a02669.html#NLMISC_1_1CInputDeviceServerr0">_Devices</a>.begin(), <a class="code" href="a02669.html#NLMISC_1_1CInputDeviceServerr0">_Devices</a>.end(), device);
+00045 <a class="code" href="a04199.html#a6">nlassert</a>(it != <a class="code" href="a02669.html#NLMISC_1_1CInputDeviceServerr0">_Devices</a>.end());
+00046 <a class="code" href="a02669.html#NLMISC_1_1CInputDeviceServerr0">_Devices</a>.erase(it);
+00047 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CInputDeviceServera6" doxytag="NLMISC::CInputDeviceServer::submitEvent" ></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::CInputDeviceServer::submitEvent </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top"><a class="el" href="a03857.html">IInputDeviceEvent</a> *&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>deviceEvent</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>
+Allow an input device to register an event. The event will then be deleted by this server.
+<p>
+
+<p>
+Definition at line <a class="el" href="a05820.html#l00108">108</a> of file <a class="el" href="a05820.html">input_device_server.cpp</a>.
+<p>
+<div class="fragment"><pre>00109 {
+00110 <a class="code" href="a02669.html#NLMISC_1_1CInputDeviceServerr1">_Events</a>.push_back(deviceEvent);
+00111 }
+</pre></div> </td>
+ </tr>
+</table>
+<hr><h2>Field Documentation</h2>
+<a class="anchor" name="NLMISC_1_1CInputDeviceServerr0" doxytag="NLMISC::CInputDeviceServer::_Devices" ></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="a02669.html#NLMISC_1_1CInputDeviceServery0">TDeviceCont</a> <a class="el" href="a02669.html#NLMISC_1_1CInputDeviceServerr0">NLMISC::CInputDeviceServer::_Devices</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="a05821.html#l00070">70</a> of file <a class="el" href="a05821.html">input_device_server.h</a>.
+<p>
+Referenced by <a class="el" href="a05821.html#l00057">getDevice()</a>, <a class="el" href="a05821.html#l00055">getNumDevices()</a>, <a class="el" href="a05820.html#l00050">isDevice()</a>, <a class="el" href="a05820.html#l00067">poll()</a>, <a class="el" href="a05820.html#l00035">registerDevice()</a>, and <a class="el" href="a05820.html#l00042">removeDevice()</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CInputDeviceServerr1" doxytag="NLMISC::CInputDeviceServer::_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"> <a class="el" href="a02669.html#NLMISC_1_1CInputDeviceServery1">TEventCont</a> <a class="el" href="a02669.html#NLMISC_1_1CInputDeviceServerr1">NLMISC::CInputDeviceServer::_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="a05821.html#l00071">71</a> of file <a class="el" href="a05821.html">input_device_server.h</a>. </td>
+ </tr>
+</table>
+<hr>The documentation for this class was generated from the following files:<ul>
+<li><a class="el" href="a05821.html">input_device_server.h</a><li><a class="el" href="a05820.html">input_device_server.cpp</a></ul>
+<hr size="1"><address style="align: right;"><small>Generated on Tue Mar 16 13:19:48 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>