aboutsummaryrefslogtreecommitdiff
path: root/docs/doxygen/nel/a03107.html
blob: ed556a5b3a88099a5aa6418b27a126fe2fc1defa (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
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
<!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: NLLIGO::CPrimitiveClass 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>NLLIGO::CPrimitiveClass Class Reference</h1><code>#include &lt;<a class="el" href="a06202.html">primitive_class.h</a>&gt;</code>
<p>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Class of primitive <dl compact><dt><b>Author:</b></dt><dd>Cyril 'Hulud' Corvazier <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="a06202.html#l00050">50</a> of file <a class="el" href="a06202.html">primitive_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="a03107.html#NLLIGO_1_1CPrimitiveClassw4">TType</a> { <br>
&nbsp;&nbsp;<a class="el" href="a03107.html#NLLIGO_1_1CPrimitiveClassw4NLLIGO_1_1CPrimitiveClassw1">Node</a>, 
<a class="el" href="a03107.html#NLLIGO_1_1CPrimitiveClassw4NLLIGO_1_1CPrimitiveClassw3">Point</a>, 
<a class="el" href="a03107.html#NLLIGO_1_1CPrimitiveClassw4NLLIGO_1_1CPrimitiveClassw2">Path</a>, 
<a class="el" href="a03107.html#NLLIGO_1_1CPrimitiveClassw4NLLIGO_1_1CPrimitiveClassw0">Bitmap</a>, 
<br>
&nbsp;&nbsp;<a class="el" href="a03107.html#NLLIGO_1_1CPrimitiveClassw4NLLIGO_1_1CPrimitiveClassw5">Zone</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>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03107.html#NLLIGO_1_1CPrimitiveClassa0">CPrimitiveClass</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Constructor.  <a href="#NLLIGO_1_1CPrimitiveClassa0"></a><br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03107.html#NLLIGO_1_1CPrimitiveClassa1">read</a> (xmlNodePtr primitiveNode, const char *<a class="el" href="a04560.html#a1">filename</a>, const char *className, std::set&lt; std::string &gt; &amp;contextStrings, std::map&lt; std::string, std::string &gt; &amp;contextFilesLookup, <a class="el" href="a02756.html">NLLIGO::CLigoConfig</a> &amp;config)</td></tr>

<tr><td colspan=2><br><h2>Data Fields</h2></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03107.html#NLLIGO_1_1CPrimitiveClasso0">AutoInit</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Auto init ?  <a href="#NLLIGO_1_1CPrimitiveClasso0"></a><br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03107.html#NLLIGO_1_1CPrimitiveClasso1">Collision</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Collision ?  <a href="#NLLIGO_1_1CPrimitiveClasso1"></a><br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a03337.html">NLMISC::CRGBA</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03107.html#NLLIGO_1_1CPrimitiveClasso2">Color</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Color.  <a href="#NLLIGO_1_1CPrimitiveClasso2"></a><br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03107.html#NLLIGO_1_1CPrimitiveClasso3">Deletable</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Deletable ?  <a href="#NLLIGO_1_1CPrimitiveClasso3"></a><br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>std::vector&lt; <a class="el" href="a03108.html">CChild</a> &gt;&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03107.html#NLLIGO_1_1CPrimitiveClasso4">DynamicChildren</a></td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>std::string&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03107.html#NLLIGO_1_1CPrimitiveClasso5">FileExtension</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Filename extension (for type File).  <a href="#NLLIGO_1_1CPrimitiveClasso5"></a><br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>std::string&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03107.html#NLLIGO_1_1CPrimitiveClasso6">FileType</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">File type (for type File).  <a href="#NLLIGO_1_1CPrimitiveClasso6"></a><br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>std::vector&lt; <a class="el" href="a03108.html">CChild</a> &gt;&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03107.html#NLLIGO_1_1CPrimitiveClasso7">GeneratedChildren</a></td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03107.html#NLLIGO_1_1CPrimitiveClasso8">LinkBrothers</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Link children ?  <a href="#NLLIGO_1_1CPrimitiveClasso8"></a><br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>std::string&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03107.html#NLLIGO_1_1CPrimitiveClasso9">Name</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Class name.  <a href="#NLLIGO_1_1CPrimitiveClasso9"></a><br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03107.html#NLLIGO_1_1CPrimitiveClasso10">Numberize</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Numberize on copy ?  <a href="#NLLIGO_1_1CPrimitiveClasso10"></a><br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>std::vector&lt; <a class="el" href="a03111.html">CParameter</a> &gt;&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03107.html#NLLIGO_1_1CPrimitiveClasso11">Parameters</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Parameters.  <a href="#NLLIGO_1_1CPrimitiveClasso11"></a><br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03107.html#NLLIGO_1_1CPrimitiveClasso12">ShowArrow</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Show arrow ?  <a href="#NLLIGO_1_1CPrimitiveClasso12"></a><br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>std::vector&lt; <a class="el" href="a03108.html">CChild</a> &gt;&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03107.html#NLLIGO_1_1CPrimitiveClasso13">StaticChildren</a></td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>enum <a class="el" href="a03107.html#NLLIGO_1_1CPrimitiveClassw4">NLLIGO::CPrimitiveClass::TType</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03107.html#NLLIGO_1_1CPrimitiveClasso14">Type</a></td></tr>

</table>
<hr><h2>Member Enumeration Documentation</h2>
<a class="anchor" name="NLLIGO_1_1CPrimitiveClassw4" doxytag="NLLIGO::CPrimitiveClass::TType" ></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="a03107.html#NLLIGO_1_1CPrimitiveClassw4">NLLIGO::CPrimitiveClass::TType</a>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
<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="NLLIGO_1_1CPrimitiveClassw4NLLIGO_1_1CPrimitiveClassw1" doxytag="Node" ></a>Node</em>&nbsp;</td><td>
</td></tr>
<tr><td valign=top><em><a class="anchor" name="NLLIGO_1_1CPrimitiveClassw4NLLIGO_1_1CPrimitiveClassw3" doxytag="Point" ></a>Point</em>&nbsp;</td><td>
</td></tr>
<tr><td valign=top><em><a class="anchor" name="NLLIGO_1_1CPrimitiveClassw4NLLIGO_1_1CPrimitiveClassw2" doxytag="Path" ></a>Path</em>&nbsp;</td><td>
</td></tr>
<tr><td valign=top><em><a class="anchor" name="NLLIGO_1_1CPrimitiveClassw4NLLIGO_1_1CPrimitiveClassw0" doxytag="Bitmap" ></a>Bitmap</em>&nbsp;</td><td>
</td></tr>
<tr><td valign=top><em><a class="anchor" name="NLLIGO_1_1CPrimitiveClassw4NLLIGO_1_1CPrimitiveClassw5" doxytag="Zone" ></a>Zone</em>&nbsp;</td><td>
</td></tr>
</table>
</dl>

<p>
Definition at line <a class="el" href="a06202.html#l00055">55</a> of file <a class="el" href="a06202.html">primitive_class.h</a>.
<p>
<div class="fragment"><pre>00056         {
00057                 <a class="code" href="a03107.html#NLLIGO_1_1CPrimitiveClassw4NLLIGO_1_1CPrimitiveClassw1">Node</a>,
00058                 <a class="code" href="a03107.html#NLLIGO_1_1CPrimitiveClassw4NLLIGO_1_1CPrimitiveClassw3">Point</a>,
00059                 <a class="code" href="a03107.html#NLLIGO_1_1CPrimitiveClassw4NLLIGO_1_1CPrimitiveClassw2">Path</a>,
00060                 <a class="code" href="a03107.html#NLLIGO_1_1CPrimitiveClassw4NLLIGO_1_1CPrimitiveClassw0">Bitmap</a>,
00061                 <a class="code" href="a03107.html#NLLIGO_1_1CPrimitiveClassw4NLLIGO_1_1CPrimitiveClassw5">Zone</a>
00062         }                                               <a class="code" href="a03107.html#NLLIGO_1_1CPrimitiveClasso14">Type</a>;
</pre></div>    </td>
  </tr>
</table>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="NLLIGO_1_1CPrimitiveClassa0" doxytag="NLLIGO::CPrimitiveClass::CPrimitiveClass" ></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"> CPrimitiveClass::CPrimitiveClass </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>
Constructor. 
<p>

<p>
Definition at line <a class="el" href="a06201.html#l00038">38</a> of file <a class="el" href="a06201.html">primitive_class.cpp</a>.
<p>
<div class="fragment"><pre>00039 {
00040 }
</pre></div>    </td>
  </tr>
</table>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="NLLIGO_1_1CPrimitiveClassa1" doxytag="NLLIGO::CPrimitiveClass::read" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> bool CPrimitiveClass::read </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">xmlNodePtr&nbsp;</td>
          <td class="mdname" nowrap> <em>primitiveNode</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap>const char *&nbsp;</td>
          <td class="mdname" nowrap> <em>filename</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap>const char *&nbsp;</td>
          <td class="mdname" nowrap> <em>className</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap>std::set&lt; std::string &gt; &amp;&nbsp;</td>
          <td class="mdname" nowrap> <em>contextStrings</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap>std::map&lt; std::string, std::string &gt; &amp;&nbsp;</td>
          <td class="mdname" nowrap> <em>contextFilesLookup</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="a02756.html">NLLIGO::CLigoConfig</a> &amp;&nbsp;</td>
          <td class="mdname" nowrap> <em>config</em></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>

<p>
Definition at line <a class="el" href="a06201.html#l00193">193</a> of file <a class="el" href="a06201.html">primitive_class.cpp</a>.
<p>
References <a class="el" href="a06202.html#l00080">AutoInit</a>, <a class="el" href="a06202.html#l00166">NLLIGO::CPrimitiveClass::CParameter::Autoname</a>, <a class="el" href="a03107.html#NLLIGO_1_1CPrimitiveClassw4NLLIGO_1_1CPrimitiveClassw0">Bitmap</a>, <a class="el" href="a06202.html#l00086">Collision</a>, <a class="el" href="a06202.html#l00190">NLLIGO::CPrimitiveClass::CParameter::ComboValues</a>, <a class="el" href="a06202.html#l00128">NLLIGO::CPrimitiveClass::CInitParameters::DefaultValue</a>, <a class="el" href="a06202.html#l00083">Deletable</a>, <a class="el" href="a06202.html#l00178">NLLIGO::CPrimitiveClass::CParameter::DisplayHS</a>, <a class="el" href="a06202.html#l00221">DynamicChildren</a>, <a class="el" href="a06202.html#l00163">NLLIGO::CPrimitiveClass::CParameter::FileExtension</a>, <a class="el" href="a06202.html#l00071">FileExtension</a>, <a class="el" href="a06202.html#l00154">NLLIGO::CPrimitiveClass::CParameter::Filename</a>, <a class="el" href="a06202.html#l00074">FileType</a>, <a class="el" href="a06202.html#l00169">NLLIGO::CPrimitiveClass::CParameter::Folder</a>, <a class="el" href="a06202.html#l00224">GeneratedChildren</a>, <a class="el" href="a05903.html#l00319">NLLIGO::CLigoConfig::getPropertyString()</a>, <a class="el" href="a06202.html#l00089">LinkBrothers</a>, <a class="el" href="a06202.html#l00157">NLLIGO::CPrimitiveClass::CParameter::Lookup</a>, <a class="el" href="a06202.html#l00125">NLLIGO::CPrimitiveClass::CInitParameters::Name</a>, <a class="el" href="a03107.html#NLLIGO_1_1CPrimitiveClassw4NLLIGO_1_1CPrimitiveClassw1">Node</a>, <a class="el" href="a06202.html#l00095">Numberize</a>, <a class="el" href="a06202.html#l00201">Parameters</a>, <a class="el" href="a06201.html#l00070">ReadBool()</a>, <a class="el" href="a06201.html#l00122">ReadChild()</a>, <a class="el" href="a06201.html#l00091">ReadColor()</a>, <a class="el" href="a06201.html#l00057">ReadInt()</a>, <a class="el" href="a06202.html#l00160">NLLIGO::CPrimitiveClass::CParameter::ReadOnly</a>, <a class="el" href="a06202.html#l00092">ShowArrow</a>, <a class="el" href="a06202.html#l00175">NLLIGO::CPrimitiveClass::CParameter::SortEntries</a>, <a class="el" href="a06202.html#l00218">StaticChildren</a>, <a class="el" href="a05586.html#l00536">NLMISC::strlwr()</a>, <a class="el" href="a05903.html#l00333">NLLIGO::CLigoConfig::syntaxError()</a>, <a class="el" href="a03111.html#NLLIGO_1_1CPrimitiveClass_1_1CParametero11">NLLIGO::CPrimitiveClass::CParameter::Type</a>, <a class="el" href="a05646.html#l00244">type</a>, <a class="el" href="a05981.html#l00105">uint</a>, <a class="el" href="a05646.html#l01132">value</a>, <a class="el" href="a06202.html#l00186">NLLIGO::CPrimitiveClass::CParameter::CConstStringValue::Values</a>, <a class="el" href="a06202.html#l00151">NLLIGO::CPrimitiveClass::CParameter::Visible</a>, and <a class="el" href="a06202.html#l00172">NLLIGO::CPrimitiveClass::CParameter::WidgetHeight</a>.
<p>
<div class="fragment"><pre>00195 {
00196         <span class="comment">// The name</span>
00197         <a class="code" href="a03107.html#NLLIGO_1_1CPrimitiveClasso9">Name</a> = className;
00198 
00199         <span class="comment">// Read the type</span>
00200         std::string <a class="code" href="a04223.html#a581">type</a>;
00201         <span class="keywordflow">if</span> (config.<a class="code" href="a02756.html#NLLIGO_1_1CLigoConfigz1898_8">getPropertyString</a> (type, filename, primitiveNode, <span class="stringliteral">"TYPE"</span>))
00202         {
00203                 <span class="comment">// Good type ?</span>
00204                 <span class="keywordflow">if</span> (<a class="code" href="a04223.html#a581">type</a> == <span class="stringliteral">"node"</span>)
00205                         <a class="code" href="a03107.html#NLLIGO_1_1CPrimitiveClasso14">Type</a> = <a class="code" href="a03107.html#NLLIGO_1_1CPrimitiveClassw4NLLIGO_1_1CPrimitiveClassw1">Node</a>;
00206                 <span class="keywordflow">else</span> <span class="keywordflow">if</span> (<a class="code" href="a04223.html#a581">type</a> == <span class="stringliteral">"point"</span>)
00207                         <a class="code" href="a03107.html#NLLIGO_1_1CPrimitiveClasso14">Type</a> = <a class="code" href="a03107.html#NLLIGO_1_1CPrimitiveClassw4NLLIGO_1_1CPrimitiveClassw3">Point</a>;
00208                 <span class="keywordflow">else</span> <span class="keywordflow">if</span> (<a class="code" href="a04223.html#a581">type</a> == <span class="stringliteral">"path"</span>)
00209                         <a class="code" href="a03107.html#NLLIGO_1_1CPrimitiveClasso14">Type</a> = <a class="code" href="a03107.html#NLLIGO_1_1CPrimitiveClassw4NLLIGO_1_1CPrimitiveClassw2">Path</a>;
00210                 <span class="keywordflow">else</span> <span class="keywordflow">if</span> (<a class="code" href="a04223.html#a581">type</a> == <span class="stringliteral">"zone"</span>)
00211                         <a class="code" href="a03107.html#NLLIGO_1_1CPrimitiveClasso14">Type</a> = <a class="code" href="a03107.html#NLLIGO_1_1CPrimitiveClassw4NLLIGO_1_1CPrimitiveClassw5">Zone</a>;
00212                 <span class="keywordflow">else</span> <span class="keywordflow">if</span> (<a class="code" href="a04223.html#a581">type</a> == <span class="stringliteral">"bitmap"</span>)
00213                         <a class="code" href="a03107.html#NLLIGO_1_1CPrimitiveClasso14">Type</a> = <a class="code" href="a03107.html#NLLIGO_1_1CPrimitiveClassw4NLLIGO_1_1CPrimitiveClassw0">Bitmap</a>;
00214                 <span class="keywordflow">else</span> 
00215                 {
00216                         config.<a class="code" href="a02756.html#NLLIGO_1_1CLigoConfigz1898_11">syntaxError</a> (filename, primitiveNode, <span class="stringliteral">"Unknown primitive type (%s)"</span>, <a class="code" href="a04223.html#a581">type</a>.c_str ());
00217                         <span class="keywordflow">goto</span> failed;
00218                 }
00219 
00220                 <span class="comment">// Read the color</span>
00221                 <a class="code" href="a04780.html#a0">ReadColor</a> (Color, primitiveNode);
00222 
00223                 <span class="comment">// Autoinit</span>
00224                 <a class="code" href="a03107.html#NLLIGO_1_1CPrimitiveClasso0">AutoInit</a> = <span class="keyword">false</span>;
00225                 <a class="code" href="a04778.html#a2">ReadBool</a> (<span class="stringliteral">"AUTO_INIT"</span>, AutoInit, primitiveNode, filename, config);
00226                 
00227                 <span class="comment">// Deletable</span>
00228                 <a class="code" href="a03107.html#NLLIGO_1_1CPrimitiveClasso3">Deletable</a> = <span class="keyword">true</span>;
00229                 <a class="code" href="a04778.html#a2">ReadBool</a> (<span class="stringliteral">"DELETABLE"</span>, Deletable, primitiveNode, filename, config);
00230 
00231                 <span class="comment">// File extension</span>
00232                 <a class="code" href="a03107.html#NLLIGO_1_1CPrimitiveClasso5">FileExtension</a> = <span class="stringliteral">""</span>;
00233                 CIXml::getPropertyString (FileExtension, primitiveNode, <span class="stringliteral">"FILE_EXTENSION"</span>);
00234 
00235                 <span class="comment">// File type</span>
00236                 <a class="code" href="a03107.html#NLLIGO_1_1CPrimitiveClasso6">FileType</a> = <span class="stringliteral">""</span>;
00237                 CIXml::getPropertyString (FileType, primitiveNode, <span class="stringliteral">"FILE_TYPE"</span>);
00238 
00239                 <span class="comment">// Collision</span>
00240                 <a class="code" href="a03107.html#NLLIGO_1_1CPrimitiveClasso1">Collision</a> = <span class="keyword">false</span>;
00241                 <a class="code" href="a04778.html#a2">ReadBool</a> (<span class="stringliteral">"COLLISION"</span>, Collision, primitiveNode, filename, config);
00242 
00243                 <span class="comment">// LinkBrothers</span>
00244                 <a class="code" href="a03107.html#NLLIGO_1_1CPrimitiveClasso8">LinkBrothers</a> = <span class="keyword">false</span>;
00245                 <a class="code" href="a04778.html#a2">ReadBool</a> (<span class="stringliteral">"LINK_BROTHERS"</span>, LinkBrothers, primitiveNode, filename, config);
00246 
00247                 <span class="comment">// ShowArrow</span>
00248                 <a class="code" href="a03107.html#NLLIGO_1_1CPrimitiveClasso12">ShowArrow</a> = <span class="keyword">true</span>;
00249                 <a class="code" href="a04778.html#a2">ReadBool</a> (<span class="stringliteral">"SHOW_ARROW"</span>, ShowArrow, primitiveNode, filename, config);
00250                 
00251                 <span class="comment">// Numberize when copy the primitive</span>
00252                 <a class="code" href="a03107.html#NLLIGO_1_1CPrimitiveClasso10">Numberize</a> = <span class="keyword">true</span>;
00253                 <a class="code" href="a04778.html#a2">ReadBool</a> (<span class="stringliteral">"NUMBERIZE"</span>, Numberize, primitiveNode, filename, config);
00254 
00255                 <span class="comment">// Read the parameters</span>
00256                 xmlNodePtr paramNode = CIXml::getFirstChildNode (primitiveNode, <span class="stringliteral">"PARAMETER"</span>);
00257                 <span class="keywordflow">if</span> (paramNode)
00258                 {
00259                         <span class="keywordflow">do</span>
00260                         {
00261                                 <span class="comment">// Add a parameter</span>
00262                                 <a class="code" href="a03107.html#NLLIGO_1_1CPrimitiveClasso11">Parameters</a>.push_back (CParameter ());
00263 
00264                                 <span class="comment">// The parameter ref</span>
00265                                 CParameter &amp;parameter = <a class="code" href="a03107.html#NLLIGO_1_1CPrimitiveClasso11">Parameters</a>.back ();
00266 
00267                                 <span class="comment">// Read the property name</span>
00268                                 <span class="keywordflow">if</span> (config.<a class="code" href="a02756.html#NLLIGO_1_1CLigoConfigz1898_8">getPropertyString</a> (type, filename, paramNode, <span class="stringliteral">"NAME"</span>))
00269                                 {
00270                                         <span class="comment">// Set the name</span>
00271                                         parameter.Name = <a class="code" href="a04223.html#a581">type</a>;
00272 
00273                                         <span class="comment">// Read the type</span>
00274                                         <span class="keywordflow">if</span> (config.<a class="code" href="a02756.html#NLLIGO_1_1CLigoConfigz1898_8">getPropertyString</a> (type, filename, paramNode, <span class="stringliteral">"TYPE"</span>))
00275                                         {
00276                                                 <span class="comment">// Good type ?</span>
00277                                                 <span class="keywordflow">if</span> (<a class="code" href="a04223.html#a581">type</a> == <span class="stringliteral">"boolean"</span>)
00278                                                         parameter.Type = CParameter::Boolean;
00279                                                 <span class="keywordflow">else</span> <span class="keywordflow">if</span> (<a class="code" href="a04223.html#a581">type</a> == <span class="stringliteral">"const_string"</span>)
00280                                                         parameter.Type = CParameter::ConstString;
00281                                                 <span class="keywordflow">else</span> <span class="keywordflow">if</span> (<a class="code" href="a04223.html#a581">type</a> == <span class="stringliteral">"string"</span>)
00282                                                         parameter.Type = CParameter::String;
00283                                                 <span class="keywordflow">else</span> <span class="keywordflow">if</span> (<a class="code" href="a04223.html#a581">type</a> == <span class="stringliteral">"string_array"</span>)
00284                                                         parameter.Type = CParameter::StringArray;
00285                                                 <span class="keywordflow">else</span> <span class="keywordflow">if</span> (<a class="code" href="a04223.html#a581">type</a> == <span class="stringliteral">"const_string_array"</span>)
00286                                                         parameter.Type = CParameter::ConstStringArray;
00287                                                 <span class="keywordflow">else</span>
00288                                                 {
00289                                                         config.<a class="code" href="a02756.html#NLLIGO_1_1CLigoConfigz1898_11">syntaxError</a> (filename, paramNode, <span class="stringliteral">"Unknown primitive parameter type (%s)"</span>, <a class="code" href="a04223.html#a581">type</a>.c_str ());
00290                                                         <span class="keywordflow">goto</span> failed;
00291                                                 }
00292 
00293                                                 <span class="comment">// Visible</span>
00294                                                 parameter.Visible = <span class="keyword">true</span>;
00295                                                 <a class="code" href="a04778.html#a2">ReadBool</a> (<span class="stringliteral">"VISIBLE"</span>, parameter.Visible, paramNode, filename, config);
00296 
00297                                                 <span class="comment">// Filename</span>
00298                                                 parameter.Filename = <span class="keyword">false</span>;
00299                                                 <a class="code" href="a04778.html#a2">ReadBool</a> (<span class="stringliteral">"FILENAME"</span>, parameter.Filename, paramNode, filename, config);
00300 
00301                                                 <span class="comment">// Lookup</span>
00302                                                 parameter.Lookup = <span class="keyword">false</span>;
00303                                                 <a class="code" href="a04778.html#a2">ReadBool</a> (<span class="stringliteral">"LOOKUP"</span>, parameter.Lookup, paramNode, filename, config);
00304 
00305                                                 <span class="comment">// Read only primitive</span>
00306                                                 parameter.ReadOnly = <span class="keyword">false</span>;
00307                                                 <a class="code" href="a04778.html#a2">ReadBool</a> (<span class="stringliteral">"READ_ONLY"</span>, parameter.ReadOnly, paramNode, filename, config);
00308 
00309                                                 <span class="comment">// sort combo box entries </span>
00310                                                 parameter.SortEntries = <span class="keyword">false</span>;
00311                                                 <a class="code" href="a04778.html#a2">ReadBool</a> (<span class="stringliteral">"SORT_ENTRIES"</span>, parameter.SortEntries, paramNode, filename, config);
00312 
00313                                                 <span class="comment">// Display horizontal scoller in multiline edit box</span>
00314                                                 parameter.DisplayHS = <span class="keyword">false</span>;
00315                                                 <a class="code" href="a04778.html#a2">ReadBool</a> (<span class="stringliteral">"SHOW_HS"</span>, parameter.DisplayHS, paramNode, filename, config);
00316 
00317                                                 <span class="comment">// Lookup</span>
00318                                                 parameter.WidgetHeight = 100;
00319                                                 <span class="keywordtype">int</span> temp;
00320                                                 <span class="keywordflow">if</span> (<a class="code" href="a04778.html#a1">ReadInt</a> (<span class="stringliteral">"WIDGET_HEIGHT"</span>, temp, paramNode))
00321                                                         parameter.WidgetHeight = (<a class="code" href="a04558.html#a15">uint</a>)temp;
00322 
00323                                                 <span class="comment">// Read the file extension</span>
00324                                                 parameter.FileExtension = <span class="stringliteral">""</span>;
00325                                                 CIXml::getPropertyString (parameter.FileExtension, paramNode, <span class="stringliteral">"FILE_EXTENSION"</span>);
00326                                                 parameter.FileExtension = <a class="code" href="a05378.html#a273">strlwr</a> (parameter.FileExtension);
00327 
00328                                                 <span class="comment">// Autonaming preference</span>
00329                                                 parameter.Autoname = <span class="stringliteral">""</span>;
00330                                                 CIXml::getPropertyString (parameter.Autoname, paramNode, <span class="stringliteral">"AUTONAME"</span>);
00331                                                 
00332                                                 <span class="comment">// Read the file extension</span>
00333                                                 parameter.Folder = <span class="stringliteral">""</span>;
00334                                                 CIXml::getPropertyString (parameter.Folder, paramNode, <span class="stringliteral">"FOLDER"</span>);
00335                                                 parameter.Folder = <a class="code" href="a05378.html#a273">strlwr</a> (parameter.Folder);
00336 
00337                                                 <span class="comment">// Read the combo values</span>
00338                                                 xmlNodePtr comboValueNode = CIXml::getFirstChildNode (paramNode, <span class="stringliteral">"COMBO_VALUES"</span>);
00339                                                 <span class="keywordflow">if</span> (comboValueNode)
00340                                                 {
00341                                                         <span class="keywordflow">do</span>
00342                                                         {
00343                                                                 <span class="comment">// Read the context</span>
00344                                                                 <span class="keywordflow">if</span> (config.<a class="code" href="a02756.html#NLLIGO_1_1CLigoConfigz1898_8">getPropertyString</a> (type, filename, comboValueNode, <span class="stringliteral">"CONTEXT_NAME"</span>))
00345                                                                 {
00346                                                                         <span class="comment">// Add this context</span>
00347                                                                         contextStrings.insert (type);
00348 
00349                                                                         <span class="comment">// Add a combo value</span>
00350                                                                         pair&lt;std::map&lt;std::string, CParameter::CConstStringValue&gt;::iterator, <span class="keywordtype">bool</span>&gt; insertResult =
00351                                                                                 parameter.ComboValues.insert (std::map&lt;std::string, CParameter::CConstStringValue&gt;::value_type (type, CParameter::CConstStringValue ()));
00352 
00353                                                                         <span class="comment">// The combo value ref</span>
00354                                                                         CParameter::CConstStringValue &amp;comboValue = insertResult.first-&gt;second;
00355 
00356                                                                         <span class="comment">// Read the values</span>
00357                                                                         xmlNodePtr comboValueValueNode = CIXml::getFirstChildNode (comboValueNode, <span class="stringliteral">"CONTEXT_VALUE"</span>);
00358                                                                         comboValue.Values.reserve (CIXml::countChildren (comboValueNode, <span class="stringliteral">"CONTEXT_VALUE"</span>));
00359                                                                         <span class="keywordflow">if</span> (comboValueValueNode)
00360                                                                         {
00361                                                                                 <span class="keywordflow">do</span>
00362                                                                                 {
00363                                                                                         <span class="comment">// Read the value </span>
00364                                                                                         <span class="keywordflow">if</span> (config.<a class="code" href="a02756.html#NLLIGO_1_1CLigoConfigz1898_8">getPropertyString</a> (type, filename, comboValueValueNode, <span class="stringliteral">"VALUE"</span>))
00365                                                                                         {
00366                                                                                                 <span class="comment">// Add a combo box</span>
00367                                                                                                 comboValue.Values.push_back (type);
00368                                                                                         }
00369                                                                                         <span class="keywordflow">else</span>
00370                                                                                                 <span class="keywordflow">goto</span> failed;
00371                                                                                 }
00372                                                                                 <span class="keywordflow">while</span> ((comboValueValueNode = CIXml::getFirstChildNode (comboValueValueNode, <span class="stringliteral">"CONTEXT_VALUE"</span>)));
00373                                                                         }
00374                                                                 }
00375                                                                 <span class="keywordflow">else</span>
00376                                                                         <span class="keywordflow">goto</span> failed;
00377                                                         }
00378                                                         <span class="keywordflow">while</span> ((comboValueNode = CIXml::getNextChildNode (comboValueNode, <span class="stringliteral">"COMBO_VALUES"</span>)));
00379                                                 }
00380 
00381                                                 <span class="comment">// Read the combo files</span>
00382                                                 comboValueNode = CIXml::getFirstChildNode (paramNode, <span class="stringliteral">"COMBO_FILES"</span>);
00383                                                 <span class="keywordflow">if</span> (comboValueNode)
00384                                                 {
00385                                                         <span class="keywordflow">do</span>
00386                                                         {
00387                                                                 <span class="comment">// Read the context</span>
00388                                                                 <span class="keywordflow">if</span> (config.<a class="code" href="a02756.html#NLLIGO_1_1CLigoConfigz1898_8">getPropertyString</a> (type, filename, comboValueNode, <span class="stringliteral">"CONTEXT_NAME"</span>))
00389                                                                 {
00390                                                                         <span class="comment">// Read the path to search</span>
00391                                                                         string path;
00392                                                                         <span class="keywordflow">if</span> (config.<a class="code" href="a02756.html#NLLIGO_1_1CLigoConfigz1898_8">getPropertyString</a> (path, filename, comboValueNode, <span class="stringliteral">"PATH"</span>))
00393                                                                         {
00394                                                                                 <span class="comment">// Look for files in the path</span>
00395                                                                                 std::vector&lt;std::string&gt; files;
00396                                                                                 CPath::getPathContent (path, <span class="keyword">true</span>, <span class="keyword">false</span>, <span class="keyword">true</span>, files);
00397 
00398                                                                                 <span class="comment">// Not empty ?</span>
00399                                                                                 <span class="keywordflow">if</span> (!files.empty ())
00400                                                                                 {
00401                                                                                         <span class="comment">// Add this context</span>
00402                                                                                         contextStrings.insert (type);
00403 
00404                                                                                         <span class="comment">// For each file</span>
00405                                                                                         <span class="keywordflow">for</span> (<a class="code" href="a04558.html#a15">uint</a> i=0; i&lt;files.size (); i++)
00406                                                                                         {
00407                                                                                                 <span class="comment">// Good extension ?</span>
00408                                                                                                 <span class="keywordflow">if</span> (<a class="code" href="a05378.html#a273">strlwr</a> (NLMISC::CFile::getExtension (files[i])) == parameter.FileExtension)
00409                                                                                                 {
00410                                                                                                         <span class="comment">// Add a combo value</span>
00411                                                                                                         pair&lt;std::map&lt;std::string, CParameter::CConstStringValue&gt;::iterator, <span class="keywordtype">bool</span>&gt; insertResult =
00412                                                                                                                 parameter.ComboValues.insert (std::map&lt;std::string, CParameter::CConstStringValue&gt;::value_type (type, CParameter::CConstStringValue ()));
00413 
00414                                                                                                         <span class="comment">// The combo value ref</span>
00415                                                                                                         CParameter::CConstStringValue &amp;comboValue = insertResult.first-&gt;second;
00416 
00417                                                                                                         <span class="comment">// Get the filename without extension</span>
00418                                                                                                         string nameWithoutExt = <a class="code" href="a05378.html#a273">strlwr</a> (NLMISC::CFile::getFilenameWithoutExtension (files[i]));
00419 
00420                                                                                                         <span class="comment">// Add the values</span>
00421                                                                                                         comboValue.Values.push_back (nameWithoutExt);
00422 
00423                                                                                                         <span class="comment">// Add the value for lookup</span>
00424                                                                                                         contextFilesLookup.insert (map&lt;string, string&gt;::value_type (nameWithoutExt, files[i]));
00425                                                                                                 }
00426                                                                                         }
00427                                                                                 }
00428                                                                         }
00429                                                                         <span class="keywordflow">else</span>
00430                                                                                 <span class="keywordflow">goto</span> failed;
00431                                                                 }
00432                                                                 <span class="keywordflow">else</span>
00433                                                                         <span class="keywordflow">goto</span> failed;
00434                                                         }
00435                                                         <span class="keywordflow">while</span> ((comboValueNode = CIXml::getNextChildNode (comboValueNode, <span class="stringliteral">"COMBO_FILES"</span>)));
00436                                                 }
00437 
00438                                                 <span class="comment">// Read parameters default values</span>
00439                                                 xmlNodePtr defaultValueNode = CIXml::getFirstChildNode (paramNode, <span class="stringliteral">"DEFAULT_VALUE"</span>);
00440                                                 parameter.DefaultValue.resize (CIXml::countChildren (paramNode, <span class="stringliteral">"DEFAULT_VALUE"</span>));
00441                                                 <a class="code" href="a04558.html#a15">uint</a> defaultId = 0;
00442                                                 <span class="keywordflow">if</span> (defaultValueNode)
00443                                                 {
00444                                                         <span class="keywordflow">do</span>
00445                                                         {
00446                                                                 <span class="comment">// Gen id flag</span>
00447                                                                 parameter.DefaultValue[defaultId].GenID = <span class="keyword">false</span>;
00448 
00449                                                                 <span class="comment">// Read the gen id flag</span>
00450                                                                 string <a class="code" href="a04223.html#a658">value</a>;
00451                                                                 <span class="keywordflow">if</span> (CIXml::getPropertyString (value, defaultValueNode, <span class="stringliteral">"GEN_ID"</span>) &amp;&amp; (<a class="code" href="a04223.html#a658">value</a> != <span class="stringliteral">"false"</span>))
00452                                                                 {
00453                                                                         parameter.DefaultValue[defaultId].GenID = <span class="keyword">true</span>;
00454                                                                 }
00455                                                                 <span class="keywordflow">else</span>
00456                                                                 {
00457                                                                         <span class="keywordflow">if</span> (config.<a class="code" href="a02756.html#NLLIGO_1_1CLigoConfigz1898_8">getPropertyString</a> (value, filename, defaultValueNode, <span class="stringliteral">"VALUE"</span>))
00458                                                                         {
00459                                                                                 parameter.DefaultValue[defaultId].Name = <a class="code" href="a04223.html#a658">value</a>;
00460                                                                         }
00461                                                                         <span class="keywordflow">else</span>
00462                                                                                 <span class="keywordflow">goto</span> failed;
00463                                                                 }
00464                                                                 defaultId++;
00465                                                         }
00466                                                         <span class="keywordflow">while</span> ((defaultValueNode = CIXml::getNextChildNode (defaultValueNode, <span class="stringliteral">"DEFAULT_VALUE"</span>)));
00467                                                 }
00468                                         }
00469                                         <span class="keywordflow">else</span>
00470                                                 <span class="keywordflow">goto</span> failed;
00471                                 }
00472                                 <span class="keywordflow">else</span>
00473                                         <span class="keywordflow">goto</span> failed;
00474                         }
00475                         <span class="keywordflow">while</span> ((paramNode = CIXml::getNextChildNode (paramNode, <span class="stringliteral">"PARAMETER"</span>)));
00476                 }
00477 
00478                 <span class="comment">// Read static children</span>
00479                 xmlNodePtr childrenNode = CIXml::getFirstChildNode (primitiveNode, <span class="stringliteral">"STATIC_CHILD"</span>);
00480                 <a class="code" href="a03107.html#NLLIGO_1_1CPrimitiveClasso13">StaticChildren</a>.reserve (CIXml::countChildren (primitiveNode, <span class="stringliteral">"STATIC_CHILD"</span>));
00481                 <span class="keywordflow">if</span> (childrenNode)
00482                 {
00483                         <span class="keywordflow">do</span>
00484                         {
00485                                 <span class="comment">// Add a static child</span>
00486                                 <a class="code" href="a03107.html#NLLIGO_1_1CPrimitiveClasso13">StaticChildren</a>.push_back (CChild ());
00487                                 
00488                                 <span class="comment">// Child ref</span>
00489                                 CChild &amp;child = <a class="code" href="a03107.html#NLLIGO_1_1CPrimitiveClasso13">StaticChildren</a>.back ();
00490 
00491                                 <span class="comment">// Read the child</span>
00492                                 <span class="keywordflow">if</span> (!<a class="code" href="a04778.html#a4">ReadChild</a> (child, childrenNode, filename, <span class="keyword">true</span>, config))
00493                                         <span class="keywordflow">goto</span> failed;
00494                         }
00495                         <span class="keywordflow">while</span> ((childrenNode = CIXml::getNextChildNode (childrenNode, <span class="stringliteral">"STATIC_CHILD"</span>)));
00496                 }
00497 
00498                 <span class="comment">// Read dynamic children</span>
00499                 childrenNode = CIXml::getFirstChildNode (primitiveNode, <span class="stringliteral">"DYNAMIC_CHILD"</span>);
00500                 <a class="code" href="a03107.html#NLLIGO_1_1CPrimitiveClasso4">DynamicChildren</a>.reserve (CIXml::countChildren (primitiveNode, <span class="stringliteral">"DYNAMIC_CHILD"</span>));
00501                 <span class="keywordflow">if</span> (childrenNode)
00502                 {
00503                         <span class="keywordflow">do</span>
00504                         {
00505                                 <span class="comment">// Add a static child</span>
00506                                 <a class="code" href="a03107.html#NLLIGO_1_1CPrimitiveClasso4">DynamicChildren</a>.push_back (CChild ());
00507                                 
00508                                 <span class="comment">// Child ref</span>
00509                                 CChild &amp;child = <a class="code" href="a03107.html#NLLIGO_1_1CPrimitiveClasso4">DynamicChildren</a>.back ();
00510 
00511                                 <span class="comment">// Read the child</span>
00512                                 <span class="keywordflow">if</span> (!<a class="code" href="a04778.html#a4">ReadChild</a> (child, childrenNode, filename, <span class="keyword">false</span>, config))
00513                                         <span class="keywordflow">goto</span> failed;
00514                         }
00515                         <span class="keywordflow">while</span> ((childrenNode = CIXml::getNextChildNode (childrenNode, <span class="stringliteral">"DYNAMIC_CHILD"</span>)));
00516                 }
00517 
00518                 <span class="comment">// Read generated children</span>
00519                 childrenNode = CIXml::getFirstChildNode (primitiveNode, <span class="stringliteral">"GENERATED_CHILD"</span>);
00520                 <a class="code" href="a03107.html#NLLIGO_1_1CPrimitiveClasso7">GeneratedChildren</a>.reserve (CIXml::countChildren (primitiveNode, <span class="stringliteral">"GENERATED_CHILD"</span>));
00521                 <span class="keywordflow">if</span> (childrenNode)
00522                 {
00523                         <span class="keywordflow">do</span>
00524                         {
00525                                 <span class="comment">// Add a static child</span>
00526                                 <a class="code" href="a03107.html#NLLIGO_1_1CPrimitiveClasso7">GeneratedChildren</a>.push_back (CChild ());
00527                                 
00528                                 <span class="comment">// Child ref</span>
00529                                 CChild &amp;child = <a class="code" href="a03107.html#NLLIGO_1_1CPrimitiveClasso7">GeneratedChildren</a>.back ();
00530 
00531                                 <span class="comment">// Read the child</span>
00532                                 <span class="keywordflow">if</span> (!<a class="code" href="a04778.html#a4">ReadChild</a> (child, childrenNode, filename, <span class="keyword">false</span>, config))
00533                                         <span class="keywordflow">goto</span> failed;
00534                         }
00535                         <span class="keywordflow">while</span> ((childrenNode = CIXml::getNextChildNode (childrenNode, <span class="stringliteral">"GENERATED_CHILD"</span>)));
00536                 }
00537 
00538                 <span class="keywordflow">return</span> <span class="keyword">true</span>;
00539         }
00540 failed:
00541         <span class="keywordflow">return</span> <span class="keyword">false</span>;
00542 }
</pre></div>    </td>
  </tr>
</table>
<hr><h2>Field Documentation</h2>
<a class="anchor" name="NLLIGO_1_1CPrimitiveClasso0" doxytag="NLLIGO::CPrimitiveClass::AutoInit" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> bool <a class="el" href="a03107.html#NLLIGO_1_1CPrimitiveClasso0">NLLIGO::CPrimitiveClass::AutoInit</a>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Auto init ? 
<p>

<p>
Definition at line <a class="el" href="a06202.html#l00080">80</a> of file <a class="el" href="a06202.html">primitive_class.h</a>.
<p>
Referenced by <a class="el" href="a06201.html#l00193">read()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NLLIGO_1_1CPrimitiveClasso1" doxytag="NLLIGO::CPrimitiveClass::Collision" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> bool <a class="el" href="a03107.html#NLLIGO_1_1CPrimitiveClasso1">NLLIGO::CPrimitiveClass::Collision</a>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Collision ? 
<p>

<p>
Definition at line <a class="el" href="a06202.html#l00086">86</a> of file <a class="el" href="a06202.html">primitive_class.h</a>.
<p>
Referenced by <a class="el" href="a06201.html#l00193">read()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NLLIGO_1_1CPrimitiveClasso2" doxytag="NLLIGO::CPrimitiveClass::Color" ></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="a03337.html">NLMISC::CRGBA</a> <a class="el" href="a03107.html#NLLIGO_1_1CPrimitiveClasso2">NLLIGO::CPrimitiveClass::Color</a>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Color. 
<p>

<p>
Definition at line <a class="el" href="a06202.html#l00077">77</a> of file <a class="el" href="a06202.html">primitive_class.h</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NLLIGO_1_1CPrimitiveClasso3" doxytag="NLLIGO::CPrimitiveClass::Deletable" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> bool <a class="el" href="a03107.html#NLLIGO_1_1CPrimitiveClasso3">NLLIGO::CPrimitiveClass::Deletable</a>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Deletable ? 
<p>

<p>
Definition at line <a class="el" href="a06202.html#l00083">83</a> of file <a class="el" href="a06202.html">primitive_class.h</a>.
<p>
Referenced by <a class="el" href="a06201.html#l00193">read()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NLLIGO_1_1CPrimitiveClasso4" doxytag="NLLIGO::CPrimitiveClass::DynamicChildren" ></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="a03108.html">CChild</a>&gt; <a class="el" href="a03107.html#NLLIGO_1_1CPrimitiveClasso4">NLLIGO::CPrimitiveClass::DynamicChildren</a>
      </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="a06202.html#l00221">221</a> of file <a class="el" href="a06202.html">primitive_class.h</a>.
<p>
Referenced by <a class="el" href="a05903.html#l00242">NLLIGO::CLigoConfig::canBeChild()</a>, <a class="el" href="a05903.html#l00286">NLLIGO::CLigoConfig::canBeRoot()</a>, and <a class="el" href="a06201.html#l00193">read()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NLLIGO_1_1CPrimitiveClasso5" doxytag="NLLIGO::CPrimitiveClass::FileExtension" ></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::string <a class="el" href="a03107.html#NLLIGO_1_1CPrimitiveClasso5">NLLIGO::CPrimitiveClass::FileExtension</a>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Filename extension (for type File). 
<p>

<p>
Definition at line <a class="el" href="a06202.html#l00071">71</a> of file <a class="el" href="a06202.html">primitive_class.h</a>.
<p>
Referenced by <a class="el" href="a06201.html#l00193">read()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NLLIGO_1_1CPrimitiveClasso6" doxytag="NLLIGO::CPrimitiveClass::FileType" ></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::string <a class="el" href="a03107.html#NLLIGO_1_1CPrimitiveClasso6">NLLIGO::CPrimitiveClass::FileType</a>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
File type (for type File). 
<p>

<p>
Definition at line <a class="el" href="a06202.html#l00074">74</a> of file <a class="el" href="a06202.html">primitive_class.h</a>.
<p>
Referenced by <a class="el" href="a06201.html#l00193">read()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NLLIGO_1_1CPrimitiveClasso7" doxytag="NLLIGO::CPrimitiveClass::GeneratedChildren" ></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="a03108.html">CChild</a>&gt; <a class="el" href="a03107.html#NLLIGO_1_1CPrimitiveClasso7">NLLIGO::CPrimitiveClass::GeneratedChildren</a>
      </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="a06202.html#l00224">224</a> of file <a class="el" href="a06202.html">primitive_class.h</a>.
<p>
Referenced by <a class="el" href="a05903.html#l00242">NLLIGO::CLigoConfig::canBeChild()</a>, and <a class="el" href="a06201.html#l00193">read()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NLLIGO_1_1CPrimitiveClasso8" doxytag="NLLIGO::CPrimitiveClass::LinkBrothers" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> bool <a class="el" href="a03107.html#NLLIGO_1_1CPrimitiveClasso8">NLLIGO::CPrimitiveClass::LinkBrothers</a>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Link children ? 
<p>

<p>
Definition at line <a class="el" href="a06202.html#l00089">89</a> of file <a class="el" href="a06202.html">primitive_class.h</a>.
<p>
Referenced by <a class="el" href="a06201.html#l00193">read()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NLLIGO_1_1CPrimitiveClasso9" doxytag="NLLIGO::CPrimitiveClass::Name" ></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::string <a class="el" href="a03107.html#NLLIGO_1_1CPrimitiveClasso9">NLLIGO::CPrimitiveClass::Name</a>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Class name. 
<p>

<p>
Definition at line <a class="el" href="a06202.html#l00068">68</a> of file <a class="el" href="a06202.html">primitive_class.h</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NLLIGO_1_1CPrimitiveClasso10" doxytag="NLLIGO::CPrimitiveClass::Numberize" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> bool <a class="el" href="a03107.html#NLLIGO_1_1CPrimitiveClasso10">NLLIGO::CPrimitiveClass::Numberize</a>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Numberize on copy ? 
<p>

<p>
Definition at line <a class="el" href="a06202.html#l00095">95</a> of file <a class="el" href="a06202.html">primitive_class.h</a>.
<p>
Referenced by <a class="el" href="a06201.html#l00193">read()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NLLIGO_1_1CPrimitiveClasso11" doxytag="NLLIGO::CPrimitiveClass::Parameters" ></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="a03111.html">CParameter</a>&gt; <a class="el" href="a03107.html#NLLIGO_1_1CPrimitiveClasso11">NLLIGO::CPrimitiveClass::Parameters</a>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Parameters. 
<p>

<p>
Definition at line <a class="el" href="a06202.html#l00201">201</a> of file <a class="el" href="a06202.html">primitive_class.h</a>.
<p>
Referenced by <a class="el" href="a06201.html#l00193">read()</a>, <a class="el" href="a06195.html#l01396">NLLIGO::IPrimitive::read()</a>, and <a class="el" href="a06201.html#l00599">NLLIGO::CPrimitiveClass::CParameter::translateAutoname()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NLLIGO_1_1CPrimitiveClasso12" doxytag="NLLIGO::CPrimitiveClass::ShowArrow" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> bool <a class="el" href="a03107.html#NLLIGO_1_1CPrimitiveClasso12">NLLIGO::CPrimitiveClass::ShowArrow</a>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Show arrow ? 
<p>

<p>
Definition at line <a class="el" href="a06202.html#l00092">92</a> of file <a class="el" href="a06202.html">primitive_class.h</a>.
<p>
Referenced by <a class="el" href="a06201.html#l00193">read()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NLLIGO_1_1CPrimitiveClasso13" doxytag="NLLIGO::CPrimitiveClass::StaticChildren" ></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="a03108.html">CChild</a>&gt; <a class="el" href="a03107.html#NLLIGO_1_1CPrimitiveClasso13">NLLIGO::CPrimitiveClass::StaticChildren</a>
      </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="a06202.html#l00218">218</a> of file <a class="el" href="a06202.html">primitive_class.h</a>.
<p>
Referenced by <a class="el" href="a06201.html#l00193">read()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NLLIGO_1_1CPrimitiveClasso14" doxytag="NLLIGO::CPrimitiveClass::Type" ></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="a03107.html#NLLIGO_1_1CPrimitiveClassw4">NLLIGO::CPrimitiveClass::TType</a>						 <a class="el" href="a03107.html#NLLIGO_1_1CPrimitiveClasso14">NLLIGO::CPrimitiveClass::Type</a>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
    </td>
  </tr>
</table>
<hr>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="a06202.html">primitive_class.h</a><li><a class="el" href="a06201.html">primitive_class.cpp</a></ul>
<hr size="1"><address style="align: right;"><small>Generated on Tue Mar 16 12:48:13 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>