aboutsummaryrefslogtreecommitdiff
path: root/docs/doxygen/nel/a03322.html
blob: 5278d9c4da29d486f8392cb706ec11f4c47e7eb8 (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
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
<!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: NLAIC::CRegistry 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>NLAIC::CRegistry Class Reference</h1><code>#include &lt;<a class="el" href="a06324.html">registry.h</a>&gt;</code>
<p>
<hr><a name="_details"></a><h2>Detailed Description</h2>
<a class="el" href="a03322.html">CRegistry</a> is a class factory registry. This class share an std::map objects how it containe reference for ordering class. Class factory is order in the map by name, the name is define by a <a class="el" href="a02650.html">CIdentType</a> and by index. Index is an index in a vector type. That make easy to manage object reference. Not that name is the word reference of an object and index is the locale reference.<p>
<dl compact><dt><b>Author:</b></dt><dd>Chafik sameh <p>
Portier Pierre <p>
Nevrax France </dd></dl>
<dl compact><dt><b>Date:</b></dt><dd>2000</dd></dl>

<p>

<p>
Definition at line <a class="el" href="a06324.html#l00049">49</a> of file <a class="el" href="a06324.html">registry.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="a02154.html">IBasicInterface</a> *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03322.html#NLAIC_1_1CRegistrya0">createInstance</a> (const <a class="el" href="a04558.html#a10">sint32</a>)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Creates a new instance from a class using its registry index.  <a href="#NLAIC_1_1CRegistrya0"></a><br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a02154.html">IBasicInterface</a> *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03322.html#NLAIC_1_1CRegistrya1">createInstance</a> (const char *)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Creates a new instance from a class using its class name in the registry.  <a href="#NLAIC_1_1CRegistrya1"></a><br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a02154.html">IBasicInterface</a> *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03322.html#NLAIC_1_1CRegistrya2">createInstance</a> (const <a class="el" href="a02650.html">CIdentType</a> &amp;)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Creates a new instance from a class using its identifier.  <a href="#NLAIC_1_1CRegistrya2"></a><br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03322.html#NLAIC_1_1CRegistrya3">CRegistry</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>const bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03322.html#NLAIC_1_1CRegistrya4">existsClass</a> (const char *) const </td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>const <a class="el" href="a02347.html">IClassFactory</a> *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03322.html#NLAIC_1_1CRegistrya5">getFactory</a> (<a class="el" href="a04558.html#a10">sint32</a>)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Creates a new instance from a class using its registry index.  <a href="#NLAIC_1_1CRegistrya5"></a><br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>const <a class="el" href="a02347.html">IClassFactory</a> *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03322.html#NLAIC_1_1CRegistrya6">getFactory</a> (const char *)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Creates a new instance from a class using its class name in the registry.  <a href="#NLAIC_1_1CRegistrya6"></a><br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>const <a class="el" href="a02347.html">IClassFactory</a> *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03322.html#NLAIC_1_1CRegistrya7">getFactory</a> (const <a class="el" href="a02650.html">CIdentType</a> &amp;)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Creates a new instance from a class using its identifier.  <a href="#NLAIC_1_1CRegistrya7"></a><br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>const <a class="el" href="a02650.html">CIdentType</a> &amp;&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03322.html#NLAIC_1_1CRegistrya8">getIdent</a> (const char *)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the identifier of a class from its name.  <a href="#NLAIC_1_1CRegistrya8"></a><br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>const <a class="el" href="a02650.html">CIdentType</a> &amp;&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03322.html#NLAIC_1_1CRegistrya9">getIdent</a> (const <a class="el" href="a04558.html#a10">sint32</a>)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the identifier of a class from its registry index.  <a href="#NLAIC_1_1CRegistrya9"></a><br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>const <a class="el" href="a04558.html#a10">sint32</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03322.html#NLAIC_1_1CRegistrya10">getNumIdent</a> (const char *)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the registry index of a class from its name.  <a href="#NLAIC_1_1CRegistrya10"></a><br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>const <a class="el" href="a04558.html#a10">sint32</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03322.html#NLAIC_1_1CRegistrya11">getNumIdent</a> (const <a class="el" href="a02650.html">CIdentType</a> &amp;)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the registry index of a class from its identifier.  <a href="#NLAIC_1_1CRegistrya11"></a><br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>const <a class="el" href="a02650.html">CIdentType</a> &amp;&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03322.html#NLAIC_1_1CRegistrya12">operator[]</a> (<a class="el" href="a04558.html#a10">sint32</a> i) const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get <a class="el" href="a02650.html">CIdentType</a> with an index.  <a href="#NLAIC_1_1CRegistrya12"></a><br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a10">sint32</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03322.html#NLAIC_1_1CRegistrya13">registerClass</a> (const <a class="el" href="a02650.html">CIdentType</a> &amp;, const <a class="el" href="a02347.html">IClassFactory</a> &amp;)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Registers a new class.  <a href="#NLAIC_1_1CRegistrya13"></a><br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a10">sint32</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03322.html#NLAIC_1_1CRegistrya14">size</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get registry size.  <a href="#NLAIC_1_1CRegistrya14"></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="a03322.html#NLAIC_1_1CRegistrya15">unRegisterClass</a> (const <a class="el" href="a02650.html">CIdentType</a> &amp;)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Removes a class from the registry.  <a href="#NLAIC_1_1CRegistrya15"></a><br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03322.html#NLAIC_1_1CRegistrya16">~CRegistry</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::map&lt; <a class="el" href="a02650.html">CIdentType</a>,<br>
<a class="el" href="a03323.html">CRegistryClass</a> *, std::less&lt;<br>
 <a class="el" href="a02650.html">CIdentType</a> &gt; &gt;&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03322.html#NLAIC_1_1CRegistryy0">TMapRegistry</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="a03322.html#NLAIC_1_1CRegistryy0">TMapRegistry</a> &amp;&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03322.html#NLAIC_1_1CRegistryr0">_MapRegistry</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Map Hows stored class factory instance.  <a href="#NLAIC_1_1CRegistryr0"></a><br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>std::vector&lt; <a class="el" href="a03323.html">CRegistryClass</a> * &gt;&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03322.html#NLAIC_1_1CRegistryr1">_TableRegistry</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Table for class factory index.  <a href="#NLAIC_1_1CRegistryr1"></a><br><br></td></tr>
</table>
<hr><h2>Member Typedef Documentation</h2>
<a class="anchor" name="NLAIC_1_1CRegistryy0" doxytag="NLAIC::CRegistry::TMapRegistry" ></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::map&lt;<a class="el" href="a02650.html">CIdentType</a> ,<a class="el" href="a03323.html">CRegistryClass</a> *,std::less&lt;<a class="el" href="a02650.html">CIdentType</a>&gt; &gt; <a class="el" href="a03322.html#NLAIC_1_1CRegistryy0">NLAIC::CRegistry::TMapRegistry</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="a06324.html#l00063">63</a> of file <a class="el" href="a06324.html">registry.h</a>.
<p>
Referenced by <a class="el" href="a06323.html#l00041">CRegistry()</a>.    </td>
  </tr>
</table>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="NLAIC_1_1CRegistrya3" doxytag="NLAIC::CRegistry::CRegistry" ></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"> NLAIC::CRegistry::CRegistry </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></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="a06323.html#l00041">41</a> of file <a class="el" href="a06323.html">registry.cpp</a>.
<p>
References <a class="el" href="a06324.html#l00068">_MapRegistry</a>, <a class="el" href="a06143.html#l00092">new</a>, and <a class="el" href="a06324.html#l00063">TMapRegistry</a>.
<p>
<div class="fragment"><pre>00041                             : <a class="code" href="a03322.html#NLAIC_1_1CRegistryr0">_MapRegistry</a>(*(<span class="keyword">new</span> TMapRegistry))
00042         {
00043         }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NLAIC_1_1CRegistrya16" doxytag="NLAIC::CRegistry::~CRegistry" ></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"> NLAIC::CRegistry::~<a class="el" href="a03322.html">CRegistry</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></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="a06323.html#l00045">45</a> of file <a class="el" href="a06323.html">registry.cpp</a>.
<p>
References <a class="el" href="a06324.html#l00068">_MapRegistry</a>, <a class="el" href="a06324.html#l00066">_TableRegistry</a>, and <a class="el" href="a05981.html#l00099">sint32</a>.
<p>
<div class="fragment"><pre>00046         {
00047                 <span class="keywordflow">for</span>(<a class="code" href="a04558.html#a10">sint32</a> i = 0; i &lt; (<a class="code" href="a04558.html#a10">sint32</a>) <a class="code" href="a03322.html#NLAIC_1_1CRegistryr1">_TableRegistry</a>.size(); i++) 
00048                 {
00049                         <span class="keywordflow">if</span> ( <a class="code" href="a03322.html#NLAIC_1_1CRegistryr1">_TableRegistry</a>[i] )        
00050                         {
00051                                 <span class="keyword">delete</span> <a class="code" href="a03322.html#NLAIC_1_1CRegistryr1">_TableRegistry</a>[i];
00052                         }
00053                 }
00054                 <span class="keyword">delete</span> &amp;<a class="code" href="a03322.html#NLAIC_1_1CRegistryr0">_MapRegistry</a>;
00055         }
</pre></div>    </td>
  </tr>
</table>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="NLAIC_1_1CRegistrya0" doxytag="NLAIC::CRegistry::createInstance" ></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="a02154.html">IBasicInterface</a> * NLAIC::CRegistry::createInstance </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>sint32</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>
Creates a new instance from a class using its registry index. 
<p>

<p>
Definition at line <a class="el" href="a06323.html#l00161">161</a> of file <a class="el" href="a06323.html">registry.cpp</a>.
<p>
References <a class="el" href="a06324.html#l00066">_TableRegistry</a>, and <a class="el" href="a05981.html#l00099">sint32</a>.
<p>
<div class="fragment"><pre>00162         {
00163                 IBasicInterface *instance = (IBasicInterface *)<a class="code" href="a03322.html#NLAIC_1_1CRegistryr1">_TableRegistry</a>[i]-&gt;FactoryClass-&gt;createInstance();
00164                 <span class="keywordflow">return</span> instance;
00165         }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NLAIC_1_1CRegistrya1" doxytag="NLAIC::CRegistry::createInstance" ></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="a02154.html">IBasicInterface</a> * NLAIC::CRegistry::createInstance </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const char *&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </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>
Creates a new instance from a class using its class name in the registry. 
<p>

<p>
Definition at line <a class="el" href="a06323.html#l00154">154</a> of file <a class="el" href="a06323.html">registry.cpp</a>.
<p>
References <a class="el" href="a06324.html#l00066">_TableRegistry</a>, and <a class="el" href="a06323.html#l00096">getNumIdent()</a>.
<p>
<div class="fragment"><pre>00155         {
00156                 IBasicInterface *instance = (IBasicInterface *)<a class="code" href="a03322.html#NLAIC_1_1CRegistryr1">_TableRegistry</a>[ <a class="code" href="a03322.html#NLAIC_1_1CRegistrya11">getNumIdent</a>(class_name) ]-&gt;FactoryClass-&gt;createInstance();
00157                 <span class="keywordflow">return</span> instance;
00158         }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NLAIC_1_1CRegistrya2" doxytag="NLAIC::CRegistry::createInstance" ></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="a02154.html">IBasicInterface</a> * NLAIC::CRegistry::createInstance </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const <a class="el" href="a02650.html">CIdentType</a> &amp;&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </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>
Creates a new instance from a class using its identifier. 
<p>

<p>
Definition at line <a class="el" href="a06323.html#l00148">148</a> of file <a class="el" href="a06323.html">registry.cpp</a>.
<p>
References <a class="el" href="a06323.html#l00096">getNumIdent()</a>.
<p>
Referenced by <a class="el" href="a05804.html#l00173">NLAIC::CIdentType::allocClass()</a>, and <a class="el" href="a06325.html#l00049">NLAIC::createInstance()</a>.
<p>
<div class="fragment"><pre>00149         {
00150                 <span class="keywordflow">return</span> <a class="code" href="a03322.html#NLAIC_1_1CRegistrya2">createInstance</a>(<a class="code" href="a03322.html#NLAIC_1_1CRegistrya11">getNumIdent</a>(ident));      
00151         }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NLAIC_1_1CRegistrya4" doxytag="NLAIC::CRegistry::existsClass" ></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"> const bool NLAIC::CRegistry::existsClass </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const char *&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </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>

<p>
Definition at line <a class="el" href="a06323.html#l00215">215</a> of file <a class="el" href="a06323.html">registry.cpp</a>.
<p>
References <a class="el" href="a06324.html#l00066">_TableRegistry</a>.
<p>
Referenced by <a class="el" href="a05589.html#l00059">NLAISCRIPT::CCompilateur::getTypeOfClass()</a>.
<p>
<div class="fragment"><pre>00216         {
00217                 std::vector&lt;CRegistryClass *&gt;::const_iterator it_rc = <a class="code" href="a03322.html#NLAIC_1_1CRegistryr1">_TableRegistry</a>.begin();
00218                 <span class="keywordflow">while</span> ( it_rc != <a class="code" href="a03322.html#NLAIC_1_1CRegistryr1">_TableRegistry</a>.end() )
00219                 {
00220                         <span class="keyword">const</span> <span class="keywordtype">char</span> *rc_name = (<span class="keyword">const</span> <span class="keywordtype">char</span> *) (*it_rc)-&gt;NameClass;
00221                         <span class="keywordflow">if</span> ( strcmp( class_name, rc_name ) == 0)
00222                                 <span class="keywordflow">return</span> <span class="keyword">true</span>;
00223                         it_rc++;
00224                 }
00225                 <span class="keywordflow">return</span> <span class="keyword">false</span>;
00226         }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NLAIC_1_1CRegistrya5" doxytag="NLAIC::CRegistry::getFactory" ></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"> const <a class="el" href="a02347.html">IClassFactory</a> * NLAIC::CRegistry::getFactory </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a10">sint32</a>&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </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>
Creates a new instance from a class using its registry index. 
<p>

<p>
Definition at line <a class="el" href="a06323.html#l00199">199</a> of file <a class="el" href="a06323.html">registry.cpp</a>.
<p>
References <a class="el" href="a06324.html#l00066">_TableRegistry</a>, and <a class="el" href="a05981.html#l00099">sint32</a>.
<p>
<div class="fragment"><pre>00200         {
00201                 <span class="keywordflow">return</span> (*(<a class="code" href="a03322.html#NLAIC_1_1CRegistryr1">_TableRegistry</a>.begin() + i))-&gt;FactoryClass;<span class="comment">//_TableRegistry[i]-&gt;FactoryClass;</span>
00202                 <span class="comment">//return _TableRegistry[i]-&gt;FactoryClass;</span>
00203         }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NLAIC_1_1CRegistrya6" doxytag="NLAIC::CRegistry::getFactory" ></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"> const <a class="el" href="a02347.html">IClassFactory</a> * NLAIC::CRegistry::getFactory </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const char *&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </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>
Creates a new instance from a class using its class name in the registry. 
<p>

<p>
Definition at line <a class="el" href="a06323.html#l00184">184</a> of file <a class="el" href="a06323.html">registry.cpp</a>.
<p>
References <a class="el" href="a05646.html#l00221">id</a>.
<p>
<div class="fragment"><pre>00185         {
00186                 <span class="keywordflow">try</span>
00187                 {                               
00188                         CIdentType <a class="code" href="a04223.html#a564">id</a>(class_name);
00189                         <span class="keywordflow">return</span> <span class="keywordtype">id</span>.getFactory();
00190                 }
00191                 <span class="keywordflow">catch</span> (<a class="code" href="a03853.html">NLAIE::IException</a> &amp;err)
00192                 {
00193                         <span class="keywordflow">throw</span> <a class="code" href="a02483.html">NLAIE::CExceptionContainer</a>(err.what());
00194                 }
00195                 <span class="keywordflow">return</span> NULL;
00196         }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NLAIC_1_1CRegistrya7" doxytag="NLAIC::CRegistry::getFactory" ></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"> const <a class="el" href="a02347.html">IClassFactory</a> * NLAIC::CRegistry::getFactory </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const <a class="el" href="a02650.html">CIdentType</a> &amp;&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </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>
Creates a new instance from a class using its identifier. 
<p>

<p>
Definition at line <a class="el" href="a06323.html#l00168">168</a> of file <a class="el" href="a06323.html">registry.cpp</a>.
<p>
References <a class="el" href="a06324.html#l00068">_MapRegistry</a>, <a class="el" href="a05804.html#l00079">NLAIC::stringGetBuild()</a>, and <a class="el" href="a05646.html#l00985">t</a>.
<p>
Referenced by <a class="el" href="a05804.html#l00178">NLAIC::CIdentType::getFactory()</a>.
<p>
<div class="fragment"><pre>00169         {
00170                 CRegistryClass *<a class="code" href="a04223.html#a627">t</a>;
00171                 TMapRegistry::iterator Itr = <a class="code" href="a03322.html#NLAIC_1_1CRegistryr0">_MapRegistry</a>.find(ident);
00172                 <span class="keywordflow">if</span>(Itr != <a class="code" href="a03322.html#NLAIC_1_1CRegistryr0">_MapRegistry</a>.end()) <a class="code" href="a04223.html#a627">t</a> = (*Itr).second;
00173                 <span class="keywordflow">else</span> 
00174                 {                       
00175                         std::string text;
00176                         text = <a class="code" href="a05365.html#a8">NLAIC::stringGetBuild</a>(<span class="stringliteral">"can't find '%s' in the registry"</span>,(<span class="keywordtype">char</span> *)((<span class="keyword">const</span> <span class="keywordtype">char</span> *)ident));
00177                         <a class="code" href="a02490.html">NLAIE::CExceptionUnRegisterClassError</a> e(text.c_str());
00178                         <span class="keywordflow">throw</span> e;
00179                 }
00180                 <span class="keywordflow">return</span> <a class="code" href="a04223.html#a627">t</a>-&gt;FactoryClass;
00181         }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NLAIC_1_1CRegistrya8" doxytag="NLAIC::CRegistry::getIdent" ></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"> const <a class="el" href="a02650.html">CIdentType</a> &amp; NLAIC::CRegistry::getIdent </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const char *&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </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>
Returns the identifier of a class from its name. 
<p>

<p>
Definition at line <a class="el" href="a06323.html#l00134">134</a> of file <a class="el" href="a06323.html">registry.cpp</a>.
<p>
References <a class="el" href="a06324.html#l00066">_TableRegistry</a>, <a class="el" href="a05981.html#l00099">sint32</a>, and <a class="el" href="a05804.html#l00079">NLAIC::stringGetBuild()</a>.
<p>
<div class="fragment"><pre>00135         {
00136                 <span class="keywordflow">for</span> ( <a class="code" href="a04558.html#a10">sint32</a> i = 0; i &lt; (<a class="code" href="a04558.html#a10">sint32</a>) <a class="code" href="a03322.html#NLAIC_1_1CRegistryr1">_TableRegistry</a>.size(); i++ )
00137                 {
00138                         <span class="keywordflow">if</span> ( !strcmp( (<span class="keyword">const</span> <span class="keywordtype">char</span> *)_TableRegistry[i]-&gt;NameClass, class_name ) )
00139                                 <span class="keywordflow">return</span> <a class="code" href="a03322.html#NLAIC_1_1CRegistryr1">_TableRegistry</a>[ i ]-&gt;NameClass;
00140                 }
00141                 std::string text;
00142                 text = <a class="code" href="a05365.html#a8">NLAIC::stringGetBuild</a>(<span class="stringliteral">"can't find '%s' in the registry"</span>,(<span class="keywordtype">char</span> *)class_name);
00143                 <a class="code" href="a02490.html">NLAIE::CExceptionUnRegisterClassError</a> e(text.c_str());
00144                 <span class="keywordflow">throw</span> e;
00145         }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NLAIC_1_1CRegistrya9" doxytag="NLAIC::CRegistry::getIdent" ></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"> const <a class="el" href="a02650.html">CIdentType</a> &amp; NLAIC::CRegistry::getIdent </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>sint32</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>
Returns the identifier of a class from its registry index. 
<p>

<p>
Definition at line <a class="el" href="a06323.html#l00128">128</a> of file <a class="el" href="a06323.html">registry.cpp</a>.
<p>
References <a class="el" href="a06324.html#l00066">_TableRegistry</a>, <a class="el" href="a05646.html#l00225">index</a>, and <a class="el" href="a05981.html#l00099">sint32</a>.
<p>
Referenced by <a class="el" href="a05804.html#l00198">NLAIC::CIdentType::serial()</a>.
<p>
<div class="fragment"><pre>00129         {
00130                 <span class="keywordflow">return</span> <a class="code" href="a03322.html#NLAIC_1_1CRegistryr1">_TableRegistry</a>[<a class="code" href="a04223.html#a566">index</a>]-&gt;NameClass;
00131         }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NLAIC_1_1CRegistrya10" doxytag="NLAIC::CRegistry::getNumIdent" ></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"> const <a class="el" href="a04558.html#a10">sint32</a> NLAIC::CRegistry::getNumIdent </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const char *&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </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>
Returns the registry index of a class from its name. 
<p>

<p>
Definition at line <a class="el" href="a06323.html#l00112">112</a> of file <a class="el" href="a06323.html">registry.cpp</a>.
<p>
References <a class="el" href="a06324.html#l00066">_TableRegistry</a>, <a class="el" href="a05981.html#l00099">sint32</a>, and <a class="el" href="a05804.html#l00079">NLAIC::stringGetBuild()</a>.
<p>
<div class="fragment"><pre>00113         {
00114                 <span class="keywordflow">for</span> ( <a class="code" href="a04558.html#a10">sint32</a> i = 0; i &lt; (<a class="code" href="a04558.html#a10">sint32</a>) <a class="code" href="a03322.html#NLAIC_1_1CRegistryr1">_TableRegistry</a>.size(); i++ )
00115                 {
00116                         <span class="keywordflow">if</span> ( !strcmp( (<span class="keyword">const</span> <span class="keywordtype">char</span> *)_TableRegistry[i]-&gt;NameClass, class_name ) )
00117                                 <span class="keywordflow">return</span> i;
00118                 }
00119 
00120                 std::string text;
00121                 text = <a class="code" href="a05365.html#a8">NLAIC::stringGetBuild</a>(<span class="stringliteral">"can't find '%s' in the registry"</span>,(<span class="keywordtype">char</span> *)class_name);
00122                 <a class="code" href="a02490.html">NLAIE::CExceptionUnRegisterClassError</a> e(text.c_str());
00123                 <span class="keywordflow">throw</span> e;
00124                 <span class="keywordflow">return</span> -1;
00125         }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NLAIC_1_1CRegistrya11" doxytag="NLAIC::CRegistry::getNumIdent" ></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"> const <a class="el" href="a04558.html#a10">sint32</a> NLAIC::CRegistry::getNumIdent </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const <a class="el" href="a02650.html">CIdentType</a> &amp;&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </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>
Returns the registry index of a class from its identifier. 
<p>

<p>
Definition at line <a class="el" href="a06323.html#l00096">96</a> of file <a class="el" href="a06323.html">registry.cpp</a>.
<p>
References <a class="el" href="a06324.html#l00068">_MapRegistry</a>, <a class="el" href="a05981.html#l00099">sint32</a>, <a class="el" href="a05804.html#l00079">NLAIC::stringGetBuild()</a>, and <a class="el" href="a05646.html#l00985">t</a>.
<p>
Referenced by <a class="el" href="a06323.html#l00148">createInstance()</a>, <a class="el" href="a05804.html#l00198">NLAIC::CIdentType::serial()</a>, and <a class="el" href="a06323.html#l00079">unRegisterClass()</a>.
<p>
<div class="fragment"><pre>00097         {
00098                 CRegistryClass *<a class="code" href="a04223.html#a627">t</a>;
00099                 TMapRegistry::iterator Itr = <a class="code" href="a03322.html#NLAIC_1_1CRegistryr0">_MapRegistry</a>.find(ident);
00100                 <span class="keywordflow">if</span>(Itr != <a class="code" href="a03322.html#NLAIC_1_1CRegistryr0">_MapRegistry</a>.end()) <a class="code" href="a04223.html#a627">t</a> = (*Itr).second;
00101                 <span class="keywordflow">else</span> 
00102                 {
00103                         std::string text;
00104                         text = <a class="code" href="a05365.html#a8">NLAIC::stringGetBuild</a>(<span class="stringliteral">"can't find '%s' in the registry"</span>,(<span class="keywordtype">char</span> *)((<span class="keyword">const</span> <span class="keywordtype">char</span> *)ident));
00105                         <a class="code" href="a02490.html">NLAIE::CExceptionUnRegisterClassError</a> e(text.c_str());
00106                         <span class="keywordflow">throw</span> e;
00107                 }
00108                 <span class="keywordflow">return</span> <a class="code" href="a04223.html#a627">t</a>-&gt;Index;                        
00109         }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NLAIC_1_1CRegistrya12" doxytag="NLAIC::CRegistry::operator[]" ></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"> const <a class="el" href="a02650.html">CIdentType</a> &amp; NLAIC::CRegistry::operator[] </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a10">sint32</a>&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>i</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>
Get <a class="el" href="a02650.html">CIdentType</a> with an index. 
<p>

<p>
Definition at line <a class="el" href="a06323.html#l00205">205</a> of file <a class="el" href="a06323.html">registry.cpp</a>.
<p>
References <a class="el" href="a06324.html#l00066">_TableRegistry</a>, and <a class="el" href="a05981.html#l00099">sint32</a>.
<p>
<div class="fragment"><pre>00206         {       
00207                 <span class="keywordflow">return</span> <a class="code" href="a03322.html#NLAIC_1_1CRegistryr1">_TableRegistry</a>[i]-&gt;NameClass;
00208         }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NLAIC_1_1CRegistrya13" doxytag="NLAIC::CRegistry::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"> <a class="el" href="a04558.html#a10">sint32</a> NLAIC::CRegistry::registerClass </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const <a class="el" href="a02650.html">CIdentType</a> &amp;&nbsp;</td>
          <td class="mdname" nowrap>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap>const <a class="el" href="a02347.html">IClassFactory</a> &amp;&nbsp;</td>
          <td class="mdname" nowrap></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Registers a new class. 
<p>

<p>
Definition at line <a class="el" href="a06323.html#l00057">57</a> of file <a class="el" href="a06323.html">registry.cpp</a>.
<p>
References <a class="el" href="a06324.html#l00068">_MapRegistry</a>, <a class="el" href="a06324.html#l00066">_TableRegistry</a>, <a class="el" href="a05981.html#l00099">sint32</a>, and <a class="el" href="a05646.html#l00985">t</a>.
<p>
Referenced by <a class="el" href="a06325.html#l00044">NLAIC::registerClass()</a>.
<p>
<div class="fragment"><pre>00058         {
00059                 <span class="comment">// Recherche un emplacement vide</span>
00060                 <span class="comment">/*for(sint32 idx = 0; idx &lt; (sint32) _TableRegistry.size(); idx++) </span>
00061 <span class="comment">                {</span>
00062 <span class="comment">                        if ( _TableRegistry[ idx ] == NULL )</span>
00063 <span class="comment">                        {</span>
00064 <span class="comment">                                CRegistryClass *t = new CRegistryClass( ident, FactoryClass, idx );</span>
00065 <span class="comment">                                _TableRegistry[ idx ] = t;</span>
00066 <span class="comment">                                _MapRegistry.insert( TMapRegistry::value_type(t-&gt;NameClass, t) );</span>
00067 <span class="comment">                                return idx;</span>
00068 <span class="comment">                        }</span>
00069 <span class="comment">                }*/</span>
00070 
00071                 <span class="comment">// Sinon met � la fin de la table</span>
00072                 CRegistryClass *<a class="code" href="a04223.html#a627">t</a> = <span class="keyword">new</span> CRegistryClass(ident, FactoryClass, <a class="code" href="a03322.html#NLAIC_1_1CRegistryr1">_TableRegistry</a>.size() );
00073                 <a class="code" href="a03322.html#NLAIC_1_1CRegistryr0">_MapRegistry</a>.insert( TMapRegistry::value_type(ident, t) );
00074                 <a class="code" href="a03322.html#NLAIC_1_1CRegistryr1">_TableRegistry</a>.push_back( t );          
00075                 <span class="keywordflow">return</span> <a class="code" href="a03322.html#NLAIC_1_1CRegistryr1">_TableRegistry</a>.size() - 1;
00076         }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NLAIC_1_1CRegistrya14" doxytag="NLAIC::CRegistry::size" ></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#a10">sint32</a> NLAIC::CRegistry::size </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</td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Get registry size. 
<p>

<p>
Definition at line <a class="el" href="a06323.html#l00210">210</a> of file <a class="el" href="a06323.html">registry.cpp</a>.
<p>
References <a class="el" href="a06324.html#l00066">_TableRegistry</a>, and <a class="el" href="a05981.html#l00099">sint32</a>.
<p>
<div class="fragment"><pre>00211         {
00212                 <span class="keywordflow">return</span> <a class="code" href="a03322.html#NLAIC_1_1CRegistryr1">_TableRegistry</a>.size();
00213         }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NLAIC_1_1CRegistrya15" doxytag="NLAIC::CRegistry::unRegisterClass" ></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 NLAIC::CRegistry::unRegisterClass </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const <a class="el" href="a02650.html">CIdentType</a> &amp;&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </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>
Removes a class from the registry. 
<p>

<p>
Definition at line <a class="el" href="a06323.html#l00079">79</a> of file <a class="el" href="a06323.html">registry.cpp</a>.
<p>
References <a class="el" href="a06324.html#l00066">_TableRegistry</a>, <a class="el" href="a06323.html#l00096">getNumIdent()</a>, and <a class="el" href="a05981.html#l00099">sint32</a>.
<p>
<div class="fragment"><pre>00080         {                       
00081                 <a class="code" href="a04558.html#a10">sint32</a> i;
00082                 <span class="keywordflow">try</span>
00083                 {
00084                         i = <a class="code" href="a03322.html#NLAIC_1_1CRegistrya11">getNumIdent</a>(ident);
00085                 }
00086                 <span class="keywordflow">catch</span>(<a class="code" href="a03853.html">NLAIE::IException</a> &amp;e)
00087                 {                               
00088                         <span class="keywordflow">throw</span> <a class="code" href="a02488.html">NLAIE::CExceptionObjectNotFoundError</a>(e.what());
00089                 }
00090                 <span class="keyword">delete</span> <a class="code" href="a03322.html#NLAIC_1_1CRegistryr1">_TableRegistry</a>[i]-&gt;FactoryClass;
00091                 <span class="keyword">delete</span> <a class="code" href="a03322.html#NLAIC_1_1CRegistryr1">_TableRegistry</a>[i];
00092                 <a class="code" href="a03322.html#NLAIC_1_1CRegistryr1">_TableRegistry</a>[i] = NULL;
00093         }
</pre></div>    </td>
  </tr>
</table>
<hr><h2>Field Documentation</h2>
<a class="anchor" name="NLAIC_1_1CRegistryr0" doxytag="NLAIC::CRegistry::_MapRegistry" ></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="a03322.html#NLAIC_1_1CRegistryy0">TMapRegistry</a>&amp; <a class="el" href="a03322.html#NLAIC_1_1CRegistryr0">NLAIC::CRegistry::_MapRegistry</a><code> [private]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Map Hows stored class factory instance. 
<p>

<p>
Definition at line <a class="el" href="a06324.html#l00068">68</a> of file <a class="el" href="a06324.html">registry.h</a>.
<p>
Referenced by <a class="el" href="a06323.html#l00041">CRegistry()</a>, <a class="el" href="a06323.html#l00168">getFactory()</a>, <a class="el" href="a06323.html#l00096">getNumIdent()</a>, <a class="el" href="a06323.html#l00057">registerClass()</a>, and <a class="el" href="a06323.html#l00045">~CRegistry()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NLAIC_1_1CRegistryr1" doxytag="NLAIC::CRegistry::_TableRegistry" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> std::vector&lt;<a class="el" href="a03323.html">CRegistryClass</a> *&gt; <a class="el" href="a03322.html#NLAIC_1_1CRegistryr1">NLAIC::CRegistry::_TableRegistry</a><code> [private]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Table for class factory index. 
<p>

<p>
Definition at line <a class="el" href="a06324.html#l00066">66</a> of file <a class="el" href="a06324.html">registry.h</a>.
<p>
Referenced by <a class="el" href="a06323.html#l00154">createInstance()</a>, <a class="el" href="a06323.html#l00215">existsClass()</a>, <a class="el" href="a06323.html#l00199">getFactory()</a>, <a class="el" href="a06323.html#l00128">getIdent()</a>, <a class="el" href="a06323.html#l00112">getNumIdent()</a>, <a class="el" href="a06323.html#l00205">operator[]()</a>, <a class="el" href="a06323.html#l00057">registerClass()</a>, <a class="el" href="a06323.html#l00210">size()</a>, <a class="el" href="a06323.html#l00079">unRegisterClass()</a>, and <a class="el" href="a06323.html#l00045">~CRegistry()</a>.    </td>
  </tr>
</table>
<hr>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="a06324.html">registry.h</a><li><a class="el" href="a06323.html">registry.cpp</a></ul>
<hr size="1"><address style="align: right;"><small>Generated on Tue Mar 16 10:22:14 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>