diff options
author | neodarz <neodarz@neodarz.net> | 2018-08-11 20:21:34 +0200 |
---|---|---|
committer | neodarz <neodarz@neodarz.net> | 2018-08-11 20:21:34 +0200 |
commit | 0ea5fc66924303d1bf73ba283a383e2aadee02f2 (patch) | |
tree | 2568e71a7ccc44ec23b8bb3f0ff97fb6bf2ed709 /docs/doxygen/nel/msg_8cpp-source.html | |
download | nevrax-website-self-hostable-0ea5fc66924303d1bf73ba283a383e2aadee02f2.tar.xz nevrax-website-self-hostable-0ea5fc66924303d1bf73ba283a383e2aadee02f2.zip |
Initial commit
Diffstat (limited to '')
-rw-r--r-- | docs/doxygen/nel/msg_8cpp-source.html | 563 |
1 files changed, 563 insertions, 0 deletions
diff --git a/docs/doxygen/nel/msg_8cpp-source.html b/docs/doxygen/nel/msg_8cpp-source.html new file mode 100644 index 00000000..3f7257a8 --- /dev/null +++ b/docs/doxygen/nel/msg_8cpp-source.html @@ -0,0 +1,563 @@ +<!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>msg.cpp</h1><a href="msg_8cpp.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 +00006 <font class="comment">/* Copyright, 2000 Nevrax Ltd.</font> +00007 <font class="comment"> *</font> +00008 <font class="comment"> * This file is part of NEVRAX NEL.</font> +00009 <font class="comment"> * NEVRAX NEL is free software; you can redistribute it and/or modify</font> +00010 <font class="comment"> * it under the terms of the GNU General Public License as published by</font> +00011 <font class="comment"> * the Free Software Foundation; either version 2, or (at your option)</font> +00012 <font class="comment"> * any later version.</font> +00013 <font class="comment"></font> +00014 <font class="comment"> * NEVRAX NEL is distributed in the hope that it will be useful, but</font> +00015 <font class="comment"> * WITHOUT ANY WARRANTY; without even the implied warranty of</font> +00016 <font class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</font> +00017 <font class="comment"> * General Public License for more details.</font> +00018 <font class="comment"></font> +00019 <font class="comment"> * You should have received a copy of the GNU General Public License</font> +00020 <font class="comment"> * along with NEVRAX NEL; see the file COPYING. If not, write to the</font> +00021 <font class="comment"> * Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,</font> +00022 <font class="comment"> * MA 02111-1307, USA.</font> +00023 <font class="comment"> */</font> +00024 <font class="preprocessor">#include "<a class="code" href="agent_8h.html">nel/ai/agent/agent.h</a>"</font> +00025 <font class="preprocessor">#include "<a class="code" href="agent__local__mailer_8h.html">nel/ai/agent/agent_local_mailer.h</a>"</font> +00026 <font class="preprocessor">#include "<a class="code" href="agent__proxy__mailer_8h.html">nel/ai/agent/agent_proxy_mailer.h</a>"</font> +00027 <font class="preprocessor">#include "<a class="code" href="boolval_8h.html">nel/ai/logic/boolval.h</a>"</font> +00028 <font class="preprocessor">#include "<a class="code" href="object__type_8h.html">nel/ai/agent/object_type.h</a>"</font> +00029 <font class="preprocessor">#include "<a class="code" href="agent__method__def_8h.html">nel/ai/agent/agent_method_def.h</a>"</font> +00030 <font class="preprocessor">#include "<a class="code" href="agent__digital_8h.html">nel/ai/agent/agent_digital.h</a>"</font> +00031 +00032 <font class="keyword">namespace </font>NLAIAGENT +00033 { +00034 +<a name="l00035"></a><a class="code" href="classNLAIAGENT_1_1CMessageGroup.html#a4">00035</a> <font class="keyword">const</font> <a class="code" href="classNLAIC_1_1IBasicType.html">NLAIC::IBasicType</a> *CMessageGroup::clone()<font class="keyword"> const </font> +00036 <font class="keyword"> </font>{ +00037 <a class="code" href="classNLAIC_1_1IBasicType.html">NLAIC::IBasicType</a> *<a class="code" href="driver__opengl__extension__def_8h.html#a364">x</a> = <font class="keyword">new</font> <a class="code" href="classNLAIAGENT_1_1CMessageGroup.html#a0">CMessageGroup</a>( *<font class="keyword">this</font> ); +00038 +00039 <font class="preprocessor">#ifdef NL_DEBUG</font> +00040 <font class="preprocessor"></font> <font class="keyword">static</font> sint kaka = 0; +00041 <font class="preprocessor">#endif</font> +00042 <font class="preprocessor"></font> <font class="keywordflow">return</font> x; +00043 } +00044 +<a name="l00045"></a><a class="code" href="classNLAIAGENT_1_1CMessageGroup.html#a5">00045</a> <font class="keyword">const</font> <a class="code" href="classNLAIC_1_1IBasicType.html">NLAIC::IBasicType</a> *CMessageGroup::newInstance()<font class="keyword"> const </font> +00046 <font class="keyword"> </font>{ +00047 <a class="code" href="classNLAIC_1_1IBasicType.html">NLAIC::IBasicType</a> *<a class="code" href="driver__opengl__extension__def_8h.html#a364">x</a> = <font class="keyword">new</font> <a class="code" href="classNLAIAGENT_1_1CMessageGroup.html#a0">CMessageGroup</a>( *<font class="keyword">this</font> ); +00048 <font class="keywordflow">return</font> x; +00049 } +00050 +00051 +00052 <font class="keyword">const</font> <font class="keyword">static</font> sint32 <a class="code" href="namespaceNLAIAGENT.html#a31">_TSender</a> = 0; +00053 <font class="keyword">const</font> <font class="keyword">static</font> sint32 <a class="code" href="namespaceNLAIAGENT.html#a32">_TReceiver</a> = 1; +00054 <font class="keyword">const</font> <font class="keyword">static</font> sint32 <a class="code" href="namespaceNLAIAGENT.html#a33">_TXchgReceiverIsSender</a> = 2; +00055 <font class="keyword">const</font> <font class="keyword">static</font> sint32 <a class="code" href="namespaceNLAIAGENT.html#a34">_TContinuation</a> = 3; +00056 <font class="keyword">const</font> <font class="keyword">static</font> sint32 <a class="code" href="namespaceNLAIAGENT.html#a35">_TSetContinuation</a> = 4; +00057 <font class="keyword">const</font> <font class="keyword">static</font> sint32 <a class="code" href="namespaceNLAIAGENT.html#a36">_TSetSender</a> = 5; +00058 <font class="keyword">const</font> <font class="keyword">static</font> sint32 <a class="code" href="namespaceNLAIAGENT.html#a37">_TInitProtocol</a> = 6; +00059 <font class="keyword">const</font> <font class="keyword">static</font> sint32 <a class="code" href="namespaceNLAIAGENT.html#a38">_TProtcetSender</a> = 7; +00060 <font class="keyword">const</font> <font class="keyword">static</font> sint32 <a class="code" href="namespaceNLAIAGENT.html#a39">_MLastM</a> = 8; +00061 +<a name="l00062"></a><a class="code" href="classNLAIAGENT_1_1IMessageBase.html#r0">00062</a> IMessageBase::CMethodCall IMessageBase::_Method[] = +00063 { +00064 IMessageBase::CMethodCall(<a class="code" href="agent__method__def_8h.html#a32">_SENDER_</a>,<a class="code" href="namespaceNLAIAGENT.html#a31">_TSender</a>), +00065 IMessageBase::CMethodCall(<a class="code" href="agent__method__def_8h.html#a33">_RECEIVER_</a>,<a class="code" href="namespaceNLAIAGENT.html#a32">_TReceiver</a>), +00066 IMessageBase::CMethodCall(<a class="code" href="agent__method__def_8h.html#a34">_CONTINUATION_</a>,<a class="code" href="namespaceNLAIAGENT.html#a34">_TContinuation</a>), +00067 IMessageBase::CMethodCall(<a class="code" href="agent__method__def_8h.html#a35">_SETCONTINUATION_</a>,<a class="code" href="namespaceNLAIAGENT.html#a35">_TSetContinuation</a>), +00068 IMessageBase::CMethodCall(<font class="stringliteral">"XChangeReceiverSender"</font>,<a class="code" href="namespaceNLAIAGENT.html#a33">_TXchgReceiverIsSender</a>), +00069 IMessageBase::CMethodCall(<font class="stringliteral">"ProtcetSender"</font>,<a class="code" href="namespaceNLAIAGENT.html#a38">_TProtcetSender</a>), +00070 IMessageBase::CMethodCall(<font class="stringliteral">"InitProtocol"</font>,<a class="code" href="namespaceNLAIAGENT.html#a37">_TInitProtocol</a>), +00071 IMessageBase::CMethodCall(<font class="stringliteral">"SetSender"</font>,<a class="code" href="namespaceNLAIAGENT.html#a36">_TSetSender</a>) +00072 +00073 }; +00074 +00075 <font class="comment">/*IntegerType IMessageBase::IdExec = IntegerType(IMessageBase::PExec);</font> +00076 <font class="comment"> IntegerType IMessageBase::IdAchieve = IntegerType(IMessageBase::PAchieve);</font> +00077 <font class="comment"> IntegerType IMessageBase::IdAsk = IntegerType(IMessageBase::PAsk);</font> +00078 <font class="comment"> IntegerType IMessageBase::IdBreak = IntegerType(IMessageBase::PBreak);</font> +00079 <font class="comment"> IntegerType IMessageBase::IdTell = IntegerType(IMessageBase::PTell);</font> +00080 <font class="comment"> IntegerType IMessageBase::IdKill = IntegerType(IMessageBase::PKill);*/</font> +00081 +<a name="l00082"></a><a class="code" href="classNLAIAGENT_1_1IMessageBase.html#a2">00082</a> IMessageBase::IMessageBase():IListBasicManager(),_Sender(NULL),_MsgGroup(NULL) +00083 { +00084 <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o7">_ReservedMethodIndexVar</a> = -1; +00085 <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o8">_ReservedHeritanceIndexVar</a> = 0; +00086 <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o2">_Receiver</a> = NULL; +00087 <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o4">_Continuation</a> = NULL; +00088 <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o9">_Performatif</a> = <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#s10s0">PUndefine</a>; +00089 <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o10">_comeFromC_PLUS</a> = <font class="keyword">true</font>; +00090 <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o11">_Dispatch</a> = <font class="keyword">false</font>; +00091 <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o12">_ProtectSender</a> = <font class="keyword">false</font>; +00092 <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o1">_SenderIsVolatile</a> = <font class="keyword">false</font>; +00093 <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o3">_ReceiverIsVolatile</a> = <font class="keyword">false</font>; +00094 <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o5">_ContinuationIsVolatile</a> = <font class="keyword">false</font>; +00095 } +<a name="l00096"></a><a class="code" href="classNLAIAGENT_1_1IMessageBase.html#a3">00096</a> IMessageBase::IMessageBase(IObjectIA *sender,IBaseGroupType *g):IListBasicManager(g),_Sender(sender),_MsgGroup(NULL) +00097 { +00098 <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o7">_ReservedMethodIndexVar</a> = -1; +00099 <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o8">_ReservedHeritanceIndexVar</a> = 0; +00100 <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o2">_Receiver</a> = NULL; +00101 <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o4">_Continuation</a> = NULL; +00102 <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o9">_Performatif</a> = <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#s10s0">PUndefine</a>; +00103 <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o10">_comeFromC_PLUS</a> = <font class="keyword">true</font>; +00104 <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o11">_Dispatch</a> = <font class="keyword">false</font>; +00105 <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o12">_ProtectSender</a> = <font class="keyword">false</font>; +00106 <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o1">_SenderIsVolatile</a> = <font class="keyword">false</font>; +00107 <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o3">_ReceiverIsVolatile</a> = <font class="keyword">false</font>; +00108 <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o5">_ContinuationIsVolatile</a> = <font class="keyword">false</font>; +00109 } +00110 +<a name="l00111"></a><a class="code" href="classNLAIAGENT_1_1IMessageBase.html#a4">00111</a> IMessageBase::IMessageBase(IObjectIA *sender, IBasicMessageGroup &msg_group,IBaseGroupType *g): +00112 IListBasicManager(g),_Sender(sender),_MsgGroup((IBasicMessageGroup *)msg_group.clone()) +00113 { +00114 <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o7">_ReservedMethodIndexVar</a> = -1; +00115 <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o8">_ReservedHeritanceIndexVar</a> = 0; +00116 <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o2">_Receiver</a> = NULL; +00117 <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o4">_Continuation</a> = NULL; +00118 <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o9">_Performatif</a> = <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#s10s0">PUndefine</a>; +00119 <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o10">_comeFromC_PLUS</a> = <font class="keyword">true</font>; +00120 <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o11">_Dispatch</a> = <font class="keyword">false</font>; +00121 <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o12">_ProtectSender</a> = <font class="keyword">false</font>; +00122 <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o1">_SenderIsVolatile</a> = <font class="keyword">false</font>; +00123 <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o3">_ReceiverIsVolatile</a> = <font class="keyword">false</font>; +00124 <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o5">_ContinuationIsVolatile</a> = <font class="keyword">false</font>; +00125 } +00126 +<a name="l00127"></a><a class="code" href="classNLAIAGENT_1_1IMessageBase.html#a5">00127</a> IMessageBase::IMessageBase(<font class="keyword">const</font> IMessageBase &m):IListBasicManager(m._List != NULL ? (IBaseGroupType *)m._List->clone(): NULL) +00128 { +00129 <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o0">_Sender</a> = m._Sender; +00130 <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o1">_SenderIsVolatile</a> = m._SenderIsVolatile; +00131 <font class="keywordflow">if</font>(<a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o1">_SenderIsVolatile</a> && <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o0">_Sender</a> != NULL) <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o0">_Sender</a>->incRef(); +00132 <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o2">_Receiver</a> = m._Receiver; +00133 <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o3">_ReceiverIsVolatile</a> = m._ReceiverIsVolatile; +00134 <font class="keywordflow">if</font>(<a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o3">_ReceiverIsVolatile</a> && <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o2">_Receiver</a> != NULL) <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o2">_Receiver</a>->incRef(); +00135 <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o4">_Continuation</a> = m._Continuation; +00136 <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o5">_ContinuationIsVolatile</a> = m._ContinuationIsVolatile; +00137 <font class="keywordflow">if</font>(<a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o5">_ContinuationIsVolatile</a> && <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o4">_Continuation</a> != NULL) <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o4">_Continuation</a>->incRef(); +00138 +00139 <font class="keywordflow">if</font>(m._MsgGroup) <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o6">_MsgGroup</a> = (IBasicMessageGroup *)m._MsgGroup->clone(); +00140 <font class="keywordflow">else</font> <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o6">_MsgGroup</a> = NULL; +00141 <font class="comment">//_Message = (IBaseGroupType *)m._Message->clone(); </font> +00142 <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o7">_ReservedMethodIndexVar</a> = m._ReservedMethodIndexVar; +00143 <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o8">_ReservedHeritanceIndexVar</a> = m._ReservedHeritanceIndexVar; +00144 <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o9">_Performatif</a> = m._Performatif; +00145 <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o10">_comeFromC_PLUS</a> = m._comeFromC_PLUS; +00146 <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o11">_Dispatch</a> = m._Dispatch; +00147 <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o12">_ProtectSender</a> = m._ProtectSender; +00148 } +00149 +<a name="l00150"></a><a class="code" href="classNLAIAGENT_1_1IMessageBase.html#a6">00150</a> IMessageBase::~IMessageBase() +00151 { +00152 <font class="keywordflow">if</font>(<a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o6">_MsgGroup</a> != NULL) <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o6">_MsgGroup</a>->release(); +00153 <font class="keywordflow">if</font>(<a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o1">_SenderIsVolatile</a> && <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o0">_Sender</a> != NULL) <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o0">_Sender</a>->release(); +00154 <font class="keywordflow">if</font>(<a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o3">_ReceiverIsVolatile</a> && <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o2">_Receiver</a> != NULL) <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o2">_Receiver</a>->release(); +00155 <font class="keywordflow">if</font>(<a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o5">_ContinuationIsVolatile</a> && <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o4">_Continuation</a> != NULL) <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o4">_Continuation</a>->release(); +00156 } +00157 +00158 +<a name="l00159"></a><a class="code" href="classNLAIAGENT_1_1IMessageBase.html#z167_0">00159</a> IObjectIA &IMessageBase::operator = (<font class="keyword">const</font> IObjectIA &a) +00160 { +00161 <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#a2">IMessageBase</a> &b = (<a class="code" href="classNLAIAGENT_1_1IMessageBase.html#a2">IMessageBase</a> &)a; +00162 <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o0">_Sender</a> = b._Sender; +00163 <font class="keywordflow">if</font>(<a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o1">_SenderIsVolatile</a> && <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o0">_Sender</a> != NULL) <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o0">_Sender</a>->incRef(); +00164 <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o2">_Receiver</a> = b._Receiver; +00165 <font class="keywordflow">if</font>(<a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o3">_ReceiverIsVolatile</a> && <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o2">_Receiver</a> != NULL) <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o2">_Receiver</a>->incRef(); +00166 <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o4">_Continuation</a> = b._Continuation; +00167 <font class="keywordflow">if</font>(<a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o5">_ContinuationIsVolatile</a> && <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o4">_Continuation</a> != NULL) <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o4">_Continuation</a>->incRef(); +00168 <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#a8">setGroup</a>((IBasicMessageGroup &)b.getGroup()); +00169 *<a class="code" href="classNLAIAGENT_1_1IListBasicManager.html#n0">_List</a> = *b._List; +00170 <font class="keywordflow">return</font> *<font class="keyword">this</font>; +00171 } +00172 +<a name="l00173"></a><a class="code" href="classNLAIAGENT_1_1IMessageBase.html#z165_0">00173</a> <font class="keywordtype">void</font> IMessageBase::setSender(IObjectIA *<a class="code" href="driver__opengl__extension__def_8h.html#a383">s</a>, <font class="keywordtype">bool</font> <a class="code" href="driver__opengl__extension__def_8h.html#a368">v</a>) +00174 { +00175 <font class="keywordflow">if</font>(_SenderIsVolatile) <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o0">_Sender</a>->release(); +00176 <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o0">_Sender</a> = <a class="code" href="driver__opengl__extension__def_8h.html#a383">s</a>; +00177 <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o1">_SenderIsVolatile</a> = <a class="code" href="driver__opengl__extension__def_8h.html#a368">v</a>; +00178 } +00179 +<a name="l00180"></a><a class="code" href="classNLAIAGENT_1_1IMessageBase.html#z165_1">00180</a> <font class="keywordtype">void</font> IMessageBase::setReceiver(IObjectIA *<a class="code" href="driver__opengl__extension__def_8h.html#a385">r</a>, <font class="keywordtype">bool</font> <a class="code" href="driver__opengl__extension__def_8h.html#a368">v</a>) +00181 { +00182 <font class="keywordflow">if</font>(_ReceiverIsVolatile) <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o2">_Receiver</a>->release(); +00183 <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o2">_Receiver</a> = <a class="code" href="driver__opengl__extension__def_8h.html#a385">r</a>; +00184 <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o3">_ReceiverIsVolatile</a> = <a class="code" href="driver__opengl__extension__def_8h.html#a368">v</a>; +00185 } +00186 +<a name="l00187"></a><a class="code" href="classNLAIAGENT_1_1IMessageBase.html#z165_2">00187</a> <font class="keywordtype">void</font> IMessageBase::setContinuation(IObjectIA *<a class="code" href="driver__opengl__extension__def_8h.html#a385">r</a>, <font class="keywordtype">bool</font> <a class="code" href="driver__opengl__extension__def_8h.html#a368">v</a>) +00188 { +00189 <font class="keywordflow">if</font>(_ContinuationIsVolatile) <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o4">_Continuation</a>->release(); +00190 <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o4">_Continuation</a> = <a class="code" href="driver__opengl__extension__def_8h.html#a385">r</a>; +00191 <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o5">_ContinuationIsVolatile</a> = <a class="code" href="driver__opengl__extension__def_8h.html#a368">v</a>; +00192 } +00193 +<a name="l00194"></a><a class="code" href="classNLAIAGENT_1_1IMessageBase.html#z167_5">00194</a> <font class="keywordtype">bool</font> <a class="code" href="chain_8cpp.html#a2">IMessageBase::isEqual</a>(<font class="keyword">const</font> IBasicObjectIA &a)<font class="keyword"> const</font> +00195 <font class="keyword"> </font>{ +00196 <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#a2">IMessageBase</a> &b = (<a class="code" href="classNLAIAGENT_1_1IMessageBase.html#a2">IMessageBase</a> &)a; +00197 <font class="keywordflow">return</font> <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o0">_Sender</a>->isEqual((<font class="keyword">const</font> IBasicAgent &)b) && <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#a7">getGroup</a>() == b.getGroup() && <a class="code" href="chain_8cpp.html#a2">IListBasicManager::isEqual</a>(a); +00198 } +00199 +<a name="l00200"></a><a class="code" href="classNLAIAGENT_1_1IMessageBase.html#z167_6">00200</a> <font class="keywordtype">void</font> IMessageBase::save(<a class="code" href="classNLMISC_1_1IStream.html">NLMISC::IStream</a> &os) +00201 { +00202 IListBasicManager::save(os); +00203 <font class="keywordflow">if</font>(<a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o0">_Sender</a> != NULL) +00204 { +00205 <font class="keywordtype">bool</font> <a class="code" href="driver__opengl__extension__def_8h.html#a384">t</a> = <font class="keyword">true</font>; +00206 os.<a class="code" href="classNLMISC_1_1IStream.html#a5">serial</a>(<a class="code" href="driver__opengl__extension__def_8h.html#a384">t</a>); +00207 IWordNumRef &<a class="code" href="driver__opengl__extension__def_8h.html#a385">r</a> = (IWordNumRef&)((<font class="keyword">const</font> IWordNumRef&)*((IRefrence *)<a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o0">_Sender</a>)); +00208 ((CNumericIndex &)<a class="code" href="driver__opengl__extension__def_8h.html#a385">r</a>.getNumIdent()).save(os); +00209 } +00210 <font class="keywordflow">else</font> +00211 { +00212 <font class="keywordtype">bool</font> <a class="code" href="driver__opengl__extension__def_8h.html#a384">t</a> = <font class="keyword">false</font>; +00213 os.<a class="code" href="classNLMISC_1_1IStream.html#a5">serial</a>(<a class="code" href="driver__opengl__extension__def_8h.html#a384">t</a>); +00214 } +00215 +00216 <font class="keywordflow">if</font>(<a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o2">_Receiver</a> != NULL) +00217 { +00218 <font class="keywordtype">bool</font> <a class="code" href="driver__opengl__extension__def_8h.html#a384">t</a> = <font class="keyword">true</font>; +00219 os.<a class="code" href="classNLMISC_1_1IStream.html#a5">serial</a>(<a class="code" href="driver__opengl__extension__def_8h.html#a384">t</a>); +00220 IWordNumRef &<a class="code" href="driver__opengl__extension__def_8h.html#a385">r</a> = (IWordNumRef&)((<font class="keyword">const</font> IWordNumRef&)*((IRefrence *)<a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o2">_Receiver</a>)); +00221 ((CNumericIndex &)<a class="code" href="driver__opengl__extension__def_8h.html#a385">r</a>.getNumIdent()).save(os); +00222 } +00223 <font class="keywordflow">else</font> +00224 { +00225 <font class="keywordtype">bool</font> <a class="code" href="driver__opengl__extension__def_8h.html#a384">t</a> = <font class="keyword">false</font>; +00226 os.<a class="code" href="classNLMISC_1_1IStream.html#a5">serial</a>(<a class="code" href="driver__opengl__extension__def_8h.html#a384">t</a>); +00227 } +00228 +00229 <font class="keywordflow">if</font>(<a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o4">_Continuation</a> != NULL) +00230 { +00231 <font class="keywordtype">bool</font> <a class="code" href="driver__opengl__extension__def_8h.html#a384">t</a> = <font class="keyword">true</font>; +00232 os.<a class="code" href="classNLMISC_1_1IStream.html#a5">serial</a>(<a class="code" href="driver__opengl__extension__def_8h.html#a384">t</a>); +00233 IWordNumRef &<a class="code" href="driver__opengl__extension__def_8h.html#a385">r</a> = (IWordNumRef&)((<font class="keyword">const</font> IWordNumRef&)*((IRefrence *)<a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o4">_Continuation</a>)); +00234 ((CNumericIndex &)<a class="code" href="driver__opengl__extension__def_8h.html#a385">r</a>.getNumIdent()).save(os); +00235 } +00236 <font class="keywordflow">else</font> +00237 { +00238 <font class="keywordtype">bool</font> <a class="code" href="driver__opengl__extension__def_8h.html#a384">t</a> = <font class="keyword">false</font>; +00239 os.<a class="code" href="classNLMISC_1_1IStream.html#a5">serial</a>(<a class="code" href="driver__opengl__extension__def_8h.html#a384">t</a>); +00240 } +00241 os.<a class="code" href="classNLMISC_1_1IStream.html#a5">serial</a>( (<a class="code" href="classNLAIC_1_1CIdentType.html">NLAIC::CIdentType</a> &) <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o6">_MsgGroup</a>->getType() ); +00242 os.<a class="code" href="classNLMISC_1_1IStream.html#a5">serial</a>( *<a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o6">_MsgGroup</a> ); +00243 +00244 sint32 i = <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o9">_Performatif</a>; +00245 os.<a class="code" href="classNLMISC_1_1IStream.html#a5">serial</a>(i); +00246 os.<a class="code" href="classNLMISC_1_1IStream.html#a5">serial</a>(<a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o10">_comeFromC_PLUS</a>); +00247 } +00248 +<a name="l00249"></a><a class="code" href="classNLAIAGENT_1_1IMessageBase.html#z167_7">00249</a> <font class="keywordtype">void</font> IMessageBase::load(<a class="code" href="classNLMISC_1_1IStream.html">NLMISC::IStream</a> &is) +00250 { +00251 IListBasicManager::load(is); +00252 <font class="keywordtype">bool</font> <a class="code" href="driver__opengl__extension__def_8h.html#a384">t</a>; +00253 is.<a class="code" href="classNLMISC_1_1IStream.html#a5">serial</a>(<a class="code" href="driver__opengl__extension__def_8h.html#a384">t</a>); +00254 <font class="keywordflow">if</font>(t) +00255 { +00256 CNumericIndex <a class="code" href="driver__opengl__extension__def_8h.html#a385">r</a>(is); +00257 IRefrence *ref = CLocWordNumRef::getRef(<a class="code" href="driver__opengl__extension__def_8h.html#a385">r</a>); +00258 <font class="keywordflow">if</font>(ref != NULL) +00259 { +00260 <font class="comment">//if(_Sender) _Sender->release();</font> +00261 <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o0">_Sender</a> = ref; +00262 <font class="comment">//_Sender->incRef();</font> +00263 } +00264 <font class="keywordflow">else</font> +00265 { +00266 <font class="comment">//if(_Sender) _Sender->release();</font> +00267 <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#z165_0">setSender</a>(<font class="keyword">new</font> CProxyAgentMail(<a class="code" href="driver__opengl__extension__def_8h.html#a385">r</a>.getId()) , <font class="keyword">true</font>); +00268 } +00269 +00270 } +00271 <font class="keywordflow">else</font> +00272 { +00273 <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o0">_Sender</a> = NULL; +00274 } +00275 +00276 is.<a class="code" href="classNLMISC_1_1IStream.html#a5">serial</a>(<a class="code" href="driver__opengl__extension__def_8h.html#a384">t</a>); +00277 <font class="keywordflow">if</font>(t) +00278 { +00279 CNumericIndex <a class="code" href="driver__opengl__extension__def_8h.html#a385">r</a>(is); +00280 IRefrence *ref = CLocWordNumRef::getRef(<a class="code" href="driver__opengl__extension__def_8h.html#a385">r</a>); +00281 <font class="keywordflow">if</font>(ref != NULL) +00282 { +00283 <font class="comment">//if(_Receiver) _Receiver->release();</font> +00284 <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o2">_Receiver</a> = ref; +00285 <font class="comment">//_Receiver->incRef();</font> +00286 } +00287 <font class="keywordflow">else</font> +00288 { +00289 <font class="comment">//if(_Receiver) _Receiver->release();</font> +00290 <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#z165_1">setReceiver</a>(<font class="keyword">new</font> CProxyAgentMail(<a class="code" href="driver__opengl__extension__def_8h.html#a385">r</a>.getId()) , <font class="keyword">true</font>); +00291 } +00292 +00293 } +00294 <font class="keywordflow">else</font> +00295 { +00296 <font class="comment">//if(_Receiver) _Receiver->release();</font> +00297 <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o2">_Receiver</a> = NULL; +00298 } +00299 is.<a class="code" href="classNLMISC_1_1IStream.html#a5">serial</a>(<a class="code" href="driver__opengl__extension__def_8h.html#a384">t</a>); +00300 <font class="keywordflow">if</font>(t) +00301 { +00302 CNumericIndex <a class="code" href="driver__opengl__extension__def_8h.html#a385">r</a>(is); +00303 IRefrence *ref = CLocWordNumRef::getRef(<a class="code" href="driver__opengl__extension__def_8h.html#a385">r</a>); +00304 <font class="keywordflow">if</font>(ref != NULL) +00305 { +00306 <font class="comment">//if(_Continuation) _Continuation->release();</font> +00307 <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o4">_Continuation</a> = ref; +00308 <font class="comment">//_Continuation->incRef();</font> +00309 } +00310 <font class="keywordflow">else</font> +00311 { +00312 <font class="comment">//if(_Continuation) _Continuation->release();</font> +00313 <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#z165_2">setContinuation</a>(<font class="keyword">new</font> CProxyAgentMail(<a class="code" href="driver__opengl__extension__def_8h.html#a385">r</a>.getId()) , <font class="keyword">true</font>); +00314 } +00315 +00316 } +00317 <font class="keywordflow">else</font> +00318 { +00319 <font class="comment">//if(_Continuation) _Continuation->release();</font> +00320 <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o4">_Continuation</a> = NULL; +00321 } +00322 +00323 <a class="code" href="classNLAIC_1_1CIdentTypeAlloc.html">NLAIC::CIdentTypeAlloc</a> <a class="code" href="driver__opengl__extension__def_8h.html#a356">id</a>; +00324 is.<a class="code" href="classNLMISC_1_1IStream.html#a5">serial</a>( id ); +00325 <font class="keywordflow">if</font>(_MsgGroup) <font class="keyword">delete</font> <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o6">_MsgGroup</a>; +00326 <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o6">_MsgGroup</a> = (IBasicMessageGroup *)id.<a class="code" href="classNLAIC_1_1CIdentTypeAlloc.html#a3">allocClass</a>(); +00327 is.<a class="code" href="classNLMISC_1_1IStream.html#a5">serial</a>( (IBasicMessageGroup &)*<a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o6">_MsgGroup</a> ); +00328 sint32 i = <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o9">_Performatif</a>; +00329 is.<a class="code" href="classNLMISC_1_1IStream.html#a5">serial</a>(i); +00330 <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o9">_Performatif</a> = (TPerformatif)i; +00331 is.<a class="code" href="classNLMISC_1_1IStream.html#a5">serial</a>(<a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o10">_comeFromC_PLUS</a>); +00332 } +00333 +<a name="l00334"></a><a class="code" href="classNLAIAGENT_1_1IMessageBase.html#z167_8">00334</a> <font class="keywordtype">void</font> IMessageBase::getDebugString(std::string &<a class="code" href="driver__opengl__extension__def_8h.html#a384">t</a>)<font class="keyword"> const</font> +00335 <font class="keyword"> </font>{ +00336 std::string a; +00337 <font class="keywordflow">if</font>(<a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o0">_Sender</a> != NULL) <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o0">_Sender</a>->getDebugString(a); +00338 <font class="keywordflow">else</font> a = <font class="stringliteral">"NULL"</font>; +00339 std::string b; +00340 IListBasicManager::getDebugString(b); +00341 std::string g; +00342 <font class="keywordflow">if</font>(<a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o6">_MsgGroup</a> != NULL) <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o6">_MsgGroup</a>->getDebugString(g); +00343 <font class="keywordflow">else</font> g = <font class="stringliteral">"_MsgGroup = NULL"</font>; +00344 <a class="code" href="driver__opengl__extension__def_8h.html#a384">t</a> += <a class="code" href="namespaceNLAIC.html#a5">NLAIC::stringGetBuild</a>(<font class="stringliteral">"IMessageBase<%d>:\n_sender:'%s' _MsgGroup:'%s' Message:'%s' dispatch:%d"</font>,<font class="keyword">this</font>,a.c_str(),g.c_str(),b.c_str(),<a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o11">_Dispatch</a>); +00345 } +00346 +00347 +00348 +<a name="l00349"></a><a class="code" href="classNLAIAGENT_1_1IMessageBase.html#z167_1">00349</a> sint32 IMessageBase::getMethodIndexSize()<font class="keyword"> const</font> +00350 <font class="keyword"> </font>{ +00351 <font class="keywordflow">return</font> IBaseGroupType::getMethodIndexSize() + <a class="code" href="namespaceNLAIAGENT.html#a39">_MLastM</a>; +00352 } +00353 +<a name="l00354"></a><a class="code" href="classNLAIAGENT_1_1IMessageBase.html#z167_2">00354</a> <a class="code" href="namespaceNLAIAGENT.html#a1">tQueue</a> IMessageBase::isMember(<font class="keyword">const</font> IVarName *className,<font class="keyword">const</font> IVarName *methodName,<font class="keyword">const</font> IObjectIA &p)<font class="keyword"> const</font> +00355 <font class="keyword"> </font>{ +00356 <font class="keywordflow">if</font>(className == NULL) +00357 { +00358 <a class="code" href="namespaceNLAIAGENT.html#a1">tQueue</a> a; +00359 <font class="keywordflow">for</font>(<font class="keywordtype">int</font> i = 0; i < <a class="code" href="namespaceNLAIAGENT.html#a39">_MLastM</a>; i++) +00360 { +00361 <font class="keywordflow">if</font>( *methodName == IMessageBase::_Method[i].MethodName ) +00362 { +00363 CObjectType *c = <font class="keyword">new</font> CObjectType(<font class="keyword">new</font> <a class="code" href="classNLAIC_1_1CIdentType.html">NLAIC::CIdentType</a>(*IAgent::IdAgent)); +00364 a.push( CIdMethod( IMessageBase::_Method[i].Index + IBaseGroupType::getMethodIndexSize(), 0.0, NULL, c) ); +00365 <font class="keywordflow">break</font>; +00366 } +00367 } +00368 +00369 <font class="keywordflow">if</font> ( a.size() ) +00370 <font class="keywordflow">return</font> a; +00371 <font class="keywordflow">else</font> +00372 <font class="keywordflow">return</font> IBaseGroupType::isMember( className, methodName, p); +00373 } +00374 <font class="keywordflow">return</font> IListBasicManager::isMember(className,methodName,p); +00375 } +00376 +<a name="l00377"></a><a class="code" href="classNLAIAGENT_1_1IMessageBase.html#z167_9">00377</a> IObjectIA::CProcessResult IMessageBase::sendMessage(IObjectIA *m) +00378 { +00379 <font class="keywordflow">return</font> <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o2">_Receiver</a>->sendMessage(m); +00380 } +00381 +<a name="l00382"></a><a class="code" href="classNLAIAGENT_1_1IMessageBase.html#z167_10">00382</a> IObjectIA::CProcessResult IMessageBase::sendMessage(<font class="keyword">const</font> IVarName &name,IObjectIA *m) +00383 { +00384 <font class="keywordflow">return</font> <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o2">_Receiver</a>->sendMessage(name,m); +00385 } +00386 +<a name="l00387"></a><a class="code" href="classNLAIAGENT_1_1IMessageBase.html#z167_3">00387</a> IObjectIA::CProcessResult IMessageBase::runMethodeMember(sint32 h, sint32 <a class="code" href="driver__opengl__extension__def_8h.html#a358">index</a>,IObjectIA *p) +00388 { +00389 <font class="keywordflow">return</font> IBaseGroupType::runMethodeMember(h,<a class="code" href="driver__opengl__extension__def_8h.html#a358">index</a>,p); +00390 } +00391 +<a name="l00392"></a><a class="code" href="classNLAIAGENT_1_1IMessageBase.html#z167_4">00392</a> IObjectIA::CProcessResult IMessageBase::runMethodeMember(sint32 <a class="code" href="driver__opengl__extension__def_8h.html#a358">index</a>,IObjectIA *p) +00393 { +00394 <font class="keywordflow">switch</font>(<a class="code" href="driver__opengl__extension__def_8h.html#a358">index</a> - IBaseGroupType::getMethodIndexSize()) +00395 { +00396 <font class="keywordflow">case</font> <a class="code" href="namespaceNLAIAGENT.html#a31">_TSender</a> : +00397 { +00398 IObjectIA::CProcessResult a; +00399 <font class="keywordflow">if</font> ( <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o0">_Sender</a> != NULL ) +00400 a.Result = <font class="keyword">new</font> CLocalAgentMail( (IBasicAgent *) <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o0">_Sender</a> ); +00401 <font class="keywordflow">else</font> +00402 { +00403 a.Result = &DigitalType::NullOperator; +00404 a.Result->incRef(); +00405 } +00406 <font class="keywordflow">return</font> a; +00407 } +00408 <font class="keywordflow">break</font>; +00409 +00410 <font class="keywordflow">case</font> <a class="code" href="namespaceNLAIAGENT.html#a32">_TReceiver</a> : +00411 { +00412 IObjectIA::CProcessResult a; +00413 <font class="keywordflow">if</font> ( <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o2">_Receiver</a> != NULL ) +00414 a.Result = <font class="keyword">new</font> CLocalAgentMail( (IBasicAgent *) <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o2">_Receiver</a> ); +00415 <font class="keywordflow">else</font> +00416 { +00417 a.Result = &DigitalType::NullOperator; +00418 a.Result->incRef(); +00419 } +00420 <font class="keywordflow">return</font> a; +00421 } +00422 <font class="keywordflow">break</font>; +00423 +00424 <font class="keywordflow">case</font> <a class="code" href="namespaceNLAIAGENT.html#a34">_TContinuation</a> : +00425 { +00426 IObjectIA::CProcessResult a; +00427 <font class="keywordflow">if</font> ( <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o4">_Continuation</a> != NULL ) +00428 a.Result = <font class="keyword">new</font> CLocalAgentMail( (IBasicAgent *) <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o4">_Continuation</a> ); +00429 <font class="keywordflow">else</font> +00430 { +00431 a.Result = &DigitalType::NullOperator; +00432 a.Result->incRef(); +00433 } +00434 <font class="keywordflow">return</font> a; +00435 } +00436 <font class="keywordflow">break</font>; +00437 +00438 <font class="keywordflow">case</font> <a class="code" href="namespaceNLAIAGENT.html#a33">_TXchgReceiverIsSender</a> : +00439 { +00440 <a class="code" href="classNLAIAGENT_1_1IObjectIA.html#b0">IObjectIA</a> *<a class="code" href="driver__opengl__extension__def_8h.html#a384">t</a> = <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o0">_Sender</a>; +00441 <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o0">_Sender</a> = <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o2">_Receiver</a>; +00442 <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o2">_Receiver</a> = <a class="code" href="driver__opengl__extension__def_8h.html#a384">t</a>; +00443 <font class="keywordflow">return</font> IObjectIA::CProcessResult(); +00444 } +00445 <font class="keywordflow">case</font> <a class="code" href="namespaceNLAIAGENT.html#a35">_TSetContinuation</a>: +00446 { +00447 <a class="code" href="classNLAIAGENT_1_1IObjectIA.html#b0">IObjectIA</a> *o = (<a class="code" href="classNLAIAGENT_1_1IObjectIA.html#b0">IObjectIA</a> *)((<a class="code" href="classNLAIAGENT_1_1IBaseGroupType.html#a0">IBaseGroupType</a> *)p)->get(); +00448 <font class="comment">//o->incRef();</font> +00449 <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#z165_2">setContinuation</a>(o); +00450 <font class="keywordflow">return</font> IObjectIA::CProcessResult(); +00451 } +00452 +00453 <font class="keywordflow">case</font> <a class="code" href="namespaceNLAIAGENT.html#a36">_TSetSender</a>: +00454 { +00455 <a class="code" href="classNLAIAGENT_1_1IObjectIA.html#b0">IObjectIA</a> *obj = (<a class="code" href="classNLAIAGENT_1_1IObjectIA.html#b0">IObjectIA</a> *) ((<a class="code" href="classNLAIAGENT_1_1IBaseGroupType.html#a0">IBaseGroupType</a> *)p)->get(); +00456 CLocalAgentMail *o = dynamic_cast<CLocalAgentMail *>(obj); +00457 <font class="keywordflow">if</font>(o != NULL) +00458 <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#z165_0">setSender</a>((<a class="code" href="classNLAIAGENT_1_1IObjectIA.html#b0">IObjectIA</a> *)o->getHost()); +00459 <font class="keywordflow">else</font> +00460 <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#z165_0">setSender</a>((<a class="code" href="classNLAIAGENT_1_1IObjectIA.html#b0">IObjectIA</a> *)obj); +00461 +00462 <font class="keywordflow">return</font> IObjectIA::CProcessResult(); +00463 } +00464 +00465 <font class="keywordflow">case</font> <a class="code" href="namespaceNLAIAGENT.html#a37">_TInitProtocol</a>: +00466 { +00467 <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o7">_ReservedMethodIndexVar</a> = -1; +00468 <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#o8">_ReservedHeritanceIndexVar</a> = 0; +00469 <font class="keywordflow">return</font> IObjectIA::CProcessResult(); +00470 } +00471 +00472 <font class="keywordflow">case</font> <a class="code" href="namespaceNLAIAGENT.html#a38">_TProtcetSender</a>: +00473 { +00474 <a class="code" href="classNLAIAGENT_1_1IMessageBase.html#z166_3">setProtcetSender</a>(); +00475 <font class="keywordflow">return</font> IObjectIA::CProcessResult(); +00476 } +00477 +00478 +00479 } +00480 <font class="keywordflow">return</font> IBaseGroupType::runMethodeMember(<a class="code" href="driver__opengl__extension__def_8h.html#a358">index</a>,p); +00481 } +00482 +00483 +<a name="l00484"></a><a class="code" href="classNLAIAGENT_1_1CMessageList.html#z168_0">00484</a> <font class="keyword">const</font> <a class="code" href="classNLAIC_1_1CIdentType.html">NLAIC::CIdentType</a> &CMessageList::getType()<font class="keyword"> const</font> +00485 <font class="keyword"> </font>{ +00486 <font class="keywordflow">return</font> <a class="code" href="classNLAIAGENT_1_1CMessageList.html#p0">IdMessage</a>; +00487 } +00488 +<a name="l00489"></a><a class="code" href="classNLAIAGENT_1_1CMessageVector.html#z169_0">00489</a> <font class="keyword">const</font> <a class="code" href="classNLAIC_1_1CIdentType.html">NLAIC::CIdentType</a> &CMessageVector::getType()<font class="keyword"> const</font> +00490 <font class="keyword"> </font>{ +00491 <font class="keywordflow">return</font> <a class="code" href="classNLAIAGENT_1_1CMessageVector.html#p0">IdMessageVector</a>; +00492 } +00493 } +</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> |