aboutsummaryrefslogtreecommitdiff
path: root/docs/doxygen/nel/a02454.html
diff options
context:
space:
mode:
authorneodarz <neodarz@neodarz.net>2018-08-11 20:21:34 +0200
committerneodarz <neodarz@neodarz.net>2018-08-11 20:21:34 +0200
commit0ea5fc66924303d1bf73ba283a383e2aadee02f2 (patch)
tree2568e71a7ccc44ec23b8bb3f0ff97fb6bf2ed709 /docs/doxygen/nel/a02454.html
downloadnevrax-website-self-hostable-0ea5fc66924303d1bf73ba283a383e2aadee02f2.tar.xz
nevrax-website-self-hostable-0ea5fc66924303d1bf73ba283a383e2aadee02f2.zip
Initial commit
Diffstat (limited to 'docs/doxygen/nel/a02454.html')
-rw-r--r--docs/doxygen/nel/a02454.html1810
1 files changed, 1810 insertions, 0 deletions
diff --git a/docs/doxygen/nel/a02454.html b/docs/doxygen/nel/a02454.html
new file mode 100644
index 00000000..1b2e4212
--- /dev/null
+++ b/docs/doxygen/nel/a02454.html
@@ -0,0 +1,1810 @@
+<!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: NLMISC::CEntityIdTranslator class 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&nbsp;Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical&nbsp;List</a> | <a class="qindex" href="annotated.html">Data&nbsp;Structures</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="namespacemembers.html">Namespace&nbsp;Members</a> | <a class="qindex" href="functions.html">Data&nbsp;Fields</a> | <a class="qindex" href="globals.html">Globals</a> | <a class="qindex" href="pages.html">Related&nbsp;Pages</a> | <span class="search"><u>S</u>earch&nbsp;for&nbsp;<input class="search" type="text" name="query" value="" size="20" accesskey="s"/></span></form></div>
+<h1>NLMISC::CEntityIdTranslator Class Reference</h1><code>#include &lt;<a class="el" href="a05669.html">eid_translator.h</a>&gt;</code>
+<p>
+<table border=0 cellpadding=0 cellspacing=0>
+<tr><td></td></tr>
+<tr><td colspan=2><br><h2>Public Member Functions</h2></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02454.html#NLMISC_1_1CEntityIdTranslatora0">checkEntity</a> (const <a class="el" href="a02189.html">CEntityId</a> &amp;eid, const <a class="el" href="a03924.html">ucstring</a> &amp;entityName, <a class="el" href="a04558.html#a11">uint32</a> uid, const std::string &amp;userName)</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02454.html#NLMISC_1_1CEntityIdTranslatora1">entityNameExists</a> (const <a class="el" href="a03924.html">ucstring</a> &amp;entityName, bool acceptBlanks=false)</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02454.html#NLMISC_1_1CEntityIdTranslatora2">getByEntity</a> (const <a class="el" href="a03924.html">ucstring</a> &amp;entityName, std::vector&lt; <a class="el" href="a02189.html">NLMISC::CEntityId</a> &gt; &amp;<a class="el" href="a04223.html#a643">res</a>, bool exact)</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a02189.html">CEntityId</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02454.html#NLMISC_1_1CEntityIdTranslatora3">getByEntity</a> (const <a class="el" href="a03924.html">ucstring</a> &amp;entityName)</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a03924.html">ucstring</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02454.html#NLMISC_1_1CEntityIdTranslatora4">getByEntity</a> (const <a class="el" href="a02189.html">NLMISC::CEntityId</a> &amp;eid)</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02454.html#NLMISC_1_1CEntityIdTranslatora5">getByUser</a> (const std::string &amp;userName, std::vector&lt; <a class="el" href="a02189.html">NLMISC::CEntityId</a> &gt; &amp;<a class="el" href="a04223.html#a643">res</a>, bool exact=true)</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02454.html#NLMISC_1_1CEntityIdTranslatora6">getByUser</a> (<a class="el" href="a04558.html#a11">uint32</a> uid, std::vector&lt; <a class="el" href="a02189.html">NLMISC::CEntityId</a> &gt; &amp;<a class="el" href="a04223.html#a643">res</a>)</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02454.html#NLMISC_1_1CEntityIdTranslatora7">getEntityIdInfo</a> (const <a class="el" href="a02189.html">CEntityId</a> &amp;eid, <a class="el" href="a03924.html">ucstring</a> &amp;entityName, <a class="el" href="a04558.html#a6">sint8</a> &amp;entitySlot, <a class="el" href="a04558.html#a11">uint32</a> &amp;uid, std::string &amp;userName, bool &amp;online)</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a11">uint32</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02454.html#NLMISC_1_1CEntityIdTranslatora8">getEntityNameStringId</a> (const <a class="el" href="a02189.html">CEntityId</a> &amp;eid)</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>const std::map&lt; <a class="el" href="a02189.html">NLMISC::CEntityId</a>,<br>
+ <a class="el" href="a02455.html">CEntity</a> &gt; &amp;&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02454.html#NLMISC_1_1CEntityIdTranslatora9">getRegisteredEntities</a> ()</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a11">uint32</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02454.html#NLMISC_1_1CEntityIdTranslatora10">getUId</a> (const std::string &amp;userName)</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>std::string&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02454.html#NLMISC_1_1CEntityIdTranslatora11">getUserName</a> (<a class="el" href="a04558.html#a11">uint32</a> uid)</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02454.html#NLMISC_1_1CEntityIdTranslatora12">isEntityOnline</a> (const <a class="el" href="a02189.html">CEntityId</a> &amp;eid)</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02454.html#NLMISC_1_1CEntityIdTranslatora13">isValidEntityName</a> (const <a class="el" href="a03924.html">ucstring</a> &amp;entityName, <a class="el" href="a02813.html">NLMISC::CLog</a> *log=<a class="el" href="a05378.html#a12">NLMISC::InfoLog</a>, bool acceptBlanks=false)</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02454.html#NLMISC_1_1CEntityIdTranslatora14">load</a> (const std::string &amp;fileName, const std::string &amp;invalidEntityNamesFilename)</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02454.html#NLMISC_1_1CEntityIdTranslatora15">registerEntity</a> (const <a class="el" href="a02189.html">CEntityId</a> &amp;eid, const <a class="el" href="a03924.html">ucstring</a> &amp;entityName, <a class="el" href="a04558.html#a6">sint8</a> entitySlot, <a class="el" href="a04558.html#a11">uint32</a> uid, const std::string &amp;userName)</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02454.html#NLMISC_1_1CEntityIdTranslatora16">setEntityNameStringId</a> (const <a class="el" href="a03924.html">ucstring</a> &amp;entityName, <a class="el" href="a04558.html#a11">uint32</a> stringId)</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02454.html#NLMISC_1_1CEntityIdTranslatora17">setEntityOnline</a> (const <a class="el" href="a02189.html">CEntityId</a> &amp;eid, bool online)</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02454.html#NLMISC_1_1CEntityIdTranslatora18">unregisterEntity</a> (const <a class="el" href="a02189.html">CEntityId</a> &amp;eid)</td></tr>
+
+<tr><td colspan=2><br><h2>Static Public Member Functions</h2></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a02454.html">CEntityIdTranslator</a> *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02454.html#NLMISC_1_1CEntityIdTranslatore0">getInstance</a> ()</td></tr>
+
+<tr><td colspan=2><br><h2>Data Fields</h2></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a15">uint</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02454.html#NLMISC_1_1CEntityIdTranslatoro0">FileVersion</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#a15">uint</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02454.html#NLMISC_1_1CEntityIdTranslators0">Version</a> = 1</td></tr>
+
+<tr><td colspan=2><br><h2>Private Types</h2></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top>typedef std::map&lt; <a class="el" href="a02189.html">NLMISC::CEntityId</a>,<br>
+ <a class="el" href="a02455.html">CEntity</a> &gt;::iterator&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02454.html#NLMISC_1_1CEntityIdTranslatory0">reit</a></td></tr>
+
+<tr><td colspan=2><br><h2>Private Member Functions</h2></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02454.html#NLMISC_1_1CEntityIdTranslatord0">CEntityIdTranslator</a> ()</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>std::string&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02454.html#NLMISC_1_1CEntityIdTranslatord1">getRegisterableString</a> (const <a class="el" href="a03924.html">ucstring</a> &amp;entityName, bool removeBlanks=false)</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02454.html#NLMISC_1_1CEntityIdTranslatord2">save</a> ()</td></tr>
+
+<tr><td colspan=2><br><h2>Private Attributes</h2></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top>std::string&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02454.html#NLMISC_1_1CEntityIdTranslatorr0">FileName</a></td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>std::vector&lt; std::string &gt;&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02454.html#NLMISC_1_1CEntityIdTranslatorr1">InvalidEntityNames</a></td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>std::map&lt; <a class="el" href="a02189.html">NLMISC::CEntityId</a>,<br>
+ <a class="el" href="a02455.html">CEntity</a> &gt;&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02454.html#NLMISC_1_1CEntityIdTranslatorr2">RegisteredEntities</a></td></tr>
+
+<tr><td colspan=2><br><h2>Static Private Attributes</h2></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a02454.html">CEntityIdTranslator</a> *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02454.html#NLMISC_1_1CEntityIdTranslatorv0">Instance</a> = NULL</td></tr>
+
+<tr><td colspan=2><br><h2>Friends</h2></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02454.html#NLMISC_1_1CEntityIdTranslatorn0">cbInvalidEntityNamesFilename</a> (const std::string &amp;<a class="el" href="a04560.html#a1">filename</a>)</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>struct&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02454.html#NLMISC_1_1CEntityIdTranslatorn1">entityNameValidClass</a></td></tr>
+
+</table>
+<hr><h2>Member Typedef Documentation</h2>
+<a class="anchor" name="NLMISC_1_1CEntityIdTranslatory0" doxytag="NLMISC::CEntityIdTranslator::reit" ></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"> typedef std::map&lt;<a class="el" href="a02189.html">NLMISC::CEntityId</a>, <a class="el" href="a02455.html">CEntity</a>&gt;::iterator <a class="el" href="a02454.html#NLMISC_1_1CEntityIdTranslatory0">NLMISC::CEntityIdTranslator::reit</a><code> [private]</code>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a05669.html#l00120">120</a> of file <a class="el" href="a05669.html">eid_translator.h</a>.
+<p>
+Referenced by <a class="el" href="a05668.html#l00249">entityNameExists()</a>, <a class="el" href="a05668.html#l00126">getByEntity()</a>, <a class="el" href="a05668.html#l00092">getByUser()</a>, <a class="el" href="a05668.html#l00493">getEntityIdInfo()</a>, <a class="el" href="a05668.html#l00535">getEntityNameStringId()</a>, <a class="el" href="a05668.html#l00467">getUId()</a>, <a class="el" href="a05668.html#l00480">getUserName()</a>, <a class="el" href="a05668.html#l00571">isEntityOnline()</a>, <a class="el" href="a05668.html#l00520">setEntityNameStringId()</a>, <a class="el" href="a05668.html#l00553">setEntityOnline()</a>, and <a class="el" href="a05668.html#l00292">unregisterEntity()</a>. </td>
+ </tr>
+</table>
+<hr><h2>Constructor &amp; Destructor Documentation</h2>
+<a class="anchor" name="NLMISC_1_1CEntityIdTranslatord0" doxytag="NLMISC::CEntityIdTranslator::CEntityIdTranslator" ></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"> NLMISC::CEntityIdTranslator::CEntityIdTranslator </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap><code> [inline, private]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a05669.html#l00125">125</a> of file <a class="el" href="a05669.html">eid_translator.h</a>.
+<p>
+<div class="fragment"><pre>00125 { }
+</pre></div> </td>
+ </tr>
+</table>
+<hr><h2>Member Function Documentation</h2>
+<a class="anchor" name="NLMISC_1_1CEntityIdTranslatora0" doxytag="NLMISC::CEntityIdTranslator::checkEntity" ></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::CEntityIdTranslator::checkEntity </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">const <a class="el" href="a02189.html">CEntityId</a> &amp;&nbsp;</td>
+ <td class="mdname" nowrap> <em>eid</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap>const <a class="el" href="a03924.html">ucstring</a> &amp;&nbsp;</td>
+ <td class="mdname" nowrap> <em>entityName</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap><a class="el" href="a04558.html#a11">uint32</a>&nbsp;</td>
+ <td class="mdname" nowrap> <em>uid</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap>const std::string &amp;&nbsp;</td>
+ <td class="mdname" nowrap> <em>userName</em></td>
+ </tr>
+ <tr>
+ <td></td>
+ <td class="md">)&nbsp;</td>
+ <td class="md" colspan="2"></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a05668.html#l00313">313</a> of file <a class="el" href="a05668.html">eid_translator.cpp</a>.
+<p>
+References <a class="el" href="a05668.html#l00249">entityNameExists()</a>, <a class="el" href="a05668.html#l00126">getByEntity()</a>, <a class="el" href="a05622.html#l00111">nlinfo</a>, <a class="el" href="a05622.html#l00135">nlwarning</a>, <a class="el" href="a05669.html#l00122">RegisteredEntities</a>, <a class="el" href="a05668.html#l00442">save()</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="a06229.html#l02652">NLMISC::toString()</a>, <a class="el" href="a06640.html#l00133">ucstring::toString()</a>, <a class="el" href="a05673.html#l00480">NLMISC::CEntityId::toString()</a>, and <a class="el" href="a05981.html#l00100">uint32</a>.
+<p>
+<div class="fragment"><pre>00314 {
+00315 <span class="comment">// we have to remove the crea and dyna because it can changed dynamically and will not be found in the storage array</span>
+00316 <a class="code" href="a02189.html">CEntityId</a> reid(eid);
+00317 reid.<a class="code" href="a02189.html#NLAIAGENT_1_1CIdenta26">setCreatorId</a>(0);
+00318 reid.<a class="code" href="a02189.html#NLAIAGENT_1_1CIdenta27">setDynamicId</a>(0);
+00319
+00320 map&lt;CEntityId, CEntityIdTranslator::CEntity&gt;::iterator it = <a class="code" href="a02454.html#NLMISC_1_1CEntityIdTranslatorr2">RegisteredEntities</a>.find (reid);
+00321 <span class="keywordtype">bool</span> needSave = <span class="keyword">false</span>;
+00322
+00323 <a class="code" href="a04199.html#a1">nlinfo</a> (<span class="stringliteral">"EIT: Checking EId %s EntityName '%s' UId %d UserName '%s'"</span>, reid.<a class="code" href="a02189.html#NLAIAGENT_1_1CIdenta31">toString</a>().c_str(), entityName.<a class="code" href="a03924.html#ucstringa11">toString</a>().c_str(), uid, userName.c_str());
+00324
+00325 <span class="keywordflow">if</span> (it == <a class="code" href="a02454.html#NLMISC_1_1CEntityIdTranslatorr2">RegisteredEntities</a>.end ())
+00326 {
+00327 <a class="code" href="a04199.html#a2">nlwarning</a> (<span class="stringliteral">"EIT: Check failed because EId is not in the CEntityIdTranslator map for EId %s EntityName '%s' UId %d UserName '%s'"</span>, reid.<a class="code" href="a02189.html#NLAIAGENT_1_1CIdenta31">toString</a>().c_str(), entityName.<a class="code" href="a03924.html#ucstringa11">toString</a>().c_str(), uid, userName.c_str());
+00328
+00329 <span class="keywordflow">if</span> (<a class="code" href="a02454.html#NLMISC_1_1CEntityIdTranslatora1">entityNameExists</a>(entityName))
+00330 {
+00331 <a class="code" href="a04199.html#a2">nlwarning</a> (<span class="stringliteral">"EIT: Check failed because entity name already exist (%s) for EId %s EntityName '%s' UId %d UserName '%s'"</span>, <a class="code" href="a02454.html#NLMISC_1_1CEntityIdTranslatora4">getByEntity</a>(entityName).<a class="code" href="a05378.html#a244">toString</a>().c_str(), reid.<a class="code" href="a02189.html#NLAIAGENT_1_1CIdenta31">toString</a>().c_str(), entityName.<a class="code" href="a03924.html#ucstringa11">toString</a>().c_str(), uid, userName.c_str());
+00332 }
+00333 }
+00334 <span class="keywordflow">else</span>
+00335 {
+00336 <span class="keywordflow">if</span> ((*it).second.EntityName != entityName)
+00337 {
+00338 <a class="code" href="a04199.html#a2">nlwarning</a> (<span class="stringliteral">"EIT: Check failed because entity name not identical (%s) in the CEntityIdTranslator map for EId %s EntityName '%s' UId %d UserName '%s'"</span>, (*it).second.EntityName.toString().c_str(), reid.<a class="code" href="a02189.html#NLAIAGENT_1_1CIdenta31">toString</a>().c_str(), entityName.<a class="code" href="a03924.html#ucstringa11">toString</a>().c_str(), uid, userName.c_str());
+00339 <span class="keywordflow">if</span>(!entityName.empty())
+00340 {
+00341 (*it).second.EntityName = entityName;
+00342 needSave = <span class="keyword">true</span>;
+00343 }
+00344 }
+00345 <span class="keywordflow">if</span> ((*it).second.UId != uid)
+00346 {
+00347 <a class="code" href="a04199.html#a2">nlwarning</a> (<span class="stringliteral">"EIT: Check failed because uid not identical (%d) in the CEntityIdTranslator map for EId %s EntityName '%s' UId %d UserName '%s'"</span>, (*it).second.UId, reid.<a class="code" href="a02189.html#NLAIAGENT_1_1CIdenta31">toString</a>().c_str(), entityName.<a class="code" href="a03924.html#ucstringa11">toString</a>().c_str(), uid, userName.c_str());
+00348 <span class="keywordflow">if</span> (uid != 0)
+00349 {
+00350 (*it).second.UId = uid;
+00351 needSave = <span class="keyword">true</span>;
+00352 }
+00353 }
+00354 <span class="keywordflow">if</span> ((*it).second.UserName != userName)
+00355 {
+00356 <a class="code" href="a04199.html#a2">nlwarning</a> (<span class="stringliteral">"EIT: Check failed because user name not identical (%s) in the CEntityIdTranslator map for EId %s EntityName '%s' UId %d UserName '%s'"</span>, (*it).second.UserName.c_str(), reid.<a class="code" href="a02189.html#NLAIAGENT_1_1CIdenta31">toString</a>().c_str(), entityName.<a class="code" href="a03924.html#ucstringa11">toString</a>().c_str(), uid, userName.c_str());
+00357 <span class="keywordflow">if</span>(!userName.empty())
+00358 {
+00359 (*it).second.UserName = userName;
+00360 needSave = <span class="keyword">true</span>;
+00361 }
+00362 }
+00363 }
+00364
+00365 <span class="keywordflow">if</span> (needSave)
+00366 <a class="code" href="a02454.html#NLMISC_1_1CEntityIdTranslatord2">save</a> ();
+00367 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CEntityIdTranslatora1" doxytag="NLMISC::CEntityIdTranslator::entityNameExists" ></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::CEntityIdTranslator::entityNameExists </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">const <a class="el" href="a03924.html">ucstring</a> &amp;&nbsp;</td>
+ <td class="mdname" nowrap> <em>entityName</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap>bool&nbsp;</td>
+ <td class="mdname" nowrap> <em>acceptBlanks</em> = false</td>
+ </tr>
+ <tr>
+ <td></td>
+ <td class="md">)&nbsp;</td>
+ <td class="md" colspan="2"></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a05668.html#l00249">249</a> of file <a class="el" href="a05668.html">eid_translator.cpp</a>.
+<p>
+References <a class="el" href="a05668.html#l00590">getRegisterableString()</a>, <a class="el" href="a05668.html#l00177">isValidEntityName()</a>, <a class="el" href="a05669.html#l00122">RegisteredEntities</a>, and <a class="el" href="a05669.html#l00120">reit</a>.
+<p>
+Referenced by <a class="el" href="a05668.html#l00313">checkEntity()</a>, <a class="el" href="a05668.html#l00664">NLMISC::NLMISC_COMMAND()</a>, and <a class="el" href="a05668.html#l00267">registerEntity()</a>.
+<p>
+<div class="fragment"><pre>00250 {
+00251 <span class="comment">// if bad name, don't accept it</span>
+00252 <span class="keywordflow">if</span> (!<a class="code" href="a02454.html#NLMISC_1_1CEntityIdTranslatora13">isValidEntityName</a> (entityName,NLMISC::InfoLog,acceptBlanks)) <span class="keywordflow">return</span> <span class="keyword">true</span>;
+00253
+00254 <span class="comment">// Names are stored in case dependant, so we have to test them without case.</span>
+00255 string registerable = <a class="code" href="a02454.html#NLMISC_1_1CEntityIdTranslatord1">getRegisterableString</a> (entityName);
+00256
+00257 <span class="keywordflow">for</span> (<a class="code" href="a02454.html#NLMISC_1_1CEntityIdTranslatory0">reit</a> it = <a class="code" href="a02454.html#NLMISC_1_1CEntityIdTranslatorr2">RegisteredEntities</a>.begin(); it != <a class="code" href="a02454.html#NLMISC_1_1CEntityIdTranslatorr2">RegisteredEntities</a>.end(); it++)
+00258 {
+00259 <span class="keywordflow">if</span> (<a class="code" href="a02454.html#NLMISC_1_1CEntityIdTranslatord1">getRegisterableString</a> ((*it).second.EntityName) == registerable)
+00260 {
+00261 <span class="keywordflow">return</span> <span class="keyword">true</span>;
+00262 }
+00263 }
+00264 <span class="keywordflow">return</span> <span class="keyword">false</span>;
+00265 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CEntityIdTranslatora2" doxytag="NLMISC::CEntityIdTranslator::getByEntity" ></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::CEntityIdTranslator::getByEntity </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">const <a class="el" href="a03924.html">ucstring</a> &amp;&nbsp;</td>
+ <td class="mdname" nowrap> <em>entityName</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap>std::vector&lt; <a class="el" href="a02189.html">NLMISC::CEntityId</a> &gt; &amp;&nbsp;</td>
+ <td class="mdname" nowrap> <em>res</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap>bool&nbsp;</td>
+ <td class="mdname" nowrap> <em>exact</em></td>
+ </tr>
+ <tr>
+ <td></td>
+ <td class="md">)&nbsp;</td>
+ <td class="md" colspan="2"></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a05668.html#l00154">154</a> of file <a class="el" href="a05668.html">eid_translator.cpp</a>.
+<p>
+References <a class="el" href="a05669.html#l00122">RegisteredEntities</a>, <a class="el" href="a05669.html#l00120">reit</a>, <a class="el" href="a05646.html#l01119">res</a>, <a class="el" href="a05586.html#l00536">NLMISC::strlwr()</a>, and <a class="el" href="a06640.html#l00133">ucstring::toString()</a>.
+<p>
+<div class="fragment"><pre>00155 {
+00156 string lowerName = <a class="code" href="a05378.html#a273">strlwr</a> (entityName.<a class="code" href="a03924.html#ucstringa11">toString</a>());
+00157
+00158 <span class="keywordflow">for</span> (<a class="code" href="a02454.html#NLMISC_1_1CEntityIdTranslatory0">reit</a> it = <a class="code" href="a02454.html#NLMISC_1_1CEntityIdTranslatorr2">RegisteredEntities</a>.begin(); it != <a class="code" href="a02454.html#NLMISC_1_1CEntityIdTranslatorr2">RegisteredEntities</a>.end(); ++it)
+00159 {
+00160 <span class="keywordflow">if</span> (exact)
+00161 {
+00162 <span class="keywordflow">if</span> (<a class="code" href="a05378.html#a273">strlwr</a>((*it).second.EntityName.toString()) == lowerName)
+00163 {
+00164 <a class="code" href="a04223.html#a643">res</a>.push_back((*it).first);
+00165 }
+00166 }
+00167 <span class="keywordflow">else</span>
+00168 {
+00169 <span class="keywordflow">if</span> (<a class="code" href="a05378.html#a273">strlwr</a>((*it).second.EntityName.toString()).find(lowerName) != string::npos)
+00170 {
+00171 <a class="code" href="a04223.html#a643">res</a>.push_back((*it).first);
+00172 }
+00173 }
+00174 }
+00175 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CEntityIdTranslatora3" doxytag="NLMISC::CEntityIdTranslator::getByEntity" ></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="a02189.html">CEntityId</a> NLMISC::CEntityIdTranslator::getByEntity </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">const <a class="el" href="a03924.html">ucstring</a> &amp;&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>entityName</em> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a05668.html#l00144">144</a> of file <a class="el" href="a05668.html">eid_translator.cpp</a>.
+<p>
+References <a class="el" href="a05668.html#l00126">getByEntity()</a>, and <a class="el" href="a05646.html#l01119">res</a>.
+<p>
+<div class="fragment"><pre>00145 {
+00146 vector&lt;CEntityId&gt; <a class="code" href="a04223.html#a643">res</a>;
+00147 <a class="code" href="a02454.html#NLMISC_1_1CEntityIdTranslatora4">getByEntity</a> (entityName, res, <span class="keyword">true</span>);
+00148 <span class="keywordflow">if</span> (<a class="code" href="a04223.html#a643">res</a>.empty())
+00149 <span class="keywordflow">return</span> CEntityId::Unknown;
+00150 <span class="keywordflow">else</span>
+00151 <span class="keywordflow">return</span> <a class="code" href="a04223.html#a643">res</a>[0];
+00152 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CEntityIdTranslatora4" doxytag="NLMISC::CEntityIdTranslator::getByEntity" ></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="a03924.html">ucstring</a> NLMISC::CEntityIdTranslator::getByEntity </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">const <a class="el" href="a02189.html">NLMISC::CEntityId</a> &amp;&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>eid</em> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a05668.html#l00126">126</a> of file <a class="el" href="a05668.html">eid_translator.cpp</a>.
+<p>
+References <a class="el" href="a05669.html#l00122">RegisteredEntities</a>, <a class="el" href="a05669.html#l00120">reit</a>, <a class="el" href="a05673.html#l00251">NLMISC::CEntityId::setCreatorId()</a>, and <a class="el" href="a05673.html#l00239">NLMISC::CEntityId::setDynamicId()</a>.
+<p>
+Referenced by <a class="el" href="a05668.html#l00313">checkEntity()</a>, <a class="el" href="a05668.html#l00144">getByEntity()</a>, and <a class="el" href="a05668.html#l00633">NLMISC::NLMISC_COMMAND()</a>.
+<p>
+<div class="fragment"><pre>00127 {
+00128 <span class="comment">// we have to remove the crea and dyna because it can changed dynamically and will not be found in the storage array</span>
+00129 <a class="code" href="a02189.html">CEntityId</a> reid(eid);
+00130 reid.<a class="code" href="a02189.html#NLAIAGENT_1_1CIdenta26">setCreatorId</a>(0);
+00131 reid.<a class="code" href="a02189.html#NLAIAGENT_1_1CIdenta27">setDynamicId</a>(0);
+00132
+00133 <a class="code" href="a02454.html#NLMISC_1_1CEntityIdTranslatory0">reit</a> it = <a class="code" href="a02454.html#NLMISC_1_1CEntityIdTranslatorr2">RegisteredEntities</a>.find (reid);
+00134 <span class="keywordflow">if</span> (it == <a class="code" href="a02454.html#NLMISC_1_1CEntityIdTranslatorr2">RegisteredEntities</a>.end ())
+00135 {
+00136 <span class="keywordflow">return</span> <a class="code" href="a03924.html">ucstring</a>(<span class="stringliteral">""</span>);
+00137 }
+00138 <span class="keywordflow">else</span>
+00139 {
+00140 <span class="keywordflow">return</span> (*it).second.EntityName;
+00141 }
+00142 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CEntityIdTranslatora5" doxytag="NLMISC::CEntityIdTranslator::getByUser" ></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::CEntityIdTranslator::getByUser </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">const std::string &amp;&nbsp;</td>
+ <td class="mdname" nowrap> <em>userName</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap>std::vector&lt; <a class="el" href="a02189.html">NLMISC::CEntityId</a> &gt; &amp;&nbsp;</td>
+ <td class="mdname" nowrap> <em>res</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap>bool&nbsp;</td>
+ <td class="mdname" nowrap> <em>exact</em> = true</td>
+ </tr>
+ <tr>
+ <td></td>
+ <td class="md">)&nbsp;</td>
+ <td class="md" colspan="2"></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a05668.html#l00103">103</a> of file <a class="el" href="a05668.html">eid_translator.cpp</a>.
+<p>
+References <a class="el" href="a05669.html#l00122">RegisteredEntities</a>, <a class="el" href="a05669.html#l00120">reit</a>, <a class="el" href="a05646.html#l01119">res</a>, and <a class="el" href="a05586.html#l00536">NLMISC::strlwr()</a>.
+<p>
+<div class="fragment"><pre>00104 {
+00105 string lowerName = <a class="code" href="a05378.html#a273">strlwr</a> (userName);
+00106
+00107 <span class="keywordflow">for</span> (<a class="code" href="a02454.html#NLMISC_1_1CEntityIdTranslatory0">reit</a> it = <a class="code" href="a02454.html#NLMISC_1_1CEntityIdTranslatorr2">RegisteredEntities</a>.begin(); it != <a class="code" href="a02454.html#NLMISC_1_1CEntityIdTranslatorr2">RegisteredEntities</a>.end(); it++)
+00108 {
+00109 <span class="keywordflow">if</span> (exact)
+00110 {
+00111 <span class="keywordflow">if</span> (<a class="code" href="a05378.html#a273">strlwr</a>((*it).second.UserName) == lowerName)
+00112 {
+00113 <a class="code" href="a04223.html#a643">res</a>.push_back((*it).first);
+00114 }
+00115 }
+00116 <span class="keywordflow">else</span>
+00117 {
+00118 <span class="keywordflow">if</span> (<a class="code" href="a05378.html#a273">strlwr</a>((*it).second.UserName).find(lowerName) != string::npos)
+00119 {
+00120 <a class="code" href="a04223.html#a643">res</a>.push_back((*it).first);
+00121 }
+00122 }
+00123 }
+00124 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CEntityIdTranslatora6" doxytag="NLMISC::CEntityIdTranslator::getByUser" ></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::CEntityIdTranslator::getByUser </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a11">uint32</a>&nbsp;</td>
+ <td class="mdname" nowrap> <em>uid</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap>std::vector&lt; <a class="el" href="a02189.html">NLMISC::CEntityId</a> &gt; &amp;&nbsp;</td>
+ <td class="mdname" nowrap> <em>res</em></td>
+ </tr>
+ <tr>
+ <td></td>
+ <td class="md">)&nbsp;</td>
+ <td class="md" colspan="2"></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a05668.html#l00092">92</a> of file <a class="el" href="a05668.html">eid_translator.cpp</a>.
+<p>
+References <a class="el" href="a05669.html#l00122">RegisteredEntities</a>, <a class="el" href="a05669.html#l00120">reit</a>, <a class="el" href="a05646.html#l01119">res</a>, and <a class="el" href="a05981.html#l00100">uint32</a>.
+<p>
+Referenced by <a class="el" href="a05668.html#l00603">NLMISC::NLMISC_COMMAND()</a>.
+<p>
+<div class="fragment"><pre>00093 {
+00094 <span class="keywordflow">for</span> (<a class="code" href="a02454.html#NLMISC_1_1CEntityIdTranslatory0">reit</a> it = <a class="code" href="a02454.html#NLMISC_1_1CEntityIdTranslatorr2">RegisteredEntities</a>.begin(); it != <a class="code" href="a02454.html#NLMISC_1_1CEntityIdTranslatorr2">RegisteredEntities</a>.end(); it++)
+00095 {
+00096 <span class="keywordflow">if</span> ((*it).second.UId == uid)
+00097 {
+00098 <a class="code" href="a04223.html#a643">res</a>.push_back((*it).first);
+00099 }
+00100 }
+00101 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CEntityIdTranslatora7" doxytag="NLMISC::CEntityIdTranslator::getEntityIdInfo" ></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::CEntityIdTranslator::getEntityIdInfo </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">const <a class="el" href="a02189.html">CEntityId</a> &amp;&nbsp;</td>
+ <td class="mdname" nowrap> <em>eid</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap><a class="el" href="a03924.html">ucstring</a> &amp;&nbsp;</td>
+ <td class="mdname" nowrap> <em>entityName</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap><a class="el" href="a04558.html#a6">sint8</a> &amp;&nbsp;</td>
+ <td class="mdname" nowrap> <em>entitySlot</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap><a class="el" href="a04558.html#a11">uint32</a> &amp;&nbsp;</td>
+ <td class="mdname" nowrap> <em>uid</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap>std::string &amp;&nbsp;</td>
+ <td class="mdname" nowrap> <em>userName</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap>bool &amp;&nbsp;</td>
+ <td class="mdname" nowrap> <em>online</em></td>
+ </tr>
+ <tr>
+ <td></td>
+ <td class="md">)&nbsp;</td>
+ <td class="md" colspan="2"></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a05668.html#l00493">493</a> of file <a class="el" href="a05668.html">eid_translator.cpp</a>.
+<p>
+References <a class="el" href="a05622.html#l00135">nlwarning</a>, <a class="el" href="a05669.html#l00122">RegisteredEntities</a>, <a class="el" href="a05669.html#l00120">reit</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="a05981.html#l00095">sint8</a>, <a class="el" href="a05673.html#l00480">NLMISC::CEntityId::toString()</a>, and <a class="el" href="a05981.html#l00100">uint32</a>.
+<p>
+Referenced by <a class="el" href="a05668.html#l00633">NLMISC::NLMISC_COMMAND()</a>.
+<p>
+<div class="fragment"><pre>00494 {
+00495 <span class="comment">// we have to remove the crea and dyna because it can changed dynamically and will not be found in the storage array</span>
+00496 <a class="code" href="a02189.html">CEntityId</a> reid(eid);
+00497 reid.<a class="code" href="a02189.html#NLAIAGENT_1_1CIdenta26">setCreatorId</a>(0);
+00498 reid.<a class="code" href="a02189.html#NLAIAGENT_1_1CIdenta27">setDynamicId</a>(0);
+00499
+00500 <a class="code" href="a02454.html#NLMISC_1_1CEntityIdTranslatory0">reit</a> it = <a class="code" href="a02454.html#NLMISC_1_1CEntityIdTranslatorr2">RegisteredEntities</a>.find (reid);
+00501 <span class="keywordflow">if</span> (it == <a class="code" href="a02454.html#NLMISC_1_1CEntityIdTranslatorr2">RegisteredEntities</a>.end ())
+00502 {
+00503 <a class="code" href="a04199.html#a2">nlwarning</a> (<span class="stringliteral">"EIT: %s is not registered in CEntityIdTranslator"</span>, reid.<a class="code" href="a02189.html#NLAIAGENT_1_1CIdenta31">toString</a>().c_str());
+00504 entityName = <span class="stringliteral">""</span>;
+00505 entitySlot = -1;
+00506 uid = ~0;
+00507 userName = <span class="stringliteral">""</span>;
+00508 online = <span class="keyword">false</span>;
+00509 }
+00510 <span class="keywordflow">else</span>
+00511 {
+00512 entityName = (*it).second.EntityName;
+00513 entitySlot = (*it).second.EntitySlot;
+00514 uid = (*it).second.UId;
+00515 userName = (*it).second.UserName;
+00516 online = (*it).second.Online;
+00517 }
+00518 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CEntityIdTranslatora8" doxytag="NLMISC::CEntityIdTranslator::getEntityNameStringId" ></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#a11">uint32</a> NLMISC::CEntityIdTranslator::getEntityNameStringId </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">const <a class="el" href="a02189.html">CEntityId</a> &amp;&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>eid</em> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a05668.html#l00535">535</a> of file <a class="el" href="a05668.html">eid_translator.cpp</a>.
+<p>
+References <a class="el" href="a05669.html#l00122">RegisteredEntities</a>, <a class="el" href="a05669.html#l00120">reit</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#l00100">uint32</a>.
+<p>
+<div class="fragment"><pre>00536 {
+00537 <span class="comment">// we have to remove the crea and dyna because it can changed dynamically and will not be found in the storage array</span>
+00538 <a class="code" href="a02189.html">CEntityId</a> reid(eid);
+00539 reid.<a class="code" href="a02189.html#NLAIAGENT_1_1CIdenta26">setCreatorId</a>(0);
+00540 reid.<a class="code" href="a02189.html#NLAIAGENT_1_1CIdenta27">setDynamicId</a>(0);
+00541
+00542 <span class="keyword">const</span> <a class="code" href="a02454.html#NLMISC_1_1CEntityIdTranslatory0">reit</a> it = <a class="code" href="a02454.html#NLMISC_1_1CEntityIdTranslatorr2">RegisteredEntities</a>.find (reid);
+00543 <span class="keywordflow">if</span> (it == <a class="code" href="a02454.html#NLMISC_1_1CEntityIdTranslatorr2">RegisteredEntities</a>.end ())
+00544 {
+00545 <span class="keywordflow">return</span> 0;
+00546 }
+00547 <span class="keywordflow">else</span>
+00548 {
+00549 <span class="keywordflow">return</span> (*it).second.EntityNameStringId;
+00550 }
+00551 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CEntityIdTranslatore0" doxytag="NLMISC::CEntityIdTranslator::getInstance" ></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="a02454.html">CEntityIdTranslator</a> * NLMISC::CEntityIdTranslator::getInstance </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap><code> [static]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a05668.html#l00083">83</a> of file <a class="el" href="a05668.html">eid_translator.cpp</a>.
+<p>
+<div class="fragment"><pre>00084 {
+00085 <span class="keywordflow">if</span>(<a class="code" href="a02454.html#NLMISC_1_1CEntityIdTranslatorv0">Instance</a> == NULL)
+00086 {
+00087 <a class="code" href="a02454.html#NLMISC_1_1CEntityIdTranslatorv0">Instance</a> = <span class="keyword">new</span> <a class="code" href="a02454.html#NLMISC_1_1CEntityIdTranslatord0">CEntityIdTranslator</a>;
+00088 }
+00089 <span class="keywordflow">return</span> <a class="code" href="a02454.html#NLMISC_1_1CEntityIdTranslatorv0">Instance</a>;
+00090 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CEntityIdTranslatord1" doxytag="NLMISC::CEntityIdTranslator::getRegisterableString" ></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::CEntityIdTranslator::getRegisterableString </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">const <a class="el" href="a03924.html">ucstring</a> &amp;&nbsp;</td>
+ <td class="mdname" nowrap> <em>entityName</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap>bool&nbsp;</td>
+ <td class="mdname" nowrap> <em>removeBlanks</em> = false</td>
+ </tr>
+ <tr>
+ <td></td>
+ <td class="md">)&nbsp;</td>
+ <td class="md" colspan="2"><code> [private]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a05668.html#l00590">590</a> of file <a class="el" href="a05668.html">eid_translator.cpp</a>.
+<p>
+References <a class="el" href="a05586.html#l00536">NLMISC::strlwr()</a>, <a class="el" href="a06640.html#l00133">ucstring::toString()</a>, and <a class="el" href="a05981.html#l00105">uint</a>.
+<p>
+Referenced by <a class="el" href="a05668.html#l00249">entityNameExists()</a>, and <a class="el" href="a05668.html#l00177">isValidEntityName()</a>.
+<p>
+<div class="fragment"><pre>00591 {
+00592 string ret = <a class="code" href="a05378.html#a273">strlwr</a>( entityName.<a class="code" href="a03924.html#ucstringa11">toString</a>() );
+00593 <a class="code" href="a04558.html#a15">uint</a> pos = ret.find( 0x20 );
+00594 <span class="keywordflow">while</span>( pos != string::npos )
+00595 {
+00596 ret.erase( pos,1 );
+00597 pos = ret.find( 0x20 );
+00598 }
+00599 <span class="keywordflow">return</span> ret;
+00600 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CEntityIdTranslatora9" doxytag="NLMISC::CEntityIdTranslator::getRegisteredEntities" ></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::map&lt;<a class="el" href="a02189.html">NLMISC::CEntityId</a>, <a class="el" href="a02455.html">CEntity</a>&gt;&amp; NLMISC::CEntityIdTranslator::getRegisteredEntities </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap><code> [inline]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a05669.html#l00112">112</a> of file <a class="el" href="a05669.html">eid_translator.h</a>.
+<p>
+References <a class="el" href="a05669.html#l00122">RegisteredEntities</a>.
+<p>
+Referenced by <a class="el" href="a05668.html#l00687">NLMISC::NLMISC_COMMAND()</a>.
+<p>
+<div class="fragment"><pre>00112 { <span class="keywordflow">return</span> <a class="code" href="a02454.html#NLMISC_1_1CEntityIdTranslatorr2">RegisteredEntities</a>; }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CEntityIdTranslatora10" doxytag="NLMISC::CEntityIdTranslator::getUId" ></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#a11">uint32</a> NLMISC::CEntityIdTranslator::getUId </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">const std::string &amp;&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>userName</em> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a05668.html#l00467">467</a> of file <a class="el" href="a05668.html">eid_translator.cpp</a>.
+<p>
+References <a class="el" href="a05669.html#l00122">RegisteredEntities</a>, <a class="el" href="a05669.html#l00120">reit</a>, and <a class="el" href="a05981.html#l00100">uint32</a>.
+<p>
+Referenced by <a class="el" href="a05668.html#l00603">NLMISC::NLMISC_COMMAND()</a>.
+<p>
+<div class="fragment"><pre>00468 {
+00469 <span class="keyword">const</span> <a class="code" href="a02454.html#NLMISC_1_1CEntityIdTranslatory0">reit</a> itEnd = <a class="code" href="a02454.html#NLMISC_1_1CEntityIdTranslatorr2">RegisteredEntities</a>.end();
+00470 <span class="keywordflow">for</span> (<a class="code" href="a02454.html#NLMISC_1_1CEntityIdTranslatory0">reit</a> it = <a class="code" href="a02454.html#NLMISC_1_1CEntityIdTranslatorr2">RegisteredEntities</a>.begin(); it != itEnd ; ++it)
+00471 {
+00472 <span class="keywordflow">if</span> ((*it).second.UserName == userName)
+00473 {
+00474 <span class="keywordflow">return</span> (*it).second.UId;
+00475 }
+00476 }
+00477 <span class="keywordflow">return</span> 0;
+00478 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CEntityIdTranslatora11" doxytag="NLMISC::CEntityIdTranslator::getUserName" ></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"> string NLMISC::CEntityIdTranslator::getUserName </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a11">uint32</a>&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>uid</em> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a05668.html#l00480">480</a> of file <a class="el" href="a05668.html">eid_translator.cpp</a>.
+<p>
+References <a class="el" href="a05669.html#l00122">RegisteredEntities</a>, <a class="el" href="a05669.html#l00120">reit</a>, and <a class="el" href="a05981.html#l00100">uint32</a>.
+<p>
+Referenced by <a class="el" href="a05668.html#l00603">NLMISC::NLMISC_COMMAND()</a>.
+<p>
+<div class="fragment"><pre>00481 {
+00482 <span class="keyword">const</span> <a class="code" href="a02454.html#NLMISC_1_1CEntityIdTranslatory0">reit</a> itEnd = <a class="code" href="a02454.html#NLMISC_1_1CEntityIdTranslatorr2">RegisteredEntities</a>.end();
+00483 <span class="keywordflow">for</span> (<a class="code" href="a02454.html#NLMISC_1_1CEntityIdTranslatory0">reit</a> it = <a class="code" href="a02454.html#NLMISC_1_1CEntityIdTranslatorr2">RegisteredEntities</a>.begin(); it != itEnd ; ++it)
+00484 {
+00485 <span class="keywordflow">if</span> ((*it).second.UId == uid)
+00486 {
+00487 <span class="keywordflow">return</span> (*it).second.UserName;
+00488 }
+00489 }
+00490 <span class="keywordflow">return</span> 0;
+00491 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CEntityIdTranslatora12" doxytag="NLMISC::CEntityIdTranslator::isEntityOnline" ></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::CEntityIdTranslator::isEntityOnline </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">const <a class="el" href="a02189.html">CEntityId</a> &amp;&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>eid</em> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a05668.html#l00571">571</a> of file <a class="el" href="a05668.html">eid_translator.cpp</a>.
+<p>
+References <a class="el" href="a05622.html#l00135">nlwarning</a>, <a class="el" href="a05669.html#l00122">RegisteredEntities</a>, <a class="el" href="a05669.html#l00120">reit</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="a05673.html#l00480">NLMISC::CEntityId::toString()</a>.
+<p>
+<div class="fragment"><pre>00572 {
+00573 <span class="comment">// we have to remove the crea and dyna because it can changed dynamically and will not be found in the storage array</span>
+00574 <a class="code" href="a02189.html">CEntityId</a> reid(eid);
+00575 reid.<a class="code" href="a02189.html#NLAIAGENT_1_1CIdenta26">setCreatorId</a>(0);
+00576 reid.<a class="code" href="a02189.html#NLAIAGENT_1_1CIdenta27">setDynamicId</a>(0);
+00577
+00578 <a class="code" href="a02454.html#NLMISC_1_1CEntityIdTranslatory0">reit</a> it = <a class="code" href="a02454.html#NLMISC_1_1CEntityIdTranslatorr2">RegisteredEntities</a>.find (reid);
+00579 <span class="keywordflow">if</span> (it == <a class="code" href="a02454.html#NLMISC_1_1CEntityIdTranslatorr2">RegisteredEntities</a>.end ())
+00580 {
+00581 <a class="code" href="a04199.html#a2">nlwarning</a> (<span class="stringliteral">"EIT: %s is not registered in CEntityIdTranslator"</span>, reid.<a class="code" href="a02189.html#NLAIAGENT_1_1CIdenta31">toString</a>().c_str());
+00582 <span class="keywordflow">return</span> <span class="keyword">false</span>;
+00583 }
+00584 <span class="keywordflow">else</span>
+00585 {
+00586 <span class="keywordflow">return</span> (*it).second.Online;
+00587 }
+00588 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CEntityIdTranslatora13" doxytag="NLMISC::CEntityIdTranslator::isValidEntityName" ></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::CEntityIdTranslator::isValidEntityName </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">const <a class="el" href="a03924.html">ucstring</a> &amp;&nbsp;</td>
+ <td class="mdname" nowrap> <em>entityName</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap><a class="el" href="a02813.html">NLMISC::CLog</a> *&nbsp;</td>
+ <td class="mdname" nowrap> <em>log</em> = <a class="el" href="a05378.html#a12">NLMISC::InfoLog</a>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap>bool&nbsp;</td>
+ <td class="mdname" nowrap> <em>acceptBlanks</em> = false</td>
+ </tr>
+ <tr>
+ <td></td>
+ <td class="md">)&nbsp;</td>
+ <td class="md" colspan="2"></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a05668.html#l00177">177</a> of file <a class="el" href="a05668.html">eid_translator.cpp</a>.
+<p>
+References <a class="el" href="a05943.html#l00323">NLMISC::CLog::displayNL()</a>, <a class="el" href="a05668.html#l00590">getRegisterableString()</a>, <a class="el" href="a05669.html#l00138">InvalidEntityNames</a>, <a class="el" href="a05425.html#l00038">NLMISC::testWildCard()</a>, <a class="el" href="a06640.html#l00133">ucstring::toString()</a>, <a class="el" href="a05981.html#l00105">uint</a>, and <a class="el" href="a05981.html#l00098">uint16</a>.
+<p>
+Referenced by <a class="el" href="a05668.html#l00249">entityNameExists()</a>, and <a class="el" href="a05668.html#l00664">NLMISC::NLMISC_COMMAND()</a>.
+<p>
+<div class="fragment"><pre>00178 {
+00179 <span class="comment">// 3 char at least</span>
+00180 <span class="keywordflow">if</span> (entityName.size() &lt; 3)
+00181 {
+00182 log-&gt;<a class="code" href="a02813.html#NLNET_1_1CNetLoga7">displayNL</a>(<span class="stringliteral">"Bad entity name '%s' (less than 3 char)"</span>, entityName.<a class="code" href="a03924.html#ucstringa11">toString</a>().c_str());
+00183 <span class="keywordflow">return</span> <span class="keyword">false</span>;
+00184 }
+00185
+00186 <span class="keywordflow">if</span> ( acceptBlanks )
+00187 {
+00188 <span class="comment">// no blanks at the beginning or at the end</span>
+00189 <span class="keywordflow">if</span> ( entityName[0] ==(<a class="code" href="a04558.html#a9">uint16</a>)0x20 )
+00190 {
+00191 log-&gt;<a class="code" href="a02813.html#NLNET_1_1CNetLoga7">displayNL</a>(<span class="stringliteral">"Bad entity name '%s' : start with a blank"</span>, entityName.<a class="code" href="a03924.html#ucstringa11">toString</a>().c_str());
+00192 <span class="keywordflow">return</span> <span class="keyword">false</span>;
+00193 }
+00194 <span class="keywordflow">if</span> ( entityName[entityName.size() - 1] ==(<a class="code" href="a04558.html#a9">uint16</a>)0x20 )
+00195 {
+00196 log-&gt;<a class="code" href="a02813.html#NLNET_1_1CNetLoga7">displayNL</a>(<span class="stringliteral">"Bad entity name '%s' : end with a blank"</span>, entityName.<a class="code" href="a03924.html#ucstringa11">toString</a>().c_str());
+00197 <span class="keywordflow">return</span> <span class="keyword">false</span>;
+00198 }
+00199 <span class="keywordtype">bool</span> previousBlank = <span class="keyword">false</span>;
+00200 <span class="keywordflow">for</span> (<a class="code" href="a04558.html#a15">uint</a> i = 0; i &lt; entityName.size(); i++)
+00201 {
+00202 <span class="keywordflow">if</span>( entityName[i] == (<a class="code" href="a04558.html#a9">uint16</a>)0x20 )
+00203 {
+00204 <span class="comment">// don't accept consecutive blanks</span>
+00205 <span class="keywordflow">if</span> ( previousBlank )
+00206 {
+00207 log-&gt;<a class="code" href="a02813.html#NLNET_1_1CNetLoga7">displayNL</a>(<span class="stringliteral">"Bad entity name '%s' consecutive blanks are not allowed"</span>, entityName.<a class="code" href="a03924.html#ucstringa11">toString</a>().c_str());
+00208 <span class="keywordflow">return</span> <span class="keyword">false</span>;
+00209 }
+00210 previousBlank = <span class="keyword">true</span>;
+00211 }
+00212 <span class="keywordflow">else</span>
+00213 {
+00214 <span class="comment">// accept name with alphabetic and numeric value [a-zA-Z0-9]</span>
+00215 <span class="keywordflow">if</span> (!isalnum (entityName[i]))
+00216 {
+00217 log-&gt;<a class="code" href="a02813.html#NLNET_1_1CNetLoga7">displayNL</a>(<span class="stringliteral">"Bad entity name '%s' (only char and num)"</span>, entityName.<a class="code" href="a03924.html#ucstringa11">toString</a>().c_str());
+00218 <span class="keywordflow">return</span> <span class="keyword">false</span>;
+00219 }
+00220 previousBlank = <span class="keyword">false</span>;
+00221 }
+00222 }
+00223 }
+00224 <span class="keywordflow">else</span> <span class="keywordflow">for</span> (<a class="code" href="a04558.html#a15">uint</a> i = 0; i &lt; entityName.size(); i++)
+00225 {
+00226 <span class="comment">// only accept name with alphabetic and numeric value [a-zA-Z0-9]</span>
+00227 <span class="keywordflow">if</span> (!isalnum (entityName[i]))
+00228 {
+00229 log-&gt;<a class="code" href="a02813.html#NLNET_1_1CNetLoga7">displayNL</a>(<span class="stringliteral">"Bad entity name '%s' (only char and num)"</span>, entityName.<a class="code" href="a03924.html#ucstringa11">toString</a>().c_str());
+00230 <span class="keywordflow">return</span> <span class="keyword">false</span>;
+00231 }
+00232 }
+00233
+00234 <span class="comment">// now check with the invalid name list</span>
+00235 string en = <a class="code" href="a02454.html#NLMISC_1_1CEntityIdTranslatord1">getRegisterableString</a>( entityName, acceptBlanks);
+00236
+00237 <span class="keywordflow">for</span> (<a class="code" href="a04558.html#a15">uint</a> i = 0; i &lt; <a class="code" href="a02454.html#NLMISC_1_1CEntityIdTranslatorr1">InvalidEntityNames</a>.size(); i++)
+00238 {
+00239 <span class="keywordflow">if</span>(<a class="code" href="a05378.html#a246">testWildCard</a>(en, InvalidEntityNames[i]))
+00240 {
+00241 log-&gt;<a class="code" href="a02813.html#NLNET_1_1CNetLoga7">displayNL</a>(<span class="stringliteral">"Bad entity name '%s' (match the invalid entity name pattern '%s')"</span>, entityName.<a class="code" href="a03924.html#ucstringa11">toString</a>().c_str(), <a class="code" href="a02454.html#NLMISC_1_1CEntityIdTranslatorr1">InvalidEntityNames</a>[i].c_str());
+00242 <span class="keywordflow">return</span> <span class="keyword">false</span>;
+00243 }
+00244 }
+00245
+00246 <span class="keywordflow">return</span> <span class="keyword">true</span>;
+00247 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CEntityIdTranslatora14" doxytag="NLMISC::CEntityIdTranslator::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"> void NLMISC::CEntityIdTranslator::load </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">const std::string &amp;&nbsp;</td>
+ <td class="mdname" nowrap> <em>fileName</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap>const std::string &amp;&nbsp;</td>
+ <td class="mdname" nowrap> <em>invalidEntityNamesFilename</em></td>
+ </tr>
+ <tr>
+ <td></td>
+ <td class="md">)&nbsp;</td>
+ <td class="md" colspan="2"></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a05668.html#l00405">405</a> of file <a class="el" href="a05668.html">eid_translator.cpp</a>.
+<p>
+References <a class="el" href="a06167.html#l01567">NLMISC::CFile::addFileChangeCallback()</a>, <a class="el" href="a05668.html#l00370">NLMISC::cbInvalidEntityNamesFilename()</a>, <a class="el" href="a05668.html#l00370">cbInvalidEntityNamesFilename</a>, <a class="el" href="a05708.html#l00255">NLMISC::CIFile::close()</a>, <a class="el" href="a05669.html#l00116">FileVersion</a>, <a class="el" href="a05622.html#l00111">nlinfo</a>, <a class="el" href="a05622.html#l00135">nlwarning</a>, <a class="el" href="a05708.html#l00135">NLMISC::CIFile::open()</a>, <a class="el" href="a05669.html#l00122">RegisteredEntities</a>, <a class="el" href="a06462.html#l00324">NLMISC::IStream::serialCont()</a>, and <a class="el" href="a06461.html#l00266">NLMISC::IStream::serialVersion()</a>.
+<p>
+<div class="fragment"><pre>00406 {
+00407 <span class="keywordflow">if</span> (fileName.empty())
+00408 {
+00409 <a class="code" href="a04199.html#a2">nlwarning</a> (<span class="stringliteral">"EIT: Can't load empty filename for EntityIdTranslator"</span>);
+00410 <span class="keywordflow">return</span>;
+00411 }
+00412
+00413 <span class="keywordflow">if</span> (!<a class="code" href="a02454.html#NLMISC_1_1CEntityIdTranslatorr0">FileName</a>.empty())
+00414 {
+00415 <a class="code" href="a04199.html#a2">nlwarning</a> (<span class="stringliteral">"EIT: Can't load file '%s' for EntityIdTranslator because we already load the file '%s'"</span>, fileName.c_str(), <a class="code" href="a02454.html#NLMISC_1_1CEntityIdTranslatorr0">FileName</a>.c_str());
+00416 <span class="keywordflow">return</span>;
+00417 }
+00418
+00419 <a class="code" href="a04199.html#a1">nlinfo</a> (<span class="stringliteral">"EIT: CEntityIdTranslator: load '%s'"</span>, fileName.c_str());
+00420
+00421 <a class="code" href="a02454.html#NLMISC_1_1CEntityIdTranslatorr0">FileName</a> = fileName;
+00422
+00423 <a class="code" href="a02653.html">CIFile</a> ifile;
+00424 <span class="keywordflow">if</span>( ifile.<a class="code" href="a02653.html#NLMISC_1_1CIFilea12">open</a>(FileName) )
+00425 {
+00426 <a class="code" href="a02454.html#NLMISC_1_1CEntityIdTranslatoro0">FileVersion</a> = <a class="code" href="a02454.html#NLMISC_1_1CEntityIdTranslators0">Version</a>;
+00427 ifile.<a class="code" href="a02270.html#NLMISC_1_1IStreamz2035_8">serialVersion</a> (FileVersion);
+00428 ifile.<a class="code" href="a02270.html#NLMISC_1_1IStreamz2033_9">serialCont</a> (RegisteredEntities);
+00429
+00430 ifile.<a class="code" href="a02653.html#NLMISC_1_1CIFilea3">close</a> ();
+00431 }
+00432 <span class="keywordflow">else</span>
+00433 {
+00434 <a class="code" href="a04199.html#a2">nlwarning</a> (<span class="stringliteral">"EIT: Can't load filename '%s' for EntityIdTranslator"</span>, <a class="code" href="a02454.html#NLMISC_1_1CEntityIdTranslatorr0">FileName</a>.c_str());
+00435 }
+00436
+00437 <a class="code" href="a02454.html#NLMISC_1_1CEntityIdTranslatorn0">cbInvalidEntityNamesFilename</a> (invalidEntityNamesFilename);
+00438
+00439 <a class="code" href="a02524.html#NLMISC_1_1CFilee0">NLMISC::CFile::addFileChangeCallback</a> (invalidEntityNamesFilename, cbInvalidEntityNamesFilename);
+00440 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CEntityIdTranslatora15" doxytag="NLMISC::CEntityIdTranslator::registerEntity" ></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::CEntityIdTranslator::registerEntity </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">const <a class="el" href="a02189.html">CEntityId</a> &amp;&nbsp;</td>
+ <td class="mdname" nowrap> <em>eid</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap>const <a class="el" href="a03924.html">ucstring</a> &amp;&nbsp;</td>
+ <td class="mdname" nowrap> <em>entityName</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap><a class="el" href="a04558.html#a6">sint8</a>&nbsp;</td>
+ <td class="mdname" nowrap> <em>entitySlot</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap><a class="el" href="a04558.html#a11">uint32</a>&nbsp;</td>
+ <td class="mdname" nowrap> <em>uid</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap>const std::string &amp;&nbsp;</td>
+ <td class="mdname" nowrap> <em>userName</em></td>
+ </tr>
+ <tr>
+ <td></td>
+ <td class="md">)&nbsp;</td>
+ <td class="md" colspan="2"></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a05668.html#l00267">267</a> of file <a class="el" href="a05668.html">eid_translator.cpp</a>.
+<p>
+References <a class="el" href="a05668.html#l00249">entityNameExists()</a>, <a class="el" href="a05622.html#l00111">nlinfo</a>, <a class="el" href="a05622.html#l00135">nlwarning</a>, <a class="el" href="a05669.html#l00122">RegisteredEntities</a>, <a class="el" href="a05668.html#l00442">save()</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="a05981.html#l00095">sint8</a>, <a class="el" href="a06640.html#l00133">ucstring::toString()</a>, <a class="el" href="a05673.html#l00480">NLMISC::CEntityId::toString()</a>, and <a class="el" href="a05981.html#l00100">uint32</a>.
+<p>
+<div class="fragment"><pre>00268 {
+00269 <span class="comment">// we have to remove the crea and dyna because it can changed dynamically and will not be found in the storage array</span>
+00270 <a class="code" href="a02189.html">CEntityId</a> reid(eid);
+00271 reid.<a class="code" href="a02189.html#NLAIAGENT_1_1CIdenta26">setCreatorId</a>(0);
+00272 reid.<a class="code" href="a02189.html#NLAIAGENT_1_1CIdenta27">setDynamicId</a>(0);
+00273
+00274 <span class="keywordflow">if</span> (<a class="code" href="a02454.html#NLMISC_1_1CEntityIdTranslatorr2">RegisteredEntities</a>.find (reid) != <a class="code" href="a02454.html#NLMISC_1_1CEntityIdTranslatorr2">RegisteredEntities</a>.end ())
+00275 {
+00276 <a class="code" href="a04199.html#a2">nlwarning</a> (<span class="stringliteral">"EIT: Can't register EId %s EntityName %s UId %d UserName %s because EId is already in the map"</span>, reid.<a class="code" href="a02189.html#NLAIAGENT_1_1CIdenta31">toString</a>().c_str(), entityName.<a class="code" href="a03924.html#ucstringa11">toString</a>().c_str(), uid, userName.c_str());
+00277 <span class="keywordflow">return</span>;
+00278 }
+00279
+00280 <span class="keywordflow">if</span> (<a class="code" href="a02454.html#NLMISC_1_1CEntityIdTranslatora1">entityNameExists</a>(entityName))
+00281 {
+00282 <a class="code" href="a04199.html#a2">nlwarning</a> (<span class="stringliteral">"EIT: Can't register EId %s EntityName %s UId %d UserName %s because EntityName is already in the map"</span>, reid.<a class="code" href="a02189.html#NLAIAGENT_1_1CIdenta31">toString</a>().c_str(), entityName.<a class="code" href="a03924.html#ucstringa11">toString</a>().c_str(), uid, userName.c_str());
+00283 <span class="keywordflow">return</span>;
+00284 }
+00285
+00286 <a class="code" href="a04199.html#a1">nlinfo</a> (<span class="stringliteral">"EIT: Register EId %s EntityName %s UId %d UserName %s"</span>, reid.<a class="code" href="a02189.html#NLAIAGENT_1_1CIdenta31">toString</a>().c_str(), entityName.<a class="code" href="a03924.html#ucstringa11">toString</a>().c_str(), uid, userName.c_str());
+00287 <a class="code" href="a02454.html#NLMISC_1_1CEntityIdTranslatorr2">RegisteredEntities</a>.insert (make_pair(reid, CEntityIdTranslator::CEntity(entityName, uid, userName, entitySlot)));
+00288
+00289 <a class="code" href="a02454.html#NLMISC_1_1CEntityIdTranslatord2">save</a> ();
+00290 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CEntityIdTranslatord2" doxytag="NLMISC::CEntityIdTranslator::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"> void NLMISC::CEntityIdTranslator::save </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap><code> [private]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a05668.html#l00442">442</a> of file <a class="el" href="a05668.html">eid_translator.cpp</a>.
+<p>
+References <a class="el" href="a05708.html#l00531">NLMISC::COFile::close()</a>, <a class="el" href="a05669.html#l00116">FileVersion</a>, <a class="el" href="a05622.html#l00111">nlinfo</a>, <a class="el" href="a05622.html#l00135">nlwarning</a>, <a class="el" href="a05708.html#l00503">NLMISC::COFile::open()</a>, <a class="el" href="a05669.html#l00122">RegisteredEntities</a>, <a class="el" href="a06462.html#l00324">NLMISC::IStream::serialCont()</a>, and <a class="el" href="a06461.html#l00266">NLMISC::IStream::serialVersion()</a>.
+<p>
+Referenced by <a class="el" href="a05668.html#l00313">checkEntity()</a>, <a class="el" href="a05668.html#l00267">registerEntity()</a>, and <a class="el" href="a05668.html#l00292">unregisterEntity()</a>.
+<p>
+<div class="fragment"><pre>00443 {
+00444 <span class="keywordflow">if</span> (<a class="code" href="a02454.html#NLMISC_1_1CEntityIdTranslatorr0">FileName</a>.empty())
+00445 {
+00446 <a class="code" href="a04199.html#a2">nlwarning</a> (<span class="stringliteral">"EIT: Can't save empty filename for EntityIdTranslator (you forgot to load() it before?)"</span>);
+00447 <span class="keywordflow">return</span>;
+00448 }
+00449
+00450 <a class="code" href="a04199.html#a1">nlinfo</a> (<span class="stringliteral">"EIT: CEntityIdTranslator: save"</span>);
+00451
+00452 <a class="code" href="a03011.html">COFile</a> ofile;
+00453 <span class="keywordflow">if</span>( ofile.<a class="code" href="a03011.html#NLMISC_1_1COFilea9">open</a>(FileName) )
+00454 {
+00455 ofile.<a class="code" href="a02270.html#NLMISC_1_1IStreamz2035_8">serialVersion</a> (Version);
+00456 <a class="code" href="a02454.html#NLMISC_1_1CEntityIdTranslatoro0">FileVersion</a> = <a class="code" href="a02454.html#NLMISC_1_1CEntityIdTranslators0">Version</a>;
+00457 ofile.<a class="code" href="a02270.html#NLMISC_1_1IStreamz2033_9">serialCont</a> (RegisteredEntities);
+00458
+00459 ofile.<a class="code" href="a03011.html#NLMISC_1_1COFilea0">close</a> ();
+00460 }
+00461 <span class="keywordflow">else</span>
+00462 {
+00463 <a class="code" href="a04199.html#a2">nlwarning</a> (<span class="stringliteral">"EIT: Can't save filename '%s' for EntityIdTranslator"</span>, <a class="code" href="a02454.html#NLMISC_1_1CEntityIdTranslatorr0">FileName</a>.c_str());
+00464 }
+00465 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CEntityIdTranslatora16" doxytag="NLMISC::CEntityIdTranslator::setEntityNameStringId" ></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::CEntityIdTranslator::setEntityNameStringId </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">const <a class="el" href="a03924.html">ucstring</a> &amp;&nbsp;</td>
+ <td class="mdname" nowrap> <em>entityName</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap><a class="el" href="a04558.html#a11">uint32</a>&nbsp;</td>
+ <td class="mdname" nowrap> <em>stringId</em></td>
+ </tr>
+ <tr>
+ <td></td>
+ <td class="md">)&nbsp;</td>
+ <td class="md" colspan="2"></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a05668.html#l00520">520</a> of file <a class="el" href="a05668.html">eid_translator.cpp</a>.
+<p>
+References <a class="el" href="a05669.html#l00122">RegisteredEntities</a>, <a class="el" href="a05669.html#l00120">reit</a>, and <a class="el" href="a05981.html#l00100">uint32</a>.
+<p>
+<div class="fragment"><pre>00521 {
+00522 <span class="keyword">const</span> <a class="code" href="a02454.html#NLMISC_1_1CEntityIdTranslatory0">reit</a> itEnd = <a class="code" href="a02454.html#NLMISC_1_1CEntityIdTranslatorr2">RegisteredEntities</a>.end();
+00523 <span class="keywordflow">for</span> (<a class="code" href="a02454.html#NLMISC_1_1CEntityIdTranslatory0">reit</a> it = <a class="code" href="a02454.html#NLMISC_1_1CEntityIdTranslatorr2">RegisteredEntities</a>.begin(); it != itEnd ; ++it)
+00524 {
+00525 <span class="keywordflow">if</span> ((*it).second.EntityName == entityName)
+00526 {
+00527 (*it).second.EntityNameStringId = stringId;
+00528 <span class="keywordflow">return</span> <span class="keyword">true</span>;
+00529 }
+00530 }
+00531
+00532 <span class="keywordflow">return</span> <span class="keyword">false</span>;
+00533 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CEntityIdTranslatora17" doxytag="NLMISC::CEntityIdTranslator::setEntityOnline" ></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::CEntityIdTranslator::setEntityOnline </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">const <a class="el" href="a02189.html">CEntityId</a> &amp;&nbsp;</td>
+ <td class="mdname" nowrap> <em>eid</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap>bool&nbsp;</td>
+ <td class="mdname" nowrap> <em>online</em></td>
+ </tr>
+ <tr>
+ <td></td>
+ <td class="md">)&nbsp;</td>
+ <td class="md" colspan="2"></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a05668.html#l00553">553</a> of file <a class="el" href="a05668.html">eid_translator.cpp</a>.
+<p>
+References <a class="el" href="a05622.html#l00135">nlwarning</a>, <a class="el" href="a05669.html#l00122">RegisteredEntities</a>, <a class="el" href="a05669.html#l00120">reit</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="a05673.html#l00480">NLMISC::CEntityId::toString()</a>.
+<p>
+<div class="fragment"><pre>00554 {
+00555 <span class="comment">// we have to remove the crea and dyna because it can changed dynamically and will not be found in the storage array</span>
+00556 <a class="code" href="a02189.html">CEntityId</a> reid(eid);
+00557 reid.<a class="code" href="a02189.html#NLAIAGENT_1_1CIdenta26">setCreatorId</a>(0);
+00558 reid.<a class="code" href="a02189.html#NLAIAGENT_1_1CIdenta27">setDynamicId</a>(0);
+00559
+00560 <a class="code" href="a02454.html#NLMISC_1_1CEntityIdTranslatory0">reit</a> it = <a class="code" href="a02454.html#NLMISC_1_1CEntityIdTranslatorr2">RegisteredEntities</a>.find (reid);
+00561 <span class="keywordflow">if</span> (it == <a class="code" href="a02454.html#NLMISC_1_1CEntityIdTranslatorr2">RegisteredEntities</a>.end ())
+00562 {
+00563 <a class="code" href="a04199.html#a2">nlwarning</a> (<span class="stringliteral">"EIT: %s is not registered in CEntityIdTranslator"</span>, reid.<a class="code" href="a02189.html#NLAIAGENT_1_1CIdenta31">toString</a>().c_str());
+00564 }
+00565 <span class="keywordflow">else</span>
+00566 {
+00567 (*it).second.Online = online;
+00568 }
+00569 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CEntityIdTranslatora18" doxytag="NLMISC::CEntityIdTranslator::unregisterEntity" ></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::CEntityIdTranslator::unregisterEntity </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">const <a class="el" href="a02189.html">CEntityId</a> &amp;&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>eid</em> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a05668.html#l00292">292</a> of file <a class="el" href="a05668.html">eid_translator.cpp</a>.
+<p>
+References <a class="el" href="a05622.html#l00111">nlinfo</a>, <a class="el" href="a05622.html#l00135">nlwarning</a>, <a class="el" href="a05669.html#l00122">RegisteredEntities</a>, <a class="el" href="a05669.html#l00120">reit</a>, <a class="el" href="a05668.html#l00442">save()</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="a05673.html#l00480">NLMISC::CEntityId::toString()</a>.
+<p>
+<div class="fragment"><pre>00293 {
+00294 <span class="comment">// we have to remove the crea and dyna because it can changed dynamically and will not be found in the storage array</span>
+00295 <a class="code" href="a02189.html">CEntityId</a> reid(eid);
+00296 reid.<a class="code" href="a02189.html#NLAIAGENT_1_1CIdenta26">setCreatorId</a>(0);
+00297 reid.<a class="code" href="a02189.html#NLAIAGENT_1_1CIdenta27">setDynamicId</a>(0);
+00298
+00299 <a class="code" href="a02454.html#NLMISC_1_1CEntityIdTranslatory0">reit</a> it = <a class="code" href="a02454.html#NLMISC_1_1CEntityIdTranslatorr2">RegisteredEntities</a>.find (reid);
+00300
+00301 <span class="keywordflow">if</span> (it == <a class="code" href="a02454.html#NLMISC_1_1CEntityIdTranslatorr2">RegisteredEntities</a>.end ())
+00302 {
+00303 <a class="code" href="a04199.html#a2">nlwarning</a> (<span class="stringliteral">"EIT: Can't unregister EId %s because EId is not in the map"</span>, reid.<a class="code" href="a02189.html#NLAIAGENT_1_1CIdenta31">toString</a>().c_str());
+00304 <span class="keywordflow">return</span>;
+00305 }
+00306
+00307 <a class="code" href="a04199.html#a1">nlinfo</a> (<span class="stringliteral">"EIT: Unregister EId %s EntityName %s UId %d UserName %s"</span>, reid.<a class="code" href="a02189.html#NLAIAGENT_1_1CIdenta31">toString</a>().c_str(), (*it).second.EntityName.toString().c_str(), (*it).second.UId, (*it).second.UserName.c_str());
+00308 <a class="code" href="a02454.html#NLMISC_1_1CEntityIdTranslatorr2">RegisteredEntities</a>.erase (reid);
+00309
+00310 <a class="code" href="a02454.html#NLMISC_1_1CEntityIdTranslatord2">save</a> ();
+00311 }
+</pre></div> </td>
+ </tr>
+</table>
+<hr><h2>Friends And Related Function Documentation</h2>
+<a class="anchor" name="NLMISC_1_1CEntityIdTranslatorn0" doxytag="NLMISC::CEntityIdTranslator::cbInvalidEntityNamesFilename" ></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 cbInvalidEntityNamesFilename </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">const std::string &amp;&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>filename</em> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap><code> [friend]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a05668.html#l00370">370</a> of file <a class="el" href="a05668.html">eid_translator.cpp</a>.
+<p>
+Referenced by <a class="el" href="a05668.html#l00405">load()</a>.
+<p>
+<div class="fragment"><pre>00371 {
+00372 CEntityIdTranslator::getInstance()-&gt;InvalidEntityNames.clear ();
+00373
+00374 string fn = CPath::lookup(invalidEntityNamesFilename, <span class="keyword">false</span>);
+00375
+00376 <span class="keywordflow">if</span> (fn.empty())
+00377 {
+00378 <a class="code" href="a04199.html#a2">nlwarning</a> (<span class="stringliteral">"EIT: Can't load filename '%s' for invalid entity names filename (not found)"</span>, invalidEntityNamesFilename.c_str());
+00379 <span class="keywordflow">return</span>;
+00380 }
+00381
+00382 FILE *fp = fopen (fn.c_str(), <span class="stringliteral">"r"</span>);
+00383 <span class="keywordflow">if</span> (fp == NULL)
+00384 {
+00385 <a class="code" href="a04199.html#a2">nlwarning</a> (<span class="stringliteral">"EIT: Can't load filename '%s' for invalid entity names filename"</span>, fn.c_str());
+00386 <span class="keywordflow">return</span>;
+00387 }
+00388
+00389 <span class="keywordflow">while</span> (<span class="keyword">true</span>)
+00390 {
+00391 <span class="keywordtype">char</span> str[512];
+00392 fgets(str, 511, fp);
+00393 <span class="keywordflow">if</span>(feof(fp))
+00394 <span class="keywordflow">break</span>;
+00395 <span class="keywordflow">if</span> (strlen(str) &gt; 0)
+00396 {
+00397 str[strlen(str)-1] = <span class="charliteral">'\0'</span>;
+00398 CEntityIdTranslator::getInstance()-&gt;InvalidEntityNames.push_back(str);
+00399 }
+00400 }
+00401
+00402 fclose (fp);
+00403 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CEntityIdTranslatorn1" doxytag="NLMISC::CEntityIdTranslator::entityNameValidClass" ></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"> friend struct entityNameValidClass<code> [friend]</code>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a05669.html#l00141">141</a> of file <a class="el" href="a05669.html">eid_translator.h</a>. </td>
+ </tr>
+</table>
+<hr><h2>Field Documentation</h2>
+<a class="anchor" name="NLMISC_1_1CEntityIdTranslatorr0" doxytag="NLMISC::CEntityIdTranslator::FileName" ></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="a02454.html#NLMISC_1_1CEntityIdTranslatorr0">NLMISC::CEntityIdTranslator::FileName</a><code> [private]</code>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a05669.html#l00136">136</a> of file <a class="el" href="a05669.html">eid_translator.h</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CEntityIdTranslatoro0" doxytag="NLMISC::CEntityIdTranslator::FileVersion" ></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#a15">uint</a> <a class="el" href="a02454.html#NLMISC_1_1CEntityIdTranslatoro0">NLMISC::CEntityIdTranslator::FileVersion</a>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a05669.html#l00116">116</a> of file <a class="el" href="a05669.html">eid_translator.h</a>.
+<p>
+Referenced by <a class="el" href="a05668.html#l00405">load()</a>, and <a class="el" href="a05668.html#l00442">save()</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CEntityIdTranslatorv0" doxytag="NLMISC::CEntityIdTranslator::Instance" ></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="a02454.html">CEntityIdTranslator</a> * <a class="el" href="a02454.html#NLMISC_1_1CEntityIdTranslatorv0">NLMISC::CEntityIdTranslator::Instance</a> = NULL<code> [static, private]</code>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a05668.html#l00052">52</a> of file <a class="el" href="a05668.html">eid_translator.cpp</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CEntityIdTranslatorr1" doxytag="NLMISC::CEntityIdTranslator::InvalidEntityNames" ></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::vector&lt;std::string&gt; <a class="el" href="a02454.html#NLMISC_1_1CEntityIdTranslatorr1">NLMISC::CEntityIdTranslator::InvalidEntityNames</a><code> [private]</code>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a05669.html#l00138">138</a> of file <a class="el" href="a05669.html">eid_translator.h</a>.
+<p>
+Referenced by <a class="el" href="a05668.html#l00370">NLMISC::cbInvalidEntityNamesFilename()</a>, and <a class="el" href="a05668.html#l00177">isValidEntityName()</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CEntityIdTranslatorr2" doxytag="NLMISC::CEntityIdTranslator::RegisteredEntities" ></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::map&lt;<a class="el" href="a02189.html">NLMISC::CEntityId</a>, <a class="el" href="a02455.html">CEntity</a>&gt; <a class="el" href="a02454.html#NLMISC_1_1CEntityIdTranslatorr2">NLMISC::CEntityIdTranslator::RegisteredEntities</a><code> [private]</code>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a05669.html#l00122">122</a> of file <a class="el" href="a05669.html">eid_translator.h</a>.
+<p>
+Referenced by <a class="el" href="a05668.html#l00313">checkEntity()</a>, <a class="el" href="a05668.html#l00249">entityNameExists()</a>, <a class="el" href="a05668.html#l00126">getByEntity()</a>, <a class="el" href="a05668.html#l00092">getByUser()</a>, <a class="el" href="a05668.html#l00493">getEntityIdInfo()</a>, <a class="el" href="a05668.html#l00535">getEntityNameStringId()</a>, <a class="el" href="a05669.html#l00112">getRegisteredEntities()</a>, <a class="el" href="a05668.html#l00467">getUId()</a>, <a class="el" href="a05668.html#l00480">getUserName()</a>, <a class="el" href="a05668.html#l00571">isEntityOnline()</a>, <a class="el" href="a05668.html#l00405">load()</a>, <a class="el" href="a05668.html#l00267">registerEntity()</a>, <a class="el" href="a05668.html#l00442">save()</a>, <a class="el" href="a05668.html#l00520">setEntityNameStringId()</a>, <a class="el" href="a05668.html#l00553">setEntityOnline()</a>, and <a class="el" href="a05668.html#l00292">unregisterEntity()</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CEntityIdTranslators0" doxytag="NLMISC::CEntityIdTranslator::Version" ></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#a15">uint</a> <a class="el" href="a02454.html#NLMISC_1_1CEntityIdTranslators0">NLMISC::CEntityIdTranslator::Version</a> = 1<code> [static]</code>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a05668.html#l00055">55</a> of file <a class="el" href="a05668.html">eid_translator.cpp</a>. </td>
+ </tr>
+</table>
+<hr>The documentation for this class was generated from the following files:<ul>
+<li><a class="el" href="a05669.html">eid_translator.h</a><li><a class="el" href="a05668.html">eid_translator.cpp</a></ul>
+<hr size="1"><address style="align: right;"><small>Generated on Tue Mar 16 13:08:13 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>