diff options
author | neodarz <neodarz@neodarz.net> | 2018-08-11 20:21:34 +0200 |
---|---|---|
committer | neodarz <neodarz@neodarz.net> | 2018-08-11 20:21:34 +0200 |
commit | 0ea5fc66924303d1bf73ba283a383e2aadee02f2 (patch) | |
tree | 2568e71a7ccc44ec23b8bb3f0ff97fb6bf2ed709 /docs/doxygen/nel/a03614.html | |
download | nevrax-website-self-hostable-0ea5fc66924303d1bf73ba283a383e2aadee02f2.tar.xz nevrax-website-self-hostable-0ea5fc66924303d1bf73ba283a383e2aadee02f2.zip |
Initial commit
Diffstat (limited to 'docs/doxygen/nel/a03614.html')
-rw-r--r-- | docs/doxygen/nel/a03614.html | 384 |
1 files changed, 384 insertions, 0 deletions
diff --git a/docs/doxygen/nel/a03614.html b/docs/doxygen/nel/a03614.html new file mode 100644 index 00000000..25b796b9 --- /dev/null +++ b/docs/doxygen/nel/a03614.html @@ -0,0 +1,384 @@ +<!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: NLNET::CTransportClass 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 Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Data Structures</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="namespacemembers.html">Namespace Members</a> | <a class="qindex" href="functions.html">Data Fields</a> | <a class="qindex" href="globals.html">Globals</a> | <a class="qindex" href="pages.html">Related Pages</a> | <span class="search"><u>S</u>earch for <input class="search" type="text" name="query" value="" size="20" accesskey="s"/></span></form></div> +<h1>NLNET::CTransportClass Class Reference</h1><code>#include <<a class="el" href="a06581.html">transport_class.h</a>></code> +<p> +<hr><a name="_details"></a><h2>Detailed Description</h2> +You have to inherit this class and implement description() and callback() method. For an example of use, take a look at nel/samples/class_transport sample. <dl compact><dt><b>Author:</b></dt><dd>Vianney Lecroart <p> +Nevrax France </dd></dl> +<dl compact><dt><b>Date:</b></dt><dd>2002 </dd></dl> + +<p> + +<p> +Definition at line <a class="el" href="a06581.html#l00071">71</a> of file <a class="el" href="a06581.html">transport_class.h</a>.<table border=0 cellpadding=0 cellspacing=0> +<tr><td></td></tr> +<tr><td colspan=2><br><h2>Public Types</h2></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>enum </td><td class="memItemRight" valign=bottom><a class="el" href="a03614.html#NLNET_1_1CTransportClassw15">TProp</a> { <br> + <a class="el" href="a03614.html#NLNET_1_1CTransportClassw15NLNET_1_1CTransportClassw13">PropUInt8</a>, +<a class="el" href="a03614.html#NLNET_1_1CTransportClassw15NLNET_1_1CTransportClassw10">PropUInt16</a>, +<a class="el" href="a03614.html#NLNET_1_1CTransportClassw15NLNET_1_1CTransportClassw11">PropUInt32</a>, +<a class="el" href="a03614.html#NLNET_1_1CTransportClassw15NLNET_1_1CTransportClassw12">PropUInt64</a>, +<br> + <a class="el" href="a03614.html#NLNET_1_1CTransportClassw15NLNET_1_1CTransportClassw8">PropSInt8</a>, +<a class="el" href="a03614.html#NLNET_1_1CTransportClassw15NLNET_1_1CTransportClassw5">PropSInt16</a>, +<a class="el" href="a03614.html#NLNET_1_1CTransportClassw15NLNET_1_1CTransportClassw6">PropSInt32</a>, +<a class="el" href="a03614.html#NLNET_1_1CTransportClassw15NLNET_1_1CTransportClassw7">PropSInt64</a>, +<br> + <a class="el" href="a03614.html#NLNET_1_1CTransportClassw15NLNET_1_1CTransportClassw0">PropBool</a>, +<a class="el" href="a03614.html#NLNET_1_1CTransportClassw15NLNET_1_1CTransportClassw3">PropFloat</a>, +<a class="el" href="a03614.html#NLNET_1_1CTransportClassw15NLNET_1_1CTransportClassw2">PropDouble</a>, +<a class="el" href="a03614.html#NLNET_1_1CTransportClassw15NLNET_1_1CTransportClassw9">PropString</a>, +<br> + <a class="el" href="a03614.html#NLNET_1_1CTransportClassw15NLNET_1_1CTransportClassw1">PropDataSetRow</a>, +<a class="el" href="a03614.html#NLNET_1_1CTransportClassw15NLNET_1_1CTransportClassw4">PropSheetId</a>, +<a class="el" href="a03614.html#NLNET_1_1CTransportClassw15NLNET_1_1CTransportClassw14">PropUKN</a> +<br> + }</td></tr> + +<tr><td colspan=2><br><h2>Public Member Functions</h2></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual </td><td class="memItemRight" valign=bottom><a class="el" href="a03614.html#NLNET_1_1CTransportClassa0">~CTransportClass</a> ()</td></tr> + +<tr><td colspan=2><br><h2>Static Public Member Functions</h2></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a03614.html#NLNET_1_1CTransportClasse0">displayLocalRegisteredClass</a> ()</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Display registered transport class (debug purpose). <a href="#NLNET_1_1CTransportClasse0"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a03614.html#NLNET_1_1CTransportClasse1">init</a> ()</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Init the transport class system (must be called one time, in the IService5::init() for example). <a href="#NLNET_1_1CTransportClasse1"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a03614.html#NLNET_1_1CTransportClasse2">registerClass</a> (<a class="el" href="a03614.html">CTransportClass</a> &instance)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a03614.html#NLNET_1_1CTransportClasse3">release</a> ()</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Release the transport class system (must be called one time, in the IService5::release() for example). <a href="#NLNET_1_1CTransportClasse3"></a><br><br></td></tr> +</table> +<hr><h2>Member Enumeration Documentation</h2> +<a class="anchor" name="NLNET_1_1CTransportClassw15" doxytag="NLNET::CTransportClass::TProp" ></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"> enum <a class="el" href="a03614.html#NLNET_1_1CTransportClassw15">NLNET::CTransportClass::TProp</a> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Different types that we can use in a Transport class warning: if you add/change a prop, change also in <a class="el" href="a03614.html#NLNET_1_1CTransportClasse1">CTransportClass::init()</a> warning: PropUKN must be the last value (used to resize a vector)<dl compact><dt><b>Enumeration values: </b></dt><dd> +<table border=0 cellspacing=2 cellpadding=0> +<tr><td valign=top><em><a class="anchor" name="NLNET_1_1CTransportClassw15NLNET_1_1CTransportClassw13" doxytag="PropUInt8" ></a>PropUInt8</em> </td><td> +</td></tr> +<tr><td valign=top><em><a class="anchor" name="NLNET_1_1CTransportClassw15NLNET_1_1CTransportClassw10" doxytag="PropUInt16" ></a>PropUInt16</em> </td><td> +</td></tr> +<tr><td valign=top><em><a class="anchor" name="NLNET_1_1CTransportClassw15NLNET_1_1CTransportClassw11" doxytag="PropUInt32" ></a>PropUInt32</em> </td><td> +</td></tr> +<tr><td valign=top><em><a class="anchor" name="NLNET_1_1CTransportClassw15NLNET_1_1CTransportClassw12" doxytag="PropUInt64" ></a>PropUInt64</em> </td><td> +</td></tr> +<tr><td valign=top><em><a class="anchor" name="NLNET_1_1CTransportClassw15NLNET_1_1CTransportClassw8" doxytag="PropSInt8" ></a>PropSInt8</em> </td><td> +</td></tr> +<tr><td valign=top><em><a class="anchor" name="NLNET_1_1CTransportClassw15NLNET_1_1CTransportClassw5" doxytag="PropSInt16" ></a>PropSInt16</em> </td><td> +</td></tr> +<tr><td valign=top><em><a class="anchor" name="NLNET_1_1CTransportClassw15NLNET_1_1CTransportClassw6" doxytag="PropSInt32" ></a>PropSInt32</em> </td><td> +</td></tr> +<tr><td valign=top><em><a class="anchor" name="NLNET_1_1CTransportClassw15NLNET_1_1CTransportClassw7" doxytag="PropSInt64" ></a>PropSInt64</em> </td><td> +</td></tr> +<tr><td valign=top><em><a class="anchor" name="NLNET_1_1CTransportClassw15NLNET_1_1CTransportClassw0" doxytag="PropBool" ></a>PropBool</em> </td><td> +</td></tr> +<tr><td valign=top><em><a class="anchor" name="NLNET_1_1CTransportClassw15NLNET_1_1CTransportClassw3" doxytag="PropFloat" ></a>PropFloat</em> </td><td> +</td></tr> +<tr><td valign=top><em><a class="anchor" name="NLNET_1_1CTransportClassw15NLNET_1_1CTransportClassw2" doxytag="PropDouble" ></a>PropDouble</em> </td><td> +</td></tr> +<tr><td valign=top><em><a class="anchor" name="NLNET_1_1CTransportClassw15NLNET_1_1CTransportClassw9" doxytag="PropString" ></a>PropString</em> </td><td> +</td></tr> +<tr><td valign=top><em><a class="anchor" name="NLNET_1_1CTransportClassw15NLNET_1_1CTransportClassw1" doxytag="PropDataSetRow" ></a>PropDataSetRow</em> </td><td> +</td></tr> +<tr><td valign=top><em><a class="anchor" name="NLNET_1_1CTransportClassw15NLNET_1_1CTransportClassw4" doxytag="PropSheetId" ></a>PropSheetId</em> </td><td> +</td></tr> +<tr><td valign=top><em><a class="anchor" name="NLNET_1_1CTransportClassw15NLNET_1_1CTransportClassw14" doxytag="PropUKN" ></a>PropUKN</em> </td><td> +</td></tr> +</table> +</dl> + +<p> +Definition at line <a class="el" href="a06581.html#l00079">79</a> of file <a class="el" href="a06581.html">transport_class.h</a>. +<p> +<div class="fragment"><pre>00079 { +00080 <a class="code" href="a03614.html#NLNET_1_1CTransportClassw15NLNET_1_1CTransportClassw13">PropUInt8</a>, <a class="code" href="a03614.html#NLNET_1_1CTransportClassw15NLNET_1_1CTransportClassw10">PropUInt16</a>, <a class="code" href="a03614.html#NLNET_1_1CTransportClassw15NLNET_1_1CTransportClassw11">PropUInt32</a>, <a class="code" href="a03614.html#NLNET_1_1CTransportClassw15NLNET_1_1CTransportClassw12">PropUInt64</a>, +00081 <a class="code" href="a03614.html#NLNET_1_1CTransportClassw15NLNET_1_1CTransportClassw8">PropSInt8</a>, <a class="code" href="a03614.html#NLNET_1_1CTransportClassw15NLNET_1_1CTransportClassw5">PropSInt16</a>, <a class="code" href="a03614.html#NLNET_1_1CTransportClassw15NLNET_1_1CTransportClassw6">PropSInt32</a>, <a class="code" href="a03614.html#NLNET_1_1CTransportClassw15NLNET_1_1CTransportClassw7">PropSInt64</a>, +00082 <a class="code" href="a03614.html#NLNET_1_1CTransportClassw15NLNET_1_1CTransportClassw0">PropBool</a>, <a class="code" href="a03614.html#NLNET_1_1CTransportClassw15NLNET_1_1CTransportClassw3">PropFloat</a>, <a class="code" href="a03614.html#NLNET_1_1CTransportClassw15NLNET_1_1CTransportClassw2">PropDouble</a>, <a class="code" href="a03614.html#NLNET_1_1CTransportClassw15NLNET_1_1CTransportClassw9">PropString</a>, <a class="code" href="a03614.html#NLNET_1_1CTransportClassw15NLNET_1_1CTransportClassw1">PropDataSetRow</a>, <a class="code" href="a03614.html#NLNET_1_1CTransportClassw15NLNET_1_1CTransportClassw4">PropSheetId</a>, <a class="code" href="a03614.html#NLNET_1_1CTransportClassw15NLNET_1_1CTransportClassw14">PropUKN</a> }; +</pre></div> </td> + </tr> +</table> +<hr><h2>Constructor & Destructor Documentation</h2> +<a class="anchor" name="NLNET_1_1CTransportClassa0" doxytag="NLNET::CTransportClass::~CTransportClass" ></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 NLNET::CTransportClass::~<a class="el" href="a03614.html">CTransportClass</a> </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline, virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a06581.html#l00074">74</a> of file <a class="el" href="a06581.html">transport_class.h</a>. +<p> +<div class="fragment"><pre>00074 {} +</pre></div> </td> + </tr> +</table> +<hr><h2>Member Function Documentation</h2> +<a class="anchor" name="NLNET_1_1CTransportClasse0" doxytag="NLNET::CTransportClass::displayLocalRegisteredClass" ></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 NLNET::CTransportClass::displayLocalRegisteredClass </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [static]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Display registered transport class (debug purpose). +<p> + +<p> +Definition at line <a class="el" href="a06580.html#l00245">245</a> of file <a class="el" href="a06580.html">transport_class.cpp</a>. +<p> +References <a class="el" href="a05622.html#l00101">nldebug</a>. +<p> +<div class="fragment"><pre>00246 { +00247 <a class="code" href="a04199.html#a0">nldebug</a> (<span class="stringliteral">"NETTC:> LocalRegisteredClass:"</span>); +00248 <span class="keywordflow">for</span> (TRegisteredClass::iterator it = LocalRegisteredClass.begin(); it != LocalRegisteredClass.end (); it++) +00249 { +00250 <a class="code" href="a03614.html#NLNET_1_1CTransportClasse0">displayLocalRegisteredClass</a> ((*it).second); +00251 } +00252 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLNET_1_1CTransportClasse1" doxytag="NLNET::CTransportClass::init" ></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 NLNET::CTransportClass::init </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [static]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Init the transport class system (must be called one time, in the IService5::init() for example). +<p> + +<p> +Definition at line <a class="el" href="a06580.html#l00330">330</a> of file <a class="el" href="a06580.html">transport_class.cpp</a>. +<p> +References <a class="el" href="a06580.html#l00316">NLNET::CallbackArray</a>, <a class="el" href="a06580.html#l00322">NLNET::cbTCUpService()</a>, <a class="el" href="a05622.html#l00290">nlassert</a>, <a class="el" href="a03614.html#NLNET_1_1CTransportClassw15NLNET_1_1CTransportClassw0">PropBool</a>, <a class="el" href="a03614.html#NLNET_1_1CTransportClassw15NLNET_1_1CTransportClassw2">PropDouble</a>, <a class="el" href="a03614.html#NLNET_1_1CTransportClassw15NLNET_1_1CTransportClassw3">PropFloat</a>, <a class="el" href="a03614.html#NLNET_1_1CTransportClassw15NLNET_1_1CTransportClassw4">PropSheetId</a>, <a class="el" href="a03614.html#NLNET_1_1CTransportClassw15NLNET_1_1CTransportClassw5">PropSInt16</a>, <a class="el" href="a03614.html#NLNET_1_1CTransportClassw15NLNET_1_1CTransportClassw6">PropSInt32</a>, <a class="el" href="a03614.html#NLNET_1_1CTransportClassw15NLNET_1_1CTransportClassw7">PropSInt64</a>, <a class="el" href="a03614.html#NLNET_1_1CTransportClassw15NLNET_1_1CTransportClassw8">PropSInt8</a>, <a class="el" href="a03614.html#NLNET_1_1CTransportClassw15NLNET_1_1CTransportClassw9">PropString</a>, <a class="el" href="a03614.html#NLNET_1_1CTransportClassw15NLNET_1_1CTransportClassw10">PropUInt16</a>, <a class="el" href="a03614.html#NLNET_1_1CTransportClassw15NLNET_1_1CTransportClassw11">PropUInt32</a>, <a class="el" href="a03614.html#NLNET_1_1CTransportClassw15NLNET_1_1CTransportClassw12">PropUInt64</a>, <a class="el" href="a03614.html#NLNET_1_1CTransportClassw15NLNET_1_1CTransportClassw13">PropUInt8</a>, and <a class="el" href="a03614.html#NLNET_1_1CTransportClassw15NLNET_1_1CTransportClassw14">PropUKN</a>. +<p> +<div class="fragment"><pre>00331 { +00332 <span class="comment">// this isn't an error!</span> +00333 <span class="keywordflow">if</span> (Init) <span class="keywordflow">return</span>; +00334 +00335 CUnifiedNetwork::getInstance()->addCallbackArray (CallbackArray, <span class="keyword">sizeof</span> (CallbackArray) / <span class="keyword">sizeof</span> (CallbackArray[0])); +00336 +00337 <span class="comment">// create an instance of all d'ifferent prop types</span> +00338 +00339 DummyProp.resize (PropUKN); +00340 +00341 <a class="code" href="a04199.html#a6">nlassert</a> (PropUInt8 < PropUKN); DummyProp[<a class="code" href="a03614.html#NLNET_1_1CTransportClassw15NLNET_1_1CTransportClassw13">PropUInt8</a>] = <span class="keyword">new</span> CTransportClass::CRegisteredProp<uint8>; +00342 <a class="code" href="a04199.html#a6">nlassert</a> (PropUInt16 < PropUKN); DummyProp[<a class="code" href="a03614.html#NLNET_1_1CTransportClassw15NLNET_1_1CTransportClassw10">PropUInt16</a>] = <span class="keyword">new</span> CTransportClass::CRegisteredProp<uint16>; +00343 <a class="code" href="a04199.html#a6">nlassert</a> (PropUInt32 < PropUKN); DummyProp[<a class="code" href="a03614.html#NLNET_1_1CTransportClassw15NLNET_1_1CTransportClassw11">PropUInt32</a>] = <span class="keyword">new</span> CTransportClass::CRegisteredProp<uint32>; +00344 <a class="code" href="a04199.html#a6">nlassert</a> (PropUInt64 < PropUKN); DummyProp[<a class="code" href="a03614.html#NLNET_1_1CTransportClassw15NLNET_1_1CTransportClassw12">PropUInt64</a>] = <span class="keyword">new</span> CTransportClass::CRegisteredProp<uint64>; +00345 <a class="code" href="a04199.html#a6">nlassert</a> (PropSInt8 < PropUKN); DummyProp[<a class="code" href="a03614.html#NLNET_1_1CTransportClassw15NLNET_1_1CTransportClassw8">PropSInt8</a>] = <span class="keyword">new</span> CTransportClass::CRegisteredProp<sint8>; +00346 <a class="code" href="a04199.html#a6">nlassert</a> (PropSInt16 < PropUKN); DummyProp[<a class="code" href="a03614.html#NLNET_1_1CTransportClassw15NLNET_1_1CTransportClassw5">PropSInt16</a>] = <span class="keyword">new</span> CTransportClass::CRegisteredProp<sint16>; +00347 <a class="code" href="a04199.html#a6">nlassert</a> (PropSInt32 < PropUKN); DummyProp[<a class="code" href="a03614.html#NLNET_1_1CTransportClassw15NLNET_1_1CTransportClassw6">PropSInt32</a>] = <span class="keyword">new</span> CTransportClass::CRegisteredProp<sint32>; +00348 <a class="code" href="a04199.html#a6">nlassert</a> (PropSInt64 < PropUKN); DummyProp[<a class="code" href="a03614.html#NLNET_1_1CTransportClassw15NLNET_1_1CTransportClassw7">PropSInt64</a>] = <span class="keyword">new</span> CTransportClass::CRegisteredProp<sint64>; +00349 <a class="code" href="a04199.html#a6">nlassert</a> (PropBool < PropUKN); DummyProp[<a class="code" href="a03614.html#NLNET_1_1CTransportClassw15NLNET_1_1CTransportClassw0">PropBool</a>] = <span class="keyword">new</span> CTransportClass::CRegisteredProp<bool>; +00350 <a class="code" href="a04199.html#a6">nlassert</a> (PropFloat < PropUKN); DummyProp[<a class="code" href="a03614.html#NLNET_1_1CTransportClassw15NLNET_1_1CTransportClassw3">PropFloat</a>] = <span class="keyword">new</span> CTransportClass::CRegisteredProp<float>; +00351 <a class="code" href="a04199.html#a6">nlassert</a> (PropDouble < PropUKN); DummyProp[<a class="code" href="a03614.html#NLNET_1_1CTransportClassw15NLNET_1_1CTransportClassw2">PropDouble</a>] = <span class="keyword">new</span> CTransportClass::CRegisteredProp<double>; +00352 <a class="code" href="a04199.html#a6">nlassert</a> (PropString < PropUKN); DummyProp[<a class="code" href="a03614.html#NLNET_1_1CTransportClassw15NLNET_1_1CTransportClassw9">PropString</a>] = <span class="keyword">new</span> CTransportClass::CRegisteredProp<string>; +00353 <span class="comment">// nlassert (PropDataSetRow < PropUKN); DummyProp[PropDataSetRow] = new CTransportClass::CRegisteredProp<TDataSetRow>;</span> +00354 <span class="comment">// nlassert (PropEntityId < PropUKN); DummyProp[PropEntityId] = new CTransportClass::CRegisteredProp<CEntityId>;</span> +00355 <a class="code" href="a04199.html#a6">nlassert</a> (PropSheetId < PropUKN); DummyProp[<a class="code" href="a03614.html#NLNET_1_1CTransportClassw15NLNET_1_1CTransportClassw4">PropSheetId</a>] = <span class="keyword">new</span> CTransportClass::CRegisteredProp<CSheetId>; +00356 +00357 <span class="comment">// we have to know when a service comes, so add callback (put the callback before all other one because we have to send this message first)</span> +00358 CUnifiedNetwork::getInstance()->setServiceUpCallback(<span class="stringliteral">"*"</span>, cbTCUpService, NULL, <span class="keyword">false</span>); +00359 +00360 Init = <span class="keyword">true</span>; +00361 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLNET_1_1CTransportClasse2" doxytag="NLNET::CTransportClass::registerClass" ></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 NLNET::CTransportClass::registerClass </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a03614.html">CTransportClass</a> & </td> + <td class="mdname1" valign="top" nowrap> <em>instance</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [static]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Call this function to register a new transport class. <dl compact><dt><b>Parameters:</b></dt><dd> + <table border="0" cellspacing="2" cellpadding="0"> + <tr><td valign=top><em>instance</em> </td><td>A reference to a GLOBAL space of the instance of this transport class. It will be used when receive this class from network.</td></tr> + </table> +</dl> + +<p> +Definition at line <a class="el" href="a06580.html#l00186">186</a> of file <a class="el" href="a06580.html">transport_class.cpp</a>. +<p> +References <a class="el" href="a05622.html#l00290">nlassert</a>. +<p> +<div class="fragment"><pre>00187 { +00188 <a class="code" href="a04199.html#a6">nlassert</a> (Init); +00189 <a class="code" href="a04199.html#a6">nlassert</a> (Mode == 0); +00190 +00191 <span class="comment">// set the mode to register</span> +00192 Mode = 3; +00193 +00194 <span class="comment">// clear the current class</span> +00195 TempRegisteredClass.clear (); +00196 +00197 <span class="comment">// set the instance pointer</span> +00198 TempRegisteredClass.Instance = &instance; +00199 +00200 <span class="comment">// fill name and props</span> +00201 TempRegisteredClass.Instance->description (); +00202 +00203 <span class="comment">// add the new registered class in the array</span> +00204 LocalRegisteredClass[TempRegisteredClass.Instance->Name] = TempRegisteredClass; +00205 +00206 <span class="comment">// set to mode none</span> +00207 Mode = 0; +00208 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLNET_1_1CTransportClasse3" doxytag="NLNET::CTransportClass::release" ></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 NLNET::CTransportClass::release </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [static]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Release the transport class system (must be called one time, in the IService5::release() for example). +<p> + +<p> +Definition at line <a class="el" href="a06580.html#l00363">363</a> of file <a class="el" href="a06580.html">transport_class.cpp</a>. +<p> +References <a class="el" href="a05981.html#l00105">uint</a>. +<p> +<div class="fragment"><pre>00364 { +00365 unregisterClass (); +00366 +00367 <span class="keywordflow">for</span> (<a class="code" href="a04558.html#a15">uint</a> i = 0; i < DummyProp.size (); i++) +00368 { +00369 <span class="keyword">delete</span> DummyProp[i]; +00370 } +00371 DummyProp.clear (); +00372 } +</pre></div> </td> + </tr> +</table> +<hr>The documentation for this class was generated from the following files:<ul> +<li><a class="el" href="a06581.html">transport_class.h</a><li><a class="el" href="a06580.html">transport_class.cpp</a></ul> +<hr size="1"><address style="align: right;"><small>Generated on Tue Mar 16 14:05:06 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> |