diff options
Diffstat (limited to '')
-rw-r--r-- | docs/doxygen/nel/logic__event_8cpp-source.html | 329 |
1 files changed, 329 insertions, 0 deletions
diff --git a/docs/doxygen/nel/logic__event_8cpp-source.html b/docs/doxygen/nel/logic__event_8cpp-source.html new file mode 100644 index 00000000..e8ab9d50 --- /dev/null +++ b/docs/doxygen/nel/logic__event_8cpp-source.html @@ -0,0 +1,329 @@ +<!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"> +<HTML> +<HEAD> + <TITLE>nevrax.org : docs</TITLE> + <LINK REL=stylesheet TYPE="text/css" HREF="http://www.nevrax.org/inc/css/nevrax.css"> + <link href="doxygen.css" rel="stylesheet" type="text/css"> +</HEAD> +<BODY MARGINHEIGHT="0" MARGINWIDTH="0"> + +<!-- uplinks --> +<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0> + <TR> + <TD WIDTH=16><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="16" HEIGHT="16" BORDER=0 ALT=""></TD> + <TD WIDTH=140 BGCOLOR=#dddddd><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="140" HEIGHT="16" BORDER=0 ALT=""></TD> + <TD WIDTH=16><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="16" HEIGHT="16" BORDER=0 ALT=""></TD> + <TD><IMG width=6 height=14 SRC="http://www.nevrax.org/inc/img/reddots.gif" ALT="#" VSPACE=2 HSPACE=2 BORDER=0 ></TD><TD VALIGN=middle> <A CLASS=uplinks HREF=http://www.nevrax.org><b>Home</B></FONT></A> </TD> + <TD><IMG width=6 height=14 SRC="http://www.nevrax.org/inc/img/reddots.gif" ALT="#" VSPACE=2 HSPACE=2 BORDER=0 ></TD><TD VALIGN=middle> <A CLASS=uplinks HREF=http://www.nevrax.com><b>nevrax.com</B></FONT></A> </TD> + </TR> +</TABLE> + +<!-- banner Nevrax --> +<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0 WIDTH=100%> + <TR><TD BGCOLOR="#000000" BACKGROUND="http://www.nevrax.org/inc/img/black_banner.jpg"><A HREF="http://www.nevrax.org"><IMG SRC="http://www.nevrax.org/inc/img/nevrax.gif" WIDTH="170" HEIGHT="45" BORDER=0 ALT="Nevrax" ></A></TD></TR> +</TABLE> + +<!-- main table --> +<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0 height=100%> + <TR> + <TD WIDTH=16><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="16" HEIGHT="10" BORDER=0 ALT=""></TD> + <TD WIDTH=140 BGCOLOR=#dddddd VALIGN=TOP ALIGN=middle><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="140" HEIGHT="10" BORDER=0 ALT=""> + + <!------ Begin Box ------> + <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 BGCOLOR=black><TR><TD><TABLE border=0 cellspacing=2 cellpadding=0 width=120><tr><TD ALIGN=middle bgcolor=black> + <FONT COLOR=white FACE="sans-serif"><B>Nevrax.org</B></FONT></TD></TR><tr><td colspan=2 bgcolor=#FFFFFF> + <TABLE cellspacing=0 cellpadding=1 border=0> + <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/news/" TITLE="Rubrique news"><img width=13 height=15 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-news.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/news/" TITLE="News">News</a></td></tr> + <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/mail/" TITLE="Rubrique mail"><img width=15 height=11 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-mail.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/mail/" TITLE="Mailing list archive">Mailing-list</a></td></tr> + <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/docs/" TITLE="Rubrique docs"><img width=14 height=16 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-docs.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/docs/" TITLE="Documentation">Documentation</a></td></tr> + <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/cvs/" TITLE="Rubrique cvs"><img width=13 height=17 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-cvs.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/cvs/" TITLE="CVS Web">CVS</a></td></tr> + <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/bugs/" TITLE="Rubrique bugs"><img width=20 height=16 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-bugs.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/bugs/" TITLE="Bugtracking">Bugs</a></td></tr> + <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/GPL.php3" TITLE="Rubrique license"><img width=18 height=12 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-gpl.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/GPL.php3" TITLE="License">License</a></td></tr> + </TABLE> + </TD></TR></TABLE></TD></TR></TABLE> + <!------ End Box ------> + + </TD> + <TD WIDTH=15><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="16" HEIGHT="16" BORDER=0 ALT=""></TD> + <TD ALIGN=left valign=top><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="140" HEIGHT="10" BORDER=0 ALT=""> + +<!-- title --> +<TABLE background="http://www.nevrax.org/inc/img/redline.gif" CELLSPACING=0 CELLPADDING=0 BORDER=0 width=100%><tr><td> +<A HREF="http://www.nevrax.org/docs/"><img src="http://www.nevrax.org/inc/img/t_docs.gif" ALT="Docs" HEIGHT=20 BORDER=0></A> +</td><td><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="1" HEIGHT="1" BORDER=0 ALT=""> +</td></tr></table> + + +<!-- block --> +<TABLE bgcolor="#dddddd" CELLSPACING=0 CELLPADDING=0 BORDER=0 width=100%><tr><td width=1% valign=middle><img width=6 height=14 hspace=2 vspace=2 src="http://www.nevrax.org/inc/img/reddots.gif"></TD> + <TD><B>Documentation</B></TD> + <TD ALIGN=RIGHT> </td> +</tr></table> +<!-- Generated by Doxygen 1.2.14 --> +<center> +<a class="qindex" href="index.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">Compound List</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">Compound Members</a> <a class="qindex" href="globals.html">File Members</a> <a class="qindex" href="pages.html">Related Pages</a> <a class="qindexRef" doxygen="_cgi:http://www.nevrax.org/cgi-bin/nel-search.cgi" href="http://www.nevrax.org/cgi-bin/nel-search.cgi">Search</a> </center> +<hr><h1>logic_event.cpp</h1><a href="logic__event_8cpp.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 +00007 <font class="comment">/* Copyright, 2000 Nevrax Ltd.</font> +00008 <font class="comment"> *</font> +00009 <font class="comment"> * This file is part of NEVRAX NEL.</font> +00010 <font class="comment"> * NEVRAX NEL is free software; you can redistribute it and/or modify</font> +00011 <font class="comment"> * it under the terms of the GNU General Public License as published by</font> +00012 <font class="comment"> * the Free Software Foundation; either version 2, or (at your option)</font> +00013 <font class="comment"> * any later version.</font> +00014 <font class="comment"></font> +00015 <font class="comment"> * NEVRAX NEL is distributed in the hope that it will be useful, but</font> +00016 <font class="comment"> * WITHOUT ANY WARRANTY; without even the implied warranty of</font> +00017 <font class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</font> +00018 <font class="comment"> * General Public License for more details.</font> +00019 <font class="comment"></font> +00020 <font class="comment"> * You should have received a copy of the GNU General Public License</font> +00021 <font class="comment"> * along with NEVRAX NEL; see the file COPYING. If not, write to the</font> +00022 <font class="comment"> * Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,</font> +00023 <font class="comment"> * MA 02111-1307, USA.</font> +00024 <font class="comment"> */</font> +00025 +00026 +00027 <font class="preprocessor">#include "<a class="code" href="logic__event_8h.html">nel/logic/logic_event.h</a>"</font> +00028 <font class="preprocessor">#include "<a class="code" href="logic__state__machine_8h.html">nel/logic/logic_state_machine.h</a>"</font> +00029 +00030 <font class="preprocessor">#include "<a class="code" href="service_8h.html">nel/net/service.h</a>"</font> +00031 +00032 <font class="keyword">using</font> <font class="keyword">namespace </font>NLMISC; +00033 <font class="keyword">using</font> <font class="keyword">namespace </font>NLNET; +00034 <font class="keyword">using</font> <font class="keyword">namespace </font>std; +00035 +00036 <font class="keyword">namespace </font>NLLOGIC +00037 { +00038 +00039 <font class="comment">//----------------------------------- MESSAGE ----------------------------------</font> +00040 +00041 +00042 <font class="comment">//-------------------------------------------------</font> +00043 <font class="comment">// serial</font> +00044 <font class="comment">//</font> +00045 <font class="comment">//-------------------------------------------------</font> +00046 <font class="comment">/*void CLogicEventMessage::serial( IStream &f )</font> +00047 <font class="comment">{</font> +00048 <font class="comment"> f.xmlPush("EVENT_MESSAGE");</font> +00049 <font class="comment"></font> +00050 <font class="comment"> f.serial( Destination );</font> +00051 <font class="comment"> f.serial( DestinationId );</font> +00052 <font class="comment"> f.serial( MessageId );</font> +00053 <font class="comment"> f.serial( Arguments );</font> +00054 <font class="comment"></font> +00055 <font class="comment"> f.xmlPop();</font> +00056 <font class="comment"></font> +00057 <font class="comment">} // serial //*/</font> +00058 +<a name="l00059"></a><a class="code" href="classNLLOGIC_1_1CLogicEventMessage.html#a1">00059</a> <font class="keywordtype">void</font> CLogicEventMessage::write (xmlNodePtr node, <font class="keyword">const</font> <font class="keywordtype">char</font> *subName)<font class="keyword"> const</font> +00060 <font class="keyword"></font>{ +00061 xmlNodePtr elmPtr = xmlNewChild ( node, NULL, (<font class="keyword">const</font> xmlChar*)string(string(subName)+string(<font class="stringliteral">"EVENT_MESSAGE"</font>)).c_str(), NULL); +00062 xmlSetProp (elmPtr, (<font class="keyword">const</font> xmlChar*)<font class="stringliteral">"Destination"</font>, (<font class="keyword">const</font> xmlChar*)<a class="code" href="classNLLOGIC_1_1CLogicEventMessage.html#m2">Destination</a>.c_str()); +00063 xmlSetProp (elmPtr, (<font class="keyword">const</font> xmlChar*)<font class="stringliteral">"DestinationId"</font>, (<font class="keyword">const</font> xmlChar*)toString(DestinationId).c_str()); +00064 xmlSetProp (elmPtr, (<font class="keyword">const</font> xmlChar*)<font class="stringliteral">"MessageId"</font>, (<font class="keyword">const</font> xmlChar*)toString(MessageId).c_str()); +00065 xmlSetProp (elmPtr, (<font class="keyword">const</font> xmlChar*)<font class="stringliteral">"Arguments"</font>, (<font class="keyword">const</font> xmlChar*)toString(Arguments).c_str()); +00066 } +00067 +<a name="l00068"></a><a class="code" href="classNLLOGIC_1_1CLogicEventMessage.html#a2">00068</a> <font class="keywordtype">void</font> CLogicEventMessage::read (xmlNodePtr node, <font class="keyword">const</font> <font class="keywordtype">char</font> *subName) +00069 { +00070 <a class="code" href="namespaceNLLOGIC.html#a1">xmlCheckNodeName</a> (node, string(string(subName)+string(<font class="stringliteral">"EVENT_MESSAGE"</font>)).c_str()); +00071 +00072 <a class="code" href="classNLLOGIC_1_1CLogicEventMessage.html#m2">Destination</a> = <a class="code" href="namespaceNLLOGIC.html#a2">getXMLProp</a> (node, <font class="stringliteral">"Destination"</font>); +00073 <a class="code" href="classNLLOGIC_1_1CLogicEventMessage.html#m3">DestinationId</a> = atoiInt64(<a class="code" href="namespaceNLLOGIC.html#a2">getXMLProp</a> (node, <font class="stringliteral">"DestinationId"</font>).c_str()); +00074 <a class="code" href="classNLLOGIC_1_1CLogicEventMessage.html#m4">MessageId</a> = <a class="code" href="namespaceNLLOGIC.html#a2">getXMLProp</a> (node, <font class="stringliteral">"MessageId"</font>); +00075 <a class="code" href="classNLLOGIC_1_1CLogicEventMessage.html#m5">Arguments</a> = <a class="code" href="namespaceNLLOGIC.html#a2">getXMLProp</a> (node, <font class="stringliteral">"Arguments"</font>); +00076 } +00077 +00078 +00079 +00080 +00081 +00082 <font class="comment">//----------------------------------- ACTION ----------------------------------</font> +00083 +00084 +00085 <font class="comment">//-------------------------------------------------</font> +00086 <font class="comment">// enableSendMessage</font> +00087 <font class="comment">//</font> +00088 <font class="comment">//-------------------------------------------------</font> +<a name="l00089"></a><a class="code" href="classNLLOGIC_1_1CLogicEventAction.html#a1">00089</a> <font class="keywordtype">void</font> CLogicEventAction::enableSendMessage() +00090 { +00091 <a class="code" href="classNLLOGIC_1_1CLogicEventAction.html#m2">EventMessage</a>.ToSend = <font class="keyword">true</font>; +00092 +00093 } <font class="comment">// enableSendMessage //</font> +00094 +00095 +00096 <font class="comment">//-------------------------------------------------</font> +00097 <font class="comment">// serial</font> +00098 <font class="comment">//</font> +00099 <font class="comment">//-------------------------------------------------</font> +00100 <font class="comment">/*void CLogicEventAction::serial( IStream &f )</font> +00101 <font class="comment">{</font> +00102 <font class="comment"> f.xmlPush("EVENT_ACTION");</font> +00103 <font class="comment"></font> +00104 <font class="comment"> f.serial( IsStateChange );</font> +00105 <font class="comment"> if( IsStateChange )</font> +00106 <font class="comment"> {</font> +00107 <font class="comment"> f.serial( StateChange );</font> +00108 <font class="comment"> }</font> +00109 <font class="comment"> else</font> +00110 <font class="comment"> {</font> +00111 <font class="comment"> f.serial( EventMessage );</font> +00112 <font class="comment"> }</font> +00113 <font class="comment"></font> +00114 <font class="comment"> f.xmlPop();</font> +00115 <font class="comment"></font> +00116 <font class="comment">} // serial //*/</font> +00117 +<a name="l00118"></a><a class="code" href="classNLLOGIC_1_1CLogicEventAction.html#a2">00118</a> <font class="keywordtype">void</font> CLogicEventAction::write (xmlNodePtr node)<font class="keyword"> const</font> +00119 <font class="keyword"></font>{ +00120 xmlNodePtr elmPtr = xmlNewChild ( node, NULL, (<font class="keyword">const</font> xmlChar*)<font class="stringliteral">"EVENT_ACTION"</font>, NULL); +00121 xmlSetProp (elmPtr, (<font class="keyword">const</font> xmlChar*)<font class="stringliteral">"IsStateChange"</font>, (<font class="keyword">const</font> xmlChar*)toString(IsStateChange).c_str()); +00122 <font class="keywordflow">if</font> (IsStateChange) +00123 { +00124 xmlSetProp (elmPtr, (<font class="keyword">const</font> xmlChar*)<font class="stringliteral">"StateChange"</font>, (<font class="keyword">const</font> xmlChar*)<a class="code" href="classNLLOGIC_1_1CLogicEventAction.html#m1">StateChange</a>.c_str()); +00125 } +00126 <font class="keywordflow">else</font> +00127 { +00128 <a class="code" href="classNLLOGIC_1_1CLogicEventAction.html#m2">EventMessage</a>.write(elmPtr); +00129 } +00130 } +00131 +<a name="l00132"></a><a class="code" href="classNLLOGIC_1_1CLogicEventAction.html#a3">00132</a> <font class="keywordtype">void</font> CLogicEventAction::read (xmlNodePtr node) +00133 { +00134 <a class="code" href="namespaceNLLOGIC.html#a1">xmlCheckNodeName</a> (node, <font class="stringliteral">"EVENT_ACTION"</font>); +00135 +00136 <a class="code" href="classNLLOGIC_1_1CLogicEventAction.html#m0">IsStateChange</a> = atoi(<a class="code" href="namespaceNLLOGIC.html#a2">getXMLProp</a> (node, <font class="stringliteral">"IsStateChange"</font>).c_str()) == 1; +00137 <font class="keywordflow">if</font> (IsStateChange) +00138 { +00139 <a class="code" href="classNLLOGIC_1_1CLogicEventAction.html#m1">StateChange</a> = <a class="code" href="namespaceNLLOGIC.html#a2">getXMLProp</a> (node, <font class="stringliteral">"StateChange"</font>); +00140 } +00141 <font class="keywordflow">else</font> +00142 { +00143 <a class="code" href="classNLLOGIC_1_1CLogicEventAction.html#m2">EventMessage</a>.read(node); +00144 } +00145 } +00146 +00147 +00148 +00149 +00150 +00151 +00152 +00153 +00154 <font class="comment">//----------------------------------- EVENT ----------------------------------</font> +00155 +00156 +00157 +00158 <font class="comment">//-------------------------------------------------</font> +00159 <font class="comment">// reset</font> +00160 <font class="comment">//</font> +00161 <font class="comment">//-------------------------------------------------</font> +<a name="l00162"></a><a class="code" href="classNLLOGIC_1_1CLogicEvent.html#a1">00162</a> <font class="keywordtype">void</font> CLogicEvent::reset() +00163 { +00164 <a class="code" href="classNLLOGIC_1_1CLogicEvent.html#m1">EventAction</a>.EventMessage.Sent = <font class="keyword">false</font>; +00165 <a class="code" href="classNLLOGIC_1_1CLogicEvent.html#m1">EventAction</a>.EventMessage.ToSend = <font class="keyword">false</font>; +00166 +00167 } <font class="comment">// reset //</font> +00168 +00169 +00170 +00171 <font class="comment">//-------------------------------------------------</font> +00172 <font class="comment">// setLogicStateMachine</font> +00173 <font class="comment">//</font> +00174 <font class="comment">//-------------------------------------------------</font> +<a name="l00175"></a><a class="code" href="classNLLOGIC_1_1CLogicEvent.html#a2">00175</a> <font class="keywordtype">void</font> CLogicEvent::setLogicStateMachine( CLogicStateMachine * logicStateMachine ) +00176 { +00177 <font class="keywordflow">if</font>( logicStateMachine == 0 ) +00178 { +00179 <a class="code" href="debug_8h.html#a2">nlwarning</a>(<font class="stringliteral">"(LOGIC)<CLogicEvent::setLogicStateMachine> The state machine is null"</font>); +00180 } +00181 <font class="keywordflow">else</font> +00182 { +00183 <font class="comment">// init the logic state machine for this event</font> +00184 <a class="code" href="classNLLOGIC_1_1CLogicEvent.html#o0">_LogicStateMachine</a> = logicStateMachine; +00185 } +00186 +00187 } <font class="comment">// setLogicStateMachine //</font> +00188 +00189 +00190 +00191 <font class="comment">//-------------------------------------------------</font> +00192 <font class="comment">// testCondition</font> +00193 <font class="comment">//</font> +00194 <font class="comment">//-------------------------------------------------</font> +<a name="l00195"></a><a class="code" href="classNLLOGIC_1_1CLogicEvent.html#a3">00195</a> <font class="keywordtype">bool</font> CLogicEvent::testCondition() +00196 { +00197 <font class="keywordflow">if</font>( _LogicStateMachine ) +00198 { +00199 <font class="keywordflow">if</font>( <a class="code" href="classNLLOGIC_1_1CLogicEvent.html#m0">ConditionName</a> != <font class="stringliteral">"no_condition"</font> ) +00200 { +00201 CLogicCondition cond; +00202 <font class="keywordflow">if</font>( <a class="code" href="classNLLOGIC_1_1CLogicEvent.html#o0">_LogicStateMachine</a>->getCondition( <a class="code" href="classNLLOGIC_1_1CLogicEvent.html#m0">ConditionName</a>, cond ) ) +00203 { +00204 <font class="keywordflow">return</font> cond.testLogic(); +00205 } +00206 <font class="keywordflow">else</font> +00207 { +00208 <a class="code" href="debug_8h.html#a2">nlwarning</a>(<font class="stringliteral">"(LOGIC)<CLogicEvent::testCondition> Condition %s not found in the state machine"</font>,<a class="code" href="classNLLOGIC_1_1CLogicEvent.html#m0">ConditionName</a>.c_str()); +00209 <font class="keywordflow">return</font> <font class="keyword">false</font>; +00210 } +00211 } +00212 <font class="keywordflow">else</font> +00213 { +00214 <a class="code" href="debug_8h.html#a2">nlwarning</a>(<font class="stringliteral">"(LOGIC)<CLogicEvent::testCondition> Condition undefined"</font>); +00215 <font class="keywordflow">return</font> <font class="keyword">false</font>; +00216 } +00217 } +00218 <font class="keywordflow">else</font> +00219 { +00220 <a class="code" href="debug_8h.html#a2">nlwarning</a>(<font class="stringliteral">"(LOGIC)<CLogicEvent::testCondition> The state machine managing this event is Null"</font>); +00221 } +00222 +00223 <font class="keywordflow">return</font> <font class="keyword">false</font>; +00224 +00225 } <font class="comment">// testCondition //</font> +00226 +00227 +00228 <font class="comment">//-------------------------------------------------</font> +00229 <font class="comment">// serial</font> +00230 <font class="comment">//</font> +00231 <font class="comment">//-------------------------------------------------</font> +00232 <font class="comment">/*void CLogicEvent::serial( IStream &f )</font> +00233 <font class="comment">{</font> +00234 <font class="comment"> f.xmlPush("EVENT");</font> +00235 <font class="comment"> </font> +00236 <font class="comment"> f.serial( ConditionName );</font> +00237 <font class="comment"> f.serial( EventAction );</font> +00238 <font class="comment"> </font> +00239 <font class="comment"> f.xmlPop();</font> +00240 <font class="comment"></font> +00241 <font class="comment">} // serial //*/</font> +00242 +<a name="l00243"></a><a class="code" href="classNLLOGIC_1_1CLogicEvent.html#a4">00243</a> <font class="keywordtype">void</font> CLogicEvent::write (xmlNodePtr node)<font class="keyword"> const</font> +00244 <font class="keyword"></font>{ +00245 xmlNodePtr elmPtr = xmlNewChild ( node, NULL, (<font class="keyword">const</font> xmlChar*)<font class="stringliteral">"EVENT"</font>, NULL); +00246 xmlSetProp (elmPtr, (<font class="keyword">const</font> xmlChar*)<font class="stringliteral">"ConditionName"</font>, (<font class="keyword">const</font> xmlChar*)<a class="code" href="classNLLOGIC_1_1CLogicEvent.html#m0">ConditionName</a>.c_str()); +00247 <a class="code" href="classNLLOGIC_1_1CLogicEvent.html#m1">EventAction</a>.write(elmPtr); +00248 } +00249 +<a name="l00250"></a><a class="code" href="classNLLOGIC_1_1CLogicEvent.html#a5">00250</a> <font class="keywordtype">void</font> CLogicEvent::read (xmlNodePtr node) +00251 { +00252 <a class="code" href="namespaceNLLOGIC.html#a1">xmlCheckNodeName</a> (node, <font class="stringliteral">"EVENT"</font>); +00253 +00254 <a class="code" href="classNLLOGIC_1_1CLogicEvent.html#m0">ConditionName</a> = <a class="code" href="namespaceNLLOGIC.html#a2">getXMLProp</a> (node, <font class="stringliteral">"ConditionName"</font>); +00255 <a class="code" href="classNLLOGIC_1_1CLogicEvent.html#m1">EventAction</a>.read(node); +00256 } +00257 +00258 } <font class="comment">// NLLOGIC</font> +00259 +00260 +</pre></div> + +<!-- footer --> +<BR><FONT Size=+5> </FONT> +</TD> +<TD WIDTH=15><IMG SRC=http://www.nevrax.org/inc/img/pixel.gif WIDTH=15 HEIGHT=15 BORDER=0 ALT=""></TD> +</TR> +</TABLE> +</BODY> +</HTML> |