aboutsummaryrefslogtreecommitdiff
path: root/docs/doxygen/nel/abstract_interface_h-source.html
blob: d5dfa837e544568e0d62331a73ea86d94fe762da (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
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
<!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<HTML>
<HEAD>
	<TITLE>nevrax.org : docs</TITLE>
	<LINK REL=stylesheet TYPE="text/css" HREF="http://www.nevrax.org/inc/css/nevrax.css">
	<link href="doxygen.css" rel="stylesheet" type="text/css">
</HEAD>
<BODY MARGINHEIGHT="0" MARGINWIDTH="0">

<!-- uplinks -->
<TABLE CELLSPACING=0 CELLPADDING=0  BORDER=0>
 <TR>
        <TD WIDTH=16><IMG  SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="16" HEIGHT="16" BORDER=0 ALT=""></TD>
        <TD WIDTH=140 BGCOLOR=#dddddd><IMG  SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="140" HEIGHT="16" BORDER=0 ALT=""></TD>
        <TD WIDTH=16><IMG  SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="16" HEIGHT="16" BORDER=0 ALT=""></TD>
        <TD><IMG width=6 height=14 SRC="http://www.nevrax.org/inc/img/reddots.gif" ALT="#" VSPACE=2 HSPACE=2 BORDER=0 ></TD><TD VALIGN=middle>&nbsp;<A CLASS=uplinks HREF=http://www.nevrax.org><b>Home</B></FONT></A>&nbsp;&nbsp;&nbsp;</TD>
        <TD><IMG  width=6 height=14  SRC="http://www.nevrax.org/inc/img/reddots.gif" ALT="#" VSPACE=2 HSPACE=2 BORDER=0 ></TD><TD VALIGN=middle>&nbsp;<A CLASS=uplinks HREF=http://www.nevrax.com><b>nevrax.com</B></FONT></A>&nbsp;&nbsp;&nbsp;</TD>
 </TR>
</TABLE> 

<!-- banner Nevrax -->
<TABLE CELLSPACING=0 CELLPADDING=0  BORDER=0 WIDTH=100%>
 <TR><TD  BGCOLOR="#000000" BACKGROUND="http://www.nevrax.org/inc/img/black_banner.jpg"><A HREF="http://www.nevrax.org"><IMG  SRC="http://www.nevrax.org/inc/img/nevrax.gif" WIDTH="170" HEIGHT="45" BORDER=0 ALT="Nevrax" ></A></TD></TR>
</TABLE>

<!-- main table -->
<TABLE CELLSPACING=0 CELLPADDING=0  BORDER=0 height=100%>
 <TR>
	<TD WIDTH=16><IMG  SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="16" HEIGHT="10" BORDER=0 ALT=""></TD>
	<TD WIDTH=140   BGCOLOR=#dddddd VALIGN=TOP ALIGN=middle><IMG  SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="140" HEIGHT="10" BORDER=0 ALT="">

		<!------ Begin Box ------>
		<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 BGCOLOR=black><TR><TD><TABLE border=0  cellspacing=2 cellpadding=0 width=120><tr><TD ALIGN=middle bgcolor=black>
		<FONT COLOR=white FACE="sans-serif"><B>Nevrax.org</B></FONT></TD></TR><tr><td  colspan=2 bgcolor=#FFFFFF>
		<TABLE cellspacing=0 cellpadding=1 border=0>
			<tr><td ALIGN=middle><a  class='linkbox' href="http://www.nevrax.org/news/" TITLE="Rubrique news"><img width=13 height=15  hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-news.gif ALT=#></A></td><td><a  class='linkbox' href="http://www.nevrax.org/news/" TITLE="News">News</a></td></tr>
			<tr><td ALIGN=middle><a  class='linkbox' href="http://www.nevrax.org/mail/" TITLE="Rubrique mail"><img width=15 height=11  hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-mail.gif ALT=#></A></td><td><a  class='linkbox' href="http://www.nevrax.org/mail/" TITLE="Mailing list archive">Mailing-list</a></td></tr>
			<tr><td ALIGN=middle><a  class='linkbox' href="http://www.nevrax.org/docs/" TITLE="Rubrique docs"><img width=14 height=16  hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-docs.gif ALT=#></A></td><td><a  class='linkbox' href="http://www.nevrax.org/docs/" TITLE="Documentation">Documentation</a></td></tr>
			<tr><td ALIGN=middle><a  class='linkbox' href="http://www.nevrax.org/cvs/" TITLE="Rubrique cvs"><img width=13 height=17  hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-cvs.gif ALT=#></A></td><td><a  class='linkbox' href="http://www.nevrax.org/cvs/" TITLE="CVS Web">CVS</a></td></tr>
			<tr><td ALIGN=middle><a  class='linkbox' href="http://www.nevrax.org/bugs/" TITLE="Rubrique bugs"><img width=20 height=16  hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-bugs.gif ALT=#></A></td><td><a  class='linkbox' href="http://www.nevrax.org/bugs/" TITLE="Bugtracking">Bugs</a></td></tr>
			<tr><td ALIGN=middle><a  class='linkbox' href="http://www.nevrax.org/GPL.php3" TITLE="Rubrique license"><img  width=18 height=12   hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-gpl.gif ALT=#></A></td><td><a  class='linkbox' href="http://www.nevrax.org/GPL.php3" TITLE="License">License</a></td></tr>
		</TABLE>
		</TD></TR></TABLE></TD></TR></TABLE>
		<!------ End Box  ------>

	</TD>
	<TD WIDTH=15><IMG  SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="16" HEIGHT="16" BORDER=0 ALT=""></TD>
	<TD ALIGN=left valign=top><IMG  SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="140" HEIGHT="10" BORDER=0 ALT="">

<!-- title -->
<TABLE  background="http://www.nevrax.org/inc/img/redline.gif" CELLSPACING=0 CELLPADDING=0  BORDER=0 width=100%><tr><td>
<A HREF="http://www.nevrax.org/docs/"><img src="http://www.nevrax.org/inc/img/t_docs.gif" ALT="Docs" HEIGHT=20 BORDER=0></A>
</td><td><IMG  SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="1" HEIGHT="1" BORDER=0 ALT="">
</td></tr></table>
&nbsp;

<!-- block -->
<TABLE  bgcolor="#dddddd" CELLSPACING=0 CELLPADDING=0  BORDER=0 width=100%><tr><td width=1% valign=middle><img width=6 height=14 hspace=2 vspace=2 src="http://www.nevrax.org/inc/img/reddots.gif"></TD>
	<TD><B>Documentation</B></TD>
	<TD ALIGN=RIGHT>&nbsp;</td>
</tr></table>
<!-- Generated by Doxygen 1.2.2 on Thu Feb 15 22:00:31 2001 -->
<center>
<a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="namespaces.html">Namespace List</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="classes.html">Alphabetical List</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="namespacemembers.html">Namespace Members</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; <a class="qindex" href="globals.html">File Members</a> &nbsp; <a class="qindex" href="pages.html">Related Pages</a> &nbsp; <a class="qindexRef" doxygen="_cgi:http://www.nevrax.org/cgi-bin/nel-search.cgi" href="http://www.nevrax.org/cgi-bin/nel-search.cgi">Search</a> &nbsp; </center>
<hr><h1>abstract_interface.h</h1><a href="abstract_interface_h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 
00007 <font class="comment">/* Copyright, 2000 Nevrax Ltd.
</font>00008 <font class="comment"> *
</font>00009 <font class="comment"> * This file is part of NEVRAX NEL.
</font>00010 <font class="comment"> * NEVRAX NEL is free software; you can redistribute it and/or modify
</font>00011 <font class="comment"> * it under the terms of the GNU General Public License as published by
</font>00012 <font class="comment"> * the Free Software Foundation; either version 2, or (at your option)
</font>00013 <font class="comment"> * any later version.
</font>00014 <font class="comment">
</font>00015 <font class="comment"> * NEVRAX NEL is distributed in the hope that it will be useful, but
</font>00016 <font class="comment"> * WITHOUT ANY WARRANTY; without even the implied warranty of
</font>00017 <font class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
</font>00018 <font class="comment"> * General Public License for more details.
</font>00019 <font class="comment">
</font>00020 <font class="comment"> * You should have received a copy of the GNU General Public License
</font>00021 <font class="comment"> * along with NEVRAX NEL; see the file COPYING. If not, write to the
</font>00022 <font class="comment"> * Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
</font>00023 <font class="comment"> * MA 02111-1307, USA.
</font>00024 <font class="comment"> */</font>
00025 
00026 <font class="preprocessor">#ifndef NL_ABSTRACT_H
</font>00027 <font class="preprocessor"></font><font class="preprocessor">#define NL_ABSTRACT_H
</font>00028 <font class="preprocessor"></font>
00029 <font class="preprocessor">#ifdef NL_OS_WINDOWS
</font>00030 <font class="preprocessor"></font>
00031 <font class="preprocessor">#pragma warning (disable: 4666)
</font>00032 <font class="preprocessor"></font><font class="preprocessor">#pragma warning (disable: 4786) 
</font>00033 <font class="preprocessor"></font><font class="preprocessor">#pragma warning (disable: 4620) 
</font>00034 <font class="preprocessor"></font><font class="preprocessor">#pragma warning (disable: 4275)
</font>00035 <font class="preprocessor"></font><font class="preprocessor">#pragma warning (disable: 4251)
</font>00036 <font class="preprocessor"></font>
00037 <font class="preprocessor">#endif
</font>00038 <font class="preprocessor"></font>
00039 <font class="preprocessor">#include &lt;map&gt;</font>
00040 <font class="preprocessor">#include &lt;iostream&gt;</font>
00041 <font class="preprocessor">#include "<a class="code" href="file_h.html">nel/misc/file.h</a>"</font>
00042 <font class="preprocessor">#include "<a class="code" href="ai_exception_h.html">nel/ai/e/ai_exception.h</a>"</font>
00043 
00044 <font class="keyword">namespace</font> NLAIC <font class="comment">//Gen pour general.</font>
00045 {
00047         <font class="keywordtype">char</font> *stringBuild(<font class="keyword">const</font> <font class="keywordtype">char</font> *str, ...);        
00048 
<a name="l00057"></a><a class="code" href="class_NLAIC__IPointerGestion.html">00057</a>         <font class="keyword">class </font>IPointerGestion : <font class="keyword">public</font> NLMISC::IStreamable
00058         {
00059         <font class="keyword">private</font>:
<a name="l00061"></a><a class="code" href="class_NLAIC__IPointerGestion.html#o0">00061</a>                 sint32 _Ref;
00062         <font class="keyword">public</font>:
00063 
<a name="l00065"></a><a class="code" href="class_NLAIC__IPointerGestion.html#a0">00065</a>                 IPointerGestion():_Ref(1)
00066                 {
00067                 }
00068 
<a name="l00070"></a><a class="code" href="class_NLAIC__IPointerGestion.html#a1">00070</a>                 IPointerGestion(<font class="keyword">const</font> IPointerGestion &amp;):_Ref(1)
00071                 {
00072                 }
00073                 
<a name="l00075"></a><a class="code" href="class_NLAIC__IPointerGestion.html#a2">00075</a>                 <font class="keywordtype">void</font> incRef()<font class="keyword">
</font>00076 <font class="keyword">                </font>{
00077                         _Ref ++;
00078                 }
00079                 
<a name="l00081"></a><a class="code" href="class_NLAIC__IPointerGestion.html#a3">00081</a>                 <font class="keyword">virtual</font> <font class="keywordtype">void</font> release()<font class="keyword">
</font>00082 <font class="keyword">                </font>{
00083                         <font class="keywordflow">if</font>(decRef() == 0) 
00084                                         <font class="keyword">delete</font> <font class="keyword">this</font>;
00085                 }
00086                 
<a name="l00088"></a><a class="code" href="class_NLAIC__IPointerGestion.html#a4">00088</a>                 sint32 decRef()<font class="keyword">
</font>00089 <font class="keyword">                </font>{
00090                         <font class="keywordflow">return</font> --_Ref ;
00091                 }
00092 
<a name="l00094"></a><a class="code" href="class_NLAIC__IPointerGestion.html#a5">00094</a>                 <font class="keyword">const</font> sint32 &amp;getRef()<font class="keyword"> const
</font>00095 <font class="keyword">                </font>{
00096                         <font class="keywordflow">return</font> _Ref;
00097                 }
00098 
<a name="l00099"></a><a class="code" href="class_NLAIC__IPointerGestion.html#a6">00099</a>                 <font class="keyword">virtual</font> ~IPointerGestion()<font class="keyword">
</font>00100 <font class="keyword">                </font>{                                               
00101                 }
00102 
00103                 
00105 
<a name="l00106"></a><a class="code" href="class_NLAIC__IPointerGestion.html#a7">00106</a>                 <font class="keyword">virtual</font> std::string     getClassName()<font class="keyword">
</font>00107 <font class="keyword">                </font>{
00108                         <font class="keywordflow">return</font> std::string(<font class="stringliteral">"&lt;unnamed&gt;"</font>);
00109                 }
<a name="l00110"></a><a class="code" href="class_NLAIC__IPointerGestion.html#a8">00110</a>                 <font class="keyword">virtual</font> <font class="keywordtype">void</font> serial(<a class="code" href="class_NLMISC__IStream.html">NLMISC::IStream</a>     &amp;) <font class="keywordflow">throw</font>(<a class="code" href="class_NLMISC__EStream.html">NLMISC::EStream</a>)
00111                 {
00112                 }
00114 
00115 
00116         };
00117         
00118         <font class="keyword">class </font>CIdentTypeAlloc;
00119         <font class="keyword">class </font>IClassCFactory;
00120         <font class="keyword">class </font>IBasicInterface;
00121         <font class="keyword">class </font>CTypeOfObject;
00122         <font class="keyword">class </font>CTypeOfOperator;
00123 
<a name="l00132"></a><a class="code" href="class_NLAIC__CIdentType.html">00132</a>         <font class="keyword">class </font>CIdentType: <font class="keyword">public</font> IPointerGestion
00133         {       
<a name="l00134"></a><a class="code" href="class_NLAIC__CIdentType.html#l0">00134</a>         <font class="keyword">friend</font> <font class="keyword">class </font>CIdentTypeAlloc;
00135         <font class="keyword">private</font>:
<a name="l00137"></a><a class="code" href="class_NLAIC__CIdentType.html#o0">00137</a>                 <font class="keywordtype">char</font> *_Ident;           
<a name="l00139"></a><a class="code" href="class_NLAIC__CIdentType.html#o1">00139</a>                 CTypeOfObject *_ObjType;
<a name="l00141"></a><a class="code" href="class_NLAIC__CIdentType.html#o2">00141</a>                 CTypeOfOperator *_OpSupport;
<a name="l00143"></a><a class="code" href="class_NLAIC__CIdentType.html#o3">00143</a>                 sint32 _Index;
00144 
00145         <font class="keyword">public</font>:
00147                 <font class="keyword">static</font> CIdentType VoidType;
00148 
00149         <font class="keyword">private</font>:
00150 
00152                 CIdentType(<font class="keyword">const</font> <font class="keywordtype">char</font> *ident,<font class="keyword">const</font> CTypeOfObject &amp;objType,<font class="keyword">const</font> CTypeOfOperator &amp;opSupport,sint32 index);
00153 
00154         <font class="keyword">public</font>:
00156                 CIdentType(<a class="code" href="class_NLMISC__IStream.html">NLMISC::IStream</a> &amp;);
00157 
00160                 CIdentType(<font class="keyword">const</font> <font class="keywordtype">char</font> *ident);
00161 
00165                 CIdentType(<font class="keyword">const</font> <font class="keywordtype">char</font> *ident,<font class="keyword">const</font> IClassCFactory &amp;classCFactory,
00166                                                                         <font class="keyword">const</font> CTypeOfObject &amp;objType,
00167                                                                         <font class="keyword">const</font> CTypeOfOperator &amp;opSupport);
00168 
00169                 CIdentType(<font class="keyword">const</font> CIdentType &amp;i);
00170                 ~CIdentType();
00171 
<a name="l00173"></a><a class="code" href="class_NLAIC__CIdentType.html#a5">00173</a>                 operator const char * ()<font class="keyword"> const
</font>00174 <font class="keyword">                </font>{
00175                         <font class="keywordflow">return</font> _Ident;
00176                 }
00177                                                 
00178         
00180                 <font class="keywordtype">void</font> operator = (<font class="keyword">const</font> CIdentType &amp;a);
00181 
<a name="l00183"></a><a class="code" href="class_NLAIC__CIdentType.html#a7">00183</a>                 <font class="keywordtype">bool</font> operator == (<font class="keyword">const</font> CIdentType &amp;a)<font class="keyword"> const
</font>00184 <font class="keyword">                </font>{                       
00185                         <font class="keywordflow">return</font> _Index == a._Index;                      
00186                 }
<a name="l00188"></a><a class="code" href="class_NLAIC__CIdentType.html#a8">00188</a>                 <font class="keywordtype">bool</font> operator &lt; (<font class="keyword">const</font> CIdentType &amp;a)<font class="keyword"> const
</font>00189 <font class="keyword">                </font>{                       
00190                         <font class="keywordflow">return</font> strcmp(_Ident,a._Ident) &lt; 0;
00191                 }                                               
00192 
<a name="l00193"></a><a class="code" href="class_NLAIC__CIdentType.html#a9">00193</a>                 <font class="keywordtype">bool</font> operator &lt;(<font class="keyword">const</font> <font class="keywordtype">char</font> *a)<font class="keyword"> const
</font>00194 <font class="keyword">                </font>{
00195                         <font class="keywordflow">return</font> strcmp(_Ident,a) &lt; 0;
00196                 }
00197 
<a name="l00198"></a><a class="code" href="class_NLAIC__CIdentType.html#a10">00198</a>                 <font class="keywordtype">bool</font> operator &gt;(<font class="keyword">const</font> CIdentType &amp;a)<font class="keyword"> const
</font>00199 <font class="keyword">                </font>{
00200                         <font class="keywordflow">return</font> strcmp(_Ident,a._Ident) &gt; 0;
00201                 }                                               
00202 
<a name="l00203"></a><a class="code" href="class_NLAIC__CIdentType.html#a11">00203</a>                 sint32 cmp (<font class="keyword">const</font> CIdentType &amp; a)<font class="keyword"> const
</font>00204 <font class="keyword">                </font>{
00205                         <font class="keywordflow">return</font> strcmp(_Ident,a._Ident);
00206                 }
00207 
<a name="l00208"></a><a class="code" href="class_NLAIC__CIdentType.html#a12">00208</a>                 operator const CTypeOfObject &amp;()<font class="keyword"> const
</font>00209 <font class="keyword">                </font>{
00210                         <font class="keywordflow">return</font> *_ObjType;
00211                 }
00212                 
<a name="l00213"></a><a class="code" href="class_NLAIC__CIdentType.html#a13">00213</a>                 operator const CTypeOfOperator &amp;()<font class="keyword"> const
</font>00214 <font class="keyword">                </font>{
00215                         <font class="keywordflow">return</font> *_OpSupport;
00216                 }
00217 
<a name="l00218"></a><a class="code" href="class_NLAIC__CIdentType.html#a14">00218</a>                 sint32 getIndex()<font class="keyword"> const
</font>00219 <font class="keyword">                </font>{
00220                         <font class="keywordflow">return</font> _Index;
00221                 }               
00222 
00224                 <font class="keyword">const</font> IBasicInterface *allocClass() <font class="keyword">const</font>;
00226                 <font class="keyword">const</font> IClassCFactory *getFactory() <font class="keyword">const</font>;
00227                                 
00229 
<a name="l00230"></a><a class="code" href="class_NLAIC__CIdentType.html#a17">00230</a>                 <font class="keyword">virtual</font> std::string     getClassName()<font class="keyword">
</font>00231 <font class="keyword">                </font>{
00232                         <font class="keywordflow">return</font> std::string(_Ident);
00233                 }
00234                 <font class="keyword">virtual</font> <font class="keywordtype">void</font> serial(<a class="code" href="class_NLMISC__IStream.html">NLMISC::IStream</a>     &amp;f) <font class="keywordflow">throw</font>(<a class="code" href="class_NLMISC__EStream.html">NLMISC::EStream</a>);     
00236         };
00237 
00238 
<a name="l00246"></a><a class="code" href="class_NLAIC__IBasicType.html">00246</a>         <font class="keyword">class </font>IBasicType: <font class="keyword">public</font> IPointerGestion
00247         {
00248         <font class="keyword">public</font>:
<a name="l00249"></a><a class="code" href="class_NLAIC__IBasicType.html#a0">00249</a>                 IBasicType()<font class="keyword">
</font>00250 <font class="keyword">                </font>{
00251                 }
00252 
<a name="l00253"></a><a class="code" href="class_NLAIC__IBasicType.html#a1">00253</a>                 IBasicType(<font class="keyword">const</font> IBasicType &amp;a):IPointerGestion(a)
00254                 {
00255                 }
00259                 <font class="keyword">virtual</font> <font class="keyword">const</font> CIdentType &amp;getType() <font class="keyword">const</font> = 0;
00260 
00264                 <font class="keyword">virtual</font> <font class="keyword">const</font> IBasicType *clone() <font class="keyword">const</font> = 0;
00265 
00269                 <font class="keyword">virtual</font> <font class="keyword">const</font> IBasicType *newInstance() <font class="keyword">const</font> = 0;              
00270 
00274                 <font class="keyword">virtual</font> <font class="keywordtype">void</font> getDebugString(<font class="keywordtype">char</font> *) <font class="keyword">const</font> = 0;
00275 
<a name="l00276"></a><a class="code" href="class_NLAIC__IBasicType.html#a6">00276</a>                 <font class="keyword">virtual</font> ~IBasicType()<font class="keyword">
</font>00277 <font class="keyword">                </font>{
00278                 }
00279         };
00280 
<a name="l00289"></a><a class="code" href="class_NLAIC__IBasicInterface.html">00289</a>         <font class="keyword">class </font>IBasicInterface: <font class="keyword">public</font> IBasicType
00290         {
00291         
00292         <font class="keyword">public</font>:
<a name="l00293"></a><a class="code" href="class_NLAIC__IBasicInterface.html#a0">00293</a>                 IBasicInterface()<font class="keyword">
</font>00294 <font class="keyword">                </font>{
00295                 }
00296 
<a name="l00297"></a><a class="code" href="class_NLAIC__IBasicInterface.html#a1">00297</a>                 ~IBasicInterface()<font class="keyword">
</font>00298 <font class="keyword">                </font>{
00299                 }
00300 
<a name="l00301"></a><a class="code" href="class_NLAIC__IBasicInterface.html#a2">00301</a>                 IBasicInterface(<font class="keyword">const</font> IBasicInterface &amp;a): IBasicType(a)
00302                 {
00303                 }
00304 
<a name="l00305"></a><a class="code" href="class_NLAIC__IBasicInterface.html#a3">00305</a>                 <font class="keyword">virtual</font> <font class="keywordtype">void</font> serial(<a class="code" href="class_NLMISC__IStream.html">NLMISC::IStream</a>     &amp;f) <font class="keywordflow">throw</font>(<a class="code" href="class_NLMISC__EStream.html">NLMISC::EStream</a>)
00306                 {
00307                         <font class="keywordflow">if</font> ( f.isReading() )
00308                                 load( f );
00309                         <font class="keywordflow">else</font>
00310                                 save( f );
00311                 }
00312 
00316                 <font class="keyword">virtual</font> <font class="keywordtype">void</font> save(<a class="code" href="class_NLMISC__IStream.html">NLMISC::IStream</a> &amp;) = 0;
00320                 <font class="keyword">virtual</font> <font class="keywordtype">void</font> load(<a class="code" href="class_NLMISC__IStream.html">NLMISC::IStream</a> &amp;) = 0;                       
00321         };
00322                 
<a name="l00323"></a><a class="code" href="class_NLAIC__IBasicInterface.html#a4">00323</a>         <font class="keyword">inline</font> <font class="keywordtype">void</font> IBasicInterface::save(<a class="code" href="class_NLMISC__IStream.html">NLMISC::IStream</a> &amp;)<font class="keyword">
</font>00324 <font class="keyword">        </font>{
00325         } 
00326 
<a name="l00327"></a><a class="code" href="class_NLAIC__IBasicInterface.html#a5">00327</a>         <font class="keyword">inline</font> <font class="keywordtype">void</font> IBasicInterface::load(<a class="code" href="class_NLMISC__IStream.html">NLMISC::IStream</a> &amp;)<font class="keyword">
</font>00328 <font class="keyword">        </font>{
00329         }
00330                 
00331 
<a name="l00339"></a><a class="code" href="class_NLAIC__IClassCFactory.html">00339</a>         <font class="keyword">class </font>IClassCFactory: <font class="keyword">public</font> IBasicType
00340         {
00341 
00342         <font class="keyword">public</font>:
00346                 <font class="keyword">virtual</font> <font class="keyword">const</font> IBasicInterface *createInstance() <font class="keyword">const</font> = 0;
00347 
00351                 <font class="keyword">virtual</font> <font class="keyword">const</font> IBasicInterface *getClass() <font class="keyword">const</font> = 0;
00352 
00353         };
00354 
<a name="l00361"></a><a class="code" href="class_NLAIC__CSelfClassCFactory.html">00361</a>         <font class="keyword">class </font>CSelfClassCFactory : <font class="keyword">public</font> IClassCFactory
00362         {
00363         <font class="keyword">private</font>:
<a name="l00365"></a><a class="code" href="class_NLAIC__CSelfClassCFactory.html#o0">00365</a>                 IBasicInterface *_Inst;
00366         <font class="keyword">public</font>:
<a name="l00368"></a><a class="code" href="class_NLAIC__CSelfClassCFactory.html#a0">00368</a>                 CSelfClassCFactory(<font class="keyword">const</font> IBasicInterface &amp;a): _Inst((IBasicInterface *)a.newInstance())
00369                 {
00370                         
00371                 }
00372 
<a name="l00374"></a><a class="code" href="class_NLAIC__CSelfClassCFactory.html#a1">00374</a>                 <font class="keyword">const</font> IBasicInterface *createInstance()<font class="keyword"> const 
</font>00375 <font class="keyword">                </font>{
00376                         <font class="keywordflow">return</font> (<font class="keyword">const</font> IBasicInterface *)_Inst-&gt;newInstance();
00377                 }
00378                 
<a name="l00380"></a><a class="code" href="class_NLAIC__CSelfClassCFactory.html#a2">00380</a>                 <font class="keyword">const</font> IBasicType *clone()<font class="keyword"> const
</font>00381 <font class="keyword">                </font>{
00382                          IBasicType *x = <font class="keyword">new</font> CSelfClassCFactory(*_Inst);
00383                          <font class="keywordflow">return</font> x;
00384                 }
00385                 
<a name="l00387"></a><a class="code" href="class_NLAIC__CSelfClassCFactory.html#a3">00387</a>                 <font class="keyword">const</font> IBasicType *newInstance()<font class="keyword"> const
</font>00388 <font class="keyword">                </font>{
00389                         <font class="keywordflow">return</font> clone();
00390                 }               
00391                 
<a name="l00393"></a><a class="code" href="class_NLAIC__CSelfClassCFactory.html#a4">00393</a>                 <font class="keywordtype">void</font> getDebugString(<font class="keywordtype">char</font> *text)<font class="keyword"> const
</font>00394 <font class="keyword">                </font>{
00395                         sprintf(text,<font class="stringliteral">"CSelfClassCFactory sur l'interface %s"</font>,(<font class="keyword">const</font> <font class="keywordtype">char</font> *)_Inst-&gt;getType());
00396                 }               
00397 
<a name="l00399"></a><a class="code" href="class_NLAIC__CSelfClassCFactory.html#a5">00399</a>                 <font class="keyword">const</font> CIdentType &amp;getType()<font class="keyword"> const
</font>00400 <font class="keyword">                </font>{
00401                         <font class="keywordflow">return</font> _Inst-&gt;getType();
00402                 }
00403 
<a name="l00405"></a><a class="code" href="class_NLAIC__CSelfClassCFactory.html#a6">00405</a>                 <font class="keywordtype">void</font> setInst(<font class="keyword">const</font> IBasicInterface &amp;a)<font class="keyword">
</font>00406 <font class="keyword">                </font>{
00408                         _Inst-&gt;release();
00410                         _Inst = (IBasicInterface *)a.newInstance();
00411                 }
00412 
<a name="l00414"></a><a class="code" href="class_NLAIC__CSelfClassCFactory.html#a7">00414</a>                 <font class="keyword">virtual</font> <font class="keyword">const</font> IBasicInterface *getClass()<font class="keyword"> const
</font>00415 <font class="keyword">                </font>{
00416                         <font class="keywordflow">return</font> _Inst;
00417                 }
00418                 
<a name="l00420"></a><a class="code" href="class_NLAIC__CSelfClassCFactory.html#a8">00420</a>                 CSelfClassCFactory &amp;operator = (<font class="keyword">const</font> IBasicInterface &amp;inst)<font class="keyword">
</font>00421 <font class="keyword">                </font>{
00422                         _Inst-&gt;release();
00423                         _Inst = (IBasicInterface *)inst.clone();
00424                         <font class="keywordflow">return</font> *<font class="keyword">this</font>;
00425                 }
00426 
00427                         
<a name="l00428"></a><a class="code" href="class_NLAIC__CSelfClassCFactory.html#a9">00428</a>                 ~CSelfClassCFactory()<font class="keyword">
</font>00429 <font class="keyword">                </font>{
00430                         _Inst-&gt;release();
00431                 }
00432         };
00433         
00434 
<a name="l00441"></a><a class="code" href="class_NLAIC__IIO.html">00441</a>         <font class="keyword">class </font>IIO: <font class="keyword">public</font> IBasicInterface
00442         {
00443         <font class="keyword">public</font>:
<a name="l00444"></a><a class="code" href="class_NLAIC__IIO.html#a0">00444</a>                 IIO()<font class="keyword">
</font>00445 <font class="keyword">                </font>{
00446                 }
00447                 <font class="keyword">virtual</font> <font class="keywordtype">void</font> Echo(<font class="keywordtype">char</font> *CStringType, ...) = 0;
00448                 <font class="keyword">virtual</font> <font class="keywordtype">char</font> *InPut() = 0;
<a name="l00449"></a><a class="code" href="class_NLAIC__IIO.html#a3">00449</a>                 <font class="keyword">virtual</font> ~IIO()<font class="keyword">
</font>00450 <font class="keyword">                </font>{
00451                 }
00452         };      
00453 
00454         
<a name="l00461"></a><a class="code" href="class_NLAIC__CIdentTypeAlloc.html">00461</a>         <font class="keyword">class </font>CIdentTypeAlloc
00462         {       
00463         <font class="keyword">private</font>:                
<a name="l00464"></a><a class="code" href="class_NLAIC__CIdentTypeAlloc.html#o0">00464</a>                 CIdentType *_Id;
00465 
00466         <font class="keyword">public</font>:
<a name="l00468"></a><a class="code" href="class_NLAIC__CIdentTypeAlloc.html#a0">00468</a>                 CIdentTypeAlloc(<a class="code" href="class_NLMISC__IStream.html">NLMISC::IStream</a> &amp;is):_Id(NULL){load(is);}
<a name="l00469"></a><a class="code" href="class_NLAIC__CIdentTypeAlloc.html#a1">00469</a>                 CIdentTypeAlloc():_Id(NULL){}
00470 
00472                 <font class="keywordtype">void</font> load(<a class="code" href="class_NLMISC__IStream.html">NLMISC::IStream</a> &amp;is);
00473 
<a name="l00475"></a><a class="code" href="class_NLAIC__CIdentTypeAlloc.html#a3">00475</a>                 <font class="keyword">const</font> IBasicInterface *allocClass()<font class="keyword">
</font>00476 <font class="keyword">                </font>{
00477                         <font class="keywordflow">if</font>(_Id != NULL) <font class="keywordflow">return</font> _Id-&gt;allocClass();
00478                         <font class="keywordflow">else</font> <font class="keywordflow">return</font> NULL;
00479                 }               
00480 
<a name="l00481"></a><a class="code" href="class_NLAIC__CIdentTypeAlloc.html#a4">00481</a>                 ~CIdentTypeAlloc()<font class="keyword">
</font>00482 <font class="keyword">                </font>{
00483                         <font class="keywordflow">if</font>(_Id != NULL) <font class="keyword">delete</font> _Id;
00484                 }
00485 
00487                 <font class="keyword">virtual</font> <font class="keywordtype">void</font> serial(<a class="code" href="class_NLMISC__IStream.html">NLMISC::IStream</a>     &amp;f) <font class="keywordflow">throw</font>(<a class="code" href="class_NLMISC__EStream.html">NLMISC::EStream</a>);             
00488         };
00489         
00490 
00492 
00493 
<a name="l00494"></a><a class="code" href="namespace_NLAIC.html#a4">00494</a>         <font class="keyword">inline</font> <a class="code" href="class_NLMISC__IStream.html">NLMISC::IStream</a> &amp;operator &gt;&gt; (<a class="code" href="class_NLMISC__IStream.html">NLMISC::IStream</a> &amp;is, CIdentTypeAlloc &amp;o)<font class="keyword">
</font>00495 <font class="keyword">        </font>{
00496                 o.load(is);
00497                 <font class="keywordflow">return</font> is;
00498         }
00499 
00501         <a class="code" href="class_NLMISC__IStream.html">NLMISC::IStream</a> &amp;operator &lt;&lt; (<a class="code" href="class_NLMISC__IStream.html">NLMISC::IStream</a> &amp;os, CIdentType &amp;o);      
00502 
<a name="l00504"></a><a class="code" href="namespace_NLAIC.html#a6">00504</a>         <font class="keyword">inline</font> <a class="code" href="class_NLMISC__IStream.html">NLMISC::IStream</a> &amp;operator &lt;&lt; (<a class="code" href="class_NLMISC__IStream.html">NLMISC::IStream</a> &amp;os, IBasicInterface &amp;o)<font class="keyword">
</font>00505 <font class="keyword">        </font>{
00506                 o.save(os);
00507                 <font class="keywordflow">return</font> os;
00508         }
00509 
<a name="l00511"></a><a class="code" href="namespace_NLAIC.html#a7">00511</a>         <font class="keyword">inline</font> <a class="code" href="class_NLMISC__IStream.html">NLMISC::IStream</a> &amp;operator &gt;&gt; (<a class="code" href="class_NLMISC__IStream.html">NLMISC::IStream</a> &amp;is, IBasicInterface &amp;o)<font class="keyword">
</font>00512 <font class="keyword">        </font>{
00513                 o.load(is);
00514                 <font class="keywordflow">return</font> is;
00515         }       
00517 }
00518 <font class="preprocessor">#endif
</font></div></pre>

<!-- footer -->
<BR><FONT Size=+5>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </FONT>
</TD>
<TD WIDTH=15><IMG  SRC=http://www.nevrax.org/inc/img/pixel.gif WIDTH=15 HEIGHT=15 BORDER=0 ALT=""></TD>
</TR>
</TABLE>
</BODY>
</HTML>