aboutsummaryrefslogtreecommitdiff
path: root/docs/doxygen/nel/a05836.html
blob: e0290a7eeb0be9d323438804711f5e0d0d06ab78 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
<!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: interpret_message_action.cpp Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.3.6 -->
<div class="qindex">  <form class="search" action="search.php" method="get">
<a class="qindex" href="main.html">Main&nbsp;Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical&nbsp;List</a> | <a class="qindex" href="annotated.html">Data&nbsp;Structures</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="namespacemembers.html">Namespace&nbsp;Members</a> | <a class="qindex" href="functions.html">Data&nbsp;Fields</a> | <a class="qindex" href="globals.html">Globals</a> | <a class="qindex" href="pages.html">Related&nbsp;Pages</a>  | <span class="search"><u>S</u>earch&nbsp;for&nbsp;<input class="search" type="text" name="query" value="" size="20" accesskey="s"/></span></form></div>
<h1>interpret_message_action.cpp</h1><a href="a04413.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 
00006 <span class="comment">/* Copyright, 2000 Nevrax Ltd.</span>
00007 <span class="comment"> *</span>
00008 <span class="comment"> * This file is part of NEVRAX NEL.</span>
00009 <span class="comment"> * NEVRAX NEL is free software; you can redistribute it and/or modify</span>
00010 <span class="comment"> * it under the terms of the GNU General Public License as published by</span>
00011 <span class="comment"> * the Free Software Foundation; either version 2, or (at your option)</span>
00012 <span class="comment"> * any later version.</span>
00013 <span class="comment"></span>
00014 <span class="comment"> * NEVRAX NEL is distributed in the hope that it will be useful, but</span>
00015 <span class="comment"> * WITHOUT ANY WARRANTY; without even the implied warranty of</span>
00016 <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
00017 <span class="comment"> * General Public License for more details.</span>
00018 <span class="comment"></span>
00019 <span class="comment"> * You should have received a copy of the GNU General Public License</span>
00020 <span class="comment"> * along with NEVRAX NEL; see the file COPYING. If not, write to the</span>
00021 <span class="comment"> * Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,</span>
00022 <span class="comment"> * MA 02111-1307, USA.</span>
00023 <span class="comment"> */</span>
00024 <span class="preprocessor">#include "<a class="code" href="a04903.html">nel/ai/c/registry_class.h</a>"</span>
00025 <span class="preprocessor">#include "<a class="code" href="a04608.html">nel/ai/agent/message_script.h</a>"</span>
00026 <span class="preprocessor">#include "<a class="code" href="a04465.html">nel/ai/script/lexsupport.h</a>"</span>
00027 <span class="preprocessor">#include "<a class="code" href="a04414.html">nel/ai/script/interpret_message_action.h</a>"</span>
00028 <span class="preprocessor">#include "<a class="code" href="a04645.html">nel/ai/agent/msg_action.h</a>"</span>
00029 
00030 <span class="keyword">namespace </span>NLAISCRIPT
00031 {
00032 
00033 <span class="comment">//#########################################</span>
00034 <span class="comment">//              CSuccessMsgClass</span>
00035 <span class="comment">//#########################################</span>
00036 
<a name="l00037"></a><a class="code" href="a03459.html#NLAISCRIPT_1_1CSuccessMsgClassa6">00037</a>         CSuccessMsgClass::CSuccessMsgClass(<span class="keyword">const</span> <a class="code" href="a02661.html">NLAIAGENT::IVarName</a> &amp;<a class="code" href="a04223.html#a626">s</a>):<a class="code" href="a02329.html">CMessageClass</a>(<a class="code" href="a04223.html#a626">s</a>)
00038         {
00039                 <a class="code" href="a02168.html#NLAISCRIPT_1_1IAgentMultiClassa52">setBaseObjectInstance</a>((<a class="code" href="a02149.html">NLAIAGENT::IObjectIA</a> *)NLAIAGENT::CSuccessMsg::IdSuccessMsg.getFactory()-&gt;getClass());           
00040                 <a class="code" href="a02167.html#NLAISCRIPT_1_1CSuccessMsgClassa42">registerComponent</a>(<a class="code" href="a03455.html">NLAIAGENT::CStringVarName</a>(<span class="stringliteral">"Float"</span>),<a class="code" href="a03455.html">NLAIAGENT::CStringVarName</a>(<span class="stringliteral">"Param"</span>));
00041                 <a class="code" href="a02167.html#NLAISCRIPT_1_1CSuccessMsgClassz1842_7">setInheritanceName</a>(<a class="code" href="a03455.html">NLAIAGENT::CStringVarName</a>(<span class="stringliteral">"Message"</span>));
00042                 <a class="code" href="a02169.html#NLAISCRIPT_1_1IClassInterpreta50">setClassName</a>(<a class="code" href="a03455.html">NLAIAGENT::CStringVarName</a>(<span class="stringliteral">"CSuccessMsgClass"</span>));
00043                 <a class="code" href="a02167.html#NLAISCRIPT_1_1CSuccessMsgClassz1840_2">buildVTable</a>();
00044         }
00045 
<a name="l00046"></a><a class="code" href="a03459.html#NLAISCRIPT_1_1CSuccessMsgClassa5">00046</a>         CSuccessMsgClass::CSuccessMsgClass(<span class="keyword">const</span> <a class="code" href="a02650.html">NLAIC::CIdentType</a> &amp;<span class="keywordtype">id</span>):<a class="code" href="a02329.html">CMessageClass</a>(<a class="code" href="a04223.html#a564">id</a>)
00047         {
00048                 <a class="code" href="a02168.html#NLAISCRIPT_1_1IAgentMultiClassa52">setBaseObjectInstance</a>((<a class="code" href="a02149.html">NLAIAGENT::IObjectIA</a> *)NLAIAGENT::CSuccessMsg::IdSuccessMsg.getFactory()-&gt;getClass());           
00049                 <a class="code" href="a02167.html#NLAISCRIPT_1_1CSuccessMsgClassa42">registerComponent</a>(<a class="code" href="a03455.html">NLAIAGENT::CStringVarName</a>(<span class="stringliteral">"Float"</span>),<a class="code" href="a03455.html">NLAIAGENT::CStringVarName</a>(<span class="stringliteral">"Param"</span>));
00050                 <a class="code" href="a02167.html#NLAISCRIPT_1_1CSuccessMsgClassz1842_7">setInheritanceName</a>(<a class="code" href="a03455.html">NLAIAGENT::CStringVarName</a>(<span class="stringliteral">"Message"</span>));
00051                 <a class="code" href="a02169.html#NLAISCRIPT_1_1IClassInterpreta50">setClassName</a>(<a class="code" href="a03455.html">NLAIAGENT::CStringVarName</a>(<span class="stringliteral">"CSuccessMsgClass"</span>));
00052                 <a class="code" href="a02167.html#NLAISCRIPT_1_1CSuccessMsgClassz1840_2">buildVTable</a>();
00053         }
00054 
<a name="l00055"></a><a class="code" href="a03459.html#NLAISCRIPT_1_1CSuccessMsgClassa4">00055</a>         CSuccessMsgClass::CSuccessMsgClass() : <a class="code" href="a02329.html">CMessageClass</a>()
00056         {               
00057                 <a class="code" href="a02168.html#NLAISCRIPT_1_1IAgentMultiClassa52">setBaseObjectInstance</a>((<a class="code" href="a02149.html">NLAIAGENT::IObjectIA</a> *)NLAIAGENT::CSuccessMsg::IdSuccessMsg.getFactory()-&gt;getClass());           
00058                 <a class="code" href="a02167.html#NLAISCRIPT_1_1CSuccessMsgClassa42">registerComponent</a>(<a class="code" href="a03455.html">NLAIAGENT::CStringVarName</a>(<span class="stringliteral">"Float"</span>),<a class="code" href="a03455.html">NLAIAGENT::CStringVarName</a>(<span class="stringliteral">"Param"</span>));
00059                 <a class="code" href="a02167.html#NLAISCRIPT_1_1CSuccessMsgClassz1842_7">setInheritanceName</a>(<a class="code" href="a03455.html">NLAIAGENT::CStringVarName</a>(<span class="stringliteral">"Message"</span>));
00060                 <a class="code" href="a02169.html#NLAISCRIPT_1_1IClassInterpreta50">setClassName</a>(<a class="code" href="a03455.html">NLAIAGENT::CStringVarName</a>(<span class="stringliteral">"CSuccessMsgClass"</span>));
00061                 <a class="code" href="a02167.html#NLAISCRIPT_1_1CSuccessMsgClassz1840_2">buildVTable</a>();
00062         }
00063         
<a name="l00064"></a><a class="code" href="a03459.html#NLAISCRIPT_1_1CSuccessMsgClassz1822_1">00064</a>         <span class="keyword">const</span> <a class="code" href="a02151.html">NLAIC::IBasicType</a> *CSuccessMsgClass::clone()<span class="keyword"> const</span>
00065 <span class="keyword">        </span>{
00066                 <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="a03459.html#NLAISCRIPT_1_1CSuccessMsgClassa4">CSuccessMsgClass</a>();
00067         }
00068 
<a name="l00069"></a><a class="code" href="a03459.html#NLAISCRIPT_1_1CSuccessMsgClassz1822_3">00069</a>         <span class="keyword">const</span> <a class="code" href="a02151.html">NLAIC::IBasicType</a> *CSuccessMsgClass::newInstance()<span class="keyword"> const</span>
00070 <span class="keyword">        </span>{
00071                 <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="a03459.html#NLAISCRIPT_1_1CSuccessMsgClassa4">CSuccessMsgClass</a>();
00072         }
00073 
<a name="l00074"></a><a class="code" href="a03459.html#NLAISCRIPT_1_1CSuccessMsgClassz1822_0">00074</a>         <a class="code" href="a02149.html">NLAIAGENT::IObjectIA</a> *CSuccessMsgClass::buildNewInstance()<span class="keyword"> const</span>
00075 <span class="keyword">        </span>{
00076                 std::list&lt;NLAIAGENT::IObjectIA *&gt; <a class="code" href="a04223.html#a656">components</a>;
00077                 <a class="code" href="a02167.html#NLAISCRIPT_1_1CSuccessMsgClassa2">createBaseClassComponents</a>( <a class="code" href="a04223.html#a656">components</a> );
00078 
00079                 <a class="code" href="a02149.html">NLAIAGENT::IObjectIA</a> *<a class="code" href="a04223.html#a572">x</a> = <span class="keyword">new</span> <a class="code" href="a03458.html">NLAIAGENT::CSuccessMsg</a>( <a class="code" href="a04223.html#a656">components</a>,  (<a class="code" href="a02329.html">CMessageClass</a> *) <span class="keyword">this</span> );            
00080                 <span class="keywordflow">return</span> <a class="code" href="a04223.html#a572">x</a>;
00081         }       
00082 
00083 <span class="comment">//#########################################</span>
00084 <span class="comment">//              CFailureMsgClass</span>
00085 <span class="comment">//#########################################</span>
00086 
<a name="l00087"></a><a class="code" href="a02508.html#NLAISCRIPT_1_1CFailureMsgClassa3">00087</a>         CFailureMsgClass::CFailureMsgClass(<span class="keyword">const</span> <a class="code" href="a02661.html">NLAIAGENT::IVarName</a> &amp;<a class="code" href="a04223.html#a626">s</a>):<a class="code" href="a02329.html">CMessageClass</a>(<a class="code" href="a04223.html#a626">s</a>)
00088         {
00089                 <a class="code" href="a02168.html#NLAISCRIPT_1_1IAgentMultiClassa52">setBaseObjectInstance</a>((<a class="code" href="a02149.html">NLAIAGENT::IObjectIA</a> *)NLAIAGENT::CFailureMsg::IdFailureMsg.getFactory()-&gt;getClass());           
00090                 <a class="code" href="a02167.html#NLAISCRIPT_1_1CSuccessMsgClassa42">registerComponent</a>(<a class="code" href="a03455.html">NLAIAGENT::CStringVarName</a>(<span class="stringliteral">"Float"</span>),<a class="code" href="a03455.html">NLAIAGENT::CStringVarName</a>(<span class="stringliteral">"Param"</span>));
00091                 <a class="code" href="a02167.html#NLAISCRIPT_1_1CSuccessMsgClassz1842_7">setInheritanceName</a>(<a class="code" href="a03455.html">NLAIAGENT::CStringVarName</a>(<span class="stringliteral">"Message"</span>));
00092                 <a class="code" href="a02169.html#NLAISCRIPT_1_1IClassInterpreta50">setClassName</a>(<a class="code" href="a03455.html">NLAIAGENT::CStringVarName</a>(<span class="stringliteral">"CFailureMsgClass"</span>));
00093                 <a class="code" href="a02167.html#NLAISCRIPT_1_1CSuccessMsgClassz1840_2">buildVTable</a>();
00094         }
00095 
<a name="l00096"></a><a class="code" href="a02508.html#NLAISCRIPT_1_1CFailureMsgClassa2">00096</a>         CFailureMsgClass::CFailureMsgClass(<span class="keyword">const</span> <a class="code" href="a02650.html">NLAIC::CIdentType</a> &amp;<span class="keywordtype">id</span>):<a class="code" href="a02329.html">CMessageClass</a>(<a class="code" href="a04223.html#a564">id</a>)
00097         {
00098                 <a class="code" href="a02168.html#NLAISCRIPT_1_1IAgentMultiClassa52">setBaseObjectInstance</a>((<a class="code" href="a02149.html">NLAIAGENT::IObjectIA</a> *)NLAIAGENT::CFailureMsg::IdFailureMsg.getFactory()-&gt;getClass());           
00099                 <a class="code" href="a02167.html#NLAISCRIPT_1_1CSuccessMsgClassa42">registerComponent</a>(<a class="code" href="a03455.html">NLAIAGENT::CStringVarName</a>(<span class="stringliteral">"Float"</span>),<a class="code" href="a03455.html">NLAIAGENT::CStringVarName</a>(<span class="stringliteral">"Param"</span>));
00100                 <a class="code" href="a02167.html#NLAISCRIPT_1_1CSuccessMsgClassz1842_7">setInheritanceName</a>(<a class="code" href="a03455.html">NLAIAGENT::CStringVarName</a>(<span class="stringliteral">"Message"</span>));
00101                 <a class="code" href="a02169.html#NLAISCRIPT_1_1IClassInterpreta50">setClassName</a>(<a class="code" href="a03455.html">NLAIAGENT::CStringVarName</a>(<span class="stringliteral">"CFailureMsgClass"</span>));
00102                 <a class="code" href="a02167.html#NLAISCRIPT_1_1CSuccessMsgClassz1840_2">buildVTable</a>();
00103         }
00104 
<a name="l00105"></a><a class="code" href="a02508.html#NLAISCRIPT_1_1CFailureMsgClassa1">00105</a>         CFailureMsgClass::CFailureMsgClass() : <a class="code" href="a02329.html">CMessageClass</a>()
00106         {               
00107                 <a class="code" href="a02168.html#NLAISCRIPT_1_1IAgentMultiClassa52">setBaseObjectInstance</a>((<a class="code" href="a02149.html">NLAIAGENT::IObjectIA</a> *)NLAIAGENT::CFailureMsg::IdFailureMsg.getFactory()-&gt;getClass());           
00108                 <a class="code" href="a02167.html#NLAISCRIPT_1_1CSuccessMsgClassa42">registerComponent</a>(<a class="code" href="a03455.html">NLAIAGENT::CStringVarName</a>(<span class="stringliteral">"Float"</span>),<a class="code" href="a03455.html">NLAIAGENT::CStringVarName</a>(<span class="stringliteral">"Param"</span>));
00109                 <a class="code" href="a02167.html#NLAISCRIPT_1_1CSuccessMsgClassz1842_7">setInheritanceName</a>(<a class="code" href="a03455.html">NLAIAGENT::CStringVarName</a>(<span class="stringliteral">"Message"</span>));
00110                 <a class="code" href="a02169.html#NLAISCRIPT_1_1IClassInterpreta50">setClassName</a>(<a class="code" href="a03455.html">NLAIAGENT::CStringVarName</a>(<span class="stringliteral">"CFailureMsgClass"</span>));
00111                 <a class="code" href="a02167.html#NLAISCRIPT_1_1CSuccessMsgClassz1840_2">buildVTable</a>();
00112         }
00113         
<a name="l00114"></a><a class="code" href="a02508.html#NLAISCRIPT_1_1CFailureMsgClassz1824_1">00114</a>         <span class="keyword">const</span> <a class="code" href="a02151.html">NLAIC::IBasicType</a> *CFailureMsgClass::clone()<span class="keyword"> const</span>
00115 <span class="keyword">        </span>{
00116                 <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="a02508.html#NLAISCRIPT_1_1CFailureMsgClassa1">CFailureMsgClass</a>();
00117         }
00118 
<a name="l00119"></a><a class="code" href="a02508.html#NLAISCRIPT_1_1CFailureMsgClassz1824_3">00119</a>         <span class="keyword">const</span> <a class="code" href="a02151.html">NLAIC::IBasicType</a> *CFailureMsgClass::newInstance()<span class="keyword"> const</span>
00120 <span class="keyword">        </span>{
00121                 <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="a02508.html#NLAISCRIPT_1_1CFailureMsgClassa1">CFailureMsgClass</a>();
00122         }
00123 
<a name="l00124"></a><a class="code" href="a02508.html#NLAISCRIPT_1_1CFailureMsgClassz1824_0">00124</a>         <a class="code" href="a02149.html">NLAIAGENT::IObjectIA</a> *CFailureMsgClass::buildNewInstance()<span class="keyword"> const</span>
00125 <span class="keyword">        </span>{
00126                 std::list&lt;NLAIAGENT::IObjectIA *&gt; <a class="code" href="a04223.html#a656">components</a>;
00127                 <a class="code" href="a02167.html#NLAISCRIPT_1_1CSuccessMsgClassa2">createBaseClassComponents</a>( <a class="code" href="a04223.html#a656">components</a> );
00128 
00129                 <a class="code" href="a02149.html">NLAIAGENT::IObjectIA</a> *<a class="code" href="a04223.html#a572">x</a> = <span class="keyword">new</span> <a class="code" href="a02507.html">NLAIAGENT::CFailureMsg</a>( <a class="code" href="a04223.html#a656">components</a>,  (<a class="code" href="a02329.html">CMessageClass</a> *) <span class="keyword">this</span> );            
00130                 <span class="keywordflow">return</span> <a class="code" href="a04223.html#a572">x</a>;
00131         }       
00132 }
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Tue Mar 16 06:26:52 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>