aboutsummaryrefslogtreecommitdiff
path: root/docs/doxygen/nel/a02818.html
blob: c9e5f1f0e26f477d5e90d282c9926e2809231335 (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
<!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: NLLOGIC::CLogicConditionNode 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>NLLOGIC::CLogicConditionNode Class Reference</h1><code>#include &lt;<a class="el" href="a05947.html">logic_condition.h</a>&gt;</code>
<p>
<hr><a name="_details"></a><h2>Detailed Description</h2>
<a class="el" href="a02818.html">CLogicConditionNode</a><p>
<dl compact><dt><b>Author:</b></dt><dd>Stephane Coutelas <p>
Nevrax France </dd></dl>
<dl compact><dt><b>Date:</b></dt><dd>2001 </dd></dl>

<p>

<p>
Definition at line <a class="el" href="a05947.html#l00187">187</a> of file <a class="el" href="a05947.html">logic_condition.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="a02818.html#NLLOGIC_1_1CLogicConditionNodew1">TConditionNodeType</a> { <a class="el" href="a02818.html#NLLOGIC_1_1CLogicConditionNodew1NLLOGIC_1_1CLogicConditionNodew2">TERMINATOR</a> =  0, 
<a class="el" href="a02818.html#NLLOGIC_1_1CLogicConditionNodew1NLLOGIC_1_1CLogicConditionNodew0">LOGIC_NODE</a>
 }</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">all condition node types  <a href="#NLLOGIC_1_1CLogicConditionNodew1">More...</a><br><br></td></tr>
<tr><td colspan=2><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02818.html#NLLOGIC_1_1CLogicConditionNodea0">addNode</a> (<a class="el" href="a02818.html">CLogicConditionNode</a> *node)</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02818.html#NLLOGIC_1_1CLogicConditionNodea1">CLogicConditionNode</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02818.html#NLLOGIC_1_1CLogicConditionNodea2">fillVarSet</a> (std::set&lt; std::string &gt; &amp;condVars)</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02818.html#NLLOGIC_1_1CLogicConditionNodea3">read</a> (xmlNodePtr node)</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02818.html#NLLOGIC_1_1CLogicConditionNodea4">setLogicStateMachine</a> (<a class="el" href="a02825.html">CLogicStateMachine</a> *logicStateMachine)</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02818.html#NLLOGIC_1_1CLogicConditionNodea5">testLogic</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02818.html#NLLOGIC_1_1CLogicConditionNodea6">write</a> (xmlNodePtr node) const </td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02818.html#NLLOGIC_1_1CLogicConditionNodea7">~CLogicConditionNode</a> ()</td></tr>

<tr><td colspan=2><br><h2>Data Fields</h2></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>std::vector&lt; <a class="el" href="a02818.html">CLogicConditionNode</a> * &gt;&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02818.html#NLLOGIC_1_1CLogicConditionNodeo0">_Nodes</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">condition nodes  <a href="#NLLOGIC_1_1CLogicConditionNodeo0"></a><br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a02817.html">CLogicConditionLogicBlock</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02818.html#NLLOGIC_1_1CLogicConditionNodeo1">LogicBlock</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">condition logic node  <a href="#NLLOGIC_1_1CLogicConditionNodeo1"></a><br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a02818.html#NLLOGIC_1_1CLogicConditionNodew1">TConditionNodeType</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02818.html#NLLOGIC_1_1CLogicConditionNodeo2">Type</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">type of this condition node  <a href="#NLLOGIC_1_1CLogicConditionNodeo2"></a><br><br></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="a02825.html">CLogicStateMachine</a> *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02818.html#NLLOGIC_1_1CLogicConditionNoder0">_LogicStateMachine</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">state machine managing this logic block  <a href="#NLLOGIC_1_1CLogicConditionNoder0"></a><br><br></td></tr>
</table>
<hr><h2>Member Enumeration Documentation</h2>
<a class="anchor" name="NLLOGIC_1_1CLogicConditionNodew1" doxytag="NLLOGIC::CLogicConditionNode::TConditionNodeType" ></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="a02818.html#NLLOGIC_1_1CLogicConditionNodew1">NLLOGIC::CLogicConditionNode::TConditionNodeType</a>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
all condition node types 
<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="NLLOGIC_1_1CLogicConditionNodew1NLLOGIC_1_1CLogicConditionNodew2" doxytag="TERMINATOR" ></a>TERMINATOR</em>&nbsp;</td><td>
</td></tr>
<tr><td valign=top><em><a class="anchor" name="NLLOGIC_1_1CLogicConditionNodew1NLLOGIC_1_1CLogicConditionNodew0" doxytag="LOGIC_NODE" ></a>LOGIC_NODE</em>&nbsp;</td><td>
</td></tr>
</table>
</dl>

<p>
Definition at line <a class="el" href="a05947.html#l00195">195</a> of file <a class="el" href="a05947.html">logic_condition.h</a>.
<p>
Referenced by <a class="el" href="a05946.html#l00470">read()</a>.
<p>
<div class="fragment"><pre>00196         {
00197                 <a class="code" href="a02818.html#NLLOGIC_1_1CLogicConditionNodew1NLLOGIC_1_1CLogicConditionNodew2">TERMINATOR</a> = 0, 
00198                 <a class="code" href="a02818.html#NLLOGIC_1_1CLogicConditionNodew1NLLOGIC_1_1CLogicConditionNodew0">LOGIC_NODE</a>
00199         };
</pre></div>    </td>
  </tr>
</table>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="NLLOGIC_1_1CLogicConditionNodea1" doxytag="NLLOGIC::CLogicConditionNode::CLogicConditionNode" ></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"> NLLOGIC::CLogicConditionNode::CLogicConditionNode </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap><code> [inline]</code></td>
        </tr>

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

<p>
Default constructor
<p>
Definition at line <a class="el" href="a05947.html#l00214">214</a> of file <a class="el" href="a05947.html">logic_condition.h</a>.
<p>
References <a class="el" href="a02818.html#NLLOGIC_1_1CLogicConditionNodew1NLLOGIC_1_1CLogicConditionNodew2">TERMINATOR</a>.
<p>
Referenced by <a class="el" href="a05946.html#l00470">read()</a>.
<p>
<div class="fragment"><pre>00215         {
00216                 <a class="code" href="a02818.html#NLLOGIC_1_1CLogicConditionNoder0">_LogicStateMachine</a> = 0;
00217                 <a class="code" href="a02818.html#NLLOGIC_1_1CLogicConditionNodeo2">Type</a> = <a class="code" href="a02818.html#NLLOGIC_1_1CLogicConditionNodew1NLLOGIC_1_1CLogicConditionNodew2">TERMINATOR</a>;
00218         }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NLLOGIC_1_1CLogicConditionNodea7" doxytag="NLLOGIC::CLogicConditionNode::~CLogicConditionNode" ></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"> NLLOGIC::CLogicConditionNode::~<a class="el" href="a02818.html">CLogicConditionNode</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>
Destructor
<p>
Definition at line <a class="el" href="a05946.html#l00507">507</a> of file <a class="el" href="a05946.html">logic_condition.cpp</a>.
<p>
<div class="fragment"><pre>00508 {
00509         vector&lt;CLogicConditionNode *&gt;::iterator itNodes;
00510         <span class="keywordflow">for</span>( itNodes = <a class="code" href="a02818.html#NLLOGIC_1_1CLogicConditionNodeo0">_Nodes</a>.begin(); itNodes != <a class="code" href="a02818.html#NLLOGIC_1_1CLogicConditionNodeo0">_Nodes</a>.end(); ++itNodes )
00511         {
00512                 <span class="keyword">delete</span> (*itNodes);
00513         }
00514 
00515 } <span class="comment">// ~CLogicConditionNode //</span>
</pre></div>    </td>
  </tr>
</table>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="NLLOGIC_1_1CLogicConditionNodea0" doxytag="NLLOGIC::CLogicConditionNode::addNode" ></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 NLLOGIC::CLogicConditionNode::addNode </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="a02818.html">CLogicConditionNode</a> *&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>node</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>
add a node in the subtree<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign=top><em>node</em>&nbsp;</td><td>is the new node to add</td></tr>
  </table>
</dl>

<p>
Definition at line <a class="el" href="a05946.html#l00325">325</a> of file <a class="el" href="a05946.html">logic_condition.cpp</a>.
<p>
References <a class="el" href="a05946.html#l00296">setLogicStateMachine()</a>.
<p>
<div class="fragment"><pre>00326 {
00327         node-&gt;setLogicStateMachine( _LogicStateMachine );
00328         <a class="code" href="a02818.html#NLLOGIC_1_1CLogicConditionNodeo0">_Nodes</a>.push_back( node );
00329 
00330 } <span class="comment">// addToSubNodes //</span>
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NLLOGIC_1_1CLogicConditionNodea2" doxytag="NLLOGIC::CLogicConditionNode::fillVarSet" ></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 NLLOGIC::CLogicConditionNode::fillVarSet </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">std::set&lt; std::string &gt; &amp;&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>condVars</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>
Fill a set with all the variables name referenced by this condition<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign=top><em>condVars</em>&nbsp;</td><td>is a set to store the variable names</td></tr>
  </table>
</dl>

<p>
Definition at line <a class="el" href="a05946.html#l00388">388</a> of file <a class="el" href="a05946.html">logic_condition.cpp</a>.
<p>
References <a class="el" href="a05946.html#l00193">NLLOGIC::CLogicConditionLogicBlock::fillVarSet()</a>, <a class="el" href="a02818.html#NLLOGIC_1_1CLogicConditionNodew1NLLOGIC_1_1CLogicConditionNodew0">LOGIC_NODE</a>, and <a class="el" href="a05947.html#l00206">LogicBlock</a>.
<p>
<div class="fragment"><pre>00389 {
00390         <span class="keywordflow">if</span>( <a class="code" href="a02818.html#NLLOGIC_1_1CLogicConditionNodeo2">Type</a> == <a class="code" href="a02818.html#NLLOGIC_1_1CLogicConditionNodew1NLLOGIC_1_1CLogicConditionNodew0">LOGIC_NODE</a> )
00391         {
00392                 <a class="code" href="a02818.html#NLLOGIC_1_1CLogicConditionNodeo1">LogicBlock</a>.fillVarSet( condVars );
00393         }
00394 
00395         vector&lt;CLogicConditionNode *&gt;::iterator itNode;
00396         <span class="keywordflow">for</span>( itNode = <a class="code" href="a02818.html#NLLOGIC_1_1CLogicConditionNodeo0">_Nodes</a>.begin(); itNode != <a class="code" href="a02818.html#NLLOGIC_1_1CLogicConditionNodeo0">_Nodes</a>.end(); ++itNode )
00397         {
00398                 (*itNode)-&gt;fillVarSet( condVars );
00399         }
00400 
00401 } <span class="comment">// fillVarSet //</span>
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NLLOGIC_1_1CLogicConditionNodea3" doxytag="NLLOGIC::CLogicConditionNode::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"> void NLLOGIC::CLogicConditionNode::read </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">xmlNodePtr&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>node</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>

<p>
Definition at line <a class="el" href="a05946.html#l00470">470</a> of file <a class="el" href="a05946.html">logic_condition.cpp</a>.
<p>
References <a class="el" href="a05947.html#l00214">CLogicConditionNode()</a>, <a class="el" href="a05954.html#l00072">NLLOGIC::getXMLProp()</a>, <a class="el" href="a02818.html#NLLOGIC_1_1CLogicConditionNodew1NLLOGIC_1_1CLogicConditionNodew0">LOGIC_NODE</a>, <a class="el" href="a05947.html#l00206">LogicBlock</a>, <a class="el" href="a05946.html#l00265">NLLOGIC::CLogicConditionLogicBlock::read()</a>, <a class="el" href="a05947.html#l00195">TConditionNodeType</a>, <a class="el" href="a02818.html#NLLOGIC_1_1CLogicConditionNodew1NLLOGIC_1_1CLogicConditionNodew2">TERMINATOR</a>, <a class="el" href="a05981.html#l00105">uint</a>, <a class="el" href="a05646.html#l00237">v</a>, and <a class="el" href="a05954.html#l00042">NLLOGIC::xmlCheckNodeName()</a>.
<p>
<div class="fragment"><pre>00471 {
00472         <a class="code" href="a05376.html#a2">xmlCheckNodeName</a> (node, <span class="stringliteral">"CONDITION_NODE"</span>);
00473 
00474         <a class="code" href="a02818.html#NLLOGIC_1_1CLogicConditionNodeo2">Type</a> = (<a class="code" href="a02818.html#NLLOGIC_1_1CLogicConditionNodew1">TConditionNodeType</a> )atoi(getXMLProp (node, <span class="stringliteral">"Type"</span>).c_str());
00475         <span class="keywordflow">switch</span>( <a class="code" href="a02818.html#NLLOGIC_1_1CLogicConditionNodeo2">Type</a> )
00476         {
00477                 <span class="keywordflow">case</span> <a class="code" href="a02818.html#NLLOGIC_1_1CLogicConditionNodew1NLLOGIC_1_1CLogicConditionNodew2">TERMINATOR</a> : <span class="keywordflow">break</span>;
00478                 <span class="keywordflow">case</span> <a class="code" href="a02818.html#NLLOGIC_1_1CLogicConditionNodew1NLLOGIC_1_1CLogicConditionNodew0">LOGIC_NODE</a> :
00479                 {
00480                         <a class="code" href="a02818.html#NLLOGIC_1_1CLogicConditionNodeo1">LogicBlock</a>.read (node);
00481 
00482                         {
00483                                 <span class="comment">// Count the parent</span>
00484                                 <a class="code" href="a04558.html#a15">uint</a> nb = CIXml::countChildren (node, <span class="stringliteral">"CONDITION_NODE"</span>);
00485                                 <a class="code" href="a04558.html#a15">uint</a> i = 0;
00486                                 xmlNodePtr parent = CIXml::getFirstChildNode (node, <span class="stringliteral">"CONDITION_NODE"</span>);
00487                                 <span class="keywordflow">while</span> (i&lt;nb)
00488                                 {
00489                                         <a class="code" href="a02818.html#NLLOGIC_1_1CLogicConditionNodea1">CLogicConditionNode</a> *<a class="code" href="a04223.html#a576">v</a> = <span class="keyword">new</span> <a class="code" href="a02818.html#NLLOGIC_1_1CLogicConditionNodea1">CLogicConditionNode</a>();
00490                                         <a class="code" href="a04223.html#a576">v</a>-&gt;read(parent);
00491                                         <a class="code" href="a02818.html#NLLOGIC_1_1CLogicConditionNodeo0">_Nodes</a>.push_back (v);
00492 
00493                                         <span class="comment">// Next parent</span>
00494                                         parent = CIXml::getNextChildNode (parent, <span class="stringliteral">"CONDITION_NODE"</span>);
00495                                         i++;
00496                                 }
00497                         }
00498                 }
00499                 <span class="keywordflow">break</span>;
00500         };
00501 }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NLLOGIC_1_1CLogicConditionNodea4" doxytag="NLLOGIC::CLogicConditionNode::setLogicStateMachine" ></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 NLLOGIC::CLogicConditionNode::setLogicStateMachine </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="a02825.html">CLogicStateMachine</a> *&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>logicStateMachine</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>
Set the logic state machine<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign=top><em>logicStateMachine</em>&nbsp;</td><td>is the state machine containing this block</td></tr>
  </table>
</dl>

<p>
Definition at line <a class="el" href="a05946.html#l00296">296</a> of file <a class="el" href="a05946.html">logic_condition.cpp</a>.
<p>
References <a class="el" href="a05947.html#l00206">LogicBlock</a>, <a class="el" href="a05622.html#l00135">nlwarning</a>, and <a class="el" href="a05946.html#l00126">NLLOGIC::CLogicConditionLogicBlock::setLogicStateMachine()</a>.
<p>
Referenced by <a class="el" href="a05946.html#l00325">addNode()</a>.
<p>
<div class="fragment"><pre>00297 { 
00298         <span class="keywordflow">if</span>( logicStateMachine == 0 )
00299         {
00300                 <a class="code" href="a04199.html#a2">nlwarning</a>(<span class="stringliteral">"(LOGIC)&lt;CLogicConditionNode::setLogicStateMachine&gt; The state machine is null"</span>);
00301         }
00302         <span class="keywordflow">else</span>
00303         {
00304                 <span class="comment">// set the state machine of this node</span>
00305                 <a class="code" href="a02818.html#NLLOGIC_1_1CLogicConditionNoder0">_LogicStateMachine</a> = logicStateMachine; 
00306 
00307                 <span class="comment">// set the state machine of the logic block </span>
00308                 <a class="code" href="a02818.html#NLLOGIC_1_1CLogicConditionNodeo1">LogicBlock</a>.setLogicStateMachine( logicStateMachine );
00309                 
00310                 <span class="comment">// set the state machine for the sub nodes</span>
00311                 vector&lt;CLogicConditionNode *&gt;::iterator itNodes;
00312                 <span class="keywordflow">for</span>( itNodes = <a class="code" href="a02818.html#NLLOGIC_1_1CLogicConditionNodeo0">_Nodes</a>.begin(); itNodes != <a class="code" href="a02818.html#NLLOGIC_1_1CLogicConditionNodeo0">_Nodes</a>.end(); ++itNodes )
00313                 {
00314                         (*itNodes)-&gt;setLogicStateMachine( logicStateMachine );
00315                 }
00316         }
00317 
00318 } <span class="comment">// setLogicStateMachine //</span>
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NLLOGIC_1_1CLogicConditionNodea5" doxytag="NLLOGIC::CLogicConditionNode::testLogic" ></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 NLLOGIC::CLogicConditionNode::testLogic </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>
Test the condition<p>
<dl compact><dt><b>Returns:</b></dt><dd>true if this condition is fulfiled, false else</dd></dl>

<p>
Definition at line <a class="el" href="a05946.html#l00337">337</a> of file <a class="el" href="a05946.html">logic_condition.cpp</a>.
<p>
References <a class="el" href="a05947.html#l00146">NLLOGIC::CLogicConditionLogicBlock::isNotBlock()</a>, <a class="el" href="a05947.html#l00206">LogicBlock</a>, and <a class="el" href="a05946.html#l00148">NLLOGIC::CLogicConditionLogicBlock::testLogic()</a>.
<p>
<div class="fragment"><pre>00338 {
00339         <span class="comment">// test the logic block</span>
00340         <span class="keywordflow">if</span>( <a class="code" href="a02818.html#NLLOGIC_1_1CLogicConditionNodeo1">LogicBlock</a>.testLogic() == <span class="keyword">false</span> )
00341         {
00342                 <span class="keywordflow">return</span> <span class="keyword">false</span>;
00343         }
00344 
00345         <span class="comment">// if there's no subtree we assess the subtree is true</span>
00346         <span class="keywordflow">if</span>( <a class="code" href="a02818.html#NLLOGIC_1_1CLogicConditionNodeo0">_Nodes</a>.size() == 0 )
00347         {
00348                 <span class="keywordflow">return</span> <span class="keyword">true</span>;
00349         }
00350 
00351         <span class="comment">// test the subtree</span>
00352         <span class="keywordflow">if</span>( <a class="code" href="a02818.html#NLLOGIC_1_1CLogicConditionNodeo1">LogicBlock</a>.isNotBlock() )
00353         {
00354                 <span class="comment">// the subtree is false if at least one node is true</span>
00355                 vector&lt;CLogicConditionNode *&gt;::iterator itNodes;
00356                 <span class="keywordflow">for</span>( itNodes = <a class="code" href="a02818.html#NLLOGIC_1_1CLogicConditionNodeo0">_Nodes</a>.begin(); itNodes != <a class="code" href="a02818.html#NLLOGIC_1_1CLogicConditionNodeo0">_Nodes</a>.end(); ++itNodes )
00357                 {
00358                         <span class="keywordflow">if</span>( (*itNodes)-&gt;testLogic() == <span class="keyword">true</span> )
00359                         {
00360                                 <span class="keywordflow">return</span> <span class="keyword">false</span>;
00361                         }
00362                 }
00363 
00364                 <span class="keywordflow">return</span> <span class="keyword">true</span>;
00365         }
00366         <span class="keywordflow">else</span>
00367         {
00368                 <span class="comment">// the subtree is true if at least one node is true</span>
00369                 vector&lt;CLogicConditionNode *&gt;::iterator itNodes;
00370                 <span class="keywordflow">for</span>( itNodes = <a class="code" href="a02818.html#NLLOGIC_1_1CLogicConditionNodeo0">_Nodes</a>.begin(); itNodes != <a class="code" href="a02818.html#NLLOGIC_1_1CLogicConditionNodeo0">_Nodes</a>.end(); ++itNodes )
00371                 {
00372                         <span class="keywordflow">if</span>( (*itNodes)-&gt;testLogic() == <span class="keyword">true</span> )
00373                         {
00374                                 <span class="keywordflow">return</span> <span class="keyword">true</span>;
00375                         }
00376                 }
00377 
00378                 <span class="keywordflow">return</span> <span class="keyword">false</span>;
00379         }
00380 
00381 } <span class="comment">// testLogic //</span>
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NLLOGIC_1_1CLogicConditionNodea6" doxytag="NLLOGIC::CLogicConditionNode::write" ></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 NLLOGIC::CLogicConditionNode::write </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">xmlNodePtr&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>node</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>

<p>
Definition at line <a class="el" href="a05946.html#l00449">449</a> of file <a class="el" href="a05946.html">logic_condition.cpp</a>.
<p>
References <a class="el" href="a02818.html#NLLOGIC_1_1CLogicConditionNodew1NLLOGIC_1_1CLogicConditionNodew0">LOGIC_NODE</a>, <a class="el" href="a05947.html#l00206">LogicBlock</a>, <a class="el" href="a02818.html#NLLOGIC_1_1CLogicConditionNodew1NLLOGIC_1_1CLogicConditionNodew2">TERMINATOR</a>, <a class="el" href="a05981.html#l00100">uint32</a>, and <a class="el" href="a05946.html#l00243">NLLOGIC::CLogicConditionLogicBlock::write()</a>.
<p>
<div class="fragment"><pre>00450 {
00451         xmlNodePtr elmPtr = xmlNewChild ( node, NULL, (<span class="keyword">const</span> xmlChar*)<span class="stringliteral">"CONDITION_NODE"</span>, NULL);
00452         xmlSetProp (elmPtr, (<span class="keyword">const</span> xmlChar*)<span class="stringliteral">"Type"</span>, (<span class="keyword">const</span> xmlChar*)<a class="code" href="a05378.html#a244">toString</a>((<a class="code" href="a04558.html#a11">uint32</a>)Type).c_str());
00453 
00454         <span class="keywordflow">switch</span>( Type )
00455         {
00456                 <span class="keywordflow">case</span> <a class="code" href="a02818.html#NLLOGIC_1_1CLogicConditionNodew1NLLOGIC_1_1CLogicConditionNodew2">TERMINATOR</a> : <span class="keywordflow">break</span>;
00457                 <span class="keywordflow">case</span> <a class="code" href="a02818.html#NLLOGIC_1_1CLogicConditionNodew1NLLOGIC_1_1CLogicConditionNodew0">LOGIC_NODE</a> :
00458                 {
00459                         <a class="code" href="a02818.html#NLLOGIC_1_1CLogicConditionNodeo1">LogicBlock</a>.write(elmPtr);
00460                         vector&lt;CLogicConditionNode *&gt;::const_iterator itNode = <a class="code" href="a02818.html#NLLOGIC_1_1CLogicConditionNodeo0">_Nodes</a>.begin();
00461                         <span class="keywordflow">for</span>( ; itNode != <a class="code" href="a02818.html#NLLOGIC_1_1CLogicConditionNodeo0">_Nodes</a>.end(); ++itNode )
00462                         {
00463                                 (*itNode)-&gt;write(elmPtr);
00464                         }
00465                 }
00466                 <span class="keywordflow">break</span>;
00467         };
00468 }
</pre></div>    </td>
  </tr>
</table>
<hr><h2>Field Documentation</h2>
<a class="anchor" name="NLLOGIC_1_1CLogicConditionNoder0" doxytag="NLLOGIC::CLogicConditionNode::_LogicStateMachine" ></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="a02825.html">CLogicStateMachine</a>* <a class="el" href="a02818.html#NLLOGIC_1_1CLogicConditionNoder0">NLLOGIC::CLogicConditionNode::_LogicStateMachine</a><code> [private]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
state machine managing this logic block 
<p>

<p>
Definition at line <a class="el" href="a05947.html#l00190">190</a> of file <a class="el" href="a05947.html">logic_condition.h</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NLLOGIC_1_1CLogicConditionNodeo0" doxytag="NLLOGIC::CLogicConditionNode::_Nodes" ></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="a02818.html">CLogicConditionNode</a> *&gt; <a class="el" href="a02818.html#NLLOGIC_1_1CLogicConditionNodeo0">NLLOGIC::CLogicConditionNode::_Nodes</a>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
condition nodes 
<p>

<p>
Definition at line <a class="el" href="a05947.html#l00209">209</a> of file <a class="el" href="a05947.html">logic_condition.h</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NLLOGIC_1_1CLogicConditionNodeo1" doxytag="NLLOGIC::CLogicConditionNode::LogicBlock" ></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="a02817.html">CLogicConditionLogicBlock</a> <a class="el" href="a02818.html#NLLOGIC_1_1CLogicConditionNodeo1">NLLOGIC::CLogicConditionNode::LogicBlock</a>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
condition logic node 
<p>

<p>
Definition at line <a class="el" href="a05947.html#l00206">206</a> of file <a class="el" href="a05947.html">logic_condition.h</a>.
<p>
Referenced by <a class="el" href="a05946.html#l00388">fillVarSet()</a>, <a class="el" href="a05946.html#l00470">read()</a>, <a class="el" href="a05946.html#l00296">setLogicStateMachine()</a>, <a class="el" href="a05946.html#l00337">testLogic()</a>, and <a class="el" href="a05946.html#l00449">write()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NLLOGIC_1_1CLogicConditionNodeo2" doxytag="NLLOGIC::CLogicConditionNode::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"> <a class="el" href="a02818.html#NLLOGIC_1_1CLogicConditionNodew1">TConditionNodeType</a> <a class="el" href="a02818.html#NLLOGIC_1_1CLogicConditionNodeo2">NLLOGIC::CLogicConditionNode::Type</a>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
type of this condition node 
<p>

<p>
Definition at line <a class="el" href="a05947.html#l00202">202</a> of file <a class="el" href="a05947.html">logic_condition.h</a>.    </td>
  </tr>
</table>
<hr>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="a05947.html">logic_condition.h</a><li><a class="el" href="a05946.html">logic_condition.cpp</a></ul>
<hr size="1"><address style="align: right;"><small>Generated on Tue Mar 16 12:53:22 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>