diff options
Diffstat (limited to 'docs/doxygen/nel/a02817.html')
-rw-r--r-- | docs/doxygen/nel/a02817.html | 609 |
1 files changed, 609 insertions, 0 deletions
diff --git a/docs/doxygen/nel/a02817.html b/docs/doxygen/nel/a02817.html new file mode 100644 index 00000000..1aecabef --- /dev/null +++ b/docs/doxygen/nel/a02817.html @@ -0,0 +1,609 @@ +<!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::CLogicConditionLogicBlock 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 Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Data Structures</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="namespacemembers.html">Namespace Members</a> | <a class="qindex" href="functions.html">Data Fields</a> | <a class="qindex" href="globals.html">Globals</a> | <a class="qindex" href="pages.html">Related Pages</a> | <span class="search"><u>S</u>earch for <input class="search" type="text" name="query" value="" size="20" accesskey="s"/></span></form></div> +<h1>NLLOGIC::CLogicConditionLogicBlock Class Reference</h1><code>#include <<a class="el" href="a05947.html">logic_condition.h</a>></code> +<p> +<hr><a name="_details"></a><h2>Detailed Description</h2> +<a class="el" href="a02817.html">CLogicConditionLogicBlock</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#l00108">108</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 </td><td class="memItemRight" valign=bottom><a class="el" href="a02817.html#NLLOGIC_1_1CLogicConditionLogicBlockw3">TLogicConditionLogicBlockType</a> { <a class="el" href="a02817.html#NLLOGIC_1_1CLogicConditionLogicBlockw3NLLOGIC_1_1CLogicConditionLogicBlockw1">NOT</a> = 0, +<a class="el" href="a02817.html#NLLOGIC_1_1CLogicConditionLogicBlockw3NLLOGIC_1_1CLogicConditionLogicBlockw0">COMPARISON</a>, +<a class="el" href="a02817.html#NLLOGIC_1_1CLogicConditionLogicBlockw3NLLOGIC_1_1CLogicConditionLogicBlockw2">SUB_CONDITION</a> + }</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">all condition logic block types <a href="#NLLOGIC_1_1CLogicConditionLogicBlockw3">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> </td><td class="memItemRight" valign=bottom><a class="el" href="a02817.html#NLLOGIC_1_1CLogicConditionLogicBlocka0">CLogicConditionLogicBlock</a> ()</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02817.html#NLLOGIC_1_1CLogicConditionLogicBlocka1">fillVarSet</a> (std::set< std::string > &condVars)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="a02817.html#NLLOGIC_1_1CLogicConditionLogicBlocka2">isNotBlock</a> () const </td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02817.html#NLLOGIC_1_1CLogicConditionLogicBlocka3">read</a> (xmlNodePtr node)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02817.html#NLLOGIC_1_1CLogicConditionLogicBlocka4">setLogicStateMachine</a> (<a class="el" href="a02825.html">CLogicStateMachine</a> *logicStateMachine)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="a02817.html#NLLOGIC_1_1CLogicConditionLogicBlocka5">testLogic</a> ()</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02817.html#NLLOGIC_1_1CLogicConditionLogicBlocka6">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><a class="el" href="a02815.html">CLogicComparisonBlock</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02817.html#NLLOGIC_1_1CLogicConditionLogicBlocko0">ComparisonBlock</a></td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">comparison block <a href="#NLLOGIC_1_1CLogicConditionLogicBlocko0"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>std::string </td><td class="memItemRight" valign=bottom><a class="el" href="a02817.html#NLLOGIC_1_1CLogicConditionLogicBlocko1">SubCondition</a></td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">name of the sub-condition <a href="#NLLOGIC_1_1CLogicConditionLogicBlocko1"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a02817.html#NLLOGIC_1_1CLogicConditionLogicBlockw3">TLogicConditionLogicBlockType</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02817.html#NLLOGIC_1_1CLogicConditionLogicBlocko2">Type</a></td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">type of this condition block <a href="#NLLOGIC_1_1CLogicConditionLogicBlocko2"></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> * </td><td class="memItemRight" valign=bottom><a class="el" href="a02817.html#NLLOGIC_1_1CLogicConditionLogicBlockr0">_LogicStateMachine</a></td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">state machine managing this logic block <a href="#NLLOGIC_1_1CLogicConditionLogicBlockr0"></a><br><br></td></tr> +</table> +<hr><h2>Member Enumeration Documentation</h2> +<a class="anchor" name="NLLOGIC_1_1CLogicConditionLogicBlockw3" doxytag="NLLOGIC::CLogicConditionLogicBlock::TLogicConditionLogicBlockType" ></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="a02817.html#NLLOGIC_1_1CLogicConditionLogicBlockw3">NLLOGIC::CLogicConditionLogicBlock::TLogicConditionLogicBlockType</a> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +all condition logic block 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_1CLogicConditionLogicBlockw3NLLOGIC_1_1CLogicConditionLogicBlockw1" doxytag="NOT" ></a>NOT</em> </td><td> +</td></tr> +<tr><td valign=top><em><a class="anchor" name="NLLOGIC_1_1CLogicConditionLogicBlockw3NLLOGIC_1_1CLogicConditionLogicBlockw0" doxytag="COMPARISON" ></a>COMPARISON</em> </td><td> +</td></tr> +<tr><td valign=top><em><a class="anchor" name="NLLOGIC_1_1CLogicConditionLogicBlockw3NLLOGIC_1_1CLogicConditionLogicBlockw2" doxytag="SUB_CONDITION" ></a>SUB_CONDITION</em> </td><td> +</td></tr> +</table> +</dl> + +<p> +Definition at line <a class="el" href="a05947.html#l00116">116</a> of file <a class="el" href="a05947.html">logic_condition.h</a>. +<p> +Referenced by <a class="el" href="a05946.html#l00265">read()</a>. +<p> +<div class="fragment"><pre>00117 { +00118 <a class="code" href="a02817.html#NLLOGIC_1_1CLogicConditionLogicBlockw3NLLOGIC_1_1CLogicConditionLogicBlockw1">NOT</a> = 0, +00119 <a class="code" href="a02817.html#NLLOGIC_1_1CLogicConditionLogicBlockw3NLLOGIC_1_1CLogicConditionLogicBlockw0">COMPARISON</a>, +00120 <a class="code" href="a02817.html#NLLOGIC_1_1CLogicConditionLogicBlockw3NLLOGIC_1_1CLogicConditionLogicBlockw2">SUB_CONDITION</a>, +00121 }; +</pre></div> </td> + </tr> +</table> +<hr><h2>Constructor & Destructor Documentation</h2> +<a class="anchor" name="NLLOGIC_1_1CLogicConditionLogicBlocka0" doxytag="NLLOGIC::CLogicConditionLogicBlock::CLogicConditionLogicBlock" ></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::CLogicConditionLogicBlock::CLogicConditionLogicBlock </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Default constructor +<p> +Definition at line <a class="el" href="a05947.html#l00135">135</a> of file <a class="el" href="a05947.html">logic_condition.h</a>. +<p> +References <a class="el" href="a02817.html#NLLOGIC_1_1CLogicConditionLogicBlockw3NLLOGIC_1_1CLogicConditionLogicBlockw2">SUB_CONDITION</a>, and <a class="el" href="a05947.html#l00127">SubCondition</a>. +<p> +<div class="fragment"><pre>00136 { +00137 <a class="code" href="a02817.html#NLLOGIC_1_1CLogicConditionLogicBlocko2">Type</a> = <a class="code" href="a02817.html#NLLOGIC_1_1CLogicConditionLogicBlockw3NLLOGIC_1_1CLogicConditionLogicBlockw2">SUB_CONDITION</a>; +00138 <a class="code" href="a02817.html#NLLOGIC_1_1CLogicConditionLogicBlocko1">SubCondition</a> = <span class="stringliteral">"no_condition"</span>; +00139 } +</pre></div> </td> + </tr> +</table> +<hr><h2>Member Function Documentation</h2> +<a class="anchor" name="NLLOGIC_1_1CLogicConditionLogicBlocka1" doxytag="NLLOGIC::CLogicConditionLogicBlock::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::CLogicConditionLogicBlock::fillVarSet </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">std::set< std::string > & </td> + <td class="mdname1" valign="top" nowrap> <em>condVars</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </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> </td><td>a set to store the variable names</td></tr> + </table> +</dl> + +<p> +Definition at line <a class="el" href="a05946.html#l00193">193</a> of file <a class="el" href="a05946.html">logic_condition.cpp</a>. +<p> +References <a class="el" href="a02817.html#NLLOGIC_1_1CLogicConditionLogicBlockw3NLLOGIC_1_1CLogicConditionLogicBlockw0">COMPARISON</a>, <a class="el" href="a05947.html#l00130">ComparisonBlock</a>, <a class="el" href="a05646.html#l00405">condition</a>, <a class="el" href="a05954.html#l00233">NLLOGIC::CLogicStateMachine::getCondition()</a>, <a class="el" href="a02817.html#NLLOGIC_1_1CLogicConditionLogicBlockw3NLLOGIC_1_1CLogicConditionLogicBlockw2">SUB_CONDITION</a>, <a class="el" href="a05947.html#l00127">SubCondition</a>, and <a class="el" href="a05947.html#l00055">NLLOGIC::CLogicComparisonBlock::VariableName</a>. +<p> +Referenced by <a class="el" href="a05946.html#l00388">NLLOGIC::CLogicConditionNode::fillVarSet()</a>. +<p> +<div class="fragment"><pre>00194 { +00195 <span class="keywordflow">if</span>( <a class="code" href="a02817.html#NLLOGIC_1_1CLogicConditionLogicBlocko2">Type</a> == <a class="code" href="a02817.html#NLLOGIC_1_1CLogicConditionLogicBlockw3NLLOGIC_1_1CLogicConditionLogicBlockw0">COMPARISON</a> ) +00196 { +00197 condVars.insert( <a class="code" href="a02817.html#NLLOGIC_1_1CLogicConditionLogicBlocko0">ComparisonBlock</a>.VariableName ); +00198 } +00199 <span class="keywordflow">else</span> +00200 { +00201 <span class="keywordflow">if</span>( <a class="code" href="a02817.html#NLLOGIC_1_1CLogicConditionLogicBlocko2">Type</a> == <a class="code" href="a02817.html#NLLOGIC_1_1CLogicConditionLogicBlockw3NLLOGIC_1_1CLogicConditionLogicBlockw2">SUB_CONDITION</a> ) +00202 { +00203 CLogicCondition <a class="code" href="a04223.html#a584">condition</a>; +00204 <span class="keywordflow">if</span>( <a class="code" href="a02817.html#NLLOGIC_1_1CLogicConditionLogicBlockr0">_LogicStateMachine</a>->getCondition(SubCondition,condition) ) +00205 { +00206 <a class="code" href="a04223.html#a584">condition</a>.fillVarSet( condVars ); +00207 } +00208 } +00209 } +00210 +00211 } <span class="comment">// fillVarSet //</span> +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLLOGIC_1_1CLogicConditionLogicBlocka2" doxytag="NLLOGIC::CLogicConditionLogicBlock::isNotBlock" ></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::CLogicConditionLogicBlock::isNotBlock </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> const<code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Return info about the type of the block<p> +<dl compact><dt><b>Returns:</b></dt><dd>true if this block is a NOT block</dd></dl> + +<p> +Definition at line <a class="el" href="a05947.html#l00146">146</a> of file <a class="el" href="a05947.html">logic_condition.h</a>. +<p> +References <a class="el" href="a02817.html#NLLOGIC_1_1CLogicConditionLogicBlockw3NLLOGIC_1_1CLogicConditionLogicBlockw1">NOT</a>. +<p> +Referenced by <a class="el" href="a05946.html#l00337">NLLOGIC::CLogicConditionNode::testLogic()</a>. +<p> +<div class="fragment"><pre>00146 { <span class="keywordflow">return</span> (<a class="code" href="a02817.html#NLLOGIC_1_1CLogicConditionLogicBlocko2">Type</a> == <a class="code" href="a02817.html#NLLOGIC_1_1CLogicConditionLogicBlockw3NLLOGIC_1_1CLogicConditionLogicBlockw1">NOT</a>); } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLLOGIC_1_1CLogicConditionLogicBlocka3" doxytag="NLLOGIC::CLogicConditionLogicBlock::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::CLogicConditionLogicBlock::read </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">xmlNodePtr </td> + <td class="mdname1" valign="top" nowrap> <em>node</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05946.html#l00265">265</a> of file <a class="el" href="a05946.html">logic_condition.cpp</a>. +<p> +References <a class="el" href="a02817.html#NLLOGIC_1_1CLogicConditionLogicBlockw3NLLOGIC_1_1CLogicConditionLogicBlockw0">COMPARISON</a>, <a class="el" href="a05947.html#l00130">ComparisonBlock</a>, <a class="el" href="a05954.html#l00072">NLLOGIC::getXMLProp()</a>, <a class="el" href="a02817.html#NLLOGIC_1_1CLogicConditionLogicBlockw3NLLOGIC_1_1CLogicConditionLogicBlockw1">NOT</a>, <a class="el" href="a05946.html#l00107">NLLOGIC::CLogicComparisonBlock::read()</a>, <a class="el" href="a02817.html#NLLOGIC_1_1CLogicConditionLogicBlockw3NLLOGIC_1_1CLogicConditionLogicBlockw2">SUB_CONDITION</a>, <a class="el" href="a05947.html#l00127">SubCondition</a>, <a class="el" href="a05947.html#l00116">TLogicConditionLogicBlockType</a>, and <a class="el" href="a05954.html#l00042">NLLOGIC::xmlCheckNodeName()</a>. +<p> +Referenced by <a class="el" href="a05946.html#l00470">NLLOGIC::CLogicConditionNode::read()</a>. +<p> +<div class="fragment"><pre>00266 { +00267 <a class="code" href="a05376.html#a2">xmlCheckNodeName</a> (node, <span class="stringliteral">"CONDITION_LOGIC_NODE"</span>); +00268 +00269 <a class="code" href="a02817.html#NLLOGIC_1_1CLogicConditionLogicBlocko2">Type</a> = (<a class="code" href="a02817.html#NLLOGIC_1_1CLogicConditionLogicBlockw3">TLogicConditionLogicBlockType</a>)atoi(getXMLProp (node, <span class="stringliteral">"Type"</span>).c_str()); +00270 <span class="keywordflow">switch</span>( <a class="code" href="a02817.html#NLLOGIC_1_1CLogicConditionLogicBlocko2">Type</a> ) +00271 { +00272 <span class="keywordflow">case</span> <a class="code" href="a02817.html#NLLOGIC_1_1CLogicConditionLogicBlockw3NLLOGIC_1_1CLogicConditionLogicBlockw1">NOT</a> : <span class="keywordflow">break</span>; +00273 +00274 <span class="keywordflow">case</span> <a class="code" href="a02817.html#NLLOGIC_1_1CLogicConditionLogicBlockw3NLLOGIC_1_1CLogicConditionLogicBlockw0">COMPARISON</a> : +00275 { +00276 <a class="code" href="a02817.html#NLLOGIC_1_1CLogicConditionLogicBlocko0">ComparisonBlock</a>.read (node); +00277 } +00278 <span class="keywordflow">break</span>; +00279 +00280 <span class="keywordflow">case</span> <a class="code" href="a02817.html#NLLOGIC_1_1CLogicConditionLogicBlockw3NLLOGIC_1_1CLogicConditionLogicBlockw2">SUB_CONDITION</a> : +00281 { +00282 <a class="code" href="a02817.html#NLLOGIC_1_1CLogicConditionLogicBlocko1">SubCondition</a> = <a class="code" href="a05376.html#a3">getXMLProp</a> (node, <span class="stringliteral">"SubCondition"</span>); +00283 } +00284 <span class="keywordflow">break</span>; +00285 }; +00286 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLLOGIC_1_1CLogicConditionLogicBlocka4" doxytag="NLLOGIC::CLogicConditionLogicBlock::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::CLogicConditionLogicBlock::setLogicStateMachine </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a02825.html">CLogicStateMachine</a> * </td> + <td class="mdname1" valign="top" nowrap> <em>logicStateMachine</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </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> </td><td>is the state machine containing this block</td></tr> + </table> +</dl> + +<p> +Definition at line <a class="el" href="a05946.html#l00126">126</a> of file <a class="el" href="a05946.html">logic_condition.cpp</a>. +<p> +References <a class="el" href="a05947.html#l00130">ComparisonBlock</a>, <a class="el" href="a05622.html#l00135">nlwarning</a>, and <a class="el" href="a05946.html#l00043">NLLOGIC::CLogicComparisonBlock::setLogicStateMachine()</a>. +<p> +Referenced by <a class="el" href="a05946.html#l00296">NLLOGIC::CLogicConditionNode::setLogicStateMachine()</a>. +<p> +<div class="fragment"><pre>00127 { +00128 <span class="keywordflow">if</span>( logicStateMachine == 0 ) +00129 { +00130 <a class="code" href="a04199.html#a2">nlwarning</a>(<span class="stringliteral">"(LOGIC)<CCLogicConditionLogicBlock::setLogicStateMachine> The state machine is null"</span>); +00131 } +00132 <span class="keywordflow">else</span> +00133 { +00134 <span class="comment">// set the state machine of this node</span> +00135 <a class="code" href="a02817.html#NLLOGIC_1_1CLogicConditionLogicBlockr0">_LogicStateMachine</a> = logicStateMachine; +00136 +00137 <span class="comment">// set the state machine of the logic block </span> +00138 <a class="code" href="a02817.html#NLLOGIC_1_1CLogicConditionLogicBlocko0">ComparisonBlock</a>.setLogicStateMachine( logicStateMachine ); +00139 } +00140 +00141 } <span class="comment">// setLogicStateMachine //</span> +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLLOGIC_1_1CLogicConditionLogicBlocka5" doxytag="NLLOGIC::CLogicConditionLogicBlock::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::CLogicConditionLogicBlock::testLogic </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </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#l00148">148</a> of file <a class="el" href="a05946.html">logic_condition.cpp</a>. +<p> +References <a class="el" href="a02817.html#NLLOGIC_1_1CLogicConditionLogicBlockw3NLLOGIC_1_1CLogicConditionLogicBlockw0">COMPARISON</a>, <a class="el" href="a05947.html#l00130">ComparisonBlock</a>, <a class="el" href="a05646.html#l00405">condition</a>, <a class="el" href="a05954.html#l00233">NLLOGIC::CLogicStateMachine::getCondition()</a>, <a class="el" href="a05955.html#l00101">NLLOGIC::CLogicStateMachine::getName()</a>, <a class="el" href="a05622.html#l00154">nlerror</a>, <a class="el" href="a05622.html#l00135">nlwarning</a>, <a class="el" href="a02817.html#NLLOGIC_1_1CLogicConditionLogicBlockw3NLLOGIC_1_1CLogicConditionLogicBlockw1">NOT</a>, <a class="el" href="a02817.html#NLLOGIC_1_1CLogicConditionLogicBlockw3NLLOGIC_1_1CLogicConditionLogicBlockw2">SUB_CONDITION</a>, <a class="el" href="a05947.html#l00127">SubCondition</a>, and <a class="el" href="a05946.html#l00061">NLLOGIC::CLogicComparisonBlock::testLogic()</a>. +<p> +Referenced by <a class="el" href="a05946.html#l00337">NLLOGIC::CLogicConditionNode::testLogic()</a>. +<p> +<div class="fragment"><pre>00149 { +00150 <span class="keywordflow">switch</span>( <a class="code" href="a02817.html#NLLOGIC_1_1CLogicConditionLogicBlocko2">Type</a> ) +00151 { +00152 <span class="keywordflow">case</span> <a class="code" href="a02817.html#NLLOGIC_1_1CLogicConditionLogicBlockw3NLLOGIC_1_1CLogicConditionLogicBlockw1">NOT</a> : +00153 { +00154 <span class="keywordflow">return</span> <span class="keyword">true</span>; +00155 } +00156 <span class="keywordflow">break</span>; +00157 +00158 <span class="keywordflow">case</span> <a class="code" href="a02817.html#NLLOGIC_1_1CLogicConditionLogicBlockw3NLLOGIC_1_1CLogicConditionLogicBlockw0">COMPARISON</a> : +00159 { +00160 <span class="keywordflow">return</span> <a class="code" href="a02817.html#NLLOGIC_1_1CLogicConditionLogicBlocko0">ComparisonBlock</a>.testLogic(); +00161 } +00162 <span class="keywordflow">break</span>; +00163 +00164 <span class="keywordflow">case</span> <a class="code" href="a02817.html#NLLOGIC_1_1CLogicConditionLogicBlockw3NLLOGIC_1_1CLogicConditionLogicBlockw2">SUB_CONDITION</a> : +00165 { +00166 CLogicCondition <a class="code" href="a04223.html#a584">condition</a>; +00167 <span class="keywordflow">if</span>( <a class="code" href="a02817.html#NLLOGIC_1_1CLogicConditionLogicBlockr0">_LogicStateMachine</a>->getCondition(SubCondition,condition) ) +00168 { +00169 <span class="keywordflow">return</span> <a class="code" href="a04223.html#a584">condition</a>.testLogic(); +00170 } +00171 <span class="keywordflow">else</span> +00172 { +00173 <a class="code" href="a04199.html#a2">nlwarning</a>(<span class="stringliteral">"(LOGIC)<CLogicConditionLogicBlock::testLogic> The subcondition \"%s\" is unknown in the state machine \"%s\""</span>, +00174 <a class="code" href="a02817.html#NLLOGIC_1_1CLogicConditionLogicBlocko1">SubCondition</a>.c_str(),<a class="code" href="a02817.html#NLLOGIC_1_1CLogicConditionLogicBlockr0">_LogicStateMachine</a>->getName().c_str()); +00175 } +00176 +00177 } +00178 +00179 <span class="keywordflow">default</span> : +00180 <a class="code" href="a04199.html#a3">nlerror</a>(<span class="stringliteral">"(LOGIC)<CLogicConditionLogicBlock::testLogic> logic block type %d is unknown"</span>,Type); +00181 } +00182 +00183 <span class="keywordflow">return</span> <span class="keyword">false</span>; +00184 +00185 } <span class="comment">// testLogic //</span> +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLLOGIC_1_1CLogicConditionLogicBlocka6" doxytag="NLLOGIC::CLogicConditionLogicBlock::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::CLogicConditionLogicBlock::write </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">xmlNodePtr </td> + <td class="mdname1" valign="top" nowrap> <em>node</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> const</td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +serial +<p> +Definition at line <a class="el" href="a05946.html#l00243">243</a> of file <a class="el" href="a05946.html">logic_condition.cpp</a>. +<p> +References <a class="el" href="a02817.html#NLLOGIC_1_1CLogicConditionLogicBlockw3NLLOGIC_1_1CLogicConditionLogicBlockw0">COMPARISON</a>, <a class="el" href="a05947.html#l00130">ComparisonBlock</a>, <a class="el" href="a02817.html#NLLOGIC_1_1CLogicConditionLogicBlockw3NLLOGIC_1_1CLogicConditionLogicBlockw1">NOT</a>, <a class="el" href="a02817.html#NLLOGIC_1_1CLogicConditionLogicBlockw3NLLOGIC_1_1CLogicConditionLogicBlockw2">SUB_CONDITION</a>, <a class="el" href="a05947.html#l00127">SubCondition</a>, <a class="el" href="a05981.html#l00100">uint32</a>, and <a class="el" href="a05946.html#l00099">NLLOGIC::CLogicComparisonBlock::write()</a>. +<p> +Referenced by <a class="el" href="a05946.html#l00449">NLLOGIC::CLogicConditionNode::write()</a>. +<p> +<div class="fragment"><pre>00244 { +00245 xmlNodePtr elmPtr = xmlNewChild ( node, NULL, (<span class="keyword">const</span> xmlChar*)<span class="stringliteral">"CONDITION_LOGIC_NODE"</span>, NULL); +00246 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()); +00247 <span class="keywordflow">switch</span>( Type ) +00248 { +00249 <span class="keywordflow">case</span> <a class="code" href="a02817.html#NLLOGIC_1_1CLogicConditionLogicBlockw3NLLOGIC_1_1CLogicConditionLogicBlockw1">NOT</a> : <span class="keywordflow">break</span>; +00250 +00251 <span class="keywordflow">case</span> <a class="code" href="a02817.html#NLLOGIC_1_1CLogicConditionLogicBlockw3NLLOGIC_1_1CLogicConditionLogicBlockw0">COMPARISON</a> : +00252 { +00253 <a class="code" href="a02817.html#NLLOGIC_1_1CLogicConditionLogicBlocko0">ComparisonBlock</a>.write(elmPtr); +00254 } +00255 <span class="keywordflow">break</span>; +00256 +00257 <span class="keywordflow">case</span> <a class="code" href="a02817.html#NLLOGIC_1_1CLogicConditionLogicBlockw3NLLOGIC_1_1CLogicConditionLogicBlockw2">SUB_CONDITION</a> : +00258 { +00259 xmlSetProp (elmPtr, (<span class="keyword">const</span> xmlChar*)<span class="stringliteral">"SubCondition"</span>, (<span class="keyword">const</span> xmlChar*)<a class="code" href="a02817.html#NLLOGIC_1_1CLogicConditionLogicBlocko1">SubCondition</a>.c_str()); +00260 } +00261 <span class="keywordflow">break</span>; +00262 }; +00263 } +</pre></div> </td> + </tr> +</table> +<hr><h2>Field Documentation</h2> +<a class="anchor" name="NLLOGIC_1_1CLogicConditionLogicBlockr0" doxytag="NLLOGIC::CLogicConditionLogicBlock::_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="a02817.html#NLLOGIC_1_1CLogicConditionLogicBlockr0">NLLOGIC::CLogicConditionLogicBlock::_LogicStateMachine</a><code> [private]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +state machine managing this logic block +<p> + +<p> +Definition at line <a class="el" href="a05947.html#l00111">111</a> of file <a class="el" href="a05947.html">logic_condition.h</a>. </td> + </tr> +</table> +<a class="anchor" name="NLLOGIC_1_1CLogicConditionLogicBlocko0" doxytag="NLLOGIC::CLogicConditionLogicBlock::ComparisonBlock" ></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="a02815.html">CLogicComparisonBlock</a> <a class="el" href="a02817.html#NLLOGIC_1_1CLogicConditionLogicBlocko0">NLLOGIC::CLogicConditionLogicBlock::ComparisonBlock</a> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +comparison block +<p> + +<p> +Definition at line <a class="el" href="a05947.html#l00130">130</a> of file <a class="el" href="a05947.html">logic_condition.h</a>. +<p> +Referenced by <a class="el" href="a05946.html#l00193">fillVarSet()</a>, <a class="el" href="a05946.html#l00265">read()</a>, <a class="el" href="a05946.html#l00126">setLogicStateMachine()</a>, <a class="el" href="a05946.html#l00148">testLogic()</a>, and <a class="el" href="a05946.html#l00243">write()</a>. </td> + </tr> +</table> +<a class="anchor" name="NLLOGIC_1_1CLogicConditionLogicBlocko1" doxytag="NLLOGIC::CLogicConditionLogicBlock::SubCondition" ></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="a02817.html#NLLOGIC_1_1CLogicConditionLogicBlocko1">NLLOGIC::CLogicConditionLogicBlock::SubCondition</a> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +name of the sub-condition +<p> + +<p> +Definition at line <a class="el" href="a05947.html#l00127">127</a> of file <a class="el" href="a05947.html">logic_condition.h</a>. +<p> +Referenced by <a class="el" href="a05947.html#l00135">CLogicConditionLogicBlock()</a>, <a class="el" href="a05946.html#l00193">fillVarSet()</a>, <a class="el" href="a05946.html#l00265">read()</a>, <a class="el" href="a05946.html#l00148">testLogic()</a>, and <a class="el" href="a05946.html#l00243">write()</a>. </td> + </tr> +</table> +<a class="anchor" name="NLLOGIC_1_1CLogicConditionLogicBlocko2" doxytag="NLLOGIC::CLogicConditionLogicBlock::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="a02817.html#NLLOGIC_1_1CLogicConditionLogicBlockw3">TLogicConditionLogicBlockType</a> <a class="el" href="a02817.html#NLLOGIC_1_1CLogicConditionLogicBlocko2">NLLOGIC::CLogicConditionLogicBlock::Type</a> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +type of this condition block +<p> + +<p> +Definition at line <a class="el" href="a05947.html#l00124">124</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:11 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> |