1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
|
<!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="/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="/inc/img/pixel.gif" WIDTH="16" HEIGHT="16" BORDER=0 ALT=""></TD>
<TD WIDTH=140 BGCOLOR=#dddddd><IMG SRC="/inc/img/pixel.gif" WIDTH="140" HEIGHT="16" BORDER=0 ALT=""></TD>
<TD WIDTH=16><IMG SRC="/inc/img/pixel.gif" WIDTH="16" HEIGHT="16" BORDER=0 ALT=""></TD>
<TD><IMG width=6 height=14 SRC="/inc/img/reddots.gif" ALT="#" VSPACE=2 HSPACE=2 BORDER=0 ></TD><TD VALIGN=middle> <A CLASS=uplinks HREF=><b>Home</B></FONT></A> </TD>
<TD><IMG width=6 height=14 SRC="/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="/inc/img/black_banner.jpg"><A HREF=""><IMG SRC="/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="/inc/img/pixel.gif" WIDTH="16" HEIGHT="10" BORDER=0 ALT=""></TD>
<TD WIDTH=140 BGCOLOR=#dddddd VALIGN=TOP ALIGN=middle><IMG SRC="/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="/news/" TITLE="Rubrique news"><img width=13 height=15 hspace=5 border=0 src=/inc/img/picto-news.gif ALT=#></A></td><td><a class='linkbox' href="/news/" TITLE="News">News</a></td></tr>
<tr><td ALIGN=middle><a class='linkbox' href="/mail/" TITLE="Rubrique mail"><img width=15 height=11 hspace=5 border=0 src=/inc/img/picto-mail.gif ALT=#></A></td><td><a class='linkbox' href="/mail/" TITLE="Mailing list archive">Mailing-list</a></td></tr>
<tr><td ALIGN=middle><a class='linkbox' href="/docs/" TITLE="Rubrique docs"><img width=14 height=16 hspace=5 border=0 src=/inc/img/picto-docs.gif ALT=#></A></td><td><a class='linkbox' href="/docs/" TITLE="Documentation">Documentation</a></td></tr>
<tr><td ALIGN=middle><a class='linkbox' href="/cvs/" TITLE="Rubrique cvs"><img width=13 height=17 hspace=5 border=0 src=/inc/img/picto-cvs.gif ALT=#></A></td><td><a class='linkbox' href="/cvs/" TITLE="CVS Web">CVS</a></td></tr>
<tr><td ALIGN=middle><a class='linkbox' href="/bugs/" TITLE="Rubrique bugs"><img width=20 height=16 hspace=5 border=0 src=/inc/img/picto-bugs.gif ALT=#></A></td><td><a class='linkbox' href="/bugs/" TITLE="Bugtracking">Bugs</a></td></tr>
<tr><td ALIGN=middle><a class='linkbox' href="/GPL.php3" TITLE="Rubrique license"><img width=18 height=12 hspace=5 border=0 src=/inc/img/picto-gpl.gif ALT=#></A></td><td><a class='linkbox' href="/GPL.php3" TITLE="License">License</a></td></tr>
</TABLE>
</TD></TR></TABLE></TD></TR></TABLE>
<!------ End Box ------>
</TD>
<TD WIDTH=15><IMG SRC="/inc/img/pixel.gif" WIDTH="16" HEIGHT="16" BORDER=0 ALT=""></TD>
<TD ALIGN=left valign=top><IMG SRC="/inc/img/pixel.gif" WIDTH="140" HEIGHT="10" BORDER=0 ALT="">
<!-- title -->
<TABLE background="/inc/img/redline.gif" CELLSPACING=0 CELLPADDING=0 BORDER=0 width=100%><tr><td>
<A HREF="/docs/"><img src="/inc/img/t_docs.gif" ALT="Docs" HEIGHT=20 BORDER=0></A>
</td><td><IMG SRC="/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="/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:/cgi-bin/nel-search.cgi" href="/cgi-bin/nel-search.cgi">Search</a> </center>
<hr><h1>mailbox.h</h1><a href="mailbox_8h.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 <font class="preprocessor">#ifndef NL_MAIL_BOX_H</font>
00026 <font class="preprocessor"></font><font class="preprocessor">#define NL_MAIL_BOX_H</font>
00027 <font class="preprocessor"></font>
00028 <font class="preprocessor">#include "<a class="code" href="msg_8h.html">nel/ai/agent/msg.h</a>"</font>
00029 <font class="preprocessor">#include "<a class="code" href="baseai_8h.html">nel/ai/agent/baseai.h</a>"</font>
00030
00031 <font class="keyword">namespace </font>NLAIAGENT
00032 {
<a name="l00033"></a><a class="code" href="classNLAIAGENT_1_1IMailBox.html">00033</a> <font class="keyword">class </font>IMailBox:<font class="keyword">public</font> IConnectIA
00034 {
00035 <font class="keyword">public</font>:
<a name="l00036"></a><a class="code" href="classNLAIAGENT_1_1IMailBox.html#s0">00036</a> <font class="keyword">typedef</font> <a class="code" href="classstd_1_1list.html">std::list<const IMessageBase *></a> <a class="code" href="classstd_1_1list.html">tListMessage</a>;
<a name="l00037"></a><a class="code" href="classNLAIAGENT_1_1IMailBox.html#s1">00037</a> <font class="keyword">typedef</font> <a class="code" href="classstd_1_1list.html">std::list<IMailBox *></a> <a class="code" href="classstd_1_1list.html">tListMailBox</a>;
00038
00039 <font class="keyword">public</font>:
00040
00041 <a class="code" href="classNLAIAGENT_1_1IMailBox.html#a0">IMailBox</a>(<font class="keyword">const</font> IWordNumRef *parent);
00042 <a class="code" href="classNLAIAGENT_1_1IMailBox.html#a0">IMailBox</a>(<font class="keyword">const</font> <a class="code" href="classNLAIAGENT_1_1IMailBox.html#a0">IMailBox</a> &A);
00043 <a class="code" href="classNLAIAGENT_1_1IMailBox.html#a0">IMailBox</a> (<a class="code" href="classNLMISC_1_1IStream.html">NLMISC::IStream</a> &is);
00044
00045 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNLAIAGENT_1_1IMailBox.html#a3">save</a>(<a class="code" href="classNLMISC_1_1IStream.html">NLMISC::IStream</a> &os) = 0;
00046 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNLAIAGENT_1_1IMailBox.html#a4">load</a>(<a class="code" href="classNLMISC_1_1IStream.html">NLMISC::IStream</a> &is) = 0;
00047
00048 <font class="keyword">virtual</font> <a class="code" href="classNLAIAGENT_1_1IMailBox.html#a5">~IMailBox</a>();
00049
00050 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNLAIAGENT_1_1IMailBox.html#a6">addMessage</a>(IMessageBase *msg) = 0;
00051
00052 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNLAIAGENT_1_1IMailBox.html#a7">addMailBox</a>(<a class="code" href="classNLAIAGENT_1_1IMailBox.html#a0">IMailBox</a> *) = 0;
00053 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNLAIAGENT_1_1IMailBox.html#a8">removeMailBox</a>(<a class="code" href="classNLAIAGENT_1_1IMailBox.html#a0">IMailBox</a> *) = 0;
00054
00055 <font class="keyword">virtual</font> <font class="keyword">const</font> IMessageBase &<a class="code" href="classNLAIAGENT_1_1IMailBox.html#a9">getMessage</a>() = 0;
00056 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNLAIAGENT_1_1IMailBox.html#a10">shareMessage</a>() = 0;
00057 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNLAIAGENT_1_1IMailBox.html#a11">popMessage</a>() = 0;
00058 <font class="keyword">virtual</font> <a class="code" href="types__nl_8h.html#a9">sint32</a> <a class="code" href="classNLAIAGENT_1_1IMailBox.html#a12">getMessageCount</a>() <font class="keyword">const</font> = 0;
00059 <font class="keyword">virtual</font> <font class="keywordtype">bool</font> <a class="code" href="classNLAIAGENT_1_1IMailBox.html#a13">isEmpty</a>() <font class="keyword">const</font> = 0;
00060 <font class="keyword">virtual</font> <a class="code" href="types__nl_8h.html#a13">sint</a> <a class="code" href="classNLAIAGENT_1_1IMailBox.html#a14">size</a>() <font class="keyword">const</font> = 0;
00061
00062 <font class="keyword">virtual</font> <a class="code" href="classstd_1_1list.html">std::list<const IMessageBase *></a> *<a class="code" href="classNLAIAGENT_1_1IMailBox.html#a15">pumpMessages</a>(<font class="comment">/*IBasicMessageGroup &*/</font>) <font class="keyword">const</font>= 0;
00063
00064 <font class="keyword">virtual</font> <font class="keyword">const</font> tListMessage &<a class="code" href="classNLAIAGENT_1_1IMailBox.html#a16">getMesseageListe</a>() <font class="keyword">const</font> = 0;
00065
00066 <font class="comment">/*virtual void addGroup(IBasicMessageGroup &) = 0;</font>
00067 <font class="comment"> virtual void removeGroup(IBasicMessageGroup &) = 0;</font>
00068 <font class="comment"> virtual std::list<IBasicMessageGroup *> &getGroups() = 0;*/</font>
00069
00070 };
00071
<a name="l00072"></a><a class="code" href="classNLAIAGENT_1_1IMailBox.html#a3">00072</a> <font class="keyword">inline</font> <font class="keywordtype">void</font> IMailBox::save(<a class="code" href="classNLMISC_1_1IStream.html">NLMISC::IStream</a> &os)
00073 {
00074 IConnectIA::save(os);
00075 }
00076
<a name="l00077"></a><a class="code" href="classNLAIAGENT_1_1IMailBox.html#a4">00077</a> <font class="keyword">inline</font> <font class="keywordtype">void</font> IMailBox::load(<a class="code" href="classNLMISC_1_1IStream.html">NLMISC::IStream</a> &is)
00078 {
00079 IConnectIA::load(is);
00080 }
00081
<a name="l00082"></a><a class="code" href="classNLAIAGENT_1_1CSimpleLocalMailBox.html">00082</a> <font class="keyword">class </font>CSimpleLocalMailBox:<font class="keyword">public</font> IMailBox
00083 {
00084 <font class="keyword">protected</font>:
<a name="l00085"></a><a class="code" href="classNLAIAGENT_1_1CSimpleLocalMailBox.html#n0">00085</a> IMailBox::tListMessage <a class="code" href="classNLAIAGENT_1_1CSimpleLocalMailBox.html#n0">_ListMessage</a>;
<a name="l00086"></a><a class="code" href="classNLAIAGENT_1_1CSimpleLocalMailBox.html#n1">00086</a> IObjectIA::CProcessResult <a class="code" href="classNLAIAGENT_1_1CSimpleLocalMailBox.html#n1">_RunState</a>;
<a name="l00087"></a><a class="code" href="classNLAIAGENT_1_1CSimpleLocalMailBox.html#n2">00087</a> <a class="code" href="classstd_1_1list.html">std::list<IBasicMessageGroup *></a> <a class="code" href="classNLAIAGENT_1_1CSimpleLocalMailBox.html#n2">_Msg_grps</a>;
<a name="l00088"></a><a class="code" href="classNLAIAGENT_1_1CSimpleLocalMailBox.html#n3">00088</a> <a class="code" href="types__nl_8h.html#a13">sint</a> <a class="code" href="classNLAIAGENT_1_1CSimpleLocalMailBox.html#n3">_Size</a>;
00089
00090 <font class="keyword">public</font>:
00091 <font class="keyword">static</font> <font class="keyword">const</font> <a class="code" href="classNLAIC_1_1CIdentType.html">NLAIC::CIdentType</a> <a class="code" href="classNLAIAGENT_1_1CSimpleLocalMailBox.html#p0">IdSimpleLocalMailBox</a>;
00092 <font class="keyword">public</font>:
00093 <a class="code" href="classNLAIAGENT_1_1CSimpleLocalMailBox.html#a0">CSimpleLocalMailBox</a> (<font class="keyword">const</font> IWordNumRef *parent);
00094 <a class="code" href="classNLAIAGENT_1_1CSimpleLocalMailBox.html#a0">CSimpleLocalMailBox</a> (<a class="code" href="classNLMISC_1_1IStream.html">NLMISC::IStream</a> &is);
00095 <a class="code" href="classNLAIAGENT_1_1CSimpleLocalMailBox.html#a0">CSimpleLocalMailBox</a> (<font class="keyword">const</font> <a class="code" href="classNLAIAGENT_1_1CSimpleLocalMailBox.html#a0">CSimpleLocalMailBox</a> &a);
00096 <font class="keyword">virtual</font> <a class="code" href="classNLAIAGENT_1_1CSimpleLocalMailBox.html#a3">~CSimpleLocalMailBox</a>();
00097 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNLAIAGENT_1_1CSimpleLocalMailBox.html#a4">addMessage</a>(IMessageBase *msg);
00098 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNLAIAGENT_1_1CSimpleLocalMailBox.html#a5">addMailBox</a>(<a class="code" href="classNLAIAGENT_1_1IMailBox.html#a0">IMailBox</a> *);
00099 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNLAIAGENT_1_1CSimpleLocalMailBox.html#a6">removeMailBox</a>(<a class="code" href="classNLAIAGENT_1_1IMailBox.html#a0">IMailBox</a> *);
<a name="l00100"></a><a class="code" href="classNLAIAGENT_1_1CSimpleLocalMailBox.html#a7">00100</a> <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNLAIAGENT_1_1CSimpleLocalMailBox.html#a7">shareMessage</a>() {}
00101 <font class="keyword">virtual</font> <font class="keyword">const</font> IMessageBase &<a class="code" href="classNLAIAGENT_1_1CSimpleLocalMailBox.html#a8">getMessage</a>();
00102 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNLAIAGENT_1_1CSimpleLocalMailBox.html#a9">popMessage</a>();
00103 <font class="keyword">virtual</font> <a class="code" href="types__nl_8h.html#a9">sint32</a> <a class="code" href="classNLAIAGENT_1_1CSimpleLocalMailBox.html#a10">getMessageCount</a>() <font class="keyword">const</font>;
00104 <font class="keyword">virtual</font> <font class="keywordtype">bool</font> <a class="code" href="classNLAIAGENT_1_1CSimpleLocalMailBox.html#a11">isEmpty</a>() <font class="keyword">const</font>;
00105 <font class="keyword">virtual</font> <a class="code" href="classstd_1_1list.html">std::list<const IMessageBase *></a> *<a class="code" href="classNLAIAGENT_1_1CSimpleLocalMailBox.html#a12">pumpMessages</a>(<font class="comment">/*IBasicMessageGroup &*/</font>) <font class="keyword">const</font>;
00106 <font class="keyword">virtual</font> <font class="keyword">const</font> CProcessResult &<a class="code" href="classNLAIAGENT_1_1CSimpleLocalMailBox.html#a13">getState</a>() <font class="keyword">const</font>;
00107 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNLAIAGENT_1_1CSimpleLocalMailBox.html#a14">setState</a>(<a class="code" href="namespaceNLAIAGENT.html#a50">TProcessStatement</a> state, <a class="code" href="classNLAIAGENT_1_1IObjectIA.html#b0">IObjectIA</a> *result);
00108 <font class="keyword">virtual</font> <font class="keyword">const</font> IObjectIA::CProcessResult &<a class="code" href="classNLAIAGENT_1_1CSimpleLocalMailBox.html#a15">run</a>();
00109 <font class="comment">// virtual void fillMailBox();</font>
00110 <font class="keyword">virtual</font> <font class="keywordtype">bool</font> <a class="code" href="classNLAIAGENT_1_1CSimpleLocalMailBox.html#a16">isEqual</a>(<font class="keyword">const</font> <a class="code" href="classNLAIAGENT_1_1IBasicObjectIA.html#a0">IBasicObjectIA</a> &a) <font class="keyword">const</font>;
00111 <font class="keyword">virtual</font> <font class="keyword">const</font> <a class="code" href="classNLAIC_1_1IBasicType.html">NLAIC::IBasicType</a> *<a class="code" href="classNLAIAGENT_1_1CSimpleLocalMailBox.html#a17">clone</a>() <font class="keyword">const</font>;
00112 <font class="keyword">virtual</font> <font class="keyword">const</font> <a class="code" href="classNLAIC_1_1IBasicType.html">NLAIC::IBasicType</a> *<a class="code" href="classNLAIAGENT_1_1CSimpleLocalMailBox.html#a18">newInstance</a>() <font class="keyword">const</font>;
00113 <font class="keyword">virtual</font> <font class="keyword">const</font> <a class="code" href="classNLAIC_1_1CIdentType.html">NLAIC::CIdentType</a> &<a class="code" href="classNLAIAGENT_1_1CSimpleLocalMailBox.html#a19">getType</a>() <font class="keyword">const</font>;
00114 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNLAIAGENT_1_1CSimpleLocalMailBox.html#a20">getDebugString</a>(std::string &<a class="code" href="driver__opengl__extension__def_8h.html#a261">t</a>) <font class="keyword">const</font>;
00115 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNLAIAGENT_1_1CSimpleLocalMailBox.html#a21">save</a>(<a class="code" href="classNLMISC_1_1IStream.html">NLMISC::IStream</a> &os);
00116 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNLAIAGENT_1_1CSimpleLocalMailBox.html#a22">load</a>(<a class="code" href="classNLMISC_1_1IStream.html">NLMISC::IStream</a> &is);
00117 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNLAIAGENT_1_1CSimpleLocalMailBox.html#a23">onKill</a>(<a class="code" href="classNLAIAGENT_1_1IConnectIA.html#b0">IConnectIA</a> *);
00118 <font class="keyword">virtual</font> IObjectIA::CProcessResult <a class="code" href="classNLAIAGENT_1_1CSimpleLocalMailBox.html#a24">sendMessage</a>(IMessageBase *);
<a name="l00119"></a><a class="code" href="classNLAIAGENT_1_1CSimpleLocalMailBox.html#a25">00119</a> <font class="keyword">virtual</font> <font class="keyword">const</font> <a class="code" href="classNLAIAGENT_1_1IMailBox.html#s0">tListMessage</a> &<a class="code" href="classNLAIAGENT_1_1CSimpleLocalMailBox.html#a25">getMesseageListe</a>()<font class="keyword"> const </font>
00120 <font class="keyword"> </font>{
00121 <font class="keywordflow">return</font> <a class="code" href="classNLAIAGENT_1_1CSimpleLocalMailBox.html#n0">_ListMessage</a>;
00122 }
00123
<a name="l00124"></a><a class="code" href="classNLAIAGENT_1_1CSimpleLocalMailBox.html#a26">00124</a> <font class="keyword">virtual</font> <a class="code" href="types__nl_8h.html#a13">sint</a> <a class="code" href="classNLAIAGENT_1_1CSimpleLocalMailBox.html#a26">size</a>()<font class="keyword"> const</font>
00125 <font class="keyword"> </font>{
00126 <font class="keywordflow">return</font> <a class="code" href="classNLAIAGENT_1_1CSimpleLocalMailBox.html#n3">_Size</a>;
00127 }
00128 <font class="keyword">private</font>:
00129 <font class="keyword">virtual</font> <a class="code" href="classNLAIAGENT_1_1IConnectIA.html#b0">IConnectIA</a> &<a class="code" href="classNLAIAGENT_1_1CSimpleLocalMailBox.html#c0">getConnection</a>(<a class="code" href="classNLAIAGENT_1_1IConnectIA.html#b0">IConnectIA</a> &<a class="code" href="driver__opengl__extension__def_8h.html#a262">r</a>);
00130 };
00131
00132
<a name="l00133"></a><a class="code" href="classNLAIAGENT_1_1CLocalMailBox.html">00133</a> <font class="keyword">class </font>CLocalMailBox:<font class="keyword">public</font> IMailBox
00134 {
00135 <font class="keyword">public</font>:
00136 <font class="keyword">static</font> <font class="keyword">const</font> <a class="code" href="classNLAIC_1_1CIdentType.html">NLAIC::CIdentType</a> <a class="code" href="classNLAIAGENT_1_1CLocalMailBox.html#p0">IdLocalMailBox</a>;
00137 <font class="keyword">public</font>:
<a name="l00138"></a><a class="code" href="classNLAIAGENT_1_1CLocalMailBox.html#s0">00138</a> <font class="keyword">typedef</font> <a class="code" href="classstd_1_1list.html">std::list<const IMessageBase *></a>::iterator <a class="code" href="classstd_1_1list.html">tListMessageIter</a>;
<a name="l00139"></a><a class="code" href="classNLAIAGENT_1_1CLocalMailBox.html#s1">00139</a> <font class="keyword">typedef</font> <a class="code" href="classstd_1_1list.html">std::list<const IMessageBase *></a>::const_iterator <a class="code" href="classstd_1_1list.html">tListMessageCstIter</a>;
00140
<a name="l00141"></a><a class="code" href="classNLAIAGENT_1_1CLocalMailBox.html#s2">00141</a> <font class="keyword">typedef</font> <a class="code" href="classstd_1_1list.html">std::list<IMailBox *></a>::iterator <a class="code" href="classstd_1_1list.html">tListMailBoxIter</a>;
<a name="l00142"></a><a class="code" href="classNLAIAGENT_1_1CLocalMailBox.html#s3">00142</a> <font class="keyword">typedef</font> <a class="code" href="classstd_1_1list.html">std::list<IMailBox *></a>::const_iterator <a class="code" href="classstd_1_1list.html">tListMailBoxCstIter</a>;
00143
00144 <font class="keyword">private</font>:
<a name="l00145"></a><a class="code" href="classNLAIAGENT_1_1CLocalMailBox.html#o0">00145</a> IObjectIA::CProcessResult <a class="code" href="classNLAIAGENT_1_1CLocalMailBox.html#o0">_RunState</a>;
<a name="l00146"></a><a class="code" href="classNLAIAGENT_1_1CLocalMailBox.html#o1">00146</a> <a class="code" href="classNLAIAGENT_1_1IMailBox.html#s0">tListMessage</a> <a class="code" href="classNLAIAGENT_1_1CLocalMailBox.html#o1">_ListMessageIn</a>;
<a name="l00147"></a><a class="code" href="classNLAIAGENT_1_1CLocalMailBox.html#o2">00147</a> <a class="code" href="classNLAIAGENT_1_1IMailBox.html#s0">tListMessage</a> <a class="code" href="classNLAIAGENT_1_1CLocalMailBox.html#o2">_ListSharedMessage</a>;
<a name="l00148"></a><a class="code" href="classNLAIAGENT_1_1CLocalMailBox.html#o3">00148</a> <a class="code" href="classNLAIAGENT_1_1IMailBox.html#s1">tListMailBox</a> <a class="code" href="classNLAIAGENT_1_1CLocalMailBox.html#o3">_ListMailBox</a>;
<a name="l00149"></a><a class="code" href="classNLAIAGENT_1_1CLocalMailBox.html#o4">00149</a> <a class="code" href="types__nl_8h.html#a13">sint</a> <a class="code" href="classNLAIAGENT_1_1CLocalMailBox.html#o4">_Size</a>;
00150
00151 <font class="keyword">public</font>:
00152
00153 <a class="code" href="classNLAIAGENT_1_1CLocalMailBox.html#a0">CLocalMailBox</a> (<font class="keyword">const</font> IWordNumRef *parent);
00154 <a class="code" href="classNLAIAGENT_1_1CLocalMailBox.html#a0">CLocalMailBox</a> (<a class="code" href="classNLMISC_1_1IStream.html">NLMISC::IStream</a> &is);
00155 <a class="code" href="classNLAIAGENT_1_1CLocalMailBox.html#a0">CLocalMailBox</a> (<font class="keyword">const</font> <a class="code" href="classNLAIAGENT_1_1CLocalMailBox.html#a0">CLocalMailBox</a> &A);
00156 <font class="keyword">virtual</font> <a class="code" href="classNLAIAGENT_1_1CLocalMailBox.html#a3">~CLocalMailBox</a>();
00157 <font class="keyword">virtual</font> <font class="keyword">const</font> IMessageBase &<a class="code" href="classNLAIAGENT_1_1CLocalMailBox.html#a4">getMessage</a>();
00158 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNLAIAGENT_1_1CLocalMailBox.html#a5">shareMessage</a>();
00159 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNLAIAGENT_1_1CLocalMailBox.html#a6">popMessage</a>();
00160 <font class="keyword">virtual</font> <a class="code" href="types__nl_8h.html#a9">sint32</a> <a class="code" href="classNLAIAGENT_1_1CLocalMailBox.html#a7">getMessageCount</a>() <font class="keyword">const</font>;
00161 <font class="keyword">virtual</font> <font class="keywordtype">bool</font> <a class="code" href="classNLAIAGENT_1_1CLocalMailBox.html#a8">isEmpty</a>() <font class="keyword">const</font>;
00162 <font class="comment">//virtual void sendMessage(const IBasicAgent &,const IBaseGroupType &);</font>
00163 <font class="keyword">virtual</font> IObjectIA::CProcessResult <a class="code" href="classNLAIAGENT_1_1CLocalMailBox.html#a9">sendMessage</a>(IMessageBase *);
00164 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNLAIAGENT_1_1CLocalMailBox.html#a10">addMessage</a>(IMessageBase *msg);
00165 <font class="comment">// Ajoute une boite aux lettre dans la liste des boites aux lettres "source" (les bals � consulter).</font>
00166 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNLAIAGENT_1_1CLocalMailBox.html#a11">addMailBox</a>(<a class="code" href="classNLAIAGENT_1_1IMailBox.html#a0">IMailBox</a> *mail);
00167 <font class="comment">// Supprime une boite aux lettre dans la liste des boites aux lettres "source" (les bals � consulter).</font>
00168 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNLAIAGENT_1_1CLocalMailBox.html#a12">removeMailBox</a>(<a class="code" href="classNLAIAGENT_1_1IMailBox.html#a0">IMailBox</a> *mail);
00169 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNLAIAGENT_1_1CLocalMailBox.html#a13">setName</a>(<font class="keyword">const</font> IVarName &);
00170 <font class="keyword">virtual</font> <font class="keyword">const</font> <a class="code" href="classNLAIC_1_1IBasicType.html">NLAIC::IBasicType</a> *<a class="code" href="classNLAIAGENT_1_1CLocalMailBox.html#a14">clone</a>() <font class="keyword">const</font>;
00171 <font class="keyword">virtual</font> <font class="keyword">const</font> <a class="code" href="classNLAIC_1_1IBasicType.html">NLAIC::IBasicType</a> *<a class="code" href="classNLAIAGENT_1_1CLocalMailBox.html#a15">newInstance</a>() <font class="keyword">const</font>;
00172 <font class="keyword">virtual</font> <font class="keyword">const</font> <a class="code" href="classNLAIC_1_1CIdentType.html">NLAIC::CIdentType</a> &<a class="code" href="classNLAIAGENT_1_1CLocalMailBox.html#a16">getType</a>() <font class="keyword">const</font>;
00173 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNLAIAGENT_1_1CLocalMailBox.html#a17">onKill</a>(<a class="code" href="classNLAIAGENT_1_1IConnectIA.html#b0">IConnectIA</a> *a);
00174 <font class="keyword">virtual</font> <font class="keywordtype">bool</font> <a class="code" href="classNLAIAGENT_1_1CLocalMailBox.html#a18">isEqual</a>(<font class="keyword">const</font> <a class="code" href="classNLAIAGENT_1_1IBasicObjectIA.html#a0">IBasicObjectIA</a> &a) <font class="keyword">const</font>;
00175 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNLAIAGENT_1_1CLocalMailBox.html#a19">save</a>(<a class="code" href="classNLMISC_1_1IStream.html">NLMISC::IStream</a> &os);
00176 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNLAIAGENT_1_1CLocalMailBox.html#a20">load</a>(<a class="code" href="classNLMISC_1_1IStream.html">NLMISC::IStream</a> &is);
00177 <font class="keyword">virtual</font> <font class="keyword">const</font> CProcessResult &<a class="code" href="classNLAIAGENT_1_1CLocalMailBox.html#a21">getState</a>() <font class="keyword">const</font> ;
00178 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNLAIAGENT_1_1CLocalMailBox.html#a22">setState</a>(<a class="code" href="namespaceNLAIAGENT.html#a50">TProcessStatement</a> state, <a class="code" href="classNLAIAGENT_1_1IObjectIA.html#b0">IObjectIA</a> *result);
00179 <font class="keyword">virtual</font> <a class="code" href="classstd_1_1list.html">std::list<const IMessageBase *></a> *<a class="code" href="classNLAIAGENT_1_1CLocalMailBox.html#a23">pumpMessages</a>(<font class="comment">/*IBasicMessageGroup &grp*/</font>) <font class="keyword">const</font>;
00180 <font class="keyword">virtual</font> <font class="keyword">const</font> IObjectIA::CProcessResult &<a class="code" href="classNLAIAGENT_1_1CLocalMailBox.html#a24">run</a>();
00181 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNLAIAGENT_1_1CLocalMailBox.html#a25">getDebugString</a>(std::string &<a class="code" href="driver__opengl__extension__def_8h.html#a261">t</a>) <font class="keyword">const</font>;
<a name="l00182"></a><a class="code" href="classNLAIAGENT_1_1CLocalMailBox.html#a26">00182</a> <font class="keyword">virtual</font> <font class="keyword">const</font> <a class="code" href="classNLAIAGENT_1_1IMailBox.html#s0">tListMessage</a> &<a class="code" href="classNLAIAGENT_1_1CLocalMailBox.html#a26">getMesseageListe</a>()<font class="keyword"> const </font>
00183 <font class="keyword"> </font>{
00184 <font class="keywordflow">return</font> <a class="code" href="classNLAIAGENT_1_1CLocalMailBox.html#o1">_ListMessageIn</a>;
00185 }
<a name="l00186"></a><a class="code" href="classNLAIAGENT_1_1CLocalMailBox.html#a27">00186</a> <font class="keyword">virtual</font> <a class="code" href="types__nl_8h.html#a13">sint</a> <a class="code" href="classNLAIAGENT_1_1CLocalMailBox.html#a27">size</a>()<font class="keyword"> const</font>
00187 <font class="keyword"> </font>{
00188 <font class="keywordflow">return</font> <a class="code" href="classNLAIAGENT_1_1CLocalMailBox.html#o4">_Size</a>;
00189 }
00190 <font class="comment">/*virtual void addGroup(IBasicMessageGroup &grp);</font>
00191 <font class="comment"> virtual std::list<IBasicMessageGroup *> &getGroups() ;</font>
00192 <font class="comment"> virtual void removeGroup(IBasicMessageGroup &grp);*/</font>
00193 <font class="keyword">private</font>:
00194 <font class="keywordtype">void</font> <a class="code" href="classNLAIAGENT_1_1CLocalMailBox.html#c0">fillMailBox</a>();
00195
00196 };
00197
<a name="l00198"></a><a class="code" href="classNLAIAGENT_1_1CScriptMailBox.html">00198</a> <font class="keyword">class </font>CScriptMailBox : <font class="keyword">public</font> CSimpleLocalMailBox
00199 {
00200 <font class="keyword">private</font>:
<a name="l00201"></a><a class="code" href="classNLAIAGENT_1_1CScriptMailBox.html#o0">00201</a> <a class="code" href="types__nl_8h.html#a9">sint32</a> <a class="code" href="classNLAIAGENT_1_1CScriptMailBox.html#o0">_CIndex</a>;
00202 <font class="keyword">const</font> IMessageBase *<a class="code" href="classNLAIAGENT_1_1CScriptMailBox.html#c0">translateMsg</a>(<font class="keyword">const</font> IMessageBase *);
00203 <font class="keyword">public</font>:
00204 <font class="keyword">static</font> <font class="keyword">const</font> <a class="code" href="classNLAIC_1_1CIdentType.html">NLAIC::CIdentType</a> <a class="code" href="classNLAIAGENT_1_1CScriptMailBox.html#p0">IdScriptMailBox</a>;
00205
00206 <font class="keyword">public</font>:
00207 <a class="code" href="classNLAIAGENT_1_1CScriptMailBox.html#a0">CScriptMailBox</a> (<font class="keyword">const</font> IWordNumRef *parent);
00208 <a class="code" href="classNLAIAGENT_1_1CScriptMailBox.html#a0">CScriptMailBox</a> (<a class="code" href="classNLMISC_1_1IStream.html">NLMISC::IStream</a> &is);
00209 <a class="code" href="classNLAIAGENT_1_1CScriptMailBox.html#a0">CScriptMailBox</a> (<font class="keyword">const</font> <a class="code" href="classNLAIAGENT_1_1CScriptMailBox.html#a0">CScriptMailBox</a> &A);
00210 <font class="keyword">virtual</font> <a class="code" href="classNLAIAGENT_1_1CScriptMailBox.html#a3">~CScriptMailBox</a>();
00211 <font class="keyword">virtual</font> <font class="keyword">const</font> IObjectIA::CProcessResult &<a class="code" href="classNLAIAGENT_1_1CScriptMailBox.html#a4">run</a>();
00212 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNLAIAGENT_1_1CScriptMailBox.html#a5">fillMailBox</a>();
00213
00214 <font class="keywordtype">void</font> <a class="code" href="classNLAIAGENT_1_1CScriptMailBox.html#a6">setIndex</a>(<a class="code" href="types__nl_8h.html#a9">sint32</a>);
00215 <a class="code" href="types__nl_8h.html#a9">sint32</a> <a class="code" href="classNLAIAGENT_1_1CScriptMailBox.html#a7">getIndex</a>();
00216
00217 <font class="keyword">virtual</font> <font class="keyword">const</font> <a class="code" href="classNLAIC_1_1IBasicType.html">NLAIC::IBasicType</a> *<a class="code" href="classNLAIAGENT_1_1CScriptMailBox.html#a8">clone</a>() <font class="keyword">const</font>;
00218 <font class="keyword">virtual</font> <font class="keyword">const</font> <a class="code" href="classNLAIC_1_1IBasicType.html">NLAIC::IBasicType</a> *<a class="code" href="classNLAIAGENT_1_1CScriptMailBox.html#a9">newInstance</a>() <font class="keyword">const</font>;
00219 <font class="keyword">virtual</font> <font class="keyword">const</font> <a class="code" href="classNLAIC_1_1CIdentType.html">NLAIC::CIdentType</a> &<a class="code" href="classNLAIAGENT_1_1CScriptMailBox.html#a10">getType</a>() <font class="keyword">const</font>;
00220
00221 };
00222 }
00223 <font class="preprocessor">#endif</font>
</pre></div>
<!-- footer -->
<BR><FONT Size=+5> </FONT>
</TD>
<TD WIDTH=15><IMG SRC=/inc/img/pixel.gif WIDTH=15 HEIGHT=15 BORDER=0 ALT=""></TD>
</TR>
</TABLE>
</BODY>
</HTML>
|