aboutsummaryrefslogtreecommitdiff
path: root/docs/doxygen/nel/identtype_8h-source.html
diff options
context:
space:
mode:
authorneodarz <neodarz@neodarz.net>2018-08-11 20:21:34 +0200
committerneodarz <neodarz@neodarz.net>2018-08-11 20:21:34 +0200
commit0ea5fc66924303d1bf73ba283a383e2aadee02f2 (patch)
tree2568e71a7ccc44ec23b8bb3f0ff97fb6bf2ed709 /docs/doxygen/nel/identtype_8h-source.html
downloadnevrax-website-self-hostable-0ea5fc66924303d1bf73ba283a383e2aadee02f2.tar.xz
nevrax-website-self-hostable-0ea5fc66924303d1bf73ba283a383e2aadee02f2.zip
Initial commit
Diffstat (limited to 'docs/doxygen/nel/identtype_8h-source.html')
-rw-r--r--docs/doxygen/nel/identtype_8h-source.html441
1 files changed, 441 insertions, 0 deletions
diff --git a/docs/doxygen/nel/identtype_8h-source.html b/docs/doxygen/nel/identtype_8h-source.html
new file mode 100644
index 00000000..b6dd5e3c
--- /dev/null
+++ b/docs/doxygen/nel/identtype_8h-source.html
@@ -0,0 +1,441 @@
+<!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>&nbsp;<A CLASS=uplinks HREF=http://www.nevrax.org><b>Home</B></FONT></A>&nbsp;&nbsp;&nbsp;</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>&nbsp;<A CLASS=uplinks HREF=http://www.nevrax.com><b>nevrax.com</B></FONT></A>&nbsp;&nbsp;&nbsp;</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>
+&nbsp;
+
+<!-- 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>&nbsp;</td>
+</tr></table>
+<!-- Generated by Doxygen 1.2.14 -->
+<center>
+<a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="namespaces.html">Namespace List</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="classes.html">Alphabetical List</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="namespacemembers.html">Namespace Members</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; <a class="qindex" href="globals.html">File Members</a> &nbsp; <a class="qindex" href="pages.html">Related Pages</a> &nbsp; <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> &nbsp; </center>
+<hr><h1>identtype.h</h1><a href="identtype_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
+00026
+00027 <font class="preprocessor">#ifndef NL_IDENTTYPE_H</font>
+00028 <font class="preprocessor"></font><font class="preprocessor">#define NL_IDENTTYPE_H</font>
+00029 <font class="preprocessor"></font><font class="preprocessor">#include &lt;stdlib.h&gt;</font>
+00030 <font class="preprocessor">#include "<a class="code" href="file_8h.html">nel/misc/file.h</a>"</font>
+00031 <font class="preprocessor">#include "<a class="code" href="entity__id_8h.html">nel/misc/entity_id.h</a>"</font>
+00032 <font class="preprocessor">#include "<a class="code" href="ai__exception_8h.html">nel/ai/e/ai_exception.h</a>"</font>
+00033 <font class="preprocessor">#include "<a class="code" href="agent__string_8h.html">nel/ai/agent/agent_string.h</a>"</font>
+00034
+00035 <font class="keyword">namespace </font>NLAIAGENT
+00036 {
+00037 <font class="preprocessor">#ifndef _MAX__INDEX_DEFINED</font>
+00038 <font class="preprocessor"></font> <font class="keyword">const</font> <a class="code" href="types__nl_8h.html#a9">sint32</a> <a class="code" href="namespaceNLAIAGENT.html#a10">maxIndex</a> = 2;
+00039 <font class="preprocessor"> #define _MAX__INDEX_DEFINED</font>
+00040 <font class="preprocessor"></font>
+00041 <font class="keyword">const</font> <a class="code" href="types__nl_8h.html#a12">uint64</a> <a class="code" href="namespaceNLAIAGENT.html#a11">maxResolutionNumer</a> = ((uint64)2 &lt;&lt; 48) - (uint64)1;
+00042 <font class="preprocessor">#else</font>
+00043 <font class="preprocessor"></font> <font class="keyword">extern</font> <font class="keyword">const</font> <a class="code" href="types__nl_8h.html#a9">sint32</a> <a class="code" href="namespaceNLAIAGENT.html#a10">maxIndex</a>;
+00044 <font class="keyword">extern</font> <font class="keyword">const</font> <a class="code" href="types__nl_8h.html#a12">uint64</a> <a class="code" href="namespaceNLAIAGENT.html#a11">maxResolutionNumer</a>;
+00045 <font class="preprocessor">#endif</font>
+00046 <font class="preprocessor"></font>
+<a name="l00047"></a><a class="code" href="structNLAIAGENT_1_1CAgentNumber.html">00047</a> <font class="keyword">struct </font>CAgentNumber: <font class="keyword">public</font> NLMISC::CEntityId
+00048 {
+00051 <font class="keyword">static</font> <font class="keyword">const</font> <a class="code" href="types__nl_8h.html#a6">uint8</a> <a class="code" href="structNLAIAGENT_1_1CAgentNumber.html#p0">AgentTypeBit</a>;
+00052
+<a name="l00053"></a><a class="code" href="structNLAIAGENT_1_1CAgentNumber.html#a0">00053</a> <a class="code" href="structNLAIAGENT_1_1CAgentNumber.html#a0">CAgentNumber</a>()
+00054 {
+00055 <a class="code" href="structNLMISC_1_1CEntityId.html#a8">setType</a>( CAgentNumber::AgentTypeBit );
+00056 }
+<a name="l00057"></a><a class="code" href="structNLAIAGENT_1_1CAgentNumber.html#a1">00057</a> <a class="code" href="structNLAIAGENT_1_1CAgentNumber.html#a0">CAgentNumber</a>(<a class="code" href="types__nl_8h.html#a12">uint64</a> <a class="code" href="driver__opengl__extension__def_8h.html#a234">id</a>,<a class="code" href="types__nl_8h.html#a6">uint8</a> creator,<a class="code" href="types__nl_8h.html#a6">uint8</a> dyn):NLMISC::<a class="code" href="structNLMISC_1_1CEntityId.html#z276_0">CEntityId</a>(<a class="code" href="structNLAIAGENT_1_1CAgentNumber.html#p0">AgentTypeBit</a>,<a class="code" href="driver__opengl__extension__def_8h.html#a234">id</a>,creator,dyn)
+00058 {
+00059 }
+00060
+<a name="l00061"></a><a class="code" href="structNLAIAGENT_1_1CAgentNumber.html#a2">00061</a> <a class="code" href="structNLAIAGENT_1_1CAgentNumber.html#a0">CAgentNumber</a>(<a class="code" href="types__nl_8h.html#a12">uint64</a> <a class="code" href="driver__opengl__extension__def_8h.html#a234">id</a>, <a class="code" href="types__nl_8h.html#a6">uint8</a> <a class="code" href="driver__opengl__extension__def_8h.html#a261">t</a>,<a class="code" href="types__nl_8h.html#a6">uint8</a> creator,<a class="code" href="types__nl_8h.html#a6">uint8</a> dyn):NLMISC::<a class="code" href="structNLMISC_1_1CEntityId.html#z276_0">CEntityId</a>(<a class="code" href="driver__opengl__extension__def_8h.html#a261">t</a>,<a class="code" href="driver__opengl__extension__def_8h.html#a234">id</a>,creator,dyn)
+00062 {
+00063 }
+00064
+<a name="l00065"></a><a class="code" href="structNLAIAGENT_1_1CAgentNumber.html#a3">00065</a> <a class="code" href="structNLAIAGENT_1_1CAgentNumber.html#a0">CAgentNumber</a>(<a class="code" href="types__nl_8h.html#a12">uint64</a> p):NLMISC::<a class="code" href="structNLMISC_1_1CEntityId.html#z276_0">CEntityId</a>(p)
+00066 {
+00067 }
+00068
+<a name="l00069"></a><a class="code" href="structNLAIAGENT_1_1CAgentNumber.html#a4">00069</a> <a class="code" href="structNLAIAGENT_1_1CAgentNumber.html#a0">CAgentNumber</a>(<font class="keyword">const</font> <a class="code" href="structNLAIAGENT_1_1CAgentNumber.html#a0">CAgentNumber</a> &amp;a):NLMISC::<a class="code" href="structNLMISC_1_1CEntityId.html#z276_0">CEntityId</a>(a)
+00070 {
+00071 }
+00072
+<a name="l00073"></a><a class="code" href="structNLAIAGENT_1_1CAgentNumber.html#a5">00073</a> <a class="code" href="structNLAIAGENT_1_1CAgentNumber.html#a0">CAgentNumber</a>(<a class="code" href="classNLMISC_1_1IStream.html">NLMISC::IStream</a> &amp;is):NLMISC::<a class="code" href="structNLMISC_1_1CEntityId.html#z276_0">CEntityId</a>(is)
+00074 {
+00075 }
+00076
+<a name="l00077"></a><a class="code" href="structNLAIAGENT_1_1CAgentNumber.html#a6">00077</a> <a class="code" href="structNLAIAGENT_1_1CAgentNumber.html#a0">CAgentNumber</a>(<font class="keyword">const</font> <font class="keywordtype">char</font> *<a class="code" href="driver__opengl__extension__def_8h.html#a234">id</a>):NLMISC::<a class="code" href="structNLMISC_1_1CEntityId.html#z276_0">CEntityId</a>(<a class="code" href="driver__opengl__extension__def_8h.html#a234">id</a>)
+00078 {
+00079 }
+00080
+<a name="l00081"></a><a class="code" href="structNLAIAGENT_1_1CAgentNumber.html#a7">00081</a> <font class="keywordtype">bool</font> <a class="code" href="structNLAIAGENT_1_1CAgentNumber.html#a7">isAgentId</a>()<font class="keyword"> const</font>
+00082 <font class="keyword"> </font>{
+00083 <font class="keywordflow">return</font> (<a class="code" href="structNLMISC_1_1CEntityId.html#a7">getType</a>() &amp; <a class="code" href="structNLAIAGENT_1_1CAgentNumber.html#p0">AgentTypeBit</a>) != 0;
+00084 }
+00085
+<a name="l00086"></a><a class="code" href="structNLAIAGENT_1_1CAgentNumber.html#a8">00086</a> <font class="keyword">virtual</font> <font class="keywordtype">bool</font> <a class="code" href="structNLAIAGENT_1_1CAgentNumber.html#a8">operator &lt; </a>(<font class="keyword">const</font> <a class="code" href="structNLMISC_1_1CEntityId.html">NLMISC::CEntityId</a> &amp;a)<font class="keyword"> const</font>
+00087 <font class="keyword"> </font>{
+00088
+00089 <font class="keywordflow">if</font>(<a class="code" href="structNLAIAGENT_1_1CAgentNumber.html#a7">isAgentId</a>())
+00090 {
+00091 <font class="keywordflow">if</font> (<a class="code" href="structNLMISC_1_1CEntityId.html#a1">getShortId</a>() &lt; a.<a class="code" href="structNLMISC_1_1CEntityId.html#a1">getShortId</a>())
+00092 {
+00093 <font class="keywordflow">return</font> <font class="keyword">true</font>;
+00094 }
+00095 <font class="keywordflow">else</font>
+00096 <font class="keywordflow">if</font> (<a class="code" href="structNLMISC_1_1CEntityId.html#a1">getShortId</a>() == a.<a class="code" href="structNLMISC_1_1CEntityId.html#a1">getShortId</a>())
+00097 {
+00098 <font class="keywordflow">if</font>(<a class="code" href="structNLMISC_1_1CEntityId.html#a5">getCreatorId</a>() &lt; a.<a class="code" href="structNLMISC_1_1CEntityId.html#a5">getCreatorId</a>())
+00099 {
+00100 <font class="keywordflow">return</font> <font class="keyword">true</font>;
+00101 }
+00102 <font class="keywordflow">else</font>
+00103 <font class="keywordflow">if</font>(<a class="code" href="structNLMISC_1_1CEntityId.html#a5">getCreatorId</a>() == a.<a class="code" href="structNLMISC_1_1CEntityId.html#a5">getCreatorId</a>())
+00104 {
+00105 <font class="keywordflow">return</font> <a class="code" href="structNLMISC_1_1CEntityId.html#a3">getDynamicId</a>() &lt; a.<a class="code" href="structNLMISC_1_1CEntityId.html#a3">getDynamicId</a>();
+00106 }
+00107 }
+00108 <font class="keywordflow">return</font> <font class="keyword">false</font>;
+00109 }
+00110 <font class="keywordflow">else</font>
+00111 {
+00112 <font class="keywordflow">return</font> <a class="code" href="zone__lighter_8cpp.html#a13">CEntityId::operator &lt; </a>(a);
+00113 }
+00114 }
+00115
+<a name="l00117"></a><a class="code" href="structNLAIAGENT_1_1CAgentNumber.html#a9">00117</a> <font class="keywordtype">void</font> <a class="code" href="structNLAIAGENT_1_1CAgentNumber.html#a9">setTypeAt</a>(<a class="code" href="types__nl_8h.html#a12">uint64</a> <a class="code" href="driver__opengl__extension__def_8h.html#a261">t</a>)
+00118 {
+00119 <a class="code" href="types__nl_8h.html#a6">uint8</a> <a class="code" href="driver__opengl__extension__def_8h.html#a251">type</a> = <a class="code" href="structNLMISC_1_1CEntityId.html#a7">getType</a>();
+00120 <a class="code" href="driver__opengl__extension__def_8h.html#a251">type</a> |= (<a class="code" href="driver__opengl__extension__def_8h.html#a261">t</a> &amp; 0x7f);
+00121 <a class="code" href="structNLMISC_1_1CEntityId.html#a8">setType</a>( <a class="code" href="driver__opengl__extension__def_8h.html#a251">type</a> );
+00122 }
+00123
+00124 };
+00125
+00126 <font class="comment">/*struct CAgentNumber: public NLMISC::IStreamable</font>
+00127 <font class="comment"> {</font>
+00128 <font class="comment"> static uint8 ServerID;</font>
+00129 <font class="comment"></font>
+00131 <font class="comment"> uint64 DynamicId : 8;</font>
+00133 <font class="comment"> uint64 CreatorId : 8;</font>
+00135 <font class="comment"> uint64 AgentNumber : 48;</font>
+00136 <font class="comment"></font>
+00137 <font class="comment"> CAgentNumber()</font>
+00138 <font class="comment"> {</font>
+00139 <font class="comment"> CreatorId = (uint64)ServerID;</font>
+00140 <font class="comment"> DynamicId = (uint64)ServerID;</font>
+00141 <font class="comment"> AgentNumber = 0;</font>
+00142 <font class="comment"> } </font>
+00143 <font class="comment"></font>
+00144 <font class="comment"> CAgentNumber(uint64 id,uint64 creator,uint64 dyn)</font>
+00145 <font class="comment"> {</font>
+00146 <font class="comment"> CreatorId = creator;</font>
+00147 <font class="comment"> DynamicId = dyn;</font>
+00148 <font class="comment"> AgentNumber = id;</font>
+00149 <font class="comment"> }</font>
+00150 <font class="comment"></font>
+00151 <font class="comment"> CAgentNumber(uint64 p)</font>
+00152 <font class="comment"> { </font>
+00153 <font class="comment"> DynamicId = (uint64)(p &amp; 0xff);</font>
+00154 <font class="comment"> p &gt;&gt;= 8;</font>
+00155 <font class="comment"> CreatorId = (uint64)(p &amp; 0xff);</font>
+00156 <font class="comment"> p &gt;&gt;= 8;</font>
+00157 <font class="comment"> AgentNumber = (uint64)(p); </font>
+00158 <font class="comment"> }</font>
+00159 <font class="comment"></font>
+00160 <font class="comment"> CAgentNumber(const CAgentNumber &amp;a)</font>
+00161 <font class="comment"> {</font>
+00162 <font class="comment"> CreatorId = a.CreatorId; </font>
+00163 <font class="comment"> DynamicId = a.DynamicId;</font>
+00164 <font class="comment"> AgentNumber = a.AgentNumber;</font>
+00165 <font class="comment"> }</font>
+00166 <font class="comment"></font>
+00168 <font class="comment"> CAgentNumber(NLMISC::IStream &amp;is)</font>
+00169 <font class="comment"> {</font>
+00170 <font class="comment"> uint64 p;</font>
+00171 <font class="comment"> is.serial(p);</font>
+00172 <font class="comment"></font>
+00173 <font class="comment"> DynamicId = (uint64)(p &amp; 0xff);</font>
+00174 <font class="comment"> p &gt;&gt;= 8;</font>
+00175 <font class="comment"> CreatorId = (uint64)(p &amp; 0xff);</font>
+00176 <font class="comment"> p &gt;&gt;= 8;</font>
+00177 <font class="comment"> AgentNumber = (uint64)(p); </font>
+00178 <font class="comment"> }</font>
+00179 <font class="comment"></font>
+00180 <font class="comment"> CAgentNumber(const char *id);</font>
+00181 <font class="comment"></font>
+00183 <font class="comment"></font>
+00184 <font class="comment"> bool operator == (const CAgentNumber &amp;a) const</font>
+00185 <font class="comment"> { </font>
+00186 <font class="comment"> return (AgentNumber == a.AgentNumber &amp;&amp; CreatorId == a.CreatorId); </font>
+00187 <font class="comment"> }</font>
+00188 <font class="comment"> </font>
+00189 <font class="comment"> bool operator &lt; (const CAgentNumber &amp;a) const</font>
+00190 <font class="comment"> { </font>
+00191 <font class="comment"> if(AgentNumber &lt; a.AgentNumber) return true; </font>
+00192 <font class="comment"> else</font>
+00193 <font class="comment"> if(AgentNumber == a.AgentNumber) return (CreatorId &lt; a.CreatorId);</font>
+00194 <font class="comment"></font>
+00195 <font class="comment"> return false;</font>
+00196 <font class="comment"> }</font>
+00197 <font class="comment"></font>
+00198 <font class="comment"> bool operator &gt; (const CAgentNumber &amp;a) const</font>
+00199 <font class="comment"> { </font>
+00200 <font class="comment"> if(AgentNumber &gt; a.AgentNumber) return true; </font>
+00201 <font class="comment"> else</font>
+00202 <font class="comment"> if(AgentNumber == a.AgentNumber) return (CreatorId &gt; a.CreatorId);</font>
+00203 <font class="comment"></font>
+00204 <font class="comment"> return false;</font>
+00205 <font class="comment"> }</font>
+00207 <font class="comment"></font>
+00208 <font class="comment"> const CAgentNumber &amp;operator ++(int)</font>
+00209 <font class="comment"> {</font>
+00210 <font class="comment"> if(AgentNumber &lt; maxResolutionNumer)</font>
+00211 <font class="comment"> {</font>
+00212 <font class="comment"> AgentNumber ++;</font>
+00213 <font class="comment"> }</font>
+00214 <font class="comment"> else</font>
+00215 <font class="comment"> {</font>
+00216 <font class="comment"> throw NLAIE::CExceptionIndexError();</font>
+00217 <font class="comment"> }</font>
+00218 <font class="comment"> return *this;</font>
+00219 <font class="comment"> }</font>
+00220 <font class="comment"></font>
+00221 <font class="comment"> const CAgentNumber &amp;operator = (const CAgentNumber &amp;a)</font>
+00222 <font class="comment"> {</font>
+00223 <font class="comment"> CreatorId = a.CreatorId; </font>
+00224 <font class="comment"> DynamicId = a.DynamicId;</font>
+00225 <font class="comment"> AgentNumber = a.AgentNumber;</font>
+00226 <font class="comment"> return *this;</font>
+00227 <font class="comment"> }</font>
+00228 <font class="comment"></font>
+00229 <font class="comment"> const CAgentNumber &amp;operator = (uint64 p)</font>
+00230 <font class="comment"> { </font>
+00231 <font class="comment"> DynamicId = (uint64)(p &amp; 0xff);</font>
+00232 <font class="comment"> p &gt;&gt;= 8;</font>
+00233 <font class="comment"> CreatorId = (uint64)(p &amp; 0xff);</font>
+00234 <font class="comment"> p &gt;&gt;= 8;</font>
+00235 <font class="comment"> AgentNumber = (uint64)(p);</font>
+00236 <font class="comment"> </font>
+00237 <font class="comment"> return *this;</font>
+00238 <font class="comment"> }</font>
+00239 <font class="comment"></font>
+00240 <font class="comment"> operator uint64 () const</font>
+00241 <font class="comment"> {</font>
+00242 <font class="comment"> uint64 p = AgentNumber;</font>
+00243 <font class="comment"> p &lt;&lt;= 8;</font>
+00244 <font class="comment"> p |= (uint64)CreatorId;</font>
+00245 <font class="comment"> p &lt;&lt;= 8;</font>
+00246 <font class="comment"> p |= (uint64)DynamicId;</font>
+00247 <font class="comment"></font>
+00248 <font class="comment"> return p;</font>
+00249 <font class="comment"> }</font>
+00250 <font class="comment"></font>
+00252 <font class="comment"> virtual void save(NLMISC::IStream &amp;os)</font>
+00253 <font class="comment"> { </font>
+00254 <font class="comment"> uint64 p = AgentNumber;</font>
+00255 <font class="comment"> p &lt;&lt;= 8;</font>
+00256 <font class="comment"> p |= (uint64)CreatorId;</font>
+00257 <font class="comment"> p &lt;&lt;= 8;</font>
+00258 <font class="comment"> p |= (uint64)DynamicId;</font>
+00259 <font class="comment"> os.serial(p); </font>
+00260 <font class="comment"> }</font>
+00261 <font class="comment"></font>
+00263 <font class="comment"> virtual void load(NLMISC::IStream &amp;is)</font>
+00264 <font class="comment"> {</font>
+00265 <font class="comment"> uint64 p;</font>
+00266 <font class="comment"> is.serial(p);</font>
+00267 <font class="comment"></font>
+00268 <font class="comment"> DynamicId = (uint64)(p &amp; 0xff);</font>
+00269 <font class="comment"> p &gt;&gt;= 8;</font>
+00270 <font class="comment"> CreatorId = (uint64)(p &amp; 0xff);</font>
+00271 <font class="comment"> p &gt;&gt;= 8;</font>
+00272 <font class="comment"> AgentNumber = (uint64)(p); </font>
+00273 <font class="comment"></font>
+00274 <font class="comment"> }</font>
+00275 <font class="comment"></font>
+00276 <font class="comment"> </font>
+00278 <font class="comment"> virtual void getDebugString(std::string &amp;str) const; </font>
+00279 <font class="comment"></font>
+00281 <font class="comment"></font>
+00282 <font class="comment"> virtual std::string getClassName()</font>
+00283 <font class="comment"> {</font>
+00284 <font class="comment"> return std::string("&lt;CAgentNumber&gt;");</font>
+00285 <font class="comment"> }</font>
+00286 <font class="comment"></font>
+00287 <font class="comment"> virtual void serial(NLMISC::IStream &amp;f) throw(NLMISC::EStream)</font>
+00288 <font class="comment"> {</font>
+00289 <font class="comment"> if(f.isReading())</font>
+00290 <font class="comment"> {</font>
+00291 <font class="comment"> load(f);</font>
+00292 <font class="comment"> }</font>
+00293 <font class="comment"> else</font>
+00294 <font class="comment"> { </font>
+00295 <font class="comment"> save(f);</font>
+00296 <font class="comment"> }</font>
+00297 <font class="comment"></font>
+00298 <font class="comment"> }</font>
+00300 <font class="comment"></font>
+00301 <font class="comment"> }; */</font>
+00302
+<a name="l00308"></a><a class="code" href="structNLAIAGENT_1_1CIdent.html">00308</a> <font class="keyword">struct </font>CIdent: <font class="keyword">public</font> CAgentNumber
+00309 {
+<a name="l00310"></a><a class="code" href="structNLAIAGENT_1_1CIdent.html#m0">00310</a> std::string <a class="code" href="structNLAIAGENT_1_1CIdent.html#m0">TypeName</a>;
+<a name="l00311"></a><a class="code" href="structNLAIAGENT_1_1CIdent.html#a0">00311</a> <a class="code" href="structNLAIAGENT_1_1CIdent.html#a0">CIdent</a>()
+00312 {
+00313 }
+00314
+<a name="l00315"></a><a class="code" href="structNLAIAGENT_1_1CIdent.html#a1">00315</a> <a class="code" href="structNLAIAGENT_1_1CIdent.html#a0">CIdent</a>(<font class="keyword">const</font> std::string &amp;typeName,<a class="code" href="types__nl_8h.html#a12">uint64</a> <a class="code" href="driver__opengl__extension__def_8h.html#a234">id</a>,<a class="code" href="types__nl_8h.html#a6">uint8</a> creator = <a class="code" href="structNLMISC_1_1CEntityId.html#p0">ServerId</a>,<a class="code" href="types__nl_8h.html#a6">uint8</a> dyn = <a class="code" href="structNLMISC_1_1CEntityId.html#p0">ServerId</a>):<a class="code" href="structNLAIAGENT_1_1CAgentNumber.html#a0">CAgentNumber</a>(<a class="code" href="driver__opengl__extension__def_8h.html#a234">id</a>,creator,dyn),<a class="code" href="structNLAIAGENT_1_1CIdent.html#m0">TypeName</a>(typeName)
+00316 {
+00317 }
+00318
+<a name="l00319"></a><a class="code" href="structNLAIAGENT_1_1CIdent.html#a2">00319</a> <a class="code" href="structNLAIAGENT_1_1CIdent.html#a0">CIdent</a>(<font class="keyword">const</font> std::string &amp;typeName,<font class="keyword">const</font> <a class="code" href="structNLAIAGENT_1_1CAgentNumber.html#a0">CAgentNumber</a> &amp;a):<a class="code" href="structNLAIAGENT_1_1CAgentNumber.html#a0">CAgentNumber</a>(a),<a class="code" href="structNLAIAGENT_1_1CIdent.html#m0">TypeName</a>(typeName)
+00320 {
+00321 }
+00322
+<a name="l00323"></a><a class="code" href="structNLAIAGENT_1_1CIdent.html#a3">00323</a> <a class="code" href="structNLAIAGENT_1_1CIdent.html#a0">CIdent</a>(<font class="keyword">const</font> <a class="code" href="structNLAIAGENT_1_1CIdent.html#a0">CIdent</a> &amp;a):<a class="code" href="structNLAIAGENT_1_1CAgentNumber.html#a0">CAgentNumber</a>(a),<a class="code" href="structNLAIAGENT_1_1CIdent.html#m0">TypeName</a>(a.<a class="code" href="structNLAIAGENT_1_1CIdent.html#m0">TypeName</a>)
+00324 {
+00325 }
+00326
+<a name="l00328"></a><a class="code" href="structNLAIAGENT_1_1CIdent.html#a4">00328</a> <a class="code" href="structNLAIAGENT_1_1CIdent.html#a0">CIdent</a>(<a class="code" href="classNLMISC_1_1IStream.html">NLMISC::IStream</a> &amp;is):<a class="code" href="structNLAIAGENT_1_1CAgentNumber.html#a0">CAgentNumber</a>(is)
+00329 {
+00330 std::string <a class="code" href="driver__opengl__extension__def_8h.html#a260">s</a>;
+00331 is.serial(<a class="code" href="driver__opengl__extension__def_8h.html#a260">s</a>);
+00332 <a class="code" href="structNLAIAGENT_1_1CIdent.html#m0">TypeName</a> = <a class="code" href="driver__opengl__extension__def_8h.html#a260">s</a>;
+00333 }
+00334
+<a name="l00335"></a><a class="code" href="structNLAIAGENT_1_1CIdent.html#a5">00335</a> <font class="keyword">virtual</font> <a class="code" href="structNLAIAGENT_1_1CIdent.html#a5">~CIdent</a>() {}
+00336
+<a name="l00337"></a><a class="code" href="structNLAIAGENT_1_1CIdent.html#a6">00337</a> <font class="keywordtype">bool</font> <a class="code" href="structNLAIAGENT_1_1CIdent.html#a6">operator == </a>(<font class="keyword">const</font> <a class="code" href="structNLAIAGENT_1_1CIdent.html#a0">CIdent</a> &amp;a)<font class="keyword"> const</font>
+00338 <font class="keyword"> </font>{
+00339 <font class="keywordflow">if</font>(<a class="code" href="structNLAIAGENT_1_1CIdent.html#m0">TypeName</a> == a.TypeName)
+00340 {
+00341 <font class="keywordflow">return</font> CAgentNumber::operator == (a);
+00342 }
+00343 <font class="keywordflow">return</font> <font class="keyword">false</font>;
+00344 }
+00345
+<a name="l00346"></a><a class="code" href="structNLAIAGENT_1_1CIdent.html#a7">00346</a> <font class="keywordtype">bool</font> <a class="code" href="structNLAIAGENT_1_1CIdent.html#a7">operator &lt; </a>(<font class="keyword">const</font> <a class="code" href="structNLAIAGENT_1_1CIdent.html#a0">CIdent</a> &amp;a)<font class="keyword"> const</font>
+00347 <font class="keyword"> </font>{
+00348 <font class="keywordflow">return</font> <a class="code" href="structNLAIAGENT_1_1CIdent.html#m0">TypeName</a> &lt; a.TypeName;
+00349 }
+00350
+<a name="l00351"></a><a class="code" href="structNLAIAGENT_1_1CIdent.html#a8">00351</a> <font class="keywordtype">bool</font> <a class="code" href="structNLAIAGENT_1_1CIdent.html#a8">operator &gt; </a>(<font class="keyword">const</font> <a class="code" href="structNLAIAGENT_1_1CIdent.html#a0">CIdent</a> &amp;a)<font class="keyword"> const</font>
+00352 <font class="keyword"> </font>{
+00353 <font class="keywordflow">return</font> !(<a class="code" href="structNLAIAGENT_1_1CIdent.html#m0">TypeName</a> &lt; a.TypeName);
+00354 }
+00355
+00356
+<a name="l00357"></a><a class="code" href="structNLAIAGENT_1_1CIdent.html#a9">00357</a> <font class="keyword">const</font> <a class="code" href="structNLAIAGENT_1_1CIdent.html#a0">CIdent</a> &amp;<a class="code" href="structNLAIAGENT_1_1CIdent.html#a9">operator = </a>(<font class="keyword">const</font> <a class="code" href="structNLAIAGENT_1_1CIdent.html#a0">CIdent</a> &amp;a)
+00358 {
+00359 CAgentNumber::operator = (a);
+00360 <a class="code" href="structNLAIAGENT_1_1CIdent.html#m0">TypeName</a> = a.TypeName;
+00361 <font class="keywordflow">return</font> *<font class="keyword">this</font>;
+00362 }
+00363
+<a name="l00365"></a><a class="code" href="structNLAIAGENT_1_1CIdent.html#a10">00365</a> <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="structNLAIAGENT_1_1CIdent.html#a10">save</a>(<a class="code" href="classNLMISC_1_1IStream.html">NLMISC::IStream</a> &amp;os)
+00366 {
+00367 CAgentNumber::save(os);
+00368 os.<a class="code" href="classNLMISC_1_1IStream.html#a5">serial</a>(<a class="code" href="structNLAIAGENT_1_1CIdent.html#m0">TypeName</a>);
+00369 }
+00370
+<a name="l00372"></a><a class="code" href="structNLAIAGENT_1_1CIdent.html#a11">00372</a> <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="structNLAIAGENT_1_1CIdent.html#a11">load</a>(<a class="code" href="classNLMISC_1_1IStream.html">NLMISC::IStream</a> &amp;is)
+00373 {
+00374 CAgentNumber::load(is);
+00375 std::string <a class="code" href="driver__opengl__extension__def_8h.html#a260">s</a>;
+00376 is.<a class="code" href="classNLMISC_1_1IStream.html#a5">serial</a>(<a class="code" href="driver__opengl__extension__def_8h.html#a260">s</a>);
+00377 <a class="code" href="structNLAIAGENT_1_1CIdent.html#m0">TypeName</a> = <a class="code" href="driver__opengl__extension__def_8h.html#a260">s</a>;
+00378 }
+00379
+00380
+00381
+<a name="l00383"></a><a class="code" href="structNLAIAGENT_1_1CIdent.html#a12">00383</a> <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="structNLAIAGENT_1_1CIdent.html#a12">getDebugString</a>(std::string &amp;str)<font class="keyword"> const</font>
+00384 <font class="keyword"> </font>{
+00385 CAgentNumber::getDebugString(str);
+00386 str += <a class="code" href="namespaceNLAIC.html#a5">NLAIC::stringGetBuild</a>(<font class="stringliteral">" '%s'"</font>,<a class="code" href="structNLAIAGENT_1_1CIdent.html#m0">TypeName</a>.data());
+00387 }
+00388
+<a name="l00389"></a><a class="code" href="structNLAIAGENT_1_1CIdent.html#a13">00389</a> <font class="keyword">const</font> std::string &amp;<a class="code" href="structNLAIAGENT_1_1CIdent.html#a13">getTypeName</a>()<font class="keyword"> const</font>
+00390 <font class="keyword"> </font>{
+00391 <font class="keywordflow">return</font> <a class="code" href="structNLAIAGENT_1_1CIdent.html#m0">TypeName</a>;
+00392 }
+00393 };
+00394 }
+00395 <font class="preprocessor">#endif</font>
+</pre></div>
+
+<!-- footer -->
+<BR><FONT Size=+5>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </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>