aboutsummaryrefslogtreecommitdiff
path: root/docs/doxygen/nel/a02816.html
blob: 66df656d459849e8cff15e33cf839e0ef424a199 (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
<!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::CLogicCondition 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::CLogicCondition 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="a02816.html">CLogicCondition</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#l00272">272</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 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="a02816.html#NLLOGIC_1_1CLogicConditiona0">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="a02816.html#NLLOGIC_1_1CLogicConditiona1">CLogicCondition</a> ()</td></tr>

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

<tr><td class="memItemLeft" nowrap align=right valign=top>std::string&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02816.html#NLLOGIC_1_1CLogicConditiona3">getName</a> () const </td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02816.html#NLLOGIC_1_1CLogicConditiona4">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="a02816.html#NLLOGIC_1_1CLogicConditiona5">setLogicStateMachine</a> (<a class="el" href="a02825.html">CLogicStateMachine</a> *logicStateMachine)</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02816.html#NLLOGIC_1_1CLogicConditiona6">setName</a> (std::string name)</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02816.html#NLLOGIC_1_1CLogicConditiona7">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="a02816.html#NLLOGIC_1_1CLogicConditiona8">write</a> (xmlNodePtr node) const </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="a02816.html#NLLOGIC_1_1CLogicConditiono0">Nodes</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">condition tree  <a href="#NLLOGIC_1_1CLogicConditiono0"></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>std::string&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02816.html#NLLOGIC_1_1CLogicConditionr0">_ConditionName</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">condition name  <a href="#NLLOGIC_1_1CLogicConditionr0"></a><br><br></td></tr>
</table>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="NLLOGIC_1_1CLogicConditiona1" doxytag="NLLOGIC::CLogicCondition::CLogicCondition" ></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::CLogicCondition::CLogicCondition </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>
<a class="el" href="a02816.html">CLogicCondition</a>
<p>
Definition at line <a class="el" href="a05947.html#l00285">285</a> of file <a class="el" href="a05947.html">logic_condition.h</a>.
<p>
References <a class="el" href="a05947.html#l00275">_ConditionName</a>.
<p>
<div class="fragment"><pre>00286         {
00287                 <a class="code" href="a02816.html#NLLOGIC_1_1CLogicConditionr0">_ConditionName</a> = <span class="stringliteral">"no_condition"</span>;
00288         }
</pre></div>    </td>
  </tr>
</table>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="NLLOGIC_1_1CLogicConditiona0" doxytag="NLLOGIC::CLogicCondition::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::CLogicCondition::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><code> [inline]</code></td>
        </tr>

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

<p>
Add a condition node<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="a05947.html#l00316">316</a> of file <a class="el" href="a05947.html">logic_condition.h</a>.
<p>
<div class="fragment"><pre>00316 { <a class="code" href="a02816.html#NLLOGIC_1_1CLogicConditiono0">Nodes</a>.push_back( node ); }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NLLOGIC_1_1CLogicConditiona2" doxytag="NLLOGIC::CLogicCondition::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::CLogicCondition::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#l00571">571</a> of file <a class="el" href="a05946.html">logic_condition.cpp</a>.
<p>
<div class="fragment"><pre>00572 {
00573         vector&lt;CLogicConditionNode&gt;::iterator itNode;
00574         <span class="keywordflow">for</span>( itNode = <a class="code" href="a02816.html#NLLOGIC_1_1CLogicConditiono0">Nodes</a>.begin(); itNode != <a class="code" href="a02816.html#NLLOGIC_1_1CLogicConditiono0">Nodes</a>.end(); ++itNode )
00575         {
00576                 (*itNode).fillVarSet( condVars );
00577         }
00578 
00579 } <span class="comment">// fillVarSet //</span>
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NLLOGIC_1_1CLogicConditiona3" doxytag="NLLOGIC::CLogicCondition::getName" ></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 NLLOGIC::CLogicCondition::getName </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">void&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap> const<code> [inline]</code></td>
        </tr>

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

<p>
Get the condition's name<p>
<dl compact><dt><b>Returns:</b></dt><dd>the condition's name</dd></dl>

<p>
Definition at line <a class="el" href="a05947.html#l00309">309</a> of file <a class="el" href="a05947.html">logic_condition.h</a>.
<p>
References <a class="el" href="a05947.html#l00275">_ConditionName</a>.
<p>
<div class="fragment"><pre>00309 {       <span class="keywordflow">return</span> <a class="code" href="a02816.html#NLLOGIC_1_1CLogicConditionr0">_ConditionName</a>; }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NLLOGIC_1_1CLogicConditiona4" doxytag="NLLOGIC::CLogicCondition::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::CLogicCondition::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#l00610">610</a> of file <a class="el" href="a05946.html">logic_condition.cpp</a>.
<p>
References <a class="el" href="a05947.html#l00275">_ConditionName</a>, <a class="el" href="a05954.html#l00072">NLLOGIC::getXMLProp()</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>00611 {
00612         <a class="code" href="a05376.html#a2">xmlCheckNodeName</a> (node, <span class="stringliteral">"CONDITION"</span>);
00613 
00614         <a class="code" href="a02816.html#NLLOGIC_1_1CLogicConditionr0">_ConditionName</a> = <a class="code" href="a05376.html#a3">getXMLProp</a> (node, <span class="stringliteral">"Name"</span>);
00615 
00616         {
00617                 <span class="comment">// Count the parent</span>
00618                 <a class="code" href="a04558.html#a15">uint</a> nb = CIXml::countChildren (node, <span class="stringliteral">"CONDITION_NODE"</span>);
00619                 <a class="code" href="a04558.html#a15">uint</a> i = 0;
00620                 xmlNodePtr parent = CIXml::getFirstChildNode (node, <span class="stringliteral">"CONDITION_NODE"</span>);
00621                 <span class="keywordflow">while</span> (i&lt;nb)
00622                 {
00623                         CLogicConditionNode <a class="code" href="a04223.html#a576">v</a>;
00624                         <a class="code" href="a04223.html#a576">v</a>.read(parent);
00625                         <a class="code" href="a02816.html#NLLOGIC_1_1CLogicConditiono0">Nodes</a>.push_back (v);
00626 
00627                         <span class="comment">// Next parent</span>
00628                         parent = CIXml::getNextChildNode (parent, <span class="stringliteral">"CONDITION_NODE"</span>);
00629                         i++;
00630                 }
00631         }
00632 }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NLLOGIC_1_1CLogicConditiona5" doxytag="NLLOGIC::CLogicCondition::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::CLogicCondition::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#l00527">527</a> of file <a class="el" href="a05946.html">logic_condition.cpp</a>.
<p>
References <a class="el" href="a05622.html#l00135">nlwarning</a>.
<p>
<div class="fragment"><pre>00528 { 
00529         <span class="keywordflow">if</span>( logicStateMachine == 0 )
00530         {
00531                 <a class="code" href="a04199.html#a2">nlwarning</a>(<span class="stringliteral">"(LOGIC)&lt;CLogicCondition::setLogicStateMachine&gt; The state machine is null"</span>);
00532         }
00533         <span class="keywordflow">else</span>
00534         {
00535                 <span class="comment">// init the logic state machine for each node</span>
00536                 vector&lt;CLogicConditionNode&gt;::iterator itNodes;
00537                 <span class="keywordflow">for</span>( itNodes = <a class="code" href="a02816.html#NLLOGIC_1_1CLogicConditiono0">Nodes</a>.begin(); itNodes != <a class="code" href="a02816.html#NLLOGIC_1_1CLogicConditiono0">Nodes</a>.end(); ++itNodes )
00538                 {
00539                         (*itNodes).setLogicStateMachine( logicStateMachine );
00540                 }
00541         }
00542 
00543 } <span class="comment">// setLogicStateMachine //</span>
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NLLOGIC_1_1CLogicConditiona6" doxytag="NLLOGIC::CLogicCondition::setName" ></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::CLogicCondition::setName </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">std::string&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>name</em>          </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>
Set the condition's name<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign=top><em>name</em>&nbsp;</td><td>is the condition's name</td></tr>
  </table>
</dl>

<p>
Definition at line <a class="el" href="a05947.html#l00302">302</a> of file <a class="el" href="a05947.html">logic_condition.h</a>.
<p>
References <a class="el" href="a05947.html#l00275">_ConditionName</a>.
<p>
<div class="fragment"><pre>00302 { <a class="code" href="a02816.html#NLLOGIC_1_1CLogicConditionr0">_ConditionName</a> = name; }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NLLOGIC_1_1CLogicConditiona7" doxytag="NLLOGIC::CLogicCondition::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::CLogicCondition::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#l00550">550</a> of file <a class="el" href="a05946.html">logic_condition.cpp</a>.
<p>
Referenced by <a class="el" href="a05948.html#l00195">NLLOGIC::CLogicEvent::testCondition()</a>.
<p>
<div class="fragment"><pre>00551 {
00552         vector&lt;CLogicConditionNode&gt;::iterator itNodes;
00553         <span class="keywordflow">for</span>( itNodes = <a class="code" href="a02816.html#NLLOGIC_1_1CLogicConditiono0">Nodes</a>.begin(); itNodes != <a class="code" href="a02816.html#NLLOGIC_1_1CLogicConditiono0">Nodes</a>.end(); ++itNodes )
00554         {
00555                 <span class="keywordflow">if</span>( (*itNodes).testLogic() == <span class="keyword">false</span> )
00556                 {
00557                         <span class="keywordflow">return</span> <span class="keyword">false</span>;
00558                 }
00559         }
00560 
00561         <span class="keywordflow">return</span> <span class="keyword">true</span>;
00562 
00563 } <span class="comment">// testLogic //</span>
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NLLOGIC_1_1CLogicConditiona8" doxytag="NLLOGIC::CLogicCondition::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::CLogicCondition::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>
serial
<p>
Definition at line <a class="el" href="a05946.html#l00598">598</a> of file <a class="el" href="a05946.html">logic_condition.cpp</a>.
<p>
References <a class="el" href="a05947.html#l00275">_ConditionName</a>, and <a class="el" href="a05981.html#l00105">uint</a>.
<p>
<div class="fragment"><pre>00599 {
00600         xmlNodePtr elmPtr = xmlNewChild ( node, NULL, (<span class="keyword">const</span> xmlChar*)<span class="stringliteral">"CONDITION"</span>, NULL);
00601         xmlSetProp (elmPtr, (<span class="keyword">const</span> xmlChar*)<span class="stringliteral">"Name"</span>, (<span class="keyword">const</span> xmlChar*)<a class="code" href="a02816.html#NLLOGIC_1_1CLogicConditionr0">_ConditionName</a>.c_str());
00602 
00603         <a class="code" href="a04558.html#a15">uint</a> i;
00604         <span class="keywordflow">for</span> (i = 0; i &lt; <a class="code" href="a02816.html#NLLOGIC_1_1CLogicConditiono0">Nodes</a>.size(); i++)
00605         {
00606                 <a class="code" href="a02816.html#NLLOGIC_1_1CLogicConditiono0">Nodes</a>[i].write(elmPtr);
00607         }
00608 }
</pre></div>    </td>
  </tr>
</table>
<hr><h2>Field Documentation</h2>
<a class="anchor" name="NLLOGIC_1_1CLogicConditionr0" doxytag="NLLOGIC::CLogicCondition::_ConditionName" ></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="a02816.html#NLLOGIC_1_1CLogicConditionr0">NLLOGIC::CLogicCondition::_ConditionName</a><code> [private]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
condition name 
<p>

<p>
Definition at line <a class="el" href="a05947.html#l00275">275</a> of file <a class="el" href="a05947.html">logic_condition.h</a>.
<p>
Referenced by <a class="el" href="a05947.html#l00285">CLogicCondition()</a>, <a class="el" href="a05947.html#l00309">getName()</a>, <a class="el" href="a05946.html#l00610">read()</a>, <a class="el" href="a05947.html#l00302">setName()</a>, and <a class="el" href="a05946.html#l00598">write()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NLLOGIC_1_1CLogicConditiono0" doxytag="NLLOGIC::CLogicCondition::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="a02816.html#NLLOGIC_1_1CLogicConditiono0">NLLOGIC::CLogicCondition::Nodes</a>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
condition tree 
<p>

<p>
Definition at line <a class="el" href="a05947.html#l00280">280</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:01 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>