aboutsummaryrefslogtreecommitdiff
path: root/docs/doxygen/nel/a03384.html
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--docs/doxygen/nel/a03384.html1902
1 files changed, 1902 insertions, 0 deletions
diff --git a/docs/doxygen/nel/a03384.html b/docs/doxygen/nel/a03384.html
new file mode 100644
index 00000000..450ae7ad
--- /dev/null
+++ b/docs/doxygen/nel/a03384.html
@@ -0,0 +1,1902 @@
+<!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::CSheetId 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::CSheetId Class Reference</h1><code>#include &lt;<a class="el" href="a06385.html">sheet_id.h</a>&gt;</code>
+<p>
+<hr><a name="_details"></a><h2>Detailed Description</h2>
+<a class="el" href="a03384.html">CSheetId</a><p>
+<dl compact><dt><b>Author:</b></dt><dd>Stephane Coutelas <p>
+Nevrax France </dd></dl>
+<dl compact><dt><b>Date:</b></dt><dd>2002 </dd></dl>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a06385.html#l00047">47</a> of file <a class="el" href="a06385.html">sheet_id.h</a>.<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><a class="el" href="a04558.html#a11">uint32</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03384.html#NLMISC_1_1CSheetIda0">asInt</a> () const </td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03384.html#NLMISC_1_1CSheetIda1">build</a> (<a class="el" href="a04558.html#a11">uint32</a> shortId, <a class="el" href="a04558.html#a7">uint8</a> <a class="el" href="a04223.html#a581">type</a>)</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03384.html#NLMISC_1_1CSheetIda2">build</a> (const std::string &amp;sheetName)</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03384.html#NLMISC_1_1CSheetIda3">CSheetId</a> (const std::string &amp;sheetName)</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03384.html#NLMISC_1_1CSheetIda4">CSheetId</a> (<a class="el" href="a04558.html#a11">uint32</a> sheetRef=0)</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="a03384.html#NLMISC_1_1CSheetIda5">getShortId</a> () const </td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a7">uint8</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03384.html#NLMISC_1_1CSheetIda6">getType</a> () const </td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03384.html#NLMISC_1_1CSheetIda7">operator!=</a> (const <a class="el" href="a03384.html">CSheetId</a> &amp;sheetRef) const </td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03384.html#NLMISC_1_1CSheetIda8">operator&lt;</a> (const <a class="el" href="a03384.html">CSheetId</a> &amp;sheetRef) const </td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a03384.html">CSheetId</a> &amp;&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03384.html#NLMISC_1_1CSheetIda9">operator=</a> (<a class="el" href="a04558.html#a11">uint32</a> sheetRef)</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a03384.html">CSheetId</a> &amp;&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03384.html#NLMISC_1_1CSheetIda10">operator=</a> (const std::string &amp;sheetName)</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a03384.html">CSheetId</a> &amp;&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03384.html#NLMISC_1_1CSheetIda11">operator=</a> (const <a class="el" href="a03384.html">CSheetId</a> &amp;sheetId)</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03384.html#NLMISC_1_1CSheetIda12">operator==</a> (const <a class="el" href="a03384.html">CSheetId</a> &amp;sheetRef) const </td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03384.html#NLMISC_1_1CSheetIda13">serial</a> (<a class="el" href="a02270.html">NLMISC::IStream</a> &amp;f) throw (NLMISC::EStream)</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>std::string&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03384.html#NLMISC_1_1CSheetIda14">toString</a> () const </td></tr>
+
+<tr><td colspan=2><br><h2>Static Public Member Functions</h2></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03384.html#NLMISC_1_1CSheetIde0">buildIdVector</a> (std::vector&lt; <a class="el" href="a03384.html">CSheetId</a> &gt; &amp;result, std::vector&lt; std::string &gt; &amp;resultFilenames, const std::string &amp;fileExtension)</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03384.html#NLMISC_1_1CSheetIde1">buildIdVector</a> (std::vector&lt; <a class="el" href="a03384.html">CSheetId</a> &gt; &amp;result, const std::string &amp;fileExtension)</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03384.html#NLMISC_1_1CSheetIde2">buildIdVector</a> (std::vector&lt; <a class="el" href="a03384.html">CSheetId</a> &gt; &amp;result, std::vector&lt; std::string &gt; &amp;resultFilenames, <a class="el" href="a04558.html#a7">uint8</a> <a class="el" href="a04223.html#a581">type</a>)</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03384.html#NLMISC_1_1CSheetIde3">buildIdVector</a> (std::vector&lt; <a class="el" href="a03384.html">CSheetId</a> &gt; &amp;result, <a class="el" href="a04558.html#a7">uint8</a> <a class="el" href="a04223.html#a581">type</a>)</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03384.html#NLMISC_1_1CSheetIde4">buildIdVector</a> (std::vector&lt; <a class="el" href="a03384.html">CSheetId</a> &gt; &amp;result)</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03384.html#NLMISC_1_1CSheetIde5">display</a> (<a class="el" href="a04558.html#a7">uint8</a> <a class="el" href="a04223.html#a581">type</a>)</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03384.html#NLMISC_1_1CSheetIde6">display</a> ()</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>const std::string &amp;&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03384.html#NLMISC_1_1CSheetIde7">fileExtensionFromType</a> (<a class="el" href="a04558.html#a7">uint8</a> <a class="el" href="a04223.html#a581">type</a>)</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03384.html#NLMISC_1_1CSheetIde8">init</a> (bool removeUnknownSheet=true)</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="a03384.html#NLMISC_1_1CSheetIde9">typeFromFileExtension</a> (const std::string &amp;fileExtension)</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03384.html#NLMISC_1_1CSheetIde10">uninit</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="a03384.html">CSheetId</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03384.html#NLMISC_1_1CSheetIds0">Unknown</a></td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Unknow <a class="el" href="a03384.html">CSheetId</a> is similar as an NULL pointer. <a href="#NLMISC_1_1CSheetIds0"></a><br><br></td></tr>
+<tr><td colspan=2><br><h2>Static Private 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="a03384.html#NLMISC_1_1CSheetIdh0">cbFileChange</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>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03384.html#NLMISC_1_1CSheetIdh1">loadSheetAlias</a> ()</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03384.html#NLMISC_1_1CSheetIdh2">loadSheetId</a> ()</td></tr>
+
+<tr><td colspan=2><br><h2>Private Attributes</h2></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a03387.html">TSheetId</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03384.html#NLMISC_1_1CSheetIdr0">_Id</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="a03385.html">CChar</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03384.html#NLMISC_1_1CSheetIdv0">_AllStrings</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="a03384.html#NLMISC_1_1CSheetIdv1">_FileExtensions</a></td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03384.html#NLMISC_1_1CSheetIdv2">_Initialised</a> = false</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03384.html#NLMISC_1_1CSheetIdv3">_RemoveUnknownSheet</a> = true</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>std::map&lt; std::string, <a class="el" href="a04558.html#a11">uint32</a> &gt;&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03384.html#NLMISC_1_1CSheetIdv4">_SheetAliasToId</a></td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>std::map&lt; <a class="el" href="a04558.html#a11">uint32</a>, std::string &gt;&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03384.html#NLMISC_1_1CSheetIdv5">_SheetIdToAlias</a></td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a03437.html">CStaticMap</a>&lt; <a class="el" href="a04558.html#a11">uint32</a>, <a class="el" href="a03385.html">CChar</a> &gt;&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03384.html#NLMISC_1_1CSheetIdv6">_SheetIdToName</a></td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a03437.html">CStaticMap</a>&lt; <a class="el" href="a03385.html">CChar</a>, <a class="el" href="a04558.html#a11">uint32</a>,<br>
+ <a class="el" href="a03386.html">CCharComp</a> &gt;&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03384.html#NLMISC_1_1CSheetIdv7">_SheetNameToId</a></td></tr>
+
+</table>
+<hr><h2>Constructor &amp; Destructor Documentation</h2>
+<a class="anchor" name="NLMISC_1_1CSheetIda4" doxytag="NLMISC::CSheetId::CSheetId" ></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::CSheetId::CSheetId </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>sheetRef</em> = 0 </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap><code> [inline, explicit]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Constructor
+<p>
+Definition at line <a class="el" href="a06385.html#l00057">57</a> of file <a class="el" href="a06385.html">sheet_id.h</a>.
+<p>
+References <a class="el" href="a06385.html#l00178">NLMISC::CSheetId::TSheetId::Id</a>, and <a class="el" href="a05981.html#l00100">uint32</a>.
+<p>
+Referenced by <a class="el" href="a06384.html#l00236">loadSheetAlias()</a>.
+<p>
+<div class="fragment"><pre>00057 { <a class="code" href="a03384.html#NLMISC_1_1CSheetIdr0">_Id</a>.<a class="code" href="a03387.html#NLMISC_1_1CSheetId_1_1TSheetIdo0">Id</a> = sheetRef; }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CSheetIda3" doxytag="NLMISC::CSheetId::CSheetId" ></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::CSheetId::CSheetId </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>sheetName</em> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap><code> [explicit]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Constructor
+<p>
+Definition at line <a class="el" href="a06384.html#l00066">66</a> of file <a class="el" href="a06384.html">sheet_id.cpp</a>.
+<p>
+References <a class="el" href="a06384.html#l00081">build()</a>, and <a class="el" href="a05622.html#l00135">nlwarning</a>.
+<p>
+<div class="fragment"><pre>00067 {
+00068 <span class="keywordflow">if</span> (!<a class="code" href="a03384.html#NLMISC_1_1CSheetIda2">build</a>(sheetName))
+00069 {
+00070 <a class="code" href="a04199.html#a2">nlwarning</a>(<span class="stringliteral">"SHEETID: The sheet '%s' is not in sheet_id.bin, setting it to Unknown"</span>,sheetName.c_str());
+00071 *<span class="keyword">this</span> = <a class="code" href="a03384.html#NLMISC_1_1CSheetIds0">Unknown</a>;
+00072 }
+00073
+00074 } <span class="comment">// CSheetId //</span>
+</pre></div> </td>
+ </tr>
+</table>
+<hr><h2>Member Function Documentation</h2>
+<a class="anchor" name="NLMISC_1_1CSheetIda0" doxytag="NLMISC::CSheetId::asInt" ></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::CSheetId::asInt </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> const<code> [inline]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Return the **whole** sheet id (id+type)
+<p>
+Definition at line <a class="el" href="a06385.html#l00083">83</a> of file <a class="el" href="a06385.html">sheet_id.h</a>.
+<p>
+References <a class="el" href="a06385.html#l00178">NLMISC::CSheetId::TSheetId::Id</a>, and <a class="el" href="a05981.html#l00100">uint32</a>.
+<p>
+Referenced by <a class="el" href="a06385.html#l00229">NLMISC::CHashBySheetId::operator()()</a>, <a class="el" href="a06384.html#l00409">operator&lt;()</a>, and <a class="el" href="a06384.html#l00335">operator=()</a>.
+<p>
+<div class="fragment"><pre>00083 { <span class="keywordflow">return</span> <a class="code" href="a03384.html#NLMISC_1_1CSheetIdr0">_Id</a>.<a class="code" href="a03387.html#NLMISC_1_1CSheetId_1_1TSheetIdo0">Id</a>; }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CSheetIda1" doxytag="NLMISC::CSheetId::build" ></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::CSheetId::build </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>shortId</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap><a class="el" href="a04558.html#a7">uint8</a>&nbsp;</td>
+ <td class="mdname" nowrap> <em>type</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="a06384.html#l00620">620</a> of file <a class="el" href="a06384.html">sheet_id.cpp</a>.
+<p>
+References <a class="el" href="a03387.html#NLMISC_1_1CSheetId_1_1TSheetIdo1">NLMISC::CSheetId::TSheetId::IdInfos</a>, <a class="el" href="a05646.html#l00244">type</a>, <a class="el" href="a05981.html#l00100">uint32</a>, and <a class="el" href="a05981.html#l00096">uint8</a>.
+<p>
+<div class="fragment"><pre>00621 {
+00622 <a class="code" href="a03384.html#NLMISC_1_1CSheetIdr0">_Id</a>.<a class="code" href="a03387.html#NLMISC_1_1CSheetId_1_1TSheetIdo1">IdInfos</a>.Id= shortId;
+00623 <a class="code" href="a03384.html#NLMISC_1_1CSheetIdr0">_Id</a>.<a class="code" href="a03387.html#NLMISC_1_1CSheetId_1_1TSheetIdo1">IdInfos</a>.Type= <a class="code" href="a04223.html#a581">type</a>;
+00624 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CSheetIda2" doxytag="NLMISC::CSheetId::build" ></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::CSheetId::build </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>sheetName</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="a06384.html#l00081">81</a> of file <a class="el" href="a06384.html">sheet_id.cpp</a>.
+<p>
+References <a class="el" href="a06384.html#l00050">_Initialised</a>, <a class="el" href="a06384.html#l00048">_SheetAliasToId</a>, <a class="el" href="a06384.html#l00044">_SheetNameToId</a>, <a class="el" href="a06434.html#l00142">NLMISC::CStaticMap&lt; CChar, uint32, CCharComp &gt;::end()</a>, <a class="el" href="a06434.html#l00220">NLMISC::CStaticMap&lt; CChar, uint32, CCharComp &gt;::find()</a>, <a class="el" href="a06385.html#l00178">NLMISC::CSheetId::TSheetId::Id</a>, <a class="el" href="a05622.html#l00290">nlassert</a>, <a class="el" href="a06385.html#l00190">NLMISC::CSheetId::CChar::Ptr</a>, and <a class="el" href="a05586.html#l00536">NLMISC::strlwr()</a>.
+<p>
+Referenced by <a class="el" href="a06384.html#l00066">CSheetId()</a>.
+<p>
+<div class="fragment"><pre>00082 {
+00083 <a class="code" href="a04199.html#a6">nlassert</a>(_Initialised);
+00084
+00085 map&lt;string,uint32&gt;::const_iterator itIdAlias;
+00086
+00087 itIdAlias = <a class="code" href="a03384.html#NLMISC_1_1CSheetIdv4">_SheetAliasToId</a>.find( <a class="code" href="a05378.html#a273">strlwr</a>(sheetName) );
+00088 <span class="keywordflow">if</span>( itIdAlias != <a class="code" href="a03384.html#NLMISC_1_1CSheetIdv4">_SheetAliasToId</a>.end() )
+00089 {
+00090 <a class="code" href="a03384.html#NLMISC_1_1CSheetIdr0">_Id</a>.<a class="code" href="a03387.html#NLMISC_1_1CSheetId_1_1TSheetIdo0">Id</a> = (*itIdAlias).second;
+00091 <span class="keywordflow">return</span> <span class="keyword">true</span>;
+00092 }
+00093
+00094
+00095 CStaticMap&lt;CChar,uint32,CCharComp&gt;::const_iterator itId;
+00096 CChar c;
+00097 c.Ptr = <span class="keyword">new</span> <span class="keywordtype">char</span> [sheetName.size()+1];
+00098 strcpy(c.Ptr, sheetName.c_str());
+00099 <a class="code" href="a05378.html#a273">strlwr</a>(c.Ptr);
+00100
+00101 itId = <a class="code" href="a03384.html#NLMISC_1_1CSheetIdv7">_SheetNameToId</a>.find (c);
+00102 <span class="keyword">delete</span> [] c.Ptr;
+00103 <span class="keywordflow">if</span>( itId != <a class="code" href="a03384.html#NLMISC_1_1CSheetIdv7">_SheetNameToId</a>.end() )
+00104 {
+00105 <a class="code" href="a03384.html#NLMISC_1_1CSheetIdr0">_Id</a>.<a class="code" href="a03387.html#NLMISC_1_1CSheetId_1_1TSheetIdo0">Id</a> = (*itId).second;
+00106 <span class="keywordflow">return</span> <span class="keyword">true</span>;
+00107 }
+00108 <span class="keywordflow">return</span> <span class="keyword">false</span>;
+00109
+00110 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CSheetIde0" doxytag="NLMISC::CSheetId::buildIdVector" ></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::CSheetId::buildIdVector </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">std::vector&lt; <a class="el" href="a03384.html">CSheetId</a> &gt; &amp;&nbsp;</td>
+ <td class="mdname" nowrap> <em>result</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap>std::vector&lt; std::string &gt; &amp;&nbsp;</td>
+ <td class="mdname" nowrap> <em>resultFilenames</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>fileExtension</em></td>
+ </tr>
+ <tr>
+ <td></td>
+ <td class="md">)&nbsp;</td>
+ <td class="md" colspan="2"><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="a06384.html#l00577">577</a> of file <a class="el" href="a06384.html">sheet_id.cpp</a>.
+<p>
+References <a class="el" href="a06384.html#l00499">buildIdVector()</a>, <a class="el" href="a05646.html#l00244">type</a>, <a class="el" href="a06384.html#l00590">typeFromFileExtension()</a>, <a class="el" href="a05981.html#l00100">uint32</a>, and <a class="el" href="a05981.html#l00096">uint8</a>.
+<p>
+<div class="fragment"><pre>00578 {
+00579 <a class="code" href="a04558.html#a11">uint32</a> <a class="code" href="a04223.html#a581">type</a>=<a class="code" href="a03384.html#NLMISC_1_1CSheetIde9">typeFromFileExtension</a>(fileExtension);
+00580 <span class="keywordflow">if</span> (<a class="code" href="a04223.html#a581">type</a>!=(<a class="code" href="a04558.html#a11">uint32</a>)~0)
+00581 <a class="code" href="a03384.html#NLMISC_1_1CSheetIde4">buildIdVector</a>(result,resultFilenames, (<a class="code" href="a04558.html#a7">uint8</a>)type);
+00582
+00583 } <span class="comment">// buildIdVector //</span>
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CSheetIde1" doxytag="NLMISC::CSheetId::buildIdVector" ></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::CSheetId::buildIdVector </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">std::vector&lt; <a class="el" href="a03384.html">CSheetId</a> &gt; &amp;&nbsp;</td>
+ <td class="mdname" nowrap> <em>result</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>fileExtension</em></td>
+ </tr>
+ <tr>
+ <td></td>
+ <td class="md">)&nbsp;</td>
+ <td class="md" colspan="2"><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="a06384.html#l00565">565</a> of file <a class="el" href="a06384.html">sheet_id.cpp</a>.
+<p>
+References <a class="el" href="a06384.html#l00499">buildIdVector()</a>, <a class="el" href="a05646.html#l00244">type</a>, <a class="el" href="a06384.html#l00590">typeFromFileExtension()</a>, <a class="el" href="a05981.html#l00100">uint32</a>, and <a class="el" href="a05981.html#l00096">uint8</a>.
+<p>
+<div class="fragment"><pre>00566 {
+00567 <a class="code" href="a04558.html#a11">uint32</a> <a class="code" href="a04223.html#a581">type</a>=<a class="code" href="a03384.html#NLMISC_1_1CSheetIde9">typeFromFileExtension</a>(fileExtension);
+00568 <span class="keywordflow">if</span> (<a class="code" href="a04223.html#a581">type</a>!=(<a class="code" href="a04558.html#a11">uint32</a>)~0)
+00569 <a class="code" href="a03384.html#NLMISC_1_1CSheetIde4">buildIdVector</a>(result,(<a class="code" href="a04558.html#a7">uint8</a>)type);
+00570
+00571 } <span class="comment">// buildIdVector //</span>
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CSheetIde2" doxytag="NLMISC::CSheetId::buildIdVector" ></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::CSheetId::buildIdVector </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">std::vector&lt; <a class="el" href="a03384.html">CSheetId</a> &gt; &amp;&nbsp;</td>
+ <td class="mdname" nowrap> <em>result</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap>std::vector&lt; std::string &gt; &amp;&nbsp;</td>
+ <td class="mdname" nowrap> <em>resultFilenames</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap><a class="el" href="a04558.html#a7">uint8</a>&nbsp;</td>
+ <td class="mdname" nowrap> <em>type</em></td>
+ </tr>
+ <tr>
+ <td></td>
+ <td class="md">)&nbsp;</td>
+ <td class="md" colspan="2"><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="a06384.html#l00540">540</a> of file <a class="el" href="a06384.html">sheet_id.cpp</a>.
+<p>
+References <a class="el" href="a06384.html#l00050">_Initialised</a>, <a class="el" href="a06384.html#l00043">_SheetIdToName</a>, <a class="el" href="a06434.html#l00140">NLMISC::CStaticMap&lt; uint32, CChar &gt;::begin()</a>, <a class="el" href="a06434.html#l00142">NLMISC::CStaticMap&lt; uint32, CChar &gt;::end()</a>, <a class="el" href="a06385.html#l00178">NLMISC::CSheetId::TSheetId::Id</a>, <a class="el" href="a03387.html#NLMISC_1_1CSheetId_1_1TSheetIdo1">NLMISC::CSheetId::TSheetId::IdInfos</a>, <a class="el" href="a05622.html#l00290">nlassert</a>, <a class="el" href="a05646.html#l00244">type</a>, and <a class="el" href="a05981.html#l00096">uint8</a>.
+<p>
+<div class="fragment"><pre>00541 {
+00542 <a class="code" href="a04199.html#a6">nlassert</a>(_Initialised);
+00543
+00544 CStaticMap&lt;uint32,CChar&gt;::const_iterator itStr;
+00545 <span class="keywordflow">for</span>( itStr = <a class="code" href="a03384.html#NLMISC_1_1CSheetIdv6">_SheetIdToName</a>.begin(); itStr != <a class="code" href="a03384.html#NLMISC_1_1CSheetIdv6">_SheetIdToName</a>.end(); ++itStr )
+00546 {
+00547 <span class="comment">// work out the type value for this entry in the map</span>
+00548 TSheetId sheetId;
+00549 sheetId.Id=(*itStr).first;
+00550
+00551 <span class="comment">// decide whether or not to use the entry</span>
+00552 <span class="keywordflow">if</span> (<a class="code" href="a04223.html#a581">type</a>==sheetId.IdInfos.Type)
+00553 {
+00554 result.push_back( (CSheetId)sheetId.Id );
+00555 resultFilenames.push_back( (*itStr).second.Ptr );
+00556 }
+00557 }
+00558
+00559 } <span class="comment">// buildIdVector //</span>
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CSheetIde3" doxytag="NLMISC::CSheetId::buildIdVector" ></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::CSheetId::buildIdVector </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">std::vector&lt; <a class="el" href="a03384.html">CSheetId</a> &gt; &amp;&nbsp;</td>
+ <td class="mdname" nowrap> <em>result</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap><a class="el" href="a04558.html#a7">uint8</a>&nbsp;</td>
+ <td class="mdname" nowrap> <em>type</em></td>
+ </tr>
+ <tr>
+ <td></td>
+ <td class="md">)&nbsp;</td>
+ <td class="md" colspan="2"><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="a06384.html#l00516">516</a> of file <a class="el" href="a06384.html">sheet_id.cpp</a>.
+<p>
+References <a class="el" href="a06384.html#l00050">_Initialised</a>, <a class="el" href="a06384.html#l00043">_SheetIdToName</a>, <a class="el" href="a06434.html#l00140">NLMISC::CStaticMap&lt; uint32, CChar &gt;::begin()</a>, <a class="el" href="a06434.html#l00142">NLMISC::CStaticMap&lt; uint32, CChar &gt;::end()</a>, <a class="el" href="a06385.html#l00178">NLMISC::CSheetId::TSheetId::Id</a>, <a class="el" href="a03387.html#NLMISC_1_1CSheetId_1_1TSheetIdo1">NLMISC::CSheetId::TSheetId::IdInfos</a>, <a class="el" href="a05622.html#l00290">nlassert</a>, <a class="el" href="a05646.html#l00244">type</a>, and <a class="el" href="a05981.html#l00096">uint8</a>.
+<p>
+<div class="fragment"><pre>00517 {
+00518 <a class="code" href="a04199.html#a6">nlassert</a>(_Initialised);
+00519
+00520 CStaticMap&lt;uint32,CChar&gt;::const_iterator itStr;
+00521 <span class="keywordflow">for</span>( itStr = <a class="code" href="a03384.html#NLMISC_1_1CSheetIdv6">_SheetIdToName</a>.begin(); itStr != <a class="code" href="a03384.html#NLMISC_1_1CSheetIdv6">_SheetIdToName</a>.end(); ++itStr )
+00522 {
+00523 <span class="comment">// work out the type value for this entry in the map</span>
+00524 TSheetId sheetId;
+00525 sheetId.Id=(*itStr).first;
+00526
+00527 <span class="comment">// decide whether or not to use the entry</span>
+00528 <span class="keywordflow">if</span> (<a class="code" href="a04223.html#a581">type</a>==sheetId.IdInfos.Type)
+00529 {
+00530 result.push_back( (CSheetId)sheetId.Id );
+00531 }
+00532 }
+00533
+00534 } <span class="comment">// buildIdVector //</span>
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CSheetIde4" doxytag="NLMISC::CSheetId::buildIdVector" ></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::CSheetId::buildIdVector </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">std::vector&lt; <a class="el" href="a03384.html">CSheetId</a> &gt; &amp;&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>result</em> </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>
+Generate a vector of all the sheet ids of a given type This operation is non-destructive, the new entries are appended to the result vector note: fileExtension *not* include the '.' eg "bla" and *not* ".bla"
+<p>
+Definition at line <a class="el" href="a06384.html#l00499">499</a> of file <a class="el" href="a06384.html">sheet_id.cpp</a>.
+<p>
+References <a class="el" href="a06384.html#l00050">_Initialised</a>, <a class="el" href="a06384.html#l00043">_SheetIdToName</a>, <a class="el" href="a06434.html#l00140">NLMISC::CStaticMap&lt; uint32, CChar &gt;::begin()</a>, <a class="el" href="a06434.html#l00142">NLMISC::CStaticMap&lt; uint32, CChar &gt;::end()</a>, and <a class="el" href="a05622.html#l00290">nlassert</a>.
+<p>
+Referenced by <a class="el" href="a06384.html#l00565">buildIdVector()</a>, and <a class="el" href="a05926.html#l00145">loadForm()</a>.
+<p>
+<div class="fragment"><pre>00500 {
+00501 <a class="code" href="a04199.html#a6">nlassert</a>(_Initialised);
+00502
+00503 CStaticMap&lt;uint32,CChar&gt;::const_iterator itStr;
+00504 <span class="keywordflow">for</span>( itStr = <a class="code" href="a03384.html#NLMISC_1_1CSheetIdv6">_SheetIdToName</a>.begin(); itStr != <a class="code" href="a03384.html#NLMISC_1_1CSheetIdv6">_SheetIdToName</a>.end(); ++itStr )
+00505 {
+00506 result.push_back( (CSheetId)(*itStr).first );
+00507 }
+00508
+00509 } <span class="comment">// buildIdVector //</span>
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CSheetIdh0" doxytag="NLMISC::CSheetId::cbFileChange" ></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::CSheetId::cbFileChange </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> [static, 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="a06384.html#l00055">55</a> of file <a class="el" href="a06384.html">sheet_id.cpp</a>.
+<p>
+References <a class="el" href="a06384.html#l00112">loadSheetId()</a>, and <a class="el" href="a05622.html#l00111">nlinfo</a>.
+<p>
+Referenced by <a class="el" href="a06384.html#l00304">init()</a>.
+<p>
+<div class="fragment"><pre>00056 {
+00057 <a class="code" href="a04199.html#a1">nlinfo</a> (<span class="stringliteral">"SHEETID: %s changed, reload it"</span>, <a class="code" href="a05377.html#a2">filename</a>.c_str());
+00058
+00059 <a class="code" href="a03384.html#NLMISC_1_1CSheetIdh2">loadSheetId</a>();
+00060 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CSheetIde5" doxytag="NLMISC::CSheetId::display" ></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::CSheetId::display </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a7">uint8</a>&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>type</em> </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="a06384.html#l00472">472</a> of file <a class="el" href="a06384.html">sheet_id.cpp</a>.
+<p>
+References <a class="el" href="a06384.html#l00050">_Initialised</a>, <a class="el" href="a06384.html#l00043">_SheetIdToName</a>, <a class="el" href="a06434.html#l00140">NLMISC::CStaticMap&lt; uint32, CChar &gt;::begin()</a>, <a class="el" href="a06434.html#l00142">NLMISC::CStaticMap&lt; uint32, CChar &gt;::end()</a>, <a class="el" href="a06385.html#l00178">NLMISC::CSheetId::TSheetId::Id</a>, <a class="el" href="a03387.html#NLMISC_1_1CSheetId_1_1TSheetIdo1">NLMISC::CSheetId::TSheetId::IdInfos</a>, <a class="el" href="a05622.html#l00290">nlassert</a>, <a class="el" href="a05622.html#l00111">nlinfo</a>, <a class="el" href="a05646.html#l00244">type</a>, and <a class="el" href="a05981.html#l00096">uint8</a>.
+<p>
+<div class="fragment"><pre>00473 {
+00474 <a class="code" href="a04199.html#a6">nlassert</a>(_Initialised);
+00475
+00476 CStaticMap&lt;uint32,CChar&gt;::const_iterator itStr;
+00477 <span class="keywordflow">for</span>( itStr = <a class="code" href="a03384.html#NLMISC_1_1CSheetIdv6">_SheetIdToName</a>.begin(); itStr != <a class="code" href="a03384.html#NLMISC_1_1CSheetIdv6">_SheetIdToName</a>.end(); ++itStr )
+00478 {
+00479 <span class="comment">// work out the type value for this entry in the map</span>
+00480 TSheetId sheetId;
+00481 sheetId.Id=(*itStr).first;
+00482
+00483 <span class="comment">// decide whether or not to dsiplay the entry</span>
+00484 <span class="keywordflow">if</span> (<a class="code" href="a04223.html#a581">type</a>==sheetId.IdInfos.Type)
+00485 {
+00486 <span class="comment">//nlinfo("%d %s",(*itStr).first,(*itStr).second.c_str());</span>
+00487 <a class="code" href="a04199.html#a1">nlinfo</a>(<span class="stringliteral">"SHEETID: (%08x %d) %s"</span>,(*itStr).first,(*itStr).first,(*itStr).second.Ptr);
+00488 }
+00489 }
+00490
+00491 } <span class="comment">// display //</span>
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CSheetIde6" doxytag="NLMISC::CSheetId::display" ></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::CSheetId::display </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>
+Display the list of valid sheet ids with their associated file names if (type != -1) then restrict list to given type
+<p>
+Definition at line <a class="el" href="a06384.html#l00453">453</a> of file <a class="el" href="a06384.html">sheet_id.cpp</a>.
+<p>
+References <a class="el" href="a06384.html#l00050">_Initialised</a>, <a class="el" href="a06384.html#l00043">_SheetIdToName</a>, <a class="el" href="a06434.html#l00140">NLMISC::CStaticMap&lt; uint32, CChar &gt;::begin()</a>, <a class="el" href="a06434.html#l00142">NLMISC::CStaticMap&lt; uint32, CChar &gt;::end()</a>, <a class="el" href="a05622.html#l00290">nlassert</a>, and <a class="el" href="a05622.html#l00111">nlinfo</a>.
+<p>
+<div class="fragment"><pre>00454 {
+00455 <a class="code" href="a04199.html#a6">nlassert</a>(_Initialised);
+00456
+00457 CStaticMap&lt;uint32,CChar&gt;::const_iterator itStr;
+00458 <span class="keywordflow">for</span>( itStr = <a class="code" href="a03384.html#NLMISC_1_1CSheetIdv6">_SheetIdToName</a>.begin(); itStr != <a class="code" href="a03384.html#NLMISC_1_1CSheetIdv6">_SheetIdToName</a>.end(); ++itStr )
+00459 {
+00460 <span class="comment">//nlinfo("%d %s",(*itStr).first,(*itStr).second.c_str());</span>
+00461 <a class="code" href="a04199.html#a1">nlinfo</a>(<span class="stringliteral">"SHEETID: (%08x %d) %s"</span>,(*itStr).first,(*itStr).first,(*itStr).second.Ptr);
+00462 }
+00463
+00464 } <span class="comment">// display //</span>
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CSheetIde7" doxytag="NLMISC::CSheetId::fileExtensionFromType" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> const std::string &amp; NLMISC::CSheetId::fileExtensionFromType </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a7">uint8</a>&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>type</em> </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>
+Convert between file extensions and numeric sheet types note: fileExtension *not* include the '.' eg "bla" and *not* ".bla"
+<p>
+Definition at line <a class="el" href="a06384.html#l00607">607</a> of file <a class="el" href="a06384.html">sheet_id.cpp</a>.
+<p>
+References <a class="el" href="a06384.html#l00049">_FileExtensions</a>, <a class="el" href="a06384.html#l00050">_Initialised</a>, <a class="el" href="a05622.html#l00290">nlassert</a>, <a class="el" href="a05646.html#l00244">type</a>, and <a class="el" href="a05981.html#l00096">uint8</a>.
+<p>
+<div class="fragment"><pre>00608 {
+00609 <a class="code" href="a04199.html#a6">nlassert</a>(_Initialised);
+00610 <a class="code" href="a04199.html#a6">nlassert</a>(type&lt;256);
+00611
+00612 <span class="keywordflow">return</span> <a class="code" href="a03384.html#NLMISC_1_1CSheetIdv1">_FileExtensions</a>[<a class="code" href="a04223.html#a581">type</a>];
+00613
+00614 } <span class="comment">// fileExtensionFromType //</span>
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CSheetIda5" doxytag="NLMISC::CSheetId::getShortId" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a11">uint32</a> NLMISC::CSheetId::getShortId </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> const<code> [inline]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Return the sheet sub id (sub part of the sheetid)
+<p>
+Definition at line <a class="el" href="a06385.html#l00093">93</a> of file <a class="el" href="a06385.html">sheet_id.h</a>.
+<p>
+References <a class="el" href="a03387.html#NLMISC_1_1CSheetId_1_1TSheetIdo1">NLMISC::CSheetId::TSheetId::IdInfos</a>, and <a class="el" href="a05981.html#l00100">uint32</a>.
+<p>
+<div class="fragment"><pre>00093 { <span class="keywordflow">return</span> <a class="code" href="a03384.html#NLMISC_1_1CSheetIdr0">_Id</a>.<a class="code" href="a03387.html#NLMISC_1_1CSheetId_1_1TSheetIdo1">IdInfos</a>.Id; }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CSheetIda6" doxytag="NLMISC::CSheetId::getType" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a7">uint8</a> NLMISC::CSheetId::getType </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">void&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap> const<code> [inline]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Return the sheet type (sub part of the sheetid)
+<p>
+Definition at line <a class="el" href="a06385.html#l00088">88</a> of file <a class="el" href="a06385.html">sheet_id.h</a>.
+<p>
+References <a class="el" href="a03387.html#NLMISC_1_1CSheetId_1_1TSheetIdo1">NLMISC::CSheetId::TSheetId::IdInfos</a>, and <a class="el" href="a05981.html#l00096">uint8</a>.
+<p>
+<div class="fragment"><pre>00088 { <span class="keywordflow">return</span> <a class="code" href="a03384.html#NLMISC_1_1CSheetIdr0">_Id</a>.<a class="code" href="a03387.html#NLMISC_1_1CSheetId_1_1TSheetIdo1">IdInfos</a>.Type; }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CSheetIde8" doxytag="NLMISC::CSheetId::init" ></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::CSheetId::init </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">bool&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>removeUnknownSheet</em> = true </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>
+Load the association sheet ref / sheet name
+<p>
+Definition at line <a class="el" href="a06384.html#l00304">304</a> of file <a class="el" href="a06384.html">sheet_id.cpp</a>.
+<p>
+References <a class="el" href="a06384.html#l00050">_Initialised</a>, <a class="el" href="a06384.html#l00051">_RemoveUnknownSheet</a>, <a class="el" href="a06384.html#l00055">cbFileChange()</a>, <a class="el" href="a06384.html#l00236">loadSheetAlias()</a>, and <a class="el" href="a06384.html#l00112">loadSheetId()</a>.
+<p>
+Referenced by <a class="el" href="a05926.html#l00145">loadForm()</a>.
+<p>
+<div class="fragment"><pre>00305 {
+00306 <span class="comment">// allow multiple calls to init in case libraries depending on sheetid call this init from their own</span>
+00307 <span class="keywordflow">if</span> (<a class="code" href="a03384.html#NLMISC_1_1CSheetIdv2">_Initialised</a>)
+00308 <span class="keywordflow">return</span>;
+00309
+00310 CFile::addFileChangeCallback (<span class="stringliteral">"sheet_id.bin"</span>, cbFileChange);
+00311
+00312 <a class="code" href="a03384.html#NLMISC_1_1CSheetIdv3">_RemoveUnknownSheet</a> = removeUnknownSheet;
+00313
+00314 <a class="code" href="a03384.html#NLMISC_1_1CSheetIdh2">loadSheetId</a> ();
+00315 <a class="code" href="a03384.html#NLMISC_1_1CSheetIdv2">_Initialised</a>=<span class="keyword">true</span>;
+00316 <a class="code" href="a03384.html#NLMISC_1_1CSheetIdh1">loadSheetAlias</a> ();
+00317
+00318
+00319 } <span class="comment">// init //</span>
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CSheetIdh1" doxytag="NLMISC::CSheetId::loadSheetAlias" ></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::CSheetId::loadSheetAlias </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, 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="a06384.html#l00236">236</a> of file <a class="el" href="a06384.html">sheet_id.cpp</a>.
+<p>
+References <a class="el" href="a06384.html#l00051">_RemoveUnknownSheet</a>, <a class="el" href="a06384.html#l00048">_SheetAliasToId</a>, <a class="el" href="a06384.html#l00047">_SheetIdToAlias</a>, <a class="el" href="a06385.html#l00057">CSheetId()</a>, <a class="el" href="a05538.html#l02654">file</a>, <a class="el" href="a05622.html#l00111">nlinfo</a>, <a class="el" href="a05586.html#l00536">NLMISC::strlwr()</a>, <a class="el" href="a05981.html#l00105">uint</a>, and <a class="el" href="a05981.html#l00100">uint32</a>.
+<p>
+Referenced by <a class="el" href="a06384.html#l00304">init()</a>.
+<p>
+<div class="fragment"><pre>00237 {
+00238 <span class="comment">// Open the sheet id to sheet alias association</span>
+00239 <a class="code" href="a02653.html">CIFile</a> <a class="code" href="a04115.html#a95">file</a>;
+00240 <span class="keywordflow">if</span>(<a class="code" href="a04115.html#a95">file</a>.open(CPath::lookup(<span class="stringliteral">"alias.packed_sheets"</span>, <span class="keyword">false</span>, <span class="keyword">false</span>)))
+00241 {
+00242 <span class="comment">// clear entries</span>
+00243 <a class="code" href="a03384.html#NLMISC_1_1CSheetIdv5">_SheetIdToAlias</a>.clear ();
+00244 <a class="code" href="a03384.html#NLMISC_1_1CSheetIdv4">_SheetAliasToId</a>.clear ();
+00245
+00246 <span class="comment">// Get the map.</span>
+00247 <a class="code" href="a04558.html#a11">uint32</a> nbEntries;
+00248 <a class="code" href="a04115.html#a95">file</a>.serial (nbEntries);
+00249 <a class="code" href="a04115.html#a95">file</a>.setVersionException (<span class="keyword">false</span>, <span class="keyword">false</span>);
+00250 <a class="code" href="a04558.html#a15">uint</a> ver = 1;
+00251 <a class="code" href="a04115.html#a95">file</a>.serialVersion(ver);
+00252 <a class="code" href="a04115.html#a95">file</a>.serialCont(_SheetIdToAlias);
+00253
+00254 <span class="comment">// Close the file.</span>
+00255 <a class="code" href="a04115.html#a95">file</a>.close();
+00256
+00257 <span class="keywordflow">if</span> (<a class="code" href="a03384.html#NLMISC_1_1CSheetIdv3">_RemoveUnknownSheet</a>)
+00258 {
+00259 <span class="comment">//uint32 nbfiles = _SheetIdToAlias.size();</span>
+00260
+00261 <span class="comment">// now we remove all files that not available</span>
+00262 map&lt;uint32,string&gt;::iterator itStr2;
+00263 <span class="keywordflow">for</span>( itStr2 = <a class="code" href="a03384.html#NLMISC_1_1CSheetIdv5">_SheetIdToAlias</a>.begin(); itStr2 != <a class="code" href="a03384.html#NLMISC_1_1CSheetIdv5">_SheetIdToAlias</a>.end(); )
+00264 {
+00265 <span class="keywordflow">if</span> (CPath::exists (<a class="code" href="a03384.html#NLMISC_1_1CSheetIda4">CSheetId</a>((*itStr2).first).toString()))
+00266 {
+00267 ++itStr2;
+00268 }
+00269 <span class="keywordflow">else</span>
+00270 {
+00271 map&lt;uint32,string&gt;::iterator olditStr = itStr2;
+00272 itStr2++;
+00273 <a class="code" href="a03384.html#NLMISC_1_1CSheetIdv5">_SheetIdToAlias</a>.erase (olditStr);
+00274 }
+00275 }
+00276 }
+00277
+00278 <span class="comment">// build the invert map</span>
+00279 map&lt;uint32,string&gt;::iterator itStr;
+00280 <span class="keywordflow">for</span>( itStr = <a class="code" href="a03384.html#NLMISC_1_1CSheetIdv5">_SheetIdToAlias</a>.begin(); itStr != <a class="code" href="a03384.html#NLMISC_1_1CSheetIdv5">_SheetIdToAlias</a>.end(); ++itStr )
+00281 {
+00282 <span class="comment">// add entry to the inverse map</span>
+00283 <span class="keywordflow">if</span>( !(*itStr).second.empty() )
+00284 {
+00285 <a class="code" href="a03384.html#NLMISC_1_1CSheetIdv4">_SheetAliasToId</a>.insert( make_pair(<a class="code" href="a05378.html#a273">strlwr</a>((*itStr).second),(*itStr).first) );
+00286 }
+00287 <span class="keywordflow">else</span>
+00288 {
+00289 <span class="comment">//nlwarning("&lt;CSheetId::loadSheetAlias&gt; The sheet %s doesn't have alias",CSheetId((*itStr).first).toString().c_str());</span>
+00290 }
+00291 }
+00292 }
+00293 <span class="keywordflow">else</span>
+00294 {
+00295 <a class="code" href="a04199.html#a1">nlinfo</a>(<span class="stringliteral">"SHEETID: Can't open the file alias.packed_sheets"</span>);
+00296 }
+00297 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CSheetIdh2" doxytag="NLMISC::CSheetId::loadSheetId" ></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::CSheetId::loadSheetId </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, 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="a06384.html#l00112">112</a> of file <a class="el" href="a06384.html">sheet_id.cpp</a>.
+<p>
+References <a class="el" href="a06384.html#l00042">_AllStrings</a>, <a class="el" href="a06384.html#l00049">_FileExtensions</a>, <a class="el" href="a06384.html#l00051">_RemoveUnknownSheet</a>, <a class="el" href="a06384.html#l00043">_SheetIdToName</a>, <a class="el" href="a06384.html#l00044">_SheetNameToId</a>, <a class="el" href="a06434.html#l00173">NLMISC::CStaticMap&lt; CChar, uint32, CCharComp &gt;::add()</a>, <a class="el" href="a06434.html#l00173">NLMISC::CStaticMap&lt; uint32, CChar &gt;::add()</a>, <a class="el" href="a06434.html#l00140">NLMISC::CStaticMap&lt; uint32, CChar &gt;::begin()</a>, <a class="el" href="a06434.html#l00213">NLMISC::CStaticMap&lt; CChar, uint32, CCharComp &gt;::clear()</a>, <a class="el" href="a06434.html#l00213">NLMISC::CStaticMap&lt; uint32, CChar &gt;::clear()</a>, <a class="el" href="a05587.html#l00141">NLMISC::contReset()</a>, <a class="el" href="a06434.html#l00142">NLMISC::CStaticMap&lt; uint32, CChar &gt;::end()</a>, <a class="el" href="a06434.html#l00189">NLMISC::CStaticMap&lt; CChar, uint32, CCharComp &gt;::endAdd()</a>, <a class="el" href="a05538.html#l02654">file</a>, <a class="el" href="a06385.html#l00178">NLMISC::CSheetId::TSheetId::Id</a>, <a class="el" href="a03387.html#NLMISC_1_1CSheetId_1_1TSheetIdo1">NLMISC::CSheetId::TSheetId::IdInfos</a>, <a class="el" href="a05622.html#l00154">nlerror</a>, <a class="el" href="a05622.html#l00111">nlinfo</a>, <a class="el" href="a06385.html#l00190">NLMISC::CSheetId::CChar::Ptr</a>, <a class="el" href="a06434.html#l00168">NLMISC::CStaticMap&lt; CChar, uint32, CCharComp &gt;::reserve()</a>, <a class="el" href="a06434.html#l00168">NLMISC::CStaticMap&lt; uint32, CChar &gt;::reserve()</a>, <a class="el" href="a06434.html#l00149">NLMISC::CStaticMap&lt; uint32, CChar &gt;::size()</a>, <a class="el" href="a05586.html#l00536">NLMISC::strlwr()</a>, <a class="el" href="a05646.html#l00244">type</a>, <a class="el" href="a05981.html#l00100">uint32</a>, and <a class="el" href="a05981.html#l00096">uint8</a>.
+<p>
+Referenced by <a class="el" href="a06384.html#l00055">cbFileChange()</a>, and <a class="el" href="a06384.html#l00304">init()</a>.
+<p>
+<div class="fragment"><pre>00113 {
+00114 <span class="comment">// Open the sheet id to sheet file name association</span>
+00115 <a class="code" href="a02653.html">CIFile</a> <a class="code" href="a04115.html#a95">file</a>;
+00116 std::string path = CPath::lookup(<span class="stringliteral">"sheet_id.bin"</span>, <span class="keyword">false</span>, <span class="keyword">false</span>);
+00117 <span class="keywordflow">if</span>(!path.empty() &amp;&amp; <a class="code" href="a04115.html#a95">file</a>.open(path))
+00118 {
+00119 <span class="comment">// clear entries</span>
+00120 <a class="code" href="a03384.html#NLMISC_1_1CSheetIdv1">_FileExtensions</a>.clear ();
+00121 <a class="code" href="a03384.html#NLMISC_1_1CSheetIdv6">_SheetIdToName</a>.clear ();
+00122 <a class="code" href="a03384.html#NLMISC_1_1CSheetIdv7">_SheetNameToId</a>.clear ();
+00123
+00124 <span class="comment">// reserve space for the vector of file extensions</span>
+00125 <a class="code" href="a03384.html#NLMISC_1_1CSheetIdv1">_FileExtensions</a>.resize(256);
+00126
+00127 <span class="comment">// Get the map from the file</span>
+00128 map&lt;uint32,string&gt; tempMap;
+00129 <a class="code" href="a05378.html#a381">contReset</a>(tempMap);
+00130 <a class="code" href="a04115.html#a95">file</a>.serialCont(tempMap);
+00131 <a class="code" href="a04115.html#a95">file</a>.close();
+00132
+00133 <span class="keywordflow">if</span> (<a class="code" href="a03384.html#NLMISC_1_1CSheetIdv3">_RemoveUnknownSheet</a>)
+00134 {
+00135 <a class="code" href="a04558.html#a11">uint32</a> removednbfiles = 0;
+00136 <a class="code" href="a04558.html#a11">uint32</a> nbfiles = tempMap.size();
+00137
+00138 <span class="comment">// now we remove all files that not available</span>
+00139 map&lt;uint32,string&gt;::iterator itStr2;
+00140 <span class="keywordflow">for</span>( itStr2 = tempMap.begin(); itStr2 != tempMap.end(); )
+00141 {
+00142 <span class="keywordflow">if</span> (CPath::exists ((*itStr2).second))
+00143 {
+00144 ++itStr2;
+00145 }
+00146 <span class="keywordflow">else</span>
+00147 {
+00148 map&lt;uint32,string&gt;::iterator olditStr = itStr2;
+00149 <span class="comment">//nldebug ("Removing file '%s' from CSheetId because the file not exists", (*olditStr).second.c_str ());</span>
+00150 itStr2++;
+00151 tempMap.erase (olditStr);
+00152 removednbfiles++;
+00153 }
+00154 }
+00155 <a class="code" href="a04199.html#a1">nlinfo</a> (<span class="stringliteral">"SHEETID: Removed %d files on %d from CSheetId because these files doesn't exists"</span>, removednbfiles, nbfiles);
+00156 }
+00157
+00158 <span class="comment">// Convert the map to one big string and 1 static map (id to name)</span>
+00159 {
+00160 <span class="comment">// Get the number and size of all strings</span>
+00161 vector&lt;CChar&gt; tempVec; <span class="comment">// Used to initialise the first map</span>
+00162 <a class="code" href="a04558.html#a11">uint32</a> nNb = 0;
+00163 <a class="code" href="a04558.html#a11">uint32</a> nSize = 0;
+00164 map&lt;uint32,string&gt;::const_iterator it = tempMap.begin();
+00165 <span class="keywordflow">while</span> (it != tempMap.end())
+00166 {
+00167 nSize += it-&gt;second.size()+1;
+00168 nNb++;
+00169 it++;
+00170 }
+00171
+00172 <span class="comment">// Make the big string (composed of all strings) and a vector referencing each string</span>
+00173 tempVec.resize(nNb);
+00174 <a class="code" href="a03384.html#NLMISC_1_1CSheetIdv0">_AllStrings</a>.<a class="code" href="a03385.html#NLMISC_1_1CSheetId_1_1CCharo0">Ptr</a> = <span class="keyword">new</span> <span class="keywordtype">char</span>[nSize];
+00175 it = tempMap.begin();
+00176 nSize = 0;
+00177 nNb = 0;
+00178 <span class="keywordflow">while</span> (it != tempMap.end())
+00179 {
+00180 tempVec[nNb].Ptr = <a class="code" href="a03384.html#NLMISC_1_1CSheetIdv0">_AllStrings</a>.<a class="code" href="a03385.html#NLMISC_1_1CSheetId_1_1CCharo0">Ptr</a>+nSize;
+00181 strcpy(<a class="code" href="a03384.html#NLMISC_1_1CSheetIdv0">_AllStrings</a>.<a class="code" href="a03385.html#NLMISC_1_1CSheetId_1_1CCharo0">Ptr</a>+nSize, it-&gt;second.c_str());
+00182 <a class="code" href="a05378.html#a273">strlwr</a>(<a class="code" href="a03384.html#NLMISC_1_1CSheetIdv0">_AllStrings</a>.<a class="code" href="a03385.html#NLMISC_1_1CSheetId_1_1CCharo0">Ptr</a>+nSize);
+00183 nSize += it-&gt;second.size()+1;
+00184 nNb++;
+00185 it++;
+00186 }
+00187
+00188 <span class="comment">// Finally build the static map (id to name)</span>
+00189 <a class="code" href="a03384.html#NLMISC_1_1CSheetIdv6">_SheetIdToName</a>.reserve(tempVec.size());
+00190 it = tempMap.begin();
+00191 nNb = 0;
+00192 <span class="keywordflow">while</span> (it != tempMap.end())
+00193 {
+00194 <a class="code" href="a03384.html#NLMISC_1_1CSheetIdv6">_SheetIdToName</a>.add(pair&lt;uint32, CChar&gt;::pair(it-&gt;first, CChar(tempVec[nNb])));
+00195
+00196 nNb++;
+00197 it++;
+00198 }
+00199
+00200 <span class="comment">// The vector of all small string is not needed anymore we have all the info in</span>
+00201 <span class="comment">// the static map and with the pointer AllStrings referencing the beginning.</span>
+00202 }
+00203
+00204 <span class="comment">// Build the invert map (Name to Id) &amp; file extension vector</span>
+00205 {
+00206 <a class="code" href="a04558.html#a11">uint32</a> nSize = <a class="code" href="a03384.html#NLMISC_1_1CSheetIdv6">_SheetIdToName</a>.size();
+00207 <a class="code" href="a03384.html#NLMISC_1_1CSheetIdv7">_SheetNameToId</a>.reserve(nSize);
+00208 CStaticMap&lt;uint32,CChar&gt;::iterator itStr;
+00209 <span class="keywordflow">for</span>( itStr = <a class="code" href="a03384.html#NLMISC_1_1CSheetIdv6">_SheetIdToName</a>.begin(); itStr != <a class="code" href="a03384.html#NLMISC_1_1CSheetIdv6">_SheetIdToName</a>.end(); ++itStr )
+00210 {
+00211 <span class="comment">// add entry to the inverse map</span>
+00212 <a class="code" href="a03384.html#NLMISC_1_1CSheetIdv7">_SheetNameToId</a>.add( make_pair((*itStr).second, (*itStr).first) );
+00213
+00214 <span class="comment">// work out the type value for this entry in the map</span>
+00215 TSheetId sheetId;
+00216 sheetId.Id=(*itStr).first;
+00217 <a class="code" href="a04558.html#a7">uint8</a> <a class="code" href="a04223.html#a581">type</a>= sheetId.IdInfos.Type;
+00218
+00219 <span class="comment">// check whether we need to add an entry to the file extensions vector</span>
+00220 <span class="keywordflow">if</span> (<a class="code" href="a03384.html#NLMISC_1_1CSheetIdv1">_FileExtensions</a>[<a class="code" href="a04223.html#a581">type</a>].empty())
+00221 {
+00222 <span class="comment">// find the file extension part of the given file name</span>
+00223 <a class="code" href="a03384.html#NLMISC_1_1CSheetIdv1">_FileExtensions</a>[<a class="code" href="a04223.html#a581">type</a>]=<a class="code" href="a05378.html#a273">strlwr</a>(CFile::getExtension((*itStr).second.Ptr));
+00224 }
+00225 nSize--;
+00226 }
+00227 <a class="code" href="a03384.html#NLMISC_1_1CSheetIdv7">_SheetNameToId</a>.endAdd();
+00228 }
+00229 }
+00230 <span class="keywordflow">else</span>
+00231 {
+00232 <a class="code" href="a04199.html#a3">nlerror</a>(<span class="stringliteral">"&lt;CSheetId::init&gt; Can't open the file sheet_id.bin"</span>);
+00233 }
+00234 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CSheetIda7" doxytag="NLMISC::CSheetId::operator!=" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> bool NLMISC::CSheetId::operator!= </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">const <a class="el" href="a03384.html">CSheetId</a> &amp;&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>sheetRef</em> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap> const<code> [inline]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Operator !=
+<p>
+Definition at line <a class="el" href="a06385.html#l00123">123</a> of file <a class="el" href="a06385.html">sheet_id.h</a>.
+<p>
+References <a class="el" href="a06385.html#l00181">_Id</a>, and <a class="el" href="a06385.html#l00178">NLMISC::CSheetId::TSheetId::Id</a>.
+<p>
+<div class="fragment"><pre>00123 { <span class="keywordflow">return</span> (<a class="code" href="a03384.html#NLMISC_1_1CSheetIdr0">_Id</a>.<a class="code" href="a03387.html#NLMISC_1_1CSheetId_1_1TSheetIdo0">Id</a> != sheetRef._Id.Id) ; }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CSheetIda8" doxytag="NLMISC::CSheetId::operator<" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> bool NLMISC::CSheetId::operator&lt; </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">const <a class="el" href="a03384.html">CSheetId</a> &amp;&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>sheetRef</em> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap> const</td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Operator&lt;
+<p>
+Definition at line <a class="el" href="a06384.html#l00409">409</a> of file <a class="el" href="a06384.html">sheet_id.cpp</a>.
+<p>
+References <a class="el" href="a06384.html#l00050">_Initialised</a>, <a class="el" href="a06385.html#l00083">asInt()</a>, <a class="el" href="a06385.html#l00178">NLMISC::CSheetId::TSheetId::Id</a>, and <a class="el" href="a05622.html#l00290">nlassert</a>.
+<p>
+<div class="fragment"><pre>00410 {
+00411 <a class="code" href="a04199.html#a6">nlassert</a>(_Initialised);
+00412
+00413 <span class="keywordflow">if</span> (<a class="code" href="a03384.html#NLMISC_1_1CSheetIdr0">_Id</a>.<a class="code" href="a03387.html#NLMISC_1_1CSheetId_1_1TSheetIdo0">Id</a> &lt; sheetRef.asInt())
+00414 {
+00415 <span class="keywordflow">return</span> <span class="keyword">true</span>;
+00416 }
+00417
+00418 <span class="keywordflow">return</span> <span class="keyword">false</span>;
+00419
+00420 } <span class="comment">// operator&lt; //</span>
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CSheetIda9" doxytag="NLMISC::CSheetId::operator=" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> <a class="el" href="a03384.html">CSheetId</a> &amp; NLMISC::CSheetId::operator= </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>sheetRef</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>
+Operator=
+<p>
+Definition at line <a class="el" href="a06384.html#l00393">393</a> of file <a class="el" href="a06384.html">sheet_id.cpp</a>.
+<p>
+References <a class="el" href="a06384.html#l00050">_Initialised</a>, <a class="el" href="a06385.html#l00178">NLMISC::CSheetId::TSheetId::Id</a>, <a class="el" href="a05622.html#l00290">nlassert</a>, and <a class="el" href="a05981.html#l00100">uint32</a>.
+<p>
+<div class="fragment"><pre>00394 {
+00395 <a class="code" href="a04199.html#a6">nlassert</a>(_Initialised);
+00396
+00397 <a class="code" href="a03384.html#NLMISC_1_1CSheetIdr0">_Id</a>.<a class="code" href="a03387.html#NLMISC_1_1CSheetId_1_1TSheetIdo0">Id</a> = sheetRef;
+00398
+00399 <span class="keywordflow">return</span> *<span class="keyword">this</span>;
+00400
+00401 } <span class="comment">// operator= //</span>
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CSheetIda10" doxytag="NLMISC::CSheetId::operator=" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> <a class="el" href="a03384.html">CSheetId</a> &amp; NLMISC::CSheetId::operator= </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>sheetName</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>
+Operator=
+<p>
+Definition at line <a class="el" href="a06384.html#l00356">356</a> of file <a class="el" href="a06384.html">sheet_id.cpp</a>.
+<p>
+References <a class="el" href="a06384.html#l00050">_Initialised</a>, <a class="el" href="a06384.html#l00048">_SheetAliasToId</a>, <a class="el" href="a06384.html#l00044">_SheetNameToId</a>, <a class="el" href="a06434.html#l00142">NLMISC::CStaticMap&lt; CChar, uint32, CCharComp &gt;::end()</a>, <a class="el" href="a06434.html#l00220">NLMISC::CStaticMap&lt; CChar, uint32, CCharComp &gt;::find()</a>, <a class="el" href="a06385.html#l00178">NLMISC::CSheetId::TSheetId::Id</a>, <a class="el" href="a05622.html#l00290">nlassert</a>, <a class="el" href="a06385.html#l00190">NLMISC::CSheetId::CChar::Ptr</a>, and <a class="el" href="a05586.html#l00536">NLMISC::strlwr()</a>.
+<p>
+<div class="fragment"><pre>00357 {
+00358 <a class="code" href="a04199.html#a6">nlassert</a>(_Initialised);
+00359
+00360 map&lt;string,uint32&gt;::const_iterator itIdAlias;
+00361
+00362 itIdAlias = <a class="code" href="a03384.html#NLMISC_1_1CSheetIdv4">_SheetAliasToId</a>.find( <a class="code" href="a05378.html#a273">strlwr</a>(sheetName) );
+00363 <span class="keywordflow">if</span>( itIdAlias != <a class="code" href="a03384.html#NLMISC_1_1CSheetIdv4">_SheetAliasToId</a>.end() )
+00364 {
+00365 <a class="code" href="a03384.html#NLMISC_1_1CSheetIdr0">_Id</a>.<a class="code" href="a03387.html#NLMISC_1_1CSheetId_1_1TSheetIdo0">Id</a> = (*itIdAlias).second;
+00366 <span class="keywordflow">return</span> *<span class="keyword">this</span>;
+00367 }
+00368
+00369
+00370 CStaticMap&lt;CChar,uint32,CCharComp&gt;::const_iterator itId;
+00371 CChar c;
+00372 c.Ptr = <span class="keyword">new</span> <span class="keywordtype">char</span> [sheetName.size()+1];
+00373 strcpy(c.Ptr, sheetName.c_str());
+00374 <a class="code" href="a05378.html#a273">strlwr</a>(c.Ptr);
+00375
+00376 itId = <a class="code" href="a03384.html#NLMISC_1_1CSheetIdv7">_SheetNameToId</a>.find (c);
+00377 <span class="keyword">delete</span> [] c.Ptr;
+00378 <span class="keywordflow">if</span>( itId != <a class="code" href="a03384.html#NLMISC_1_1CSheetIdv7">_SheetNameToId</a>.end() )
+00379 {
+00380 <a class="code" href="a03384.html#NLMISC_1_1CSheetIdr0">_Id</a>.<a class="code" href="a03387.html#NLMISC_1_1CSheetId_1_1TSheetIdo0">Id</a> = (*itId).second;
+00381 <span class="keywordflow">return</span> *<span class="keyword">this</span>;
+00382 }
+00383 *<span class="keyword">this</span> = <a class="code" href="a03384.html#NLMISC_1_1CSheetIds0">Unknown</a>;
+00384 <span class="keywordflow">return</span> *<span class="keyword">this</span>;
+00385
+00386 } <span class="comment">// operator= //</span>
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CSheetIda11" doxytag="NLMISC::CSheetId::operator=" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> <a class="el" href="a03384.html">CSheetId</a> &amp; NLMISC::CSheetId::operator= </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">const <a class="el" href="a03384.html">CSheetId</a> &amp;&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>sheetId</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>
+Operator=
+<p>
+Definition at line <a class="el" href="a06384.html#l00335">335</a> of file <a class="el" href="a06384.html">sheet_id.cpp</a>.
+<p>
+References <a class="el" href="a06384.html#l00050">_Initialised</a>, <a class="el" href="a06385.html#l00083">asInt()</a>, <a class="el" href="a06385.html#l00178">NLMISC::CSheetId::TSheetId::Id</a>, and <a class="el" href="a05622.html#l00290">nlassert</a>.
+<p>
+<div class="fragment"><pre>00336 {
+00337 <a class="code" href="a04199.html#a6">nlassert</a>(_Initialised);
+00338
+00339 <span class="keywordflow">if</span>(<span class="keyword">this</span> == &amp;sheetId)
+00340 {
+00341 <span class="keywordflow">return</span> *<span class="keyword">this</span>;
+00342 }
+00343
+00344 <a class="code" href="a03384.html#NLMISC_1_1CSheetIdr0">_Id</a>.<a class="code" href="a03387.html#NLMISC_1_1CSheetId_1_1TSheetIdo0">Id</a> = sheetId.asInt();
+00345
+00346 <span class="keywordflow">return</span> *<span class="keyword">this</span>;
+00347
+00348
+00349 } <span class="comment">// operator= //</span>
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CSheetIda12" doxytag="NLMISC::CSheetId::operator==" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> bool NLMISC::CSheetId::operator== </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">const <a class="el" href="a03384.html">CSheetId</a> &amp;&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>sheetRef</em> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap> const<code> [inline]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Operator==
+<p>
+Definition at line <a class="el" href="a06385.html#l00118">118</a> of file <a class="el" href="a06385.html">sheet_id.h</a>.
+<p>
+References <a class="el" href="a06385.html#l00181">_Id</a>, and <a class="el" href="a06385.html#l00178">NLMISC::CSheetId::TSheetId::Id</a>.
+<p>
+<div class="fragment"><pre>00118 { <span class="keywordflow">return</span> ( <a class="code" href="a03384.html#NLMISC_1_1CSheetIdr0">_Id</a>.<a class="code" href="a03387.html#NLMISC_1_1CSheetId_1_1TSheetIdo0">Id</a> == sheetRef._Id.Id) ; }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CSheetIda13" doxytag="NLMISC::CSheetId::serial" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> void NLMISC::CSheetId::serial </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top"><a class="el" href="a02270.html">NLMISC::IStream</a> &amp;&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>f</em> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap> throw (<a class="el" href="a03781.html">NLMISC::EStream</a>)<code> [inline]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Serial
+<p>
+Definition at line <a class="el" href="a06385.html#l00137">137</a> of file <a class="el" href="a06385.html">sheet_id.h</a>.
+<p>
+References <a class="el" href="a06385.html#l00178">NLMISC::CSheetId::TSheetId::Id</a>.
+<p>
+<div class="fragment"><pre>00138 {
+00139 f.<a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>( <a class="code" href="a03384.html#NLMISC_1_1CSheetIdr0">_Id</a>.<a class="code" href="a03387.html#NLMISC_1_1CSheetId_1_1TSheetIdo0">Id</a> );
+00140 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CSheetIda14" doxytag="NLMISC::CSheetId::toString" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> string NLMISC::CSheetId::toString </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> const</td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Return the sheet id as a string If the sheet id is not found, the returned string is "&lt;Sheet %d not found in sheet_id.bin&gt;" with the id in d
+<p>
+Definition at line <a class="el" href="a06384.html#l00428">428</a> of file <a class="el" href="a06384.html">sheet_id.cpp</a>.
+<p>
+References <a class="el" href="a06384.html#l00050">_Initialised</a>, <a class="el" href="a06384.html#l00043">_SheetIdToName</a>, <a class="el" href="a06434.html#l00142">NLMISC::CStaticMap&lt; uint32, CChar &gt;::end()</a>, <a class="el" href="a06434.html#l00220">NLMISC::CStaticMap&lt; uint32, CChar &gt;::find()</a>, <a class="el" href="a06385.html#l00178">NLMISC::CSheetId::TSheetId::Id</a>, <a class="el" href="a05622.html#l00290">nlassert</a>, and <a class="el" href="a06229.html#l02652">NLMISC::toString()</a>.
+<p>
+<div class="fragment"><pre>00429 {
+00430 <a class="code" href="a04199.html#a6">nlassert</a>(_Initialised);
+00431
+00432 CStaticMap&lt;uint32,CChar&gt;::const_iterator itStr = <a class="code" href="a03384.html#NLMISC_1_1CSheetIdv6">_SheetIdToName</a>.find (<a class="code" href="a03384.html#NLMISC_1_1CSheetIdr0">_Id</a>.<a class="code" href="a03387.html#NLMISC_1_1CSheetId_1_1TSheetIdo0">Id</a>);
+00433 <span class="keywordflow">if</span>( itStr != <a class="code" href="a03384.html#NLMISC_1_1CSheetIdv6">_SheetIdToName</a>.end() )
+00434 {
+00435 <span class="keywordflow">return</span> string((*itStr).second.Ptr);
+00436 }
+00437 <span class="keywordflow">else</span>
+00438 {
+00439 <span class="comment">// This nlwarning is commented out because the loggers are mutexed, therefore</span>
+00440 <span class="comment">// you couldn't use toString() within a nlwarning().</span>
+00441 <span class="comment">//nlwarning("&lt;CSheetId::toString&gt; The sheet %08x is not in sheet_id.bin",_Id.Id);</span>
+00442 <span class="keywordflow">return</span> <a class="code" href="a05378.html#a244">NLMISC::toString</a>( <span class="stringliteral">"&lt;Sheet %d not found in sheet_id.bin&gt;"</span>, <a class="code" href="a03384.html#NLMISC_1_1CSheetIdr0">_Id</a>.<a class="code" href="a03387.html#NLMISC_1_1CSheetId_1_1TSheetIdo0">Id</a> );
+00443 }
+00444
+00445 } <span class="comment">// toString //</span>
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CSheetIde9" doxytag="NLMISC::CSheetId::typeFromFileExtension" ></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::CSheetId::typeFromFileExtension </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>fileExtension</em> </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="a06384.html#l00590">590</a> of file <a class="el" href="a06384.html">sheet_id.cpp</a>.
+<p>
+References <a class="el" href="a06384.html#l00049">_FileExtensions</a>, <a class="el" href="a06384.html#l00050">_Initialised</a>, <a class="el" href="a05622.html#l00290">nlassert</a>, <a class="el" href="a05586.html#l00536">NLMISC::strlwr()</a>, and <a class="el" href="a05981.html#l00100">uint32</a>.
+<p>
+Referenced by <a class="el" href="a06384.html#l00565">buildIdVector()</a>.
+<p>
+<div class="fragment"><pre>00591 {
+00592 <a class="code" href="a04199.html#a6">nlassert</a>(_Initialised);
+00593
+00594 <span class="keywordtype">unsigned</span> i;
+00595 <span class="keywordflow">for</span> (i=0;i&lt;<a class="code" href="a03384.html#NLMISC_1_1CSheetIdv1">_FileExtensions</a>.size();i++)
+00596 <span class="keywordflow">if</span> (<a class="code" href="a05378.html#a273">strlwr</a>(fileExtension)==<a class="code" href="a03384.html#NLMISC_1_1CSheetIdv1">_FileExtensions</a>[i])
+00597 <span class="keywordflow">return</span> i;
+00598
+00599 <span class="keywordflow">return</span> ~0;
+00600 } <span class="comment">// typeFromFileExtension //</span>
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CSheetIde10" doxytag="NLMISC::CSheetId::uninit" ></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::CSheetId::uninit </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>
+Remove all allocated memory
+<p>
+Definition at line <a class="el" href="a06384.html#l00326">326</a> of file <a class="el" href="a06384.html">sheet_id.cpp</a>.
+<p>
+References <a class="el" href="a06384.html#l00042">_AllStrings</a>, and <a class="el" href="a06385.html#l00190">NLMISC::CSheetId::CChar::Ptr</a>.
+<p>
+<div class="fragment"><pre>00327 {
+00328 <span class="keyword">delete</span> [] <a class="code" href="a03384.html#NLMISC_1_1CSheetIdv0">_AllStrings</a>.<a class="code" href="a03385.html#NLMISC_1_1CSheetId_1_1CCharo0">Ptr</a>;
+00329 } <span class="comment">// uninit //</span>
+</pre></div> </td>
+ </tr>
+</table>
+<hr><h2>Field Documentation</h2>
+<a class="anchor" name="NLMISC_1_1CSheetIdv0" doxytag="NLMISC::CSheetId::_AllStrings" ></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="a03385.html">CSheetId::CChar</a> <a class="el" href="a03384.html#NLMISC_1_1CSheetIdv0">NLMISC::CSheetId::_AllStrings</a><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="a06384.html#l00042">42</a> of file <a class="el" href="a06384.html">sheet_id.cpp</a>.
+<p>
+Referenced by <a class="el" href="a06384.html#l00112">loadSheetId()</a>, and <a class="el" href="a06384.html#l00326">uninit()</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CSheetIdv1" doxytag="NLMISC::CSheetId::_FileExtensions" ></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"> vector&lt; std::string &gt; <a class="el" href="a03384.html#NLMISC_1_1CSheetIdv1">NLMISC::CSheetId::_FileExtensions</a><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="a06384.html#l00049">49</a> of file <a class="el" href="a06384.html">sheet_id.cpp</a>.
+<p>
+Referenced by <a class="el" href="a06384.html#l00607">fileExtensionFromType()</a>, <a class="el" href="a06384.html#l00112">loadSheetId()</a>, and <a class="el" href="a06384.html#l00590">typeFromFileExtension()</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CSheetIdr0" doxytag="NLMISC::CSheetId::_Id" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> <a class="el" href="a03387.html">TSheetId</a> <a class="el" href="a03384.html#NLMISC_1_1CSheetIdr0">NLMISC::CSheetId::_Id</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="a06385.html#l00181">181</a> of file <a class="el" href="a06385.html">sheet_id.h</a>.
+<p>
+Referenced by <a class="el" href="a06385.html#l00123">operator!=()</a>, and <a class="el" href="a06385.html#l00118">operator==()</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CSheetIdv2" doxytag="NLMISC::CSheetId::_Initialised" ></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 <a class="el" href="a03384.html#NLMISC_1_1CSheetIdv2">NLMISC::CSheetId::_Initialised</a> = false<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="a06384.html#l00050">50</a> of file <a class="el" href="a06384.html">sheet_id.cpp</a>.
+<p>
+Referenced by <a class="el" href="a06384.html#l00081">build()</a>, <a class="el" href="a06384.html#l00499">buildIdVector()</a>, <a class="el" href="a06384.html#l00453">display()</a>, <a class="el" href="a06384.html#l00607">fileExtensionFromType()</a>, <a class="el" href="a06384.html#l00304">init()</a>, <a class="el" href="a06384.html#l00409">operator&lt;()</a>, <a class="el" href="a06384.html#l00335">operator=()</a>, <a class="el" href="a06384.html#l00428">toString()</a>, and <a class="el" href="a06384.html#l00590">typeFromFileExtension()</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CSheetIdv3" doxytag="NLMISC::CSheetId::_RemoveUnknownSheet" ></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 <a class="el" href="a03384.html#NLMISC_1_1CSheetIdv3">NLMISC::CSheetId::_RemoveUnknownSheet</a> = true<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="a06384.html#l00051">51</a> of file <a class="el" href="a06384.html">sheet_id.cpp</a>.
+<p>
+Referenced by <a class="el" href="a06384.html#l00304">init()</a>, <a class="el" href="a06384.html#l00236">loadSheetAlias()</a>, and <a class="el" href="a06384.html#l00112">loadSheetId()</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CSheetIdv4" doxytag="NLMISC::CSheetId::_SheetAliasToId" ></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"> map&lt; std::string, <a class="el" href="a04558.html#a11">uint32</a> &gt; <a class="el" href="a03384.html#NLMISC_1_1CSheetIdv4">NLMISC::CSheetId::_SheetAliasToId</a><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="a06384.html#l00048">48</a> of file <a class="el" href="a06384.html">sheet_id.cpp</a>.
+<p>
+Referenced by <a class="el" href="a06384.html#l00081">build()</a>, <a class="el" href="a06384.html#l00236">loadSheetAlias()</a>, and <a class="el" href="a06384.html#l00356">operator=()</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CSheetIdv5" doxytag="NLMISC::CSheetId::_SheetIdToAlias" ></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"> map&lt; <a class="el" href="a04558.html#a11">uint32</a>, std::string &gt; <a class="el" href="a03384.html#NLMISC_1_1CSheetIdv5">NLMISC::CSheetId::_SheetIdToAlias</a><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="a06384.html#l00047">47</a> of file <a class="el" href="a06384.html">sheet_id.cpp</a>.
+<p>
+Referenced by <a class="el" href="a06384.html#l00236">loadSheetAlias()</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CSheetIdv6" doxytag="NLMISC::CSheetId::_SheetIdToName" ></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="a03437.html">CStaticMap</a>&lt; <a class="el" href="a04558.html#a11">uint32</a>, <a class="el" href="a03385.html">CSheetId::CChar</a> &gt; <a class="el" href="a03384.html#NLMISC_1_1CSheetIdv6">NLMISC::CSheetId::_SheetIdToName</a><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="a06384.html#l00043">43</a> of file <a class="el" href="a06384.html">sheet_id.cpp</a>.
+<p>
+Referenced by <a class="el" href="a06384.html#l00499">buildIdVector()</a>, <a class="el" href="a06384.html#l00453">display()</a>, <a class="el" href="a06384.html#l00112">loadSheetId()</a>, and <a class="el" href="a06384.html#l00428">toString()</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CSheetIdv7" doxytag="NLMISC::CSheetId::_SheetNameToId" ></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="a03437.html">CStaticMap</a>&lt; <a class="el" href="a03385.html">CSheetId::CChar</a>, <a class="el" href="a04558.html#a11">uint32</a>, <a class="el" href="a03386.html">CSheetId::CCharComp</a> &gt; <a class="el" href="a03384.html#NLMISC_1_1CSheetIdv7">NLMISC::CSheetId::_SheetNameToId</a><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="a06384.html#l00044">44</a> of file <a class="el" href="a06384.html">sheet_id.cpp</a>.
+<p>
+Referenced by <a class="el" href="a06384.html#l00081">build()</a>, <a class="el" href="a06384.html#l00112">loadSheetId()</a>, and <a class="el" href="a06384.html#l00356">operator=()</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CSheetIds0" doxytag="NLMISC::CSheetId::Unknown" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> const <a class="el" href="a03384.html">CSheetId</a> <a class="el" href="a03384.html#NLMISC_1_1CSheetIds0">NLMISC::CSheetId::Unknown</a><code> [static]</code>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Unknow <a class="el" href="a03384.html">CSheetId</a> is similar as an NULL pointer.
+<p>
+ </td>
+ </tr>
+</table>
+<hr>The documentation for this class was generated from the following files:<ul>
+<li><a class="el" href="a06385.html">sheet_id.h</a><li><a class="el" href="a06384.html">sheet_id.cpp</a></ul>
+<hr size="1"><address style="align: right;"><small>Generated on Tue Mar 16 13:33:09 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>