diff options
Diffstat (limited to '')
-rw-r--r-- | docs/doxygen/nel/a02649.html | 2238 |
1 files changed, 2238 insertions, 0 deletions
diff --git a/docs/doxygen/nel/a02649.html b/docs/doxygen/nel/a02649.html new file mode 100644 index 00000000..063efb8a --- /dev/null +++ b/docs/doxygen/nel/a02649.html @@ -0,0 +1,2238 @@ +<!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: NLAIAGENT::CIdent struct Reference</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 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">Data Structures</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">Data Fields</a> | <a class="qindex" href="globals.html">Globals</a> | <a class="qindex" href="pages.html">Related Pages</a> | <span class="search"><u>S</u>earch for <input class="search" type="text" name="query" value="" size="20" accesskey="s"/></span></form></div> +<h1>NLAIAGENT::CIdent Struct Reference</h1><code>#include <<a class="el" href="a05805.html">identtype.h</a>></code> +<p> +<p>Inheritance diagram for NLAIAGENT::CIdent: +<p><center><img src="a02649.png" usemap="#NLAIAGENT::CIdent_map" border="0" alt=""></center> +<map name="NLAIAGENT::CIdent_map"> +<area href="a02188.html" alt="NLAIAGENT::CAgentNumber" shape="rect" coords="0,56,174,80"> +<area href="a02189.html" alt="NLMISC::CEntityId" shape="rect" coords="0,0,174,24"> +</map> +<hr><a name="_details"></a><h2>Detailed Description</h2> +Complete reference of an agent. Name of the class of the type of object. Ident of the agent. +<p> + +<p> +Definition at line <a class="el" href="a05805.html#l00312">312</a> of file <a class="el" href="a05805.html">identtype.h</a>.<table border=0 cellpadding=0 cellspacing=0> +<tr><td></td></tr> +<tr><td colspan=2><br><h2>Public Types</h2></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>enum </td><td class="memItemRight" valign=bottom>{ <br> + <a class="el" href="a02189.html#NLAIAGENT_1_1CIdentw0NLAIAGENT_1_1CIdentw2">DYNAMIC_ID_SIZE</a> = 11, +<a class="el" href="a02189.html#NLAIAGENT_1_1CIdentw0NLAIAGENT_1_1CIdentw1">CREATOR_ID_SIZE</a> = 8, +<a class="el" href="a02189.html#NLAIAGENT_1_1CIdentw0NLAIAGENT_1_1CIdentw4">TYPE_SIZE</a> = 5, +<a class="el" href="a02189.html#NLAIAGENT_1_1CIdentw0NLAIAGENT_1_1CIdentw3">ID_SIZE</a> = 40, +<br> + <a class="el" href="a02189.html#NLAIAGENT_1_1CIdentw0NLAIAGENT_1_1CIdentw5">UNKNOWN_TYPE</a> = (1 << TYPE_SIZE)-1 +<br> + }</td></tr> + +<tr><td colspan=2><br><h2>Public Member Functions</h2></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a13">uint64</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02189.html#NLAIAGENT_1_1CIdenta0">asUint64</a> () const </td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top> </td><td class="memItemRight" valign=bottom><a class="el" href="a02649.html#NLAIAGENT_1_1CIdenta1">CIdent</a> (<a class="el" href="a02270.html">NLMISC::IStream</a> &is)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">fill from read stream. <a href="#NLAIAGENT_1_1CIdenta1"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top> </td><td class="memItemRight" valign=bottom><a class="el" href="a02649.html#NLAIAGENT_1_1CIdenta2">CIdent</a> (const <a class="el" href="a02649.html">CIdent</a> &a)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top> </td><td class="memItemRight" valign=bottom><a class="el" href="a02649.html#NLAIAGENT_1_1CIdenta3">CIdent</a> (const std::string &typeName, const <a class="el" href="a02188.html">CAgentNumber</a> &a)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top> </td><td class="memItemRight" valign=bottom><a class="el" href="a02649.html#NLAIAGENT_1_1CIdenta4">CIdent</a> (const std::string &typeName, <a class="el" href="a04558.html#a13">uint64</a> <a class="el" href="a04223.html#a564">id</a>, <a class="el" href="a04558.html#a7">uint8</a> creator=<a class="el" href="a02189.html#NLAIAGENT_1_1CIdentt1">_ServerId</a>, <a class="el" href="a04558.html#a7">uint8</a> dyn=<a class="el" href="a02189.html#NLAIAGENT_1_1CIdentt1">_ServerId</a>)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top> </td><td class="memItemRight" valign=bottom><a class="el" href="a02649.html#NLAIAGENT_1_1CIdenta5">CIdent</a> ()</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02189.html#NLAIAGENT_1_1CIdenta6">fromString</a> (const char *str)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Read from a debug string, use the same format as <a class="el" href="a02189.html#NLAIAGENT_1_1CIdenta31">toString()</a> (id:type:creator:dynamic) in hexadecimal. <a href="#NLAIAGENT_1_1CIdenta6"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a7">uint8</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02189.html#NLAIAGENT_1_1CIdenta7">getCreatorId</a> () const </td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the persistent creator id. <a href="#NLAIAGENT_1_1CIdenta7"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="a02649.html#NLAIAGENT_1_1CIdenta8">getDebugString</a> (std::string &str) const </td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Have a debug string. <a href="#NLAIAGENT_1_1CIdenta8"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a7">uint8</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02189.html#NLAIAGENT_1_1CIdenta9">getDynamicId</a> () const </td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the variable routing info. <a href="#NLAIAGENT_1_1CIdenta9"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a13">uint64</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02189.html#NLAIAGENT_1_1CIdenta10">getRawId</a> () const </td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the full id. <a href="#NLAIAGENT_1_1CIdenta10"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a13">uint64</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02189.html#NLAIAGENT_1_1CIdenta11">getShortId</a> () const </td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the local entity number. <a href="#NLAIAGENT_1_1CIdenta11"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a7">uint8</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02189.html#NLAIAGENT_1_1CIdenta12">getType</a> () const </td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the entity type. <a href="#NLAIAGENT_1_1CIdenta12"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>const std::string & </td><td class="memItemRight" valign=bottom><a class="el" href="a02649.html#NLAIAGENT_1_1CIdenta13">getTypeName</a> () const </td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a13">uint64</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02189.html#NLAIAGENT_1_1CIdenta14">getUniqueId</a> () const </td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the persistent part of the entity id (the dynamic part in the returned id is 0). <a href="#NLAIAGENT_1_1CIdenta14"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="a02188.html#NLAIAGENT_1_1CIdenta15">isAgentId</a> () const </td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="a02189.html#NLAIAGENT_1_1CIdenta16">isUnknownId</a> () const </td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Test if the entity id is Unknown. <a href="#NLAIAGENT_1_1CIdenta16"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="a02649.html#NLAIAGENT_1_1CIdenta17">load</a> (<a class="el" href="a02270.html">NLMISC::IStream</a> &is)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">loading the nomber from an input stream. <a href="#NLAIAGENT_1_1CIdenta17"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>const CEntityId & </td><td class="memItemRight" valign=bottom><a class="el" href="a02189.html#NLAIAGENT_1_1CIdenta18">operator++</a> (int)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual bool </td><td class="memItemRight" valign=bottom><a class="el" href="a02188.html#NLAIAGENT_1_1CIdenta19">operator<</a> (const <a class="el" href="a02189.html">NLMISC::CEntityId</a> &a) const </td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="a02649.html#NLAIAGENT_1_1CIdenta20">operator<</a> (const <a class="el" href="a02649.html">CIdent</a> &a) const </td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>const <a class="el" href="a02649.html">CIdent</a> & </td><td class="memItemRight" valign=bottom><a class="el" href="a02649.html#NLAIAGENT_1_1CIdenta21">operator=</a> (const <a class="el" href="a02649.html">CIdent</a> &a)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="a02649.html#NLAIAGENT_1_1CIdenta22">operator==</a> (const <a class="el" href="a02649.html">CIdent</a> &a) const </td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="a02649.html#NLAIAGENT_1_1CIdenta23">operator></a> (const <a class="el" href="a02649.html">CIdent</a> &a) const </td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="a02649.html#NLAIAGENT_1_1CIdenta24">save</a> (<a class="el" href="a02270.html">NLMISC::IStream</a> &os)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">saving the nomber in an output stream. <a href="#NLAIAGENT_1_1CIdenta24"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02189.html#NLAIAGENT_1_1CIdenta25">serial</a> (<a class="el" href="a02270.html">NLMISC::IStream</a> &f) throw (NLMISC::EStream)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02189.html#NLAIAGENT_1_1CIdenta26">setCreatorId</a> (<a class="el" href="a04558.html#a7">uint8</a> creatorId)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Set the persistent creator id. <a href="#NLAIAGENT_1_1CIdenta26"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02189.html#NLAIAGENT_1_1CIdenta27">setDynamicId</a> (<a class="el" href="a04558.html#a7">uint8</a> dynId)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Set the variable routing info. <a href="#NLAIAGENT_1_1CIdenta27"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02189.html#NLAIAGENT_1_1CIdenta28">setShortId</a> (<a class="el" href="a04558.html#a13">uint64</a> shortId)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Set the local entity number. <a href="#NLAIAGENT_1_1CIdenta28"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02189.html#NLAIAGENT_1_1CIdenta29">setType</a> (<a class="el" href="a04558.html#a7">uint8</a> <a class="el" href="a04223.html#a581">type</a>)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Set the entity type. <a href="#NLAIAGENT_1_1CIdenta29"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02188.html#NLAIAGENT_1_1CIdenta30">setTypeAt</a> (<a class="el" href="a04558.html#a13">uint64</a> <a class="el" href="a04223.html#a627">t</a>)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">That function allow user to change the 7 bit of the type field in the sid agent number; We don't touche at the 8e bits. <a href="#NLAIAGENT_1_1CIdenta30"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>std::string </td><td class="memItemRight" valign=bottom><a class="el" href="a02189.html#NLAIAGENT_1_1CIdenta31">toString</a> () const </td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">return a string in form "(a:b:c:d)" where a,b,c,d are components of entity id. <a href="#NLAIAGENT_1_1CIdenta31"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual </td><td class="memItemRight" valign=bottom><a class="el" href="a02649.html#NLAIAGENT_1_1CIdenta32">~CIdent</a> ()</td></tr> + +<tr><td colspan="2"><div class="groupHeader">comparison of two CEntityId.</div></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="a02189.html#NLAIAGENT_1_1CIdentz1941_0">operator!=</a> (const CEntityId &a) const </td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="a02189.html#NLAIAGENT_1_1CIdentz1941_1">operator<</a> (const CEntityId &a) const </td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="a02189.html#NLAIAGENT_1_1CIdentz1941_2">operator==</a> (const CEntityId &a) const </td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="a02189.html#NLAIAGENT_1_1CIdentz1941_3">operator></a> (const CEntityId &a) const </td></tr> + +<tr><td colspan="2"><div class="groupHeader">comparison of two CEntityId.</div></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="a02189.html#NLAIAGENT_1_1CIdentz1941_0">operator!=</a> (const CEntityId &a) const </td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="a02189.html#NLAIAGENT_1_1CIdentz1941_1">operator<</a> (const CEntityId &a) const </td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="a02189.html#NLAIAGENT_1_1CIdentz1941_2">operator==</a> (const CEntityId &a) const </td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="a02189.html#NLAIAGENT_1_1CIdentz1941_3">operator></a> (const CEntityId &a) const </td></tr> + +<tr><td colspan="2"><div class="groupHeader">comparison of two CEntityId.</div></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="a02189.html#NLAIAGENT_1_1CIdentz1941_0">operator!=</a> (const CEntityId &a) const </td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="a02189.html#NLAIAGENT_1_1CIdentz1941_1">operator<</a> (const CEntityId &a) const </td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="a02189.html#NLAIAGENT_1_1CIdentz1941_2">operator==</a> (const CEntityId &a) const </td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="a02189.html#NLAIAGENT_1_1CIdentz1941_3">operator></a> (const CEntityId &a) const </td></tr> + +<tr><td colspan=2><br><h2>Static Public Member Functions</h2></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>CEntityId </td><td class="memItemRight" valign=bottom><a class="el" href="a02189.html#NLAIAGENT_1_1CIdente0">getNewEntityId</a> (<a class="el" href="a04558.html#a7">uint8</a> <a class="el" href="a04223.html#a581">type</a>)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Generator of entity ids. <a href="#NLAIAGENT_1_1CIdente0"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02189.html#NLAIAGENT_1_1CIdente1">setServiceId</a> (<a class="el" href="a04558.html#a7">uint8</a> sid)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Set the service id for the generator. <a href="#NLAIAGENT_1_1CIdente1"></a><br><br></td></tr> +<tr><td colspan=2><br><h2>Data Fields</h2></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>std::string </td><td class="memItemRight" valign=bottom><a class="el" href="a02649.html#NLAIAGENT_1_1CIdento0">TypeName</a></td></tr> + +<tr><td colspan=2><br><h2>Static Public Attributes</h2></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>const <a class="el" href="a04558.html#a7">uint8</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02188.html#NLAIAGENT_1_1CIdents0">AgentTypeBit</a> = 0x80</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>const <a class="el" href="a04558.html#a13">uint64</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02189.html#NLAIAGENT_1_1CIdents1">MaxEntityId</a> = ((<a class="el" href="a04558.html#a13">uint64</a>)1 << (CEntityId::ID_SIZE + 1)) - (<a class="el" href="a04558.html#a13">uint64</a>)1</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">The maximume of number that we could generate without generate an overtaking exception. <a href="#NLAIAGENT_1_1CIdents1"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>const CEntityId </td><td class="memItemRight" valign=bottom><a class="el" href="a02189.html#NLAIAGENT_1_1CIdents2">Unknown</a></td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Unknow <a class="el" href="a02189.html">CEntityId</a> is similar as an NULL pointer. <a href="#NLAIAGENT_1_1CIdents2"></a><br><br></td></tr> +<tr><td colspan=2><br><h2>Static Protected Attributes</h2></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a02189.html">NLMISC::CEntityId</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02189.html#NLAIAGENT_1_1CIdentt0">_NextEntityId</a></td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Counter for generation of unique entity ids. <a href="#NLAIAGENT_1_1CIdentt0"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a7">uint8</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02189.html#NLAIAGENT_1_1CIdentt1">_ServerId</a> = 0</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">The local num service id of the local machin. <a href="#NLAIAGENT_1_1CIdentt1"></a><br><br></td></tr> +</table> +<hr><h2>Member Enumeration Documentation</h2> +<a class="anchor" name="NLAIAGENT_1_1CIdentw0" doxytag="NLAIAGENT::CIdent::@67" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> anonymous enum<code> [inherited]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +<dl compact><dt><b>Enumeration values: </b></dt><dd> +<table border=0 cellspacing=2 cellpadding=0> +<tr><td valign=top><em><a class="anchor" name="NLAIAGENT_1_1CIdentw0NLAIAGENT_1_1CIdentw2" doxytag="DYNAMIC_ID_SIZE" ></a>DYNAMIC_ID_SIZE</em> </td><td> +</td></tr> +<tr><td valign=top><em><a class="anchor" name="NLAIAGENT_1_1CIdentw0NLAIAGENT_1_1CIdentw1" doxytag="CREATOR_ID_SIZE" ></a>CREATOR_ID_SIZE</em> </td><td> +</td></tr> +<tr><td valign=top><em><a class="anchor" name="NLAIAGENT_1_1CIdentw0NLAIAGENT_1_1CIdentw4" doxytag="TYPE_SIZE" ></a>TYPE_SIZE</em> </td><td> +</td></tr> +<tr><td valign=top><em><a class="anchor" name="NLAIAGENT_1_1CIdentw0NLAIAGENT_1_1CIdentw3" doxytag="ID_SIZE" ></a>ID_SIZE</em> </td><td> +</td></tr> +<tr><td valign=top><em><a class="anchor" name="NLAIAGENT_1_1CIdentw0NLAIAGENT_1_1CIdentw5" doxytag="UNKNOWN_TYPE" ></a>UNKNOWN_TYPE</em> </td><td> +</td></tr> +</table> +</dl> + +<p> +Definition at line <a class="el" href="a05673.html#l00045">45</a> of file <a class="el" href="a05673.html">entity_id.h</a>. +<p> +<div class="fragment"><pre>00046 { +00047 <a class="code" href="a02189.html#NLAIAGENT_1_1CIdentw0NLAIAGENT_1_1CIdentw2">DYNAMIC_ID_SIZE</a> = 11, +00048 <a class="code" href="a02189.html#NLAIAGENT_1_1CIdentw0NLAIAGENT_1_1CIdentw1">CREATOR_ID_SIZE</a> = 8, +00049 <a class="code" href="a02189.html#NLAIAGENT_1_1CIdentw0NLAIAGENT_1_1CIdentw4">TYPE_SIZE</a> = 5, +00050 <a class="code" href="a02189.html#NLAIAGENT_1_1CIdentw0NLAIAGENT_1_1CIdentw3">ID_SIZE</a> = 40, +00051 <a class="code" href="a02189.html#NLAIAGENT_1_1CIdentw0NLAIAGENT_1_1CIdentw5">UNKNOWN_TYPE</a> = (1 << TYPE_SIZE)-1 +00052 }; +</pre></div> </td> + </tr> +</table> +<hr><h2>Constructor & Destructor Documentation</h2> +<a class="anchor" name="NLAIAGENT_1_1CIdenta5" doxytag="NLAIAGENT::CIdent::CIdent" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> NLAIAGENT::CIdent::CIdent </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05805.html#l00315">315</a> of file <a class="el" href="a05805.html">identtype.h</a>. +<p> +<div class="fragment"><pre>00316 { +00317 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLAIAGENT_1_1CIdenta4" doxytag="NLAIAGENT::CIdent::CIdent" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> NLAIAGENT::CIdent::CIdent </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const std::string & </td> + <td class="mdname" nowrap> <em>typeName</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap><a class="el" href="a04558.html#a13">uint64</a> </td> + <td class="mdname" nowrap> <em>id</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap><a class="el" href="a04558.html#a7">uint8</a> </td> + <td class="mdname" nowrap> <em>creator</em> = <a class="el" href="a02189.html#NLAIAGENT_1_1CIdentt1">_ServerId</a>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap><a class="el" href="a04558.html#a7">uint8</a> </td> + <td class="mdname" nowrap> <em>dyn</em> = <a class="el" href="a02189.html#NLAIAGENT_1_1CIdentt1">_ServerId</a></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"><code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05805.html#l00319">319</a> of file <a class="el" href="a05805.html">identtype.h</a>. +<p> +References <a class="el" href="a05646.html#l00221">id</a>, <a class="el" href="a05805.html#l00314">TypeName</a>, <a class="el" href="a05981.html#l00102">uint64</a>, and <a class="el" href="a05981.html#l00096">uint8</a>. +<p> +<div class="fragment"><pre>00319 :<a class="code" href="a02188.html#NLAIAGENT_1_1CAgentNumbera8">CAgentNumber</a>(<span class="keywordtype">id</span>,creator,dyn),<a class="code" href="a02649.html#NLAIAGENT_1_1CIdento0">TypeName</a>(typeName) +00320 { +00321 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLAIAGENT_1_1CIdenta3" doxytag="NLAIAGENT::CIdent::CIdent" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> NLAIAGENT::CIdent::CIdent </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const std::string & </td> + <td class="mdname" nowrap> <em>typeName</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap>const <a class="el" href="a02188.html">CAgentNumber</a> & </td> + <td class="mdname" nowrap> <em>a</em></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"><code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05805.html#l00323">323</a> of file <a class="el" href="a05805.html">identtype.h</a>. +<p> +References <a class="el" href="a05805.html#l00314">TypeName</a>. +<p> +<div class="fragment"><pre>00323 :<a class="code" href="a02188.html#NLAIAGENT_1_1CAgentNumbera8">CAgentNumber</a>(a),<a class="code" href="a02649.html#NLAIAGENT_1_1CIdento0">TypeName</a>(typeName) +00324 { +00325 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLAIAGENT_1_1CIdenta2" doxytag="NLAIAGENT::CIdent::CIdent" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> NLAIAGENT::CIdent::CIdent </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const <a class="el" href="a02649.html">CIdent</a> & </td> + <td class="mdname1" valign="top" nowrap> <em>a</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05805.html#l00327">327</a> of file <a class="el" href="a05805.html">identtype.h</a>. +<p> +References <a class="el" href="a05805.html#l00314">TypeName</a>. +<p> +<div class="fragment"><pre>00327 :<a class="code" href="a02188.html#NLAIAGENT_1_1CAgentNumbera8">CAgentNumber</a>(a),<a class="code" href="a02649.html#NLAIAGENT_1_1CIdento0">TypeName</a>(a.TypeName) +00328 { +00329 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLAIAGENT_1_1CIdenta1" doxytag="NLAIAGENT::CIdent::CIdent" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> NLAIAGENT::CIdent::CIdent </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a02270.html">NLMISC::IStream</a> & </td> + <td class="mdname1" valign="top" nowrap> <em>is</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +fill from read stream. +<p> + +<p> +Definition at line <a class="el" href="a05805.html#l00332">332</a> of file <a class="el" href="a05805.html">identtype.h</a>. +<p> +References <a class="el" href="a05646.html#l00977">s</a>, <a class="el" href="a06462.html#l00232">NLMISC::IStream::serial()</a>, and <a class="el" href="a05805.html#l00314">TypeName</a>. +<p> +<div class="fragment"><pre>00332 :<a class="code" href="a02188.html#NLAIAGENT_1_1CAgentNumbera8">CAgentNumber</a>(is) +00333 { +00334 std::string <a class="code" href="a04223.html#a626">s</a>; +00335 is.<a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(s); +00336 <a class="code" href="a02649.html#NLAIAGENT_1_1CIdento0">TypeName</a> = <a class="code" href="a04223.html#a626">s</a>; +00337 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLAIAGENT_1_1CIdenta32" doxytag="NLAIAGENT::CIdent::~CIdent" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> virtual NLAIAGENT::CIdent::~<a class="el" href="a02649.html">CIdent</a> </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline, virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05805.html#l00339">339</a> of file <a class="el" href="a05805.html">identtype.h</a>. +<p> +<div class="fragment"><pre>00339 {} +</pre></div> </td> + </tr> +</table> +<hr><h2>Member Function Documentation</h2> +<a class="anchor" name="NLAIAGENT_1_1CIdenta0" doxytag="NLAIAGENT::CIdent::asUint64" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a13">uint64</a> NLMISC::CEntityId::asUint64 </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> const<code> [inline, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05673.html#l00401">401</a> of file <a class="el" href="a05673.html">entity_id.h</a>. +<p> +References <a class="el" href="a05673.html#l00073">NLMISC::CEntityId::FullId</a>, and <a class="el" href="a05981.html#l00102">uint64</a>. +<p> +<div class="fragment"><pre>00402 { +00403 <span class="keywordflow">return</span> <a class="code" href="a02189.html#NLAIAGENT_1_1CIdentp3">FullId</a>; +00404 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLAIAGENT_1_1CIdenta6" doxytag="NLAIAGENT::CIdent::fromString" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NLMISC::CEntityId::fromString </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const char * </td> + <td class="mdname1" valign="top" nowrap> <em>str</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Read from a debug string, use the same format as <a class="el" href="a02189.html#NLAIAGENT_1_1CIdenta31">toString()</a> (id:type:creator:dynamic) in hexadecimal. +<p> + +<p> +Definition at line <a class="el" href="a05673.html#l00488">488</a> of file <a class="el" href="a05673.html">entity_id.h</a>. +<p> +References <a class="el" href="a02189.html#NLAIAGENT_1_1CIdentp1">NLMISC::CEntityId::DetailedId</a>, <a class="el" href="a05981.html#l00107">NL_I64</a>, <a class="el" href="a05646.html#l00244">type</a>, <a class="el" href="a05981.html#l00105">uint</a>, and <a class="el" href="a05981.html#l00102">uint64</a>. +<p> +Referenced by <a class="el" href="a05673.html#l00195">NLMISC::CEntityId::CEntityId()</a>, and <a class="el" href="a06645.html#l01892">NLNET::createMessage()</a>. +<p> +<div class="fragment"><pre>00490 { +00491 <a class="code" href="a04558.html#a13">uint64</a> <span class="keywordtype">id</span>; +00492 <a class="code" href="a04558.html#a15">uint</a> <a class="code" href="a04223.html#a581">type</a>; +00493 <a class="code" href="a04558.html#a15">uint</a> creatorId; +00494 <a class="code" href="a04558.html#a15">uint</a> dynamicId; +00495 +00496 <span class="keywordflow">if</span> (sscanf(str, <span class="stringliteral">"(%"</span>NL_I64<span class="stringliteral">"x:%x:%x:%x)"</span>, &<span class="keywordtype">id</span>, &type, &creatorId, &dynamicId) != 4) +00497 { +00498 *<span class="keyword">this</span> = <a class="code" href="a02189.html#NLAIAGENT_1_1CIdents2">Unknown</a>; +00499 <span class="keywordflow">return</span>; +00500 } +00501 +00502 <a class="code" href="a02189.html#NLAIAGENT_1_1CIdentp1">DetailedId</a>.Id = <span class="keywordtype">id</span>; +00503 <a class="code" href="a02189.html#NLAIAGENT_1_1CIdentp1">DetailedId</a>.Type = <a class="code" href="a04223.html#a581">type</a>; +00504 <a class="code" href="a02189.html#NLAIAGENT_1_1CIdentp1">DetailedId</a>.CreatorId = creatorId; +00505 <a class="code" href="a02189.html#NLAIAGENT_1_1CIdentp1">DetailedId</a>.DynamicId = dynamicId; +00506 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLAIAGENT_1_1CIdenta7" doxytag="NLAIAGENT::CIdent::getCreatorId" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a7">uint8</a> NLMISC::CEntityId::getCreatorId </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> const<code> [inline, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Get the persistent creator id. +<p> + +<p> +Definition at line <a class="el" href="a05673.html#l00245">245</a> of file <a class="el" href="a05673.html">entity_id.h</a>. +<p> +References <a class="el" href="a02189.html#NLAIAGENT_1_1CIdentp1">NLMISC::CEntityId::DetailedId</a>, and <a class="el" href="a05981.html#l00096">uint8</a>. +<p> +Referenced by <a class="el" href="a05805.html#l00090">NLAIAGENT::CAgentNumber::operator<()</a>. +<p> +<div class="fragment"><pre>00246 { +00247 <span class="keywordflow">return</span> <a class="code" href="a02189.html#NLAIAGENT_1_1CIdentp1">DetailedId</a>.CreatorId; +00248 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLAIAGENT_1_1CIdenta8" doxytag="NLAIAGENT::CIdent::getDebugString" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> virtual void NLAIAGENT::CIdent::getDebugString </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">std::string & </td> + <td class="mdname1" valign="top" nowrap> <em>str</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> const<code> [inline, virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Have a debug string. +<p> + +<p> +Reimplemented from <a class="el" href="a02189.html#NLMISC_1_1CEntityIda3">NLMISC::CEntityId</a>. +<p> +Definition at line <a class="el" href="a05805.html#l00387">387</a> of file <a class="el" href="a05805.html">identtype.h</a>. +<p> +References <a class="el" href="a05804.html#l00079">NLAIC::stringGetBuild()</a>, and <a class="el" href="a05805.html#l00314">TypeName</a>. +<p> +<div class="fragment"><pre>00388 { +00389 CAgentNumber::getDebugString(str); +00390 str += <a class="code" href="a05365.html#a8">NLAIC::stringGetBuild</a>(<span class="stringliteral">" '%s'"</span>,<a class="code" href="a02649.html#NLAIAGENT_1_1CIdento0">TypeName</a>.data()); +00391 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLAIAGENT_1_1CIdenta9" doxytag="NLAIAGENT::CIdent::getDynamicId" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a7">uint8</a> NLMISC::CEntityId::getDynamicId </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> const<code> [inline, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Get the variable routing info. +<p> + +<p> +Definition at line <a class="el" href="a05673.html#l00233">233</a> of file <a class="el" href="a05673.html">entity_id.h</a>. +<p> +References <a class="el" href="a02189.html#NLAIAGENT_1_1CIdentp1">NLMISC::CEntityId::DetailedId</a>, and <a class="el" href="a05981.html#l00096">uint8</a>. +<p> +Referenced by <a class="el" href="a05805.html#l00090">NLAIAGENT::CAgentNumber::operator<()</a>. +<p> +<div class="fragment"><pre>00234 { +00235 <span class="keywordflow">return</span> <a class="code" href="a02189.html#NLAIAGENT_1_1CIdentp1">DetailedId</a>.DynamicId; +00236 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLAIAGENT_1_1CIdente0" doxytag="NLAIAGENT::CIdent::getNewEntityId" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> CEntityId NLMISC::CEntityId::getNewEntityId </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a7">uint8</a> </td> + <td class="mdname1" valign="top" nowrap> <em>type</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline, static, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Generator of entity ids. +<p> + +<p> +Definition at line <a class="el" href="a05673.html#l00109">109</a> of file <a class="el" href="a05673.html">entity_id.h</a>. +<p> +References <a class="el" href="a05672.html#l00036">NLMISC::CEntityId::_NextEntityId</a>, <a class="el" href="a05622.html#l00290">nlassert</a>, <a class="el" href="a05673.html#l00263">NLMISC::CEntityId::setType()</a>, <a class="el" href="a05646.html#l00244">type</a>, and <a class="el" href="a05981.html#l00096">uint8</a>. +<p> +<div class="fragment"><pre>00110 { +00111 <a class="code" href="a04199.html#a6">nlassert</a>(_NextEntityId != Unknown ); <span class="comment">// type may be Unknown, so isUnknownId() would return true</span> +00112 <a class="code" href="a02189.html">NLMISC::CEntityId</a> <span class="keywordtype">id</span> = <a class="code" href="a02189.html#NLAIAGENT_1_1CIdentt0">_NextEntityId</a>++; +00113 <span class="keywordtype">id</span>.<a class="code" href="a02189.html#NLAIAGENT_1_1CIdenta29">setType</a>( type ); +00114 <span class="keywordflow">return</span> <span class="keywordtype">id</span>; +00115 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLAIAGENT_1_1CIdenta10" doxytag="NLAIAGENT::CIdent::getRawId" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a13">uint64</a> NLMISC::CEntityId::getRawId </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> const<code> [inline, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Get the full id. +<p> + +<p> +Definition at line <a class="el" href="a05673.html#l00212">212</a> of file <a class="el" href="a05673.html">entity_id.h</a>. +<p> +References <a class="el" href="a05673.html#l00073">NLMISC::CEntityId::FullId</a>, and <a class="el" href="a05981.html#l00102">uint64</a>. +<p> +<div class="fragment"><pre>00213 { +00214 <span class="keywordflow">return</span> <a class="code" href="a02189.html#NLAIAGENT_1_1CIdentp3">FullId</a>; +00215 <span class="comment">/*</span> +00216 <span class="comment"> return (uint64)*this;</span> +00217 <span class="comment"> */</span> +00218 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLAIAGENT_1_1CIdenta11" doxytag="NLAIAGENT::CIdent::getShortId" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a13">uint64</a> NLMISC::CEntityId::getShortId </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> const<code> [inline, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Get the local entity number. +<p> + +<p> +Definition at line <a class="el" href="a05673.html#l00221">221</a> of file <a class="el" href="a05673.html">entity_id.h</a>. +<p> +References <a class="el" href="a02189.html#NLAIAGENT_1_1CIdentp1">NLMISC::CEntityId::DetailedId</a>, and <a class="el" href="a05981.html#l00102">uint64</a>. +<p> +Referenced by <a class="el" href="a05805.html#l00090">NLAIAGENT::CAgentNumber::operator<()</a>. +<p> +<div class="fragment"><pre>00222 { +00223 <span class="keywordflow">return</span> <a class="code" href="a02189.html#NLAIAGENT_1_1CIdentp1">DetailedId</a>.Id; +00224 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLAIAGENT_1_1CIdenta12" doxytag="NLAIAGENT::CIdent::getType" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a7">uint8</a> NLMISC::CEntityId::getType </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">void </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> const<code> [inline, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Get the entity type. +<p> + +<p> +Definition at line <a class="el" href="a05673.html#l00257">257</a> of file <a class="el" href="a05673.html">entity_id.h</a>. +<p> +References <a class="el" href="a02189.html#NLAIAGENT_1_1CIdentp1">NLMISC::CEntityId::DetailedId</a>, and <a class="el" href="a05981.html#l00096">uint8</a>. +<p> +Referenced by <a class="el" href="a05475.html#l00473">NLAIAGENT::IRefrence::IRefrence()</a>, <a class="el" href="a05805.html#l00085">NLAIAGENT::CAgentNumber::isAgentId()</a>, and <a class="el" href="a05805.html#l00121">NLAIAGENT::CAgentNumber::setTypeAt()</a>. +<p> +<div class="fragment"><pre>00258 { +00259 <span class="keywordflow">return</span> (<a class="code" href="a04558.html#a7">uint8</a>)<a class="code" href="a02189.html#NLAIAGENT_1_1CIdentp1">DetailedId</a>.Type; +00260 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLAIAGENT_1_1CIdenta13" doxytag="NLAIAGENT::CIdent::getTypeName" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> const std::string& NLAIAGENT::CIdent::getTypeName </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> const<code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05805.html#l00393">393</a> of file <a class="el" href="a05805.html">identtype.h</a>. +<p> +References <a class="el" href="a05805.html#l00314">TypeName</a>. +<p> +<div class="fragment"><pre>00394 { +00395 <span class="keywordflow">return</span> <a class="code" href="a02649.html#NLAIAGENT_1_1CIdento0">TypeName</a>; +00396 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLAIAGENT_1_1CIdenta14" doxytag="NLAIAGENT::CIdent::getUniqueId" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a13">uint64</a> NLMISC::CEntityId::getUniqueId </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> const<code> [inline, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Get the persistent part of the entity id (the dynamic part in the returned id is 0). +<p> + +<p> +Definition at line <a class="el" href="a05673.html#l00269">269</a> of file <a class="el" href="a05673.html">entity_id.h</a>. +<p> +References <a class="el" href="a05673.html#l00073">NLMISC::CEntityId::FullId</a>, and <a class="el" href="a05981.html#l00102">uint64</a>. +<p> +Referenced by <a class="el" href="a05673.html#l00306">NLMISC::CEntityId::operator<()</a>, and <a class="el" href="a05673.html#l00331">NLMISC::CEntityId::operator>()</a>. +<p> +<div class="fragment"><pre>00270 { +00271 <a class="code" href="a02189.html#NLMISC_1_1CEntityIdz1939_7">CEntityId</a> <span class="keywordtype">id</span>; +00272 <span class="keywordtype">id</span>.FullId = <a class="code" href="a02189.html#NLAIAGENT_1_1CIdentp3">FullId</a>; +00273 <span class="keywordtype">id</span>.DetailedId.DynamicId = 0; +00274 <span class="keywordflow">return</span> <span class="keywordtype">id</span>.FullId; +00275 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLAIAGENT_1_1CIdenta15" doxytag="NLAIAGENT::CIdent::isAgentId" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> bool NLAIAGENT::CAgentNumber::isAgentId </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> const<code> [inline, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05805.html#l00085">85</a> of file <a class="el" href="a05805.html">identtype.h</a>. +<p> +References <a class="el" href="a05802.html#l00028">NLAIAGENT::CAgentNumber::AgentTypeBit</a>, and <a class="el" href="a05673.html#l00257">NLMISC::CEntityId::getType()</a>. +<p> +Referenced by <a class="el" href="a05805.html#l00090">NLAIAGENT::CAgentNumber::operator<()</a>. +<p> +<div class="fragment"><pre>00086 { +00087 <span class="keywordflow">return</span> (<a class="code" href="a02189.html#NLAIAGENT_1_1CIdenta12">getType</a>() & <a class="code" href="a02188.html#NLAIAGENT_1_1CIdents0">AgentTypeBit</a>) != 0; +00088 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLAIAGENT_1_1CIdenta16" doxytag="NLAIAGENT::CIdent::isUnknownId" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> bool NLMISC::CEntityId::isUnknownId </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> const<code> [inline, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Test if the entity id is Unknown. +<p> + +<p> +Definition at line <a class="el" href="a05673.html#l00278">278</a> of file <a class="el" href="a05673.html">entity_id.h</a>. +<p> +References <a class="el" href="a02189.html#NLAIAGENT_1_1CIdentp1">NLMISC::CEntityId::DetailedId</a>, and <a class="el" href="a02189.html#NLAIAGENT_1_1CIdentw0NLAIAGENT_1_1CIdentw5">NLMISC::CEntityId::UNKNOWN_TYPE</a>. +<p> +<div class="fragment"><pre>00279 { +00280 <span class="keywordflow">return</span> <a class="code" href="a02189.html#NLAIAGENT_1_1CIdentp1">DetailedId</a>.Type == <a class="code" href="a02189.html#NLAIAGENT_1_1CIdentw0NLAIAGENT_1_1CIdentw5">UNKNOWN_TYPE</a>; +00281 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLAIAGENT_1_1CIdenta17" doxytag="NLAIAGENT::CIdent::load" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> virtual void NLAIAGENT::CIdent::load </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a02270.html">NLMISC::IStream</a> & </td> + <td class="mdname1" valign="top" nowrap> <em>is</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline, virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +loading the nomber from an input stream. +<p> + +<p> +Reimplemented from <a class="el" href="a02189.html#NLMISC_1_1CEntityIda10">NLMISC::CEntityId</a>. +<p> +Definition at line <a class="el" href="a05805.html#l00376">376</a> of file <a class="el" href="a05805.html">identtype.h</a>. +<p> +References <a class="el" href="a05646.html#l00977">s</a>, <a class="el" href="a06462.html#l00232">NLMISC::IStream::serial()</a>, and <a class="el" href="a05805.html#l00314">TypeName</a>. +<p> +<div class="fragment"><pre>00377 { +00378 CAgentNumber::load(is); +00379 std::string <a class="code" href="a04223.html#a626">s</a>; +00380 is.<a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(s); +00381 <a class="code" href="a02649.html#NLAIAGENT_1_1CIdento0">TypeName</a> = <a class="code" href="a04223.html#a626">s</a>; +00382 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLAIAGENT_1_1CIdentz1941_0" doxytag="NLAIAGENT::CIdent::operator!=" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> bool NLMISC::CEntityId::operator!= </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const <a class="el" href="a02189.html">CEntityId</a> & </td> + <td class="mdname1" valign="top" nowrap> <em>a</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> const<code> [inline, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05673.html#l00301">301</a> of file <a class="el" href="a05673.html">entity_id.h</a>. +<p> +<div class="fragment"><pre>00302 { +00303 <span class="keywordflow">return</span> !((*this) == a); +00304 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLAIAGENT_1_1CIdenta18" doxytag="NLAIAGENT::CIdent::operator++" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> const CEntityId& NLMISC::CEntityId::operator++ </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">int </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05673.html#l00358">358</a> of file <a class="el" href="a05673.html">entity_id.h</a>. +<p> +References <a class="el" href="a02189.html#NLAIAGENT_1_1CIdentp1">NLMISC::CEntityId::DetailedId</a>, <a class="el" href="a05672.html#l00034">NLMISC::CEntityId::MaxEntityId</a>, <a class="el" href="a05981.html#l00107">NL_I64</a>, and <a class="el" href="a05622.html#l00154">nlerror</a>. +<p> +<div class="fragment"><pre>00359 { +00360 <span class="keywordflow">if</span>(<a class="code" href="a02189.html#NLAIAGENT_1_1CIdentp1">DetailedId</a>.Id < <a class="code" href="a02189.html#NLAIAGENT_1_1CIdents1">MaxEntityId</a>) +00361 { +00362 <a class="code" href="a02189.html#NLAIAGENT_1_1CIdentp1">DetailedId</a>.Id ++; +00363 } +00364 <span class="keywordflow">else</span> +00365 { +00366 <a class="code" href="a04199.html#a3">nlerror</a> (<span class="stringliteral">"CEntityId looped (max was %"</span>NL_I64<span class="stringliteral">"d"</span>, MaxEntityId); +00367 } +00368 <span class="keywordflow">return</span> *<span class="keyword">this</span>; +00369 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLAIAGENT_1_1CIdentz1941_1" doxytag="NLAIAGENT::CIdent::operator<" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> bool NLMISC::CEntityId::operator< </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const <a class="el" href="a02189.html">CEntityId</a> & </td> + <td class="mdname1" valign="top" nowrap> <em>a</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> const<code> [inline, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05673.html#l00306">306</a> of file <a class="el" href="a05673.html">entity_id.h</a>. +<p> +References <a class="el" href="a05673.html#l00269">NLMISC::CEntityId::getUniqueId()</a>. +<p> +<div class="fragment"><pre>00308 { +00309 <span class="keywordflow">return</span> <a class="code" href="a02189.html#NLAIAGENT_1_1CIdenta14">getUniqueId</a>() < a.getUniqueId(); +00310 +00311 <span class="comment">/*</span> +00312 <span class="comment"> if (Type < a.Type)</span> +00313 <span class="comment"> {</span> +00314 <span class="comment"> return true;</span> +00315 <span class="comment"> }</span> +00316 <span class="comment"> else if (Type == a.Type)</span> +00317 <span class="comment"> {</span> +00318 <span class="comment"> if (Id < a.Id)</span> +00319 <span class="comment"> {</span> +00320 <span class="comment"> return true;</span> +00321 <span class="comment"> }</span> +00322 <span class="comment"> else if (Id == a.Id)</span> +00323 <span class="comment"> {</span> +00324 <span class="comment"> return (CreatorId < a.CreatorId);</span> +00325 <span class="comment"> }</span> +00326 <span class="comment"> } </span> +00327 <span class="comment"> return false;</span> +00328 <span class="comment"> */</span> +00329 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLAIAGENT_1_1CIdenta19" doxytag="NLAIAGENT::CIdent::operator<" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> virtual bool NLAIAGENT::CAgentNumber::operator< </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const <a class="el" href="a02189.html">NLMISC::CEntityId</a> & </td> + <td class="mdname1" valign="top" nowrap> <em>a</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> const<code> [inline, virtual, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05805.html#l00090">90</a> of file <a class="el" href="a05805.html">identtype.h</a>. +<p> +References <a class="el" href="a05673.html#l00245">NLMISC::CEntityId::getCreatorId()</a>, <a class="el" href="a05673.html#l00233">NLMISC::CEntityId::getDynamicId()</a>, <a class="el" href="a05673.html#l00221">NLMISC::CEntityId::getShortId()</a>, <a class="el" href="a05805.html#l00085">NLAIAGENT::CAgentNumber::isAgentId()</a>, and <a class="el" href="a06367.html#l00112">operator<()</a>. +<p> +<div class="fragment"><pre>00091 { +00092 +00093 <span class="keywordflow">if</span>(<a class="code" href="a02188.html#NLAIAGENT_1_1CIdenta15">isAgentId</a>()) +00094 { +00095 <span class="keywordflow">if</span> (<a class="code" href="a02189.html#NLAIAGENT_1_1CIdenta11">getShortId</a>() < a.<a class="code" href="a02189.html#NLAIAGENT_1_1CIdenta11">getShortId</a>()) +00096 { +00097 <span class="keywordflow">return</span> <span class="keyword">true</span>; +00098 } +00099 <span class="keywordflow">else</span> +00100 <span class="keywordflow">if</span> (<a class="code" href="a02189.html#NLAIAGENT_1_1CIdenta11">getShortId</a>() == a.<a class="code" href="a02189.html#NLAIAGENT_1_1CIdenta11">getShortId</a>()) +00101 { +00102 <span class="keywordflow">if</span>(<a class="code" href="a02189.html#NLAIAGENT_1_1CIdenta7">getCreatorId</a>() < a.<a class="code" href="a02189.html#NLAIAGENT_1_1CIdenta7">getCreatorId</a>()) +00103 { +00104 <span class="keywordflow">return</span> <span class="keyword">true</span>; +00105 } +00106 <span class="keywordflow">else</span> +00107 <span class="keywordflow">if</span>(<a class="code" href="a02189.html#NLAIAGENT_1_1CIdenta7">getCreatorId</a>() == a.<a class="code" href="a02189.html#NLAIAGENT_1_1CIdenta7">getCreatorId</a>()) +00108 { +00109 <span class="keywordflow">return</span> <a class="code" href="a02189.html#NLAIAGENT_1_1CIdenta9">getDynamicId</a>() < a.<a class="code" href="a02189.html#NLAIAGENT_1_1CIdenta9">getDynamicId</a>(); +00110 } +00111 } +00112 <span class="keywordflow">return</span> <span class="keyword">false</span>; +00113 } +00114 <span class="keywordflow">else</span> +00115 { +00116 <span class="keywordflow">return</span> <a class="code" href="a04944.html#a0">CEntityId::operator < </a>(a); +00117 } +00118 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLAIAGENT_1_1CIdenta20" doxytag="NLAIAGENT::CIdent::operator<" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> bool NLAIAGENT::CIdent::operator< </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const <a class="el" href="a02649.html">CIdent</a> & </td> + <td class="mdname1" valign="top" nowrap> <em>a</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> const<code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05805.html#l00350">350</a> of file <a class="el" href="a05805.html">identtype.h</a>. +<p> +References <a class="el" href="a05805.html#l00314">TypeName</a>. +<p> +<div class="fragment"><pre>00351 { +00352 <span class="keywordflow">return</span> <a class="code" href="a02649.html#NLAIAGENT_1_1CIdento0">TypeName</a> < a.TypeName; +00353 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLAIAGENT_1_1CIdenta21" doxytag="NLAIAGENT::CIdent::operator=" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> const <a class="el" href="a02649.html">CIdent</a>& NLAIAGENT::CIdent::operator= </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const <a class="el" href="a02649.html">CIdent</a> & </td> + <td class="mdname1" valign="top" nowrap> <em>a</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05805.html#l00361">361</a> of file <a class="el" href="a05805.html">identtype.h</a>. +<p> +References <a class="el" href="a05805.html#l00314">TypeName</a>. +<p> +<div class="fragment"><pre>00362 { +00363 CAgentNumber::operator = (a); +00364 <a class="code" href="a02649.html#NLAIAGENT_1_1CIdento0">TypeName</a> = a.TypeName; +00365 <span class="keywordflow">return</span> *<span class="keyword">this</span>; +00366 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLAIAGENT_1_1CIdentz1941_2" doxytag="NLAIAGENT::CIdent::operator==" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> bool NLMISC::CEntityId::operator== </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const <a class="el" href="a02189.html">CEntityId</a> & </td> + <td class="mdname1" valign="top" nowrap> <em>a</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> const<code> [inline, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05673.html#l00289">289</a> of file <a class="el" href="a05673.html">entity_id.h</a>. +<p> +References <a class="el" href="a02189.html#NLAIAGENT_1_1CIdentp1">NLMISC::CEntityId::DetailedId</a>, and <a class="el" href="a05673.html#l00073">NLMISC::CEntityId::FullId</a>. +<p> +<div class="fragment"><pre>00291 { +00292 +00293 <a class="code" href="a02189.html#NLMISC_1_1CEntityIdz1939_7">CEntityId</a> testId ( FullId ^ a.FullId ); +00294 testId.DetailedId.DynamicId = 0; +00295 <span class="keywordflow">return</span> testId.FullId == 0; +00296 +00297 <span class="comment">/*</span> +00298 <span class="comment"> return (Id == a.DetailedId.Id && DetailedId.CreatorId == a.DetailedId.CreatorId && DetailedId.Type == a.DetailedId.Type);</span> +00299 <span class="comment"> */</span> +00300 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLAIAGENT_1_1CIdenta22" doxytag="NLAIAGENT::CIdent::operator==" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> bool NLAIAGENT::CIdent::operator== </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const <a class="el" href="a02649.html">CIdent</a> & </td> + <td class="mdname1" valign="top" nowrap> <em>a</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> const<code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05805.html#l00341">341</a> of file <a class="el" href="a05805.html">identtype.h</a>. +<p> +References <a class="el" href="a05805.html#l00314">TypeName</a>. +<p> +<div class="fragment"><pre>00342 { +00343 <span class="keywordflow">if</span>(<a class="code" href="a02649.html#NLAIAGENT_1_1CIdento0">TypeName</a> == a.TypeName) +00344 { +00345 <span class="keywordflow">return</span> CAgentNumber::operator == (a); +00346 } +00347 <span class="keywordflow">return</span> <span class="keyword">false</span>; +00348 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLAIAGENT_1_1CIdentz1941_3" doxytag="NLAIAGENT::CIdent::operator>" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> bool NLMISC::CEntityId::operator> </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const <a class="el" href="a02189.html">CEntityId</a> & </td> + <td class="mdname1" valign="top" nowrap> <em>a</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> const<code> [inline, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05673.html#l00331">331</a> of file <a class="el" href="a05673.html">entity_id.h</a>. +<p> +References <a class="el" href="a05673.html#l00269">NLMISC::CEntityId::getUniqueId()</a>. +<p> +<div class="fragment"><pre>00333 { +00334 <span class="keywordflow">return</span> <a class="code" href="a02189.html#NLAIAGENT_1_1CIdenta14">getUniqueId</a>() > a.getUniqueId(); +00335 +00336 <span class="comment">/*</span> +00337 <span class="comment"> if (Type > a.Type)</span> +00338 <span class="comment"> {</span> +00339 <span class="comment"> return true;</span> +00340 <span class="comment"> }</span> +00341 <span class="comment"> else if (Type == a.Type)</span> +00342 <span class="comment"> {</span> +00343 <span class="comment"> if (Id > a.Id)</span> +00344 <span class="comment"> {</span> +00345 <span class="comment"> return true;</span> +00346 <span class="comment"> }</span> +00347 <span class="comment"> else if (Id == a.Id)</span> +00348 <span class="comment"> {</span> +00349 <span class="comment"> return (CreatorId > a.CreatorId);</span> +00350 <span class="comment"> }</span> +00351 <span class="comment"> }</span> +00352 <span class="comment"> // lesser</span> +00353 <span class="comment"> return false;</span> +00354 <span class="comment"> */</span> +00355 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLAIAGENT_1_1CIdenta23" doxytag="NLAIAGENT::CIdent::operator>" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> bool NLAIAGENT::CIdent::operator> </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const <a class="el" href="a02649.html">CIdent</a> & </td> + <td class="mdname1" valign="top" nowrap> <em>a</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> const<code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05805.html#l00355">355</a> of file <a class="el" href="a05805.html">identtype.h</a>. +<p> +References <a class="el" href="a05805.html#l00314">TypeName</a>. +<p> +<div class="fragment"><pre>00356 { +00357 <span class="keywordflow">return</span> !(<a class="code" href="a02649.html#NLAIAGENT_1_1CIdento0">TypeName</a> < a.TypeName); +00358 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLAIAGENT_1_1CIdenta24" doxytag="NLAIAGENT::CIdent::save" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> virtual void NLAIAGENT::CIdent::save </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a02270.html">NLMISC::IStream</a> & </td> + <td class="mdname1" valign="top" nowrap> <em>os</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline, virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +saving the nomber in an output stream. +<p> + +<p> +Reimplemented from <a class="el" href="a02189.html#NLMISC_1_1CEntityIda14">NLMISC::CEntityId</a>. +<p> +Definition at line <a class="el" href="a05805.html#l00369">369</a> of file <a class="el" href="a05805.html">identtype.h</a>. +<p> +References <a class="el" href="a06462.html#l00232">NLMISC::IStream::serial()</a>, and <a class="el" href="a05805.html#l00314">TypeName</a>. +<p> +<div class="fragment"><pre>00370 { +00371 CAgentNumber::save(os); +00372 os.<a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(TypeName); +00373 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLAIAGENT_1_1CIdenta25" doxytag="NLAIAGENT::CIdent::serial" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NLMISC::CEntityId::serial </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a02270.html">NLMISC::IStream</a> & </td> + <td class="mdname1" valign="top" nowrap> <em>f</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> throw (<a class="el" href="a03781.html">NLMISC::EStream</a>)<code> [inline, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05673.html#l00462">462</a> of file <a class="el" href="a05673.html">entity_id.h</a>. +<p> +References <a class="el" href="a05673.html#l00443">NLMISC::CEntityId::load()</a>, and <a class="el" href="a05673.html#l00426">NLMISC::CEntityId::save()</a>. +<p> +<div class="fragment"><pre>00464 { +00465 <span class="keywordflow">if</span> (f.<a class="code" href="a02270.html#NLMISC_1_1IStreama0">isReading</a> ()) +00466 { +00467 <a class="code" href="a02649.html#NLAIAGENT_1_1CIdenta17">load</a> (f); +00468 } +00469 <span class="keywordflow">else</span> +00470 { +00471 <a class="code" href="a02649.html#NLAIAGENT_1_1CIdenta24">save</a> (f); +00472 } +00473 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLAIAGENT_1_1CIdenta26" doxytag="NLAIAGENT::CIdent::setCreatorId" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NLMISC::CEntityId::setCreatorId </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a7">uint8</a> </td> + <td class="mdname1" valign="top" nowrap> <em>creatorId</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Set the persistent creator id. +<p> + +<p> +Definition at line <a class="el" href="a05673.html#l00251">251</a> of file <a class="el" href="a05673.html">entity_id.h</a>. +<p> +References <a class="el" href="a02189.html#NLAIAGENT_1_1CIdentp1">NLMISC::CEntityId::DetailedId</a>, and <a class="el" href="a05981.html#l00096">uint8</a>. +<p> +Referenced by <a class="el" href="a05668.html#l00313">NLMISC::CEntityIdTranslator::checkEntity()</a>, <a class="el" href="a05949.html#l00076">NLLOGIC::CLogicEventMessage::CLogicEventMessage()</a>, <a class="el" href="a05954.html#l00316">NLLOGIC::CLogicStateMachine::displayVariables()</a>, <a class="el" href="a05668.html#l00126">NLMISC::CEntityIdTranslator::getByEntity()</a>, <a class="el" href="a05668.html#l00493">NLMISC::CEntityIdTranslator::getEntityIdInfo()</a>, <a class="el" href="a05668.html#l00535">NLMISC::CEntityIdTranslator::getEntityNameStringId()</a>, <a class="el" href="a05668.html#l00571">NLMISC::CEntityIdTranslator::isEntityOnline()</a>, <a class="el" href="a05668.html#l00687">NLMISC::NLMISC_COMMAND()</a>, <a class="el" href="a05668.html#l00267">NLMISC::CEntityIdTranslator::registerEntity()</a>, <a class="el" href="a05668.html#l00553">NLMISC::CEntityIdTranslator::setEntityOnline()</a>, <a class="el" href="a05421.html#l00072">NLAILINK::setLocalServerID()</a>, <a class="el" href="a05673.html#l00101">NLMISC::CEntityId::setServiceId()</a>, and <a class="el" href="a05668.html#l00292">NLMISC::CEntityIdTranslator::unregisterEntity()</a>. +<p> +<div class="fragment"><pre>00252 { +00253 <a class="code" href="a02189.html#NLAIAGENT_1_1CIdentp1">DetailedId</a>.CreatorId = creatorId; +00254 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLAIAGENT_1_1CIdenta27" doxytag="NLAIAGENT::CIdent::setDynamicId" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NLMISC::CEntityId::setDynamicId </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a7">uint8</a> </td> + <td class="mdname1" valign="top" nowrap> <em>dynId</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Set the variable routing info. +<p> + +<p> +Definition at line <a class="el" href="a05673.html#l00239">239</a> of file <a class="el" href="a05673.html">entity_id.h</a>. +<p> +References <a class="el" href="a02189.html#NLAIAGENT_1_1CIdentp1">NLMISC::CEntityId::DetailedId</a>, and <a class="el" href="a05981.html#l00096">uint8</a>. +<p> +Referenced by <a class="el" href="a05668.html#l00313">NLMISC::CEntityIdTranslator::checkEntity()</a>, <a class="el" href="a05949.html#l00076">NLLOGIC::CLogicEventMessage::CLogicEventMessage()</a>, <a class="el" href="a05954.html#l00316">NLLOGIC::CLogicStateMachine::displayVariables()</a>, <a class="el" href="a05668.html#l00126">NLMISC::CEntityIdTranslator::getByEntity()</a>, <a class="el" href="a05668.html#l00493">NLMISC::CEntityIdTranslator::getEntityIdInfo()</a>, <a class="el" href="a05668.html#l00535">NLMISC::CEntityIdTranslator::getEntityNameStringId()</a>, <a class="el" href="a05668.html#l00571">NLMISC::CEntityIdTranslator::isEntityOnline()</a>, <a class="el" href="a05668.html#l00687">NLMISC::NLMISC_COMMAND()</a>, <a class="el" href="a05668.html#l00267">NLMISC::CEntityIdTranslator::registerEntity()</a>, <a class="el" href="a05668.html#l00553">NLMISC::CEntityIdTranslator::setEntityOnline()</a>, <a class="el" href="a05421.html#l00072">NLAILINK::setLocalServerID()</a>, <a class="el" href="a05673.html#l00101">NLMISC::CEntityId::setServiceId()</a>, and <a class="el" href="a05668.html#l00292">NLMISC::CEntityIdTranslator::unregisterEntity()</a>. +<p> +<div class="fragment"><pre>00240 { +00241 <a class="code" href="a02189.html#NLAIAGENT_1_1CIdentp1">DetailedId</a>.DynamicId = dynId; +00242 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLAIAGENT_1_1CIdente1" doxytag="NLAIAGENT::CIdent::setServiceId" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NLMISC::CEntityId::setServiceId </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a7">uint8</a> </td> + <td class="mdname1" valign="top" nowrap> <em>sid</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline, static, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Set the service id for the generator. +<p> + +<p> +Definition at line <a class="el" href="a05673.html#l00101">101</a> of file <a class="el" href="a05673.html">entity_id.h</a>. +<p> +References <a class="el" href="a05672.html#l00036">NLMISC::CEntityId::_NextEntityId</a>, <a class="el" href="a05672.html#l00038">NLMISC::CEntityId::_ServerId</a>, <a class="el" href="a05673.html#l00251">NLMISC::CEntityId::setCreatorId()</a>, <a class="el" href="a05673.html#l00239">NLMISC::CEntityId::setDynamicId()</a>, and <a class="el" href="a05981.html#l00096">uint8</a>. +<p> +Referenced by <a class="el" href="a06364.html#l00419">NLNET::IService::main()</a>, and <a class="el" href="a05421.html#l00072">NLAILINK::setLocalServerID()</a>. +<p> +<div class="fragment"><pre>00102 { +00103 <a class="code" href="a02189.html#NLAIAGENT_1_1CIdentt0">_NextEntityId</a>.<a class="code" href="a02189.html#NLAIAGENT_1_1CIdenta27">setDynamicId</a>( sid ); +00104 <a class="code" href="a02189.html#NLAIAGENT_1_1CIdentt0">_NextEntityId</a>.<a class="code" href="a02189.html#NLAIAGENT_1_1CIdenta26">setCreatorId</a>( sid ); +00105 <a class="code" href="a02189.html#NLAIAGENT_1_1CIdentt1">_ServerId</a> = sid; +00106 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLAIAGENT_1_1CIdenta28" doxytag="NLAIAGENT::CIdent::setShortId" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NLMISC::CEntityId::setShortId </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a13">uint64</a> </td> + <td class="mdname1" valign="top" nowrap> <em>shortId</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Set the local entity number. +<p> + +<p> +Definition at line <a class="el" href="a05673.html#l00227">227</a> of file <a class="el" href="a05673.html">entity_id.h</a>. +<p> +References <a class="el" href="a02189.html#NLAIAGENT_1_1CIdentp1">NLMISC::CEntityId::DetailedId</a>, and <a class="el" href="a05981.html#l00102">uint64</a>. +<p> +<div class="fragment"><pre>00228 { +00229 <a class="code" href="a02189.html#NLAIAGENT_1_1CIdentp1">DetailedId</a>.Id = shortId; +00230 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLAIAGENT_1_1CIdenta29" doxytag="NLAIAGENT::CIdent::setType" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NLMISC::CEntityId::setType </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a7">uint8</a> </td> + <td class="mdname1" valign="top" nowrap> <em>type</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Set the entity type. +<p> + +<p> +Definition at line <a class="el" href="a05673.html#l00263">263</a> of file <a class="el" href="a05673.html">entity_id.h</a>. +<p> +References <a class="el" href="a02189.html#NLAIAGENT_1_1CIdentp1">NLMISC::CEntityId::DetailedId</a>, <a class="el" href="a05646.html#l00244">type</a>, and <a class="el" href="a05981.html#l00096">uint8</a>. +<p> +Referenced by <a class="el" href="a05805.html#l00053">NLAIAGENT::CAgentNumber::CAgentNumber()</a>, <a class="el" href="a05949.html#l00076">NLLOGIC::CLogicEventMessage::CLogicEventMessage()</a>, <a class="el" href="a05954.html#l00316">NLLOGIC::CLogicStateMachine::displayVariables()</a>, <a class="el" href="a05673.html#l00109">NLMISC::CEntityId::getNewEntityId()</a>, and <a class="el" href="a05805.html#l00121">NLAIAGENT::CAgentNumber::setTypeAt()</a>. +<p> +<div class="fragment"><pre>00264 { +00265 <a class="code" href="a02189.html#NLAIAGENT_1_1CIdentp1">DetailedId</a>.Type = <a class="code" href="a04223.html#a581">type</a>; +00266 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLAIAGENT_1_1CIdenta30" doxytag="NLAIAGENT::CIdent::setTypeAt" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NLAIAGENT::CAgentNumber::setTypeAt </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a13">uint64</a> </td> + <td class="mdname1" valign="top" nowrap> <em>t</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +That function allow user to change the 7 bit of the type field in the sid agent number; We don't touche at the 8e bits. +<p> + +<p> +Definition at line <a class="el" href="a05805.html#l00121">121</a> of file <a class="el" href="a05805.html">identtype.h</a>. +<p> +References <a class="el" href="a05673.html#l00257">NLMISC::CEntityId::getType()</a>, <a class="el" href="a05673.html#l00263">NLMISC::CEntityId::setType()</a>, <a class="el" href="a05646.html#l00985">t</a>, <a class="el" href="a05646.html#l00244">type</a>, <a class="el" href="a05981.html#l00102">uint64</a>, and <a class="el" href="a05981.html#l00096">uint8</a>. +<p> +Referenced by <a class="el" href="a05803.html#l00368">NLAIAGENT::CNumericIndex::setTypeAt()</a>. +<p> +<div class="fragment"><pre>00122 { +00123 <a class="code" href="a04558.html#a7">uint8</a> <a class="code" href="a04223.html#a581">type</a> = <a class="code" href="a02189.html#NLAIAGENT_1_1CIdenta12">getType</a>(); +00124 <a class="code" href="a04223.html#a581">type</a> |= (<a class="code" href="a04223.html#a627">t</a> & 0x7f); +00125 <a class="code" href="a02189.html#NLAIAGENT_1_1CIdenta29">setType</a>( type ); +00126 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLAIAGENT_1_1CIdenta31" doxytag="NLAIAGENT::CIdent::toString" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> std::string NLMISC::CEntityId::toString </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> const<code> [inline, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +return a string in form "(a:b:c:d)" where a,b,c,d are components of entity id. +<p> + +<p> +Definition at line <a class="el" href="a05673.html#l00480">480</a> of file <a class="el" href="a05673.html">entity_id.h</a>. +<p> +References <a class="el" href="a05673.html#l00509">NLMISC::CEntityId::getDebugString()</a>. +<p> +Referenced by <a class="el" href="a05668.html#l00313">NLMISC::CEntityIdTranslator::checkEntity()</a>, <a class="el" href="a05668.html#l00493">NLMISC::CEntityIdTranslator::getEntityIdInfo()</a>, <a class="el" href="a05668.html#l00571">NLMISC::CEntityIdTranslator::isEntityOnline()</a>, <a class="el" href="a05668.html#l00633">NLMISC::NLMISC_COMMAND()</a>, <a class="el" href="a05668.html#l00267">NLMISC::CEntityIdTranslator::registerEntity()</a>, <a class="el" href="a05668.html#l00553">NLMISC::CEntityIdTranslator::setEntityOnline()</a>, and <a class="el" href="a05668.html#l00292">NLMISC::CEntityIdTranslator::unregisterEntity()</a>. +<p> +<div class="fragment"><pre>00481 { +00482 std::string <span class="keywordtype">id</span>; +00483 <a class="code" href="a02649.html#NLAIAGENT_1_1CIdenta8">getDebugString</a> (<span class="keywordtype">id</span>); +00484 <span class="keywordflow">return</span> <span class="stringliteral">"("</span> + <span class="keywordtype">id</span> + <span class="stringliteral">")"</span>; +00485 } +</pre></div> </td> + </tr> +</table> +<hr><h2>Field Documentation</h2> +<a class="anchor" name="NLAIAGENT_1_1CIdentt0" doxytag="NLAIAGENT::CIdent::_NextEntityId" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> CEntityId <a class="el" href="a02189.html#NLAIAGENT_1_1CIdentt0">NLMISC::CEntityId::_NextEntityId</a><code> [static, protected, inherited]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Counter for generation of unique entity ids. +<p> + +<p> +Definition at line <a class="el" href="a05672.html#l00036">36</a> of file <a class="el" href="a05672.html">entity_id.cpp</a>. +<p> +Referenced by <a class="el" href="a05673.html#l00109">NLMISC::CEntityId::getNewEntityId()</a>, and <a class="el" href="a05673.html#l00101">NLMISC::CEntityId::setServiceId()</a>. </td> + </tr> +</table> +<a class="anchor" name="NLAIAGENT_1_1CIdentt1" doxytag="NLAIAGENT::CIdent::_ServerId" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a7">uint8</a> <a class="el" href="a02189.html#NLAIAGENT_1_1CIdentt1">NLMISC::CEntityId::_ServerId</a> = 0<code> [static, protected, inherited]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +The local num service id of the local machin. +<p> + +<p> +Definition at line <a class="el" href="a05672.html#l00038">38</a> of file <a class="el" href="a05672.html">entity_id.cpp</a>. +<p> +Referenced by <a class="el" href="a05673.html#l00144">NLMISC::CEntityId::CEntityId()</a>, and <a class="el" href="a05673.html#l00101">NLMISC::CEntityId::setServiceId()</a>. </td> + </tr> +</table> +<a class="anchor" name="NLAIAGENT_1_1CIdents0" doxytag="NLAIAGENT::CIdent::AgentTypeBit" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> const <a class="el" href="a04558.html#a7">uint8</a> <a class="el" href="a02188.html#NLAIAGENT_1_1CIdents0">NLAIAGENT::CAgentNumber::AgentTypeBit</a> = 0x80<code> [static, inherited]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +All agents id'S numbers have the 8th bit reserved on <a class="el" href="a02189.html#NLAIAGENT_1_1CIdentp5">NLMISC::CEntityId::Type</a> byte The CEntityId::Type field is for AI an user bits field becarful we dont't touch at the 8e bits. +<p> +Definition at line <a class="el" href="a05802.html#l00028">28</a> of file <a class="el" href="a05802.html">ident.cpp</a>. +<p> +Referenced by <a class="el" href="a05805.html#l00057">NLAIAGENT::CAgentNumber::CAgentNumber()</a>, and <a class="el" href="a05805.html#l00085">NLAIAGENT::CAgentNumber::isAgentId()</a>. </td> + </tr> +</table> +<a class="anchor" name="NLAIAGENT_1_1CIdentp0" doxytag="NLAIAGENT::CIdent::CreatorId" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a13">uint64</a> <a class="el" href="a02189.html#NLAIAGENT_1_1CIdentp0">NLMISC::CEntityId::CreatorId</a><code> [protected, inherited]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Id of the service who created the entity (persistent). +<p> + +<p> +Definition at line <a class="el" href="a05673.html#l00066">66</a> of file <a class="el" href="a05673.html">entity_id.h</a>. </td> + </tr> +</table> +<a class="anchor" name="NLAIAGENT_1_1CIdentp1" doxytag="NLAIAGENT::CIdent::DetailedId" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> struct { ... } <a class="el" href="a02189.html#NLAIAGENT_1_1CIdentp1">NLMISC::CEntityId::DetailedId</a><code> [protected, inherited]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Referenced by <a class="el" href="a05673.html#l00123">NLMISC::CEntityId::CEntityId()</a>, <a class="el" href="a05673.html#l00488">NLMISC::CEntityId::fromString()</a>, <a class="el" href="a05673.html#l00245">NLMISC::CEntityId::getCreatorId()</a>, <a class="el" href="a05673.html#l00509">NLMISC::CEntityId::getDebugString()</a>, <a class="el" href="a05673.html#l00233">NLMISC::CEntityId::getDynamicId()</a>, <a class="el" href="a05673.html#l00221">NLMISC::CEntityId::getShortId()</a>, <a class="el" href="a05673.html#l00257">NLMISC::CEntityId::getType()</a>, <a class="el" href="a05673.html#l00278">NLMISC::CEntityId::isUnknownId()</a>, <a class="el" href="a05673.html#l00358">NLMISC::CEntityId::operator++()</a>, <a class="el" href="a05673.html#l00289">NLMISC::CEntityId::operator==()</a>, <a class="el" href="a05673.html#l00251">NLMISC::CEntityId::setCreatorId()</a>, <a class="el" href="a05673.html#l00239">NLMISC::CEntityId::setDynamicId()</a>, <a class="el" href="a05673.html#l00227">NLMISC::CEntityId::setShortId()</a>, and <a class="el" href="a05673.html#l00263">NLMISC::CEntityId::setType()</a>. </td> + </tr> +</table> +<a class="anchor" name="NLAIAGENT_1_1CIdentp2" doxytag="NLAIAGENT::CIdent::DynamicId" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a13">uint64</a> <a class="el" href="a02189.html#NLAIAGENT_1_1CIdentp2">NLMISC::CEntityId::DynamicId</a><code> [protected, inherited]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Id of the service where the entity is (variable routing info). +<p> + +<p> +Definition at line <a class="el" href="a05673.html#l00064">64</a> of file <a class="el" href="a05673.html">entity_id.h</a>. </td> + </tr> +</table> +<a class="anchor" name="NLAIAGENT_1_1CIdentp3" doxytag="NLAIAGENT::CIdent::FullId" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a13">uint64</a> <a class="el" href="a02189.html#NLAIAGENT_1_1CIdentp3">NLMISC::CEntityId::FullId</a><code> [protected, inherited]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05673.html#l00073">73</a> of file <a class="el" href="a05673.html">entity_id.h</a>. +<p> +Referenced by <a class="el" href="a05673.html#l00401">NLMISC::CEntityId::asUint64()</a>, <a class="el" href="a05673.html#l00123">NLMISC::CEntityId::CEntityId()</a>, <a class="el" href="a05673.html#l00212">NLMISC::CEntityId::getRawId()</a>, <a class="el" href="a05673.html#l00269">NLMISC::CEntityId::getUniqueId()</a>, <a class="el" href="a05673.html#l00443">NLMISC::CEntityId::load()</a>, <a class="el" href="a05673.html#l00371">NLMISC::CEntityId::operator=()</a>, <a class="el" href="a05673.html#l00289">NLMISC::CEntityId::operator==()</a>, and <a class="el" href="a05673.html#l00426">NLMISC::CEntityId::save()</a>. </td> + </tr> +</table> +<a class="anchor" name="NLAIAGENT_1_1CIdentp4" doxytag="NLAIAGENT::CIdent::Id" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a13">uint64</a> <a class="el" href="a02189.html#NLAIAGENT_1_1CIdentp4">NLMISC::CEntityId::Id</a><code> [protected, inherited]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Local entity number (persistent). +<p> + +<p> +Definition at line <a class="el" href="a05673.html#l00070">70</a> of file <a class="el" href="a05673.html">entity_id.h</a>. </td> + </tr> +</table> +<a class="anchor" name="NLAIAGENT_1_1CIdents1" doxytag="NLAIAGENT::CIdent::MaxEntityId" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> const <a class="el" href="a04558.html#a13">uint64</a> <a class="el" href="a02189.html#NLAIAGENT_1_1CIdents1">NLMISC::CEntityId::MaxEntityId</a> = ((<a class="el" href="a04558.html#a13">uint64</a>)1 << (CEntityId::ID_SIZE + 1)) - (<a class="el" href="a04558.html#a13">uint64</a>)1<code> [static, inherited]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +The maximume of number that we could generate without generate an overtaking exception. +<p> + +<p> +Definition at line <a class="el" href="a05672.html#l00034">34</a> of file <a class="el" href="a05672.html">entity_id.cpp</a>. +<p> +Referenced by <a class="el" href="a05673.html#l00358">NLMISC::CEntityId::operator++()</a>. </td> + </tr> +</table> +<a class="anchor" name="NLAIAGENT_1_1CIdentp5" doxytag="NLAIAGENT::CIdent::Type" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a13">uint64</a> <a class="el" href="a02189.html#NLAIAGENT_1_1CIdentp5">NLMISC::CEntityId::Type</a><code> [protected, inherited]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Type of the entity (persistent). +<p> + +<p> +Definition at line <a class="el" href="a05673.html#l00068">68</a> of file <a class="el" href="a05673.html">entity_id.h</a>. </td> + </tr> +</table> +<a class="anchor" name="NLAIAGENT_1_1CIdento0" doxytag="NLAIAGENT::CIdent::TypeName" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> std::string <a class="el" href="a02649.html#NLAIAGENT_1_1CIdento0">NLAIAGENT::CIdent::TypeName</a> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05805.html#l00314">314</a> of file <a class="el" href="a05805.html">identtype.h</a>. +<p> +Referenced by <a class="el" href="a05805.html#l00319">CIdent()</a>, <a class="el" href="a05805.html#l00387">getDebugString()</a>, <a class="el" href="a05805.html#l00393">getTypeName()</a>, <a class="el" href="a05805.html#l00376">load()</a>, <a class="el" href="a05805.html#l00350">operator<()</a>, <a class="el" href="a05805.html#l00361">operator=()</a>, <a class="el" href="a05805.html#l00341">operator==()</a>, <a class="el" href="a05805.html#l00355">operator>()</a>, and <a class="el" href="a05805.html#l00369">save()</a>. </td> + </tr> +</table> +<a class="anchor" name="NLAIAGENT_1_1CIdents2" doxytag="NLAIAGENT::CIdent::Unknown" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> const CEntityId <a class="el" href="a02189.html#NLAIAGENT_1_1CIdents2">NLMISC::CEntityId::Unknown</a><code> [static, inherited]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Unknow <a class="el" href="a02189.html">CEntityId</a> is similar as an NULL pointer. +<p> + </td> + </tr> +</table> +<hr>The documentation for this struct was generated from the following file:<ul> +<li><a class="el" href="a05805.html">identtype.h</a></ul> +<hr size="1"><address style="align: right;"><small>Generated on Tue Mar 16 09:16:00 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> |