aboutsummaryrefslogtreecommitdiff
path: root/docs/doxygen/nel/a03614.html
blob: 25b796b93324c8dd1f1c6da7495e3112fcb8a775 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
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&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>NLNET::CTransportClass Class Reference</h1><code>#include &lt;<a class="el" href="a06581.html">transport_class.h</a>&gt;</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 &nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03614.html#NLNET_1_1CTransportClassw15">TProp</a> { <br>
&nbsp;&nbsp;<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>
&nbsp;&nbsp;<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>
&nbsp;&nbsp;<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>
&nbsp;&nbsp;<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&nbsp;</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&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03614.html#NLNET_1_1CTransportClasse0">displayLocalRegisteredClass</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</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&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03614.html#NLNET_1_1CTransportClasse1">init</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</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&nbsp;</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> &amp;instance)</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03614.html#NLNET_1_1CTransportClasse3">release</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</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>
      &nbsp;
    </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>&nbsp;</td><td>
</td></tr>
<tr><td valign=top><em><a class="anchor" name="NLNET_1_1CTransportClassw15NLNET_1_1CTransportClassw10" doxytag="PropUInt16" ></a>PropUInt16</em>&nbsp;</td><td>
</td></tr>
<tr><td valign=top><em><a class="anchor" name="NLNET_1_1CTransportClassw15NLNET_1_1CTransportClassw11" doxytag="PropUInt32" ></a>PropUInt32</em>&nbsp;</td><td>
</td></tr>
<tr><td valign=top><em><a class="anchor" name="NLNET_1_1CTransportClassw15NLNET_1_1CTransportClassw12" doxytag="PropUInt64" ></a>PropUInt64</em>&nbsp;</td><td>
</td></tr>
<tr><td valign=top><em><a class="anchor" name="NLNET_1_1CTransportClassw15NLNET_1_1CTransportClassw8" doxytag="PropSInt8" ></a>PropSInt8</em>&nbsp;</td><td>
</td></tr>
<tr><td valign=top><em><a class="anchor" name="NLNET_1_1CTransportClassw15NLNET_1_1CTransportClassw5" doxytag="PropSInt16" ></a>PropSInt16</em>&nbsp;</td><td>
</td></tr>
<tr><td valign=top><em><a class="anchor" name="NLNET_1_1CTransportClassw15NLNET_1_1CTransportClassw6" doxytag="PropSInt32" ></a>PropSInt32</em>&nbsp;</td><td>
</td></tr>
<tr><td valign=top><em><a class="anchor" name="NLNET_1_1CTransportClassw15NLNET_1_1CTransportClassw7" doxytag="PropSInt64" ></a>PropSInt64</em>&nbsp;</td><td>
</td></tr>
<tr><td valign=top><em><a class="anchor" name="NLNET_1_1CTransportClassw15NLNET_1_1CTransportClassw0" doxytag="PropBool" ></a>PropBool</em>&nbsp;</td><td>
</td></tr>
<tr><td valign=top><em><a class="anchor" name="NLNET_1_1CTransportClassw15NLNET_1_1CTransportClassw3" doxytag="PropFloat" ></a>PropFloat</em>&nbsp;</td><td>
</td></tr>
<tr><td valign=top><em><a class="anchor" name="NLNET_1_1CTransportClassw15NLNET_1_1CTransportClassw2" doxytag="PropDouble" ></a>PropDouble</em>&nbsp;</td><td>
</td></tr>
<tr><td valign=top><em><a class="anchor" name="NLNET_1_1CTransportClassw15NLNET_1_1CTransportClassw9" doxytag="PropString" ></a>PropString</em>&nbsp;</td><td>
</td></tr>
<tr><td valign=top><em><a class="anchor" name="NLNET_1_1CTransportClassw15NLNET_1_1CTransportClassw1" doxytag="PropDataSetRow" ></a>PropDataSetRow</em>&nbsp;</td><td>
</td></tr>
<tr><td valign=top><em><a class="anchor" name="NLNET_1_1CTransportClassw15NLNET_1_1CTransportClassw4" doxytag="PropSheetId" ></a>PropSheetId</em>&nbsp;</td><td>
</td></tr>
<tr><td valign=top><em><a class="anchor" name="NLNET_1_1CTransportClassw15NLNET_1_1CTransportClassw14" doxytag="PropUKN" ></a>PropUKN</em>&nbsp;</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 &amp; 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">(&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="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">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap><code> [static]</code></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </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:&gt; 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">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap><code> [static]</code></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </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()-&gt;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 &lt; PropUKN); DummyProp[<a class="code" href="a03614.html#NLNET_1_1CTransportClassw15NLNET_1_1CTransportClassw13">PropUInt8</a>] = <span class="keyword">new</span> CTransportClass::CRegisteredProp&lt;uint8&gt;;
00342         <a class="code" href="a04199.html#a6">nlassert</a> (PropUInt16 &lt; PropUKN); DummyProp[<a class="code" href="a03614.html#NLNET_1_1CTransportClassw15NLNET_1_1CTransportClassw10">PropUInt16</a>] = <span class="keyword">new</span> CTransportClass::CRegisteredProp&lt;uint16&gt;;
00343         <a class="code" href="a04199.html#a6">nlassert</a> (PropUInt32 &lt; PropUKN); DummyProp[<a class="code" href="a03614.html#NLNET_1_1CTransportClassw15NLNET_1_1CTransportClassw11">PropUInt32</a>] = <span class="keyword">new</span> CTransportClass::CRegisteredProp&lt;uint32&gt;;
00344         <a class="code" href="a04199.html#a6">nlassert</a> (PropUInt64 &lt; PropUKN); DummyProp[<a class="code" href="a03614.html#NLNET_1_1CTransportClassw15NLNET_1_1CTransportClassw12">PropUInt64</a>] = <span class="keyword">new</span> CTransportClass::CRegisteredProp&lt;uint64&gt;;
00345         <a class="code" href="a04199.html#a6">nlassert</a> (PropSInt8 &lt; PropUKN); DummyProp[<a class="code" href="a03614.html#NLNET_1_1CTransportClassw15NLNET_1_1CTransportClassw8">PropSInt8</a>] = <span class="keyword">new</span> CTransportClass::CRegisteredProp&lt;sint8&gt;;
00346         <a class="code" href="a04199.html#a6">nlassert</a> (PropSInt16 &lt; PropUKN); DummyProp[<a class="code" href="a03614.html#NLNET_1_1CTransportClassw15NLNET_1_1CTransportClassw5">PropSInt16</a>] = <span class="keyword">new</span> CTransportClass::CRegisteredProp&lt;sint16&gt;;
00347         <a class="code" href="a04199.html#a6">nlassert</a> (PropSInt32 &lt; PropUKN); DummyProp[<a class="code" href="a03614.html#NLNET_1_1CTransportClassw15NLNET_1_1CTransportClassw6">PropSInt32</a>] = <span class="keyword">new</span> CTransportClass::CRegisteredProp&lt;sint32&gt;;
00348         <a class="code" href="a04199.html#a6">nlassert</a> (PropSInt64 &lt; PropUKN); DummyProp[<a class="code" href="a03614.html#NLNET_1_1CTransportClassw15NLNET_1_1CTransportClassw7">PropSInt64</a>] = <span class="keyword">new</span> CTransportClass::CRegisteredProp&lt;sint64&gt;;
00349         <a class="code" href="a04199.html#a6">nlassert</a> (PropBool &lt; PropUKN); DummyProp[<a class="code" href="a03614.html#NLNET_1_1CTransportClassw15NLNET_1_1CTransportClassw0">PropBool</a>] = <span class="keyword">new</span> CTransportClass::CRegisteredProp&lt;bool&gt;;
00350         <a class="code" href="a04199.html#a6">nlassert</a> (PropFloat &lt; PropUKN); DummyProp[<a class="code" href="a03614.html#NLNET_1_1CTransportClassw15NLNET_1_1CTransportClassw3">PropFloat</a>] = <span class="keyword">new</span> CTransportClass::CRegisteredProp&lt;float&gt;;
00351         <a class="code" href="a04199.html#a6">nlassert</a> (PropDouble &lt; PropUKN); DummyProp[<a class="code" href="a03614.html#NLNET_1_1CTransportClassw15NLNET_1_1CTransportClassw2">PropDouble</a>] = <span class="keyword">new</span> CTransportClass::CRegisteredProp&lt;double&gt;;
00352         <a class="code" href="a04199.html#a6">nlassert</a> (PropString &lt; PropUKN); DummyProp[<a class="code" href="a03614.html#NLNET_1_1CTransportClassw15NLNET_1_1CTransportClassw9">PropString</a>] = <span class="keyword">new</span> CTransportClass::CRegisteredProp&lt;string&gt;;
00353 <span class="comment">//      nlassert (PropDataSetRow &lt; PropUKN); DummyProp[PropDataSetRow] = new CTransportClass::CRegisteredProp&lt;TDataSetRow&gt;;</span>
00354 <span class="comment">//      nlassert (PropEntityId &lt; PropUKN); DummyProp[PropEntityId] = new CTransportClass::CRegisteredProp&lt;CEntityId&gt;;</span>
00355         <a class="code" href="a04199.html#a6">nlassert</a> (PropSheetId &lt; PropUKN); DummyProp[<a class="code" href="a03614.html#NLNET_1_1CTransportClassw15NLNET_1_1CTransportClassw4">PropSheetId</a>] = <span class="keyword">new</span> CTransportClass::CRegisteredProp&lt;CSheetId&gt;;
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()-&gt;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">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="a03614.html">CTransportClass</a> &amp;&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>instance</em>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap><code> [static]</code></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </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>&nbsp;</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 = &amp;instance;
00199 
00200         <span class="comment">// fill name and props</span>
00201         TempRegisteredClass.Instance-&gt;description ();
00202 
00203         <span class="comment">// add the new registered class in the array</span>
00204         LocalRegisteredClass[TempRegisteredClass.Instance-&gt;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">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap><code> [static]</code></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </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 &lt; 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>