diff options
Diffstat (limited to 'docs/doxygen/nel/a02653.html')
-rw-r--r-- | docs/doxygen/nel/a02653.html | 6009 |
1 files changed, 6009 insertions, 0 deletions
diff --git a/docs/doxygen/nel/a02653.html b/docs/doxygen/nel/a02653.html new file mode 100644 index 00000000..a003120b --- /dev/null +++ b/docs/doxygen/nel/a02653.html @@ -0,0 +1,6009 @@ +<!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::CIFile 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 Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Data Structures</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="namespacemembers.html">Namespace Members</a> | <a class="qindex" href="functions.html">Data Fields</a> | <a class="qindex" href="globals.html">Globals</a> | <a class="qindex" href="pages.html">Related Pages</a> | <span class="search"><u>S</u>earch for <input class="search" type="text" name="query" value="" size="20" accesskey="s"/></span></form></div> +<h1>NLMISC::CIFile Class Reference</h1><code>#include <<a class="el" href="a05709.html">file.h</a>></code> +<p> +<p>Inheritance diagram for NLMISC::CIFile: +<p><center><img src="a02653.png" usemap="#NLMISC::CIFile_map" border="0" alt=""></center> +<map name="NLMISC::CIFile_map"> +<area href="a02270.html" alt="NLMISC::IStream" shape="rect" coords="0,0,107,24"> +</map> +<hr><a name="_details"></a><h2>Detailed Description</h2> +Input File. <dl compact><dt><b>Author:</b></dt><dd>Lionel Berenguier <p> +Nevrax France </dd></dl> +<dl compact><dt><b>Date:</b></dt><dd>2000 </dd></dl> + +<p> + +<p> +Definition at line <a class="el" href="a05709.html#l00079">79</a> of file <a class="el" href="a05709.html">file.h</a>.<table border=0 cellpadding=0 cellspacing=0> +<tr><td></td></tr> +<tr><td colspan=2><br><h2>Seek fonctionnality</h2></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>enum </td><td class="memItemRight" valign=bottom><a class="el" href="a02270.html#NLMISC_1_1IStreamz2036_0">TSeekOrigin</a> { <a class="el" href="a02270.html#NLMISC_1_1IStreamz2036_0NLMISC_1_1IStreamw0">begin</a>, +<a class="el" href="a02270.html#NLMISC_1_1IStreamz2036_0NLMISC_1_1IStreamw1">current</a>, +<a class="el" href="a02270.html#NLMISC_1_1IStreamz2036_0NLMISC_1_1IStreamw2">end</a> + }</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual bool </td><td class="memItemRight" valign=bottom><a class="el" href="a02270.html#NLMISC_1_1IStreamz2036_3">seek</a> (<a class="el" href="a04558.html#a10">sint32</a> <a class="el" href="a04223.html#a586">offset</a>, <a class="el" href="a02270.html#NLMISC_1_1IStreamz2036_0">TSeekOrigin</a> origin)</td></tr> + +<tr><td colspan=2><br><h2>standard STL containers serialisation.</h2></td></tr> +<tr><td colspan=2>Known Supported containers: vector<>, list<>, deque<>, set<>, multiset<>, map<>, multimap<> Support up to sint32 length containers. <dl compact><dt><b>See also:</b></dt><dd>serialContPtr() serialContPolyPtr() </dd></dl> +<br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="a02270.html#NLMISC_1_1IStreamz2033_0">serialCont</a> (std::vector< bool > &cont)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Specialisation of <a class="el" href="a02270.html#NLMISC_1_1IStreamz2033_9">serialCont()</a> for vector<bool>. <a href="#NLMISC_1_1IStreamz2033_0"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="a02270.html#NLMISC_1_1IStreamz2033_1">serialCont</a> (std::vector< <a class="el" href="a04558.html#a6">sint8</a> > &cont)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Specialisation of <a class="el" href="a02270.html#NLMISC_1_1IStreamz2033_9">serialCont()</a> for vector<sint8>. <a href="#NLMISC_1_1IStreamz2033_1"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="a02270.html#NLMISC_1_1IStreamz2033_2">serialCont</a> (std::vector< <a class="el" href="a04558.html#a7">uint8</a> > &cont)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Specialisation of <a class="el" href="a02270.html#NLMISC_1_1IStreamz2033_9">serialCont()</a> for vector<uint8>. <a href="#NLMISC_1_1IStreamz2033_2"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>template<class K, class T> void </td><td class="memItemRight" valign=bottom><a class="el" href="a02270.html#NLMISC_1_1IStreamz2033_3">serialCont</a> (std::multimap< K, T > &cont)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Specialisation of <a class="el" href="a02270.html#NLMISC_1_1IStreamz2033_9">serialCont()</a> for vector<bool>. <a href="#NLMISC_1_1IStreamz2033_3"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>template<class K, class T> void </td><td class="memItemRight" valign=bottom><a class="el" href="a02270.html#NLMISC_1_1IStreamz2033_4">serialCont</a> (std::map< K, T > &cont)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Specialisation of <a class="el" href="a02270.html#NLMISC_1_1IStreamz2033_9">serialCont()</a> for vector<bool>. <a href="#NLMISC_1_1IStreamz2033_4"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>template<class T> void </td><td class="memItemRight" valign=bottom><a class="el" href="a02270.html#NLMISC_1_1IStreamz2033_5">serialCont</a> (std::multiset< T > &cont)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Specialisation of <a class="el" href="a02270.html#NLMISC_1_1IStreamz2033_9">serialCont()</a> for vector<bool>. <a href="#NLMISC_1_1IStreamz2033_5"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>template<class T> void </td><td class="memItemRight" valign=bottom><a class="el" href="a02270.html#NLMISC_1_1IStreamz2033_6">serialCont</a> (std::set< T > &cont)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Specialisation of <a class="el" href="a02270.html#NLMISC_1_1IStreamz2033_9">serialCont()</a> for vector<bool>. <a href="#NLMISC_1_1IStreamz2033_6"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>template<class T> void </td><td class="memItemRight" valign=bottom><a class="el" href="a02270.html#NLMISC_1_1IStreamz2033_7">serialCont</a> (std::deque< T > &cont)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Specialisation of <a class="el" href="a02270.html#NLMISC_1_1IStreamz2033_9">serialCont()</a> for vector<bool>. <a href="#NLMISC_1_1IStreamz2033_7"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>template<class T> void </td><td class="memItemRight" valign=bottom><a class="el" href="a02270.html#NLMISC_1_1IStreamz2033_8">serialCont</a> (std::list< T > &cont)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Specialisation of <a class="el" href="a02270.html#NLMISC_1_1IStreamz2033_9">serialCont()</a> for vector<bool>. <a href="#NLMISC_1_1IStreamz2033_8"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>template<class T, class Allocator> void </td><td class="memItemRight" valign=bottom><a class="el" href="a02270.html#NLMISC_1_1IStreamz2033_9">serialCont</a> (std::vector< T, Allocator > &cont)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Specialisation of <a class="el" href="a02270.html#NLMISC_1_1IStreamz2033_9">serialCont()</a> for vector<bool>. <a href="#NLMISC_1_1IStreamz2033_9"></a><br><br></td></tr> +<tr><td colspan=2><br><h2>Statistics</h2></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02653.html#NLMISC_1_1CIFilez1942_0">dump</a> (std::vector< std::string > &result)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the last 40 files opened. The files can be in a big file. <a href="#NLMISC_1_1CIFilez1942_0"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a11">uint32</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02653.html#NLMISC_1_1CIFilez1942_1">getNumFileOpen</a> ()</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the number of file open from the begining of the application. Files can be in a big file. <a href="#NLMISC_1_1CIFilez1942_1"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a11">uint32</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02653.html#NLMISC_1_1CIFilez1942_2">getNumFileRead</a> ()</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the number of read acces to a file. <a href="#NLMISC_1_1CIFilez1942_2"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a11">uint32</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02653.html#NLMISC_1_1CIFilez1942_3">getReadFromFile</a> ()</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the number of byte read from the file system since the application start. <a href="#NLMISC_1_1CIFilez1942_3"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a11">uint32</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02653.html#NLMISC_1_1CIFilez1942_4">getReadingFromFile</a> ()</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the number of byte being reading from the file system at the moment. <a href="#NLMISC_1_1CIFilez1942_4"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="a02653.html#NLMISC_1_1CIFilez1942_5">serialBit</a> (bool &bit) throw (EReadError)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the last 40 files opened. The files can be in a big file. <a href="#NLMISC_1_1CIFilez1942_5"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02653.html#NLMISC_1_1CIFilez1942_6">loadIntoCache</a> ()</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the last 40 files opened. The files can be in a big file. <a href="#NLMISC_1_1CIFilez1942_6"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="a02653.html#NLMISC_1_1CIFilez1942_7">_AllowBNPCacheFileOnOpen</a></td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the last 40 files opened. The files can be in a big file. <a href="#NLMISC_1_1CIFilez1942_7"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="a02653.html#NLMISC_1_1CIFilez1942_8">_AlwaysOpened</a></td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the last 40 files opened. The files can be in a big file. <a href="#NLMISC_1_1CIFilez1942_8"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a11">uint32</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02653.html#NLMISC_1_1CIFilez1942_9">_BigFileOffset</a></td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the last 40 files opened. The files can be in a big file. <a href="#NLMISC_1_1CIFilez1942_9"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a7">uint8</a> * </td><td class="memItemRight" valign=bottom><a class="el" href="a02653.html#NLMISC_1_1CIFilez1942_10">_Cache</a></td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the last 40 files opened. The files can be in a big file. <a href="#NLMISC_1_1CIFilez1942_10"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="a02653.html#NLMISC_1_1CIFilez1942_11">_CacheFileOnOpen</a></td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the last 40 files opened. The files can be in a big file. <a href="#NLMISC_1_1CIFilez1942_11"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>FILE * </td><td class="memItemRight" valign=bottom><a class="el" href="a02653.html#NLMISC_1_1CIFilez1942_12">_F</a></td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the last 40 files opened. The files can be in a big file. <a href="#NLMISC_1_1CIFilez1942_12"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>std::string </td><td class="memItemRight" valign=bottom><a class="el" href="a02653.html#NLMISC_1_1CIFilez1942_13">_FileName</a></td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the last 40 files opened. The files can be in a big file. <a href="#NLMISC_1_1CIFilez1942_13"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a11">uint32</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02653.html#NLMISC_1_1CIFilez1942_14">_FileSize</a></td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the last 40 files opened. The files can be in a big file. <a href="#NLMISC_1_1CIFilez1942_14"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="a02653.html#NLMISC_1_1CIFilez1942_15">_IsAsyncLoading</a></td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the last 40 files opened. The files can be in a big file. <a href="#NLMISC_1_1CIFilez1942_15"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="a02653.html#NLMISC_1_1CIFilez1942_16">_IsInBigFile</a></td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the last 40 files opened. The files can be in a big file. <a href="#NLMISC_1_1CIFilez1942_16"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a10">sint32</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02653.html#NLMISC_1_1CIFilez1942_17">_ReadPos</a></td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the last 40 files opened. The files can be in a big file. <a href="#NLMISC_1_1CIFilez1942_17"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a11">uint32</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02653.html#NLMISC_1_1CIFilez1942_18">_FileOpened</a> = 0</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the last 40 files opened. The files can be in a big file. <a href="#NLMISC_1_1CIFilez1942_18"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a11">uint32</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02653.html#NLMISC_1_1CIFilez1942_19">_FileRead</a> = 0</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the last 40 files opened. The files can be in a big file. <a href="#NLMISC_1_1CIFilez1942_19"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a11">uint32</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02653.html#NLMISC_1_1CIFilez1942_20">_NbBytesLoaded</a> = 0</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the last 40 files opened. The files can be in a big file. <a href="#NLMISC_1_1CIFilez1942_20"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a11">uint32</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02653.html#NLMISC_1_1CIFilez1942_21">_NbBytesSerialized</a> = 0</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the last 40 files opened. The files can be in a big file. <a href="#NLMISC_1_1CIFilez1942_21"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>CSynchronized< std::list<<br> + std::string > > </td><td class="memItemRight" valign=bottom><a class="el" href="a02653.html#NLMISC_1_1CIFilez1942_22">_OpenedFiles</a> = CSynchronized<std::list<std::string> >("")</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the last 40 files opened. The files can be in a big file. <a href="#NLMISC_1_1CIFilez1942_22"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a11">uint32</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02653.html#NLMISC_1_1CIFilez1942_23">_ReadFromFile</a> = 0</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the last 40 files opened. The files can be in a big file. <a href="#NLMISC_1_1CIFilez1942_23"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a11">uint32</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02653.html#NLMISC_1_1CIFilez1942_24">_ReadingFromFile</a> = 0</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the last 40 files opened. The files can be in a big file. <a href="#NLMISC_1_1CIFilez1942_24"></a><br><br></td></tr> +<tr><td colspan=2><br><h2>XML implementation interface</h2></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02270.html#NLMISC_1_1IStreamz2040_0">resetPtrTable</a> ()</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02270.html#NLMISC_1_1IStreamz2040_1">setInOut</a> (bool inputStream)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02270.html#NLMISC_1_1IStreamz2040_2">setXMLMode</a> (bool on)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual bool </td><td class="memItemRight" valign=bottom><a class="el" href="a02270.html#NLMISC_1_1IStreamz2040_3">xmlBreakLineInternal</a> ()</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">xmlBreakLine implementation <a href="#NLMISC_1_1IStreamz2040_3"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual bool </td><td class="memItemRight" valign=bottom><a class="el" href="a02270.html#NLMISC_1_1IStreamz2040_4">xmlCommentInternal</a> (const char *comment)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">xmlComment implementation <a href="#NLMISC_1_1IStreamz2040_4"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual bool </td><td class="memItemRight" valign=bottom><a class="el" href="a02270.html#NLMISC_1_1IStreamz2040_5">xmlPopInternal</a> ()</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">xmlPop implementation <a href="#NLMISC_1_1IStreamz2040_5"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual bool </td><td class="memItemRight" valign=bottom><a class="el" href="a02270.html#NLMISC_1_1IStreamz2040_6">xmlPushBeginInternal</a> (const char *name)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">xmlPushBegin implementation <a href="#NLMISC_1_1IStreamz2040_6"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual bool </td><td class="memItemRight" valign=bottom><a class="el" href="a02270.html#NLMISC_1_1IStreamz2040_7">xmlPushEndInternal</a> ()</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">xmlPushEnd implementation <a href="#NLMISC_1_1IStreamz2040_7"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual bool </td><td class="memItemRight" valign=bottom><a class="el" href="a02270.html#NLMISC_1_1IStreamz2040_8">xmlSetAttribInternal</a> (const char *name)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">xmlBreakLine implementation <a href="#NLMISC_1_1IStreamz2040_8"></a><br><br></td></tr> +<tr><td colspan=2><br><h2>Public Types</h2></td></tr> +<tr><td colspan=2><br><h2>Public Member Functions</h2></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02653.html#NLMISC_1_1CIFilea0">allowBNPCacheFileOnOpen</a> (bool newState)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top> </td><td class="memItemRight" valign=bottom><a class="el" href="a02653.html#NLMISC_1_1CIFilea1">CIFile</a> (const std::string &path, bool text=false)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top> </td><td class="memItemRight" valign=bottom><a class="el" href="a02653.html#NLMISC_1_1CIFilea2">CIFile</a> ()</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Object. NB: destructor <a class="el" href="a02653.html#NLMISC_1_1CIFilea3">close()</a> the stream. <a href="#NLMISC_1_1CIFilea2"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02653.html#NLMISC_1_1CIFilea3">close</a> ()</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Explicit close. <a href="#NLMISC_1_1CIFilea3"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="a02653.html#NLMISC_1_1CIFilea4">eof</a> ()</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02653.html#NLMISC_1_1CIFilea5">flush</a> ()</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">flush the file. <a href="#NLMISC_1_1CIFilea5"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a11">uint32</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02653.html#NLMISC_1_1CIFilea6">getFileSize</a> ()</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02653.html#NLMISC_1_1CIFilea7">getline</a> (char *<a class="el" href="a04223.html#a589">buffer</a>, <a class="el" href="a04558.html#a11">uint32</a> <a class="el" href="a04943.html#a5">bufferSize</a>)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a10">sint32</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02653.html#NLMISC_1_1CIFilea8">getPos</a> () throw (EStream)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Gt the location of the file pointer. <a href="#NLMISC_1_1CIFilea8"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual std::string </td><td class="memItemRight" valign=bottom><a class="el" href="a02653.html#NLMISC_1_1CIFilea9">getStreamName</a> () const </td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="a02270.html#NLMISC_1_1IStreama0">isReading</a> () const </td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Is this stream a Read/Input stream? <a href="#NLMISC_1_1IStreama0"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="a02270.html#NLMISC_1_1IStreama3">isXML</a> () const </td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="a02653.html#NLMISC_1_1CIFilea12">open</a> (const std::string &path, bool text=false)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Open a file for reading. false if failed. <a class="el" href="a02653.html#NLMISC_1_1CIFilea3">close()</a> if a file was opened. <a href="#NLMISC_1_1CIFilea12"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="a02653.html#NLMISC_1_1CIFilea13">seek</a> (<a class="el" href="a04558.html#a10">sint32</a> <a class="el" href="a04223.html#a586">offset</a>, <a class="el" href="a02270.html#NLMISC_1_1IStreamz2036_0">IStream::TSeekOrigin</a> origin) throw (EStream)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Seek the file. <a href="#NLMISC_1_1CIFilea13"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>template<class T> void </td><td class="memItemRight" valign=bottom><a class="el" href="a02270.html#NLMISC_1_1IStreama5">serial</a> (T &obj)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="a02653.html#NLMISC_1_1CIFilea15">serialBuffer</a> (<a class="el" href="a04558.html#a7">uint8</a> *buf, <a class="el" href="a04558.html#a15">uint</a> <a class="el" href="a04223.html#a571">len</a>) throw (EReadError)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="a02270.html#NLMISC_1_1IStreama6">serialBufferWithSize</a> (<a class="el" href="a04558.html#a7">uint8</a> *buf, <a class="el" href="a04558.html#a11">uint32</a> <a class="el" href="a04223.html#a571">len</a>)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>template<class T> void </td><td class="memItemRight" valign=bottom><a class="el" href="a02270.html#NLMISC_1_1IStreama7">serialEnum</a> (T &em)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Template enum serialisation. Serialized as a sint32. <a href="#NLMISC_1_1IStreama7"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="a02270.html#NLMISC_1_1IStreama8">serialMemStream</a> (<a class="el" href="a02271.html">CMemStream</a> &b)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Serial memstream, bitmemstream... <a href="#NLMISC_1_1IStreama8"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02653.html#NLMISC_1_1CIFilea19">setAsyncLoading</a> (bool newState)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Set the async loading state (to go to sleep 5 ms after 100 Ko serialized). <a href="#NLMISC_1_1CIFilea19"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02653.html#NLMISC_1_1CIFilea20">setCacheFileOnOpen</a> (bool newState)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Set the cache file on open option (default behaviour is false (file is not cached at opening). <a href="#NLMISC_1_1CIFilea20"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top> </td><td class="memItemRight" valign=bottom><a class="el" href="a02653.html#NLMISC_1_1CIFilea21">~CIFile</a> ()</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 </td><td class="memItemRight" valign=bottom><a class="el" href="a02270.html#NLMISC_1_1IStreame0">getVersionException</a> (bool &throwOnOlder, bool &throwOnNewer)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02270.html#NLMISC_1_1IStreame1">setVersionException</a> (bool throwOnOlder, bool throwOnNewer)</td></tr> + +<tr><td colspan=2><br><h2>Protected Member Functions</h2></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>template<class T> void </td><td class="memItemRight" valign=bottom><a class="el" href="a02270.html#NLMISC_1_1IStreamb0">serialVector</a> (T &cont)</td></tr> + +</table> +<hr><h2>Member Enumeration Documentation</h2> +<a class="anchor" name="NLMISC_1_1IStreamz2036_0" doxytag="NLMISC::CIFile::TSeekOrigin" ></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"> enum <a class="el" href="a02270.html#NLMISC_1_1IStreamz2036_0">NLMISC::IStream::TSeekOrigin</a><code> [inherited]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Parameters for <a class="el" href="a02270.html#NLMISC_1_1IStreamz2036_3">seek()</a>. begin seek from the begining of the stream. current seek from the current location of the stream pointer. end seek from the end of the stream.<dl compact><dt><b>Enumeration values: </b></dt><dd> +<table border=0 cellspacing=2 cellpadding=0> +<tr><td valign=top><em><a class="anchor" name="NLMISC_1_1IStreamz2036_0NLMISC_1_1IStreamw0" doxytag="begin" ></a>begin</em> </td><td> +</td></tr> +<tr><td valign=top><em><a class="anchor" name="NLMISC_1_1IStreamz2036_0NLMISC_1_1IStreamw1" doxytag="current" ></a>current</em> </td><td> +</td></tr> +<tr><td valign=top><em><a class="anchor" name="NLMISC_1_1IStreamz2036_0NLMISC_1_1IStreamw2" doxytag="end" ></a>end</em> </td><td> +</td></tr> +</table> +</dl> + +<p> +Definition at line <a class="el" href="a06462.html#l00549">549</a> of file <a class="el" href="a06462.html">stream.h</a>. +<p> +<div class="fragment"><pre>00549 { <a class="code" href="a02270.html#NLMISC_1_1IStreamz2036_0NLMISC_1_1IStreamw0">begin</a>, <a class="code" href="a02270.html#NLMISC_1_1IStreamz2036_0NLMISC_1_1IStreamw1">current</a>, <a class="code" href="a02270.html#NLMISC_1_1IStreamz2036_0NLMISC_1_1IStreamw2">end</a> }; +</pre></div> </td> + </tr> +</table> +<hr><h2>Constructor & Destructor Documentation</h2> +<a class="anchor" name="NLMISC_1_1CIFilea2" doxytag="NLMISC::CIFile::CIFile" ></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::CIFile::CIFile </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Object. NB: destructor <a class="el" href="a02653.html#NLMISC_1_1CIFilea3">close()</a> the stream. +<p> + +<p> +Definition at line <a class="el" href="a05708.html#l00049">49</a> of file <a class="el" href="a05708.html">file.cpp</a>. +<p> +References <a class="el" href="a05709.html#l00165">_AllowBNPCacheFileOnOpen</a>, <a class="el" href="a05709.html#l00173">_BigFileOffset</a>, <a class="el" href="a05709.html#l00164">_CacheFileOnOpen</a>, <a class="el" href="a05709.html#l00168">_FileSize</a>, <a class="el" href="a05709.html#l00161">_IsAsyncLoading</a>, <a class="el" href="a05709.html#l00172">_IsInBigFile</a>, and <a class="el" href="a05709.html#l00167">_ReadPos</a>. +<p> +<div class="fragment"><pre>00049 : <a class="code" href="a02270.html#NLMISC_1_1IStreama2">IStream</a>(<span class="keyword">true</span>) +00050 { +00051 <a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_12">_F</a> = NULL; +00052 <a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_10">_Cache</a> = NULL; +00053 <a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_17">_ReadPos</a> = 0; +00054 <a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_14">_FileSize</a> = 0; +00055 <a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_9">_BigFileOffset</a> = 0; +00056 <a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_16">_IsInBigFile</a> = <span class="keyword">false</span>; +00057 <a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_11">_CacheFileOnOpen</a> = <span class="keyword">false</span>; +00058 <a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_15">_IsAsyncLoading</a> = <span class="keyword">false</span>; +00059 <a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_7">_AllowBNPCacheFileOnOpen</a>= <span class="keyword">true</span>; +00060 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1CIFilea1" doxytag="NLMISC::CIFile::CIFile" ></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::CIFile::CIFile </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const std::string & </td> + <td class="mdname" nowrap> <em>path</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap>bool </td> + <td class="mdname" nowrap> <em>text</em> = false</td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05708.html#l00063">63</a> of file <a class="el" href="a05708.html">file.cpp</a>. +<p> +References <a class="el" href="a05709.html#l00165">_AllowBNPCacheFileOnOpen</a>, <a class="el" href="a05709.html#l00173">_BigFileOffset</a>, <a class="el" href="a05709.html#l00164">_CacheFileOnOpen</a>, <a class="el" href="a05709.html#l00168">_FileSize</a>, <a class="el" href="a05709.html#l00161">_IsAsyncLoading</a>, <a class="el" href="a05709.html#l00172">_IsInBigFile</a>, <a class="el" href="a05709.html#l00167">_ReadPos</a>, and <a class="el" href="a05708.html#l00135">open()</a>. +<p> +<div class="fragment"><pre>00063 : <a class="code" href="a02270.html#NLMISC_1_1IStreama2">IStream</a>(<span class="keyword">true</span>) +00064 { +00065 <a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_12">_F</a>=NULL; +00066 <a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_10">_Cache</a> = NULL; +00067 <a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_17">_ReadPos</a> = 0; +00068 <a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_14">_FileSize</a> = 0; +00069 <a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_9">_BigFileOffset</a> = 0; +00070 <a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_16">_IsInBigFile</a> = <span class="keyword">false</span>; +00071 <a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_11">_CacheFileOnOpen</a> = <span class="keyword">false</span>; +00072 <a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_15">_IsAsyncLoading</a> = <span class="keyword">false</span>; +00073 <a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_7">_AllowBNPCacheFileOnOpen</a>= <span class="keyword">true</span>; +00074 <a class="code" href="a02653.html#NLMISC_1_1CIFilea12">open</a>(path, text); +00075 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1CIFilea21" doxytag="NLMISC::CIFile::~CIFile" ></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::CIFile::~<a class="el" href="a02653.html">CIFile</a> </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05708.html#l00078">78</a> of file <a class="el" href="a05708.html">file.cpp</a>. +<p> +References <a class="el" href="a05708.html#l00255">close()</a>. +<p> +<div class="fragment"><pre>00079 { +00080 <a class="code" href="a02653.html#NLMISC_1_1CIFilea3">close</a>(); +00081 } +</pre></div> </td> + </tr> +</table> +<hr><h2>Member Function Documentation</h2> +<a class="anchor" name="NLMISC_1_1CIFilea0" doxytag="NLMISC::CIFile::allowBNPCacheFileOnOpen" ></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::CIFile::allowBNPCacheFileOnOpen </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">bool </td> + <td class="mdname1" valign="top" nowrap> <em>newState</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +If the file is opened with a big file, CacheFileOnOpen is replaced with big file option. Except if allowBNPCacheFileOnOpen(false) is called. true is default. +<p> +Definition at line <a class="el" href="a05708.html#l00450">450</a> of file <a class="el" href="a05708.html">file.cpp</a>. +<p> +References <a class="el" href="a05709.html#l00165">_AllowBNPCacheFileOnOpen</a>. +<p> +Referenced by <a class="el" href="a06521.html#l00041">NL3D::CTextureFile::buildBitmapFromFile()</a>. +<p> +<div class="fragment"><pre>00451 { +00452 <a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_7">_AllowBNPCacheFileOnOpen</a>= newState; +00453 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1CIFilea3" doxytag="NLMISC::CIFile::close" ></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::CIFile::close </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Explicit close. +<p> + +<p> +Definition at line <a class="el" href="a05708.html#l00255">255</a> of file <a class="el" href="a05708.html">file.cpp</a>. +<p> +References <a class="el" href="a05709.html#l00171">_AlwaysOpened</a>, <a class="el" href="a05709.html#l00164">_CacheFileOnOpen</a>, <a class="el" href="a05709.html#l00172">_IsInBigFile</a>, and <a class="el" href="a06461.html#l00253">NLMISC::IStream::resetPtrTable()</a>. +<p> +Referenced by <a class="el" href="a06336.html#l00094">NLPACS::CRetrieverBank::addRetriever()</a>, <a class="el" href="a06032.html#l00531">NLAINIMAT::CMHiCSbase::dbgPrintClassifierPriorityInFile()</a>, <a class="el" href="a06366.html#l00170">getSHA1()</a>, <a class="el" href="a06378.html#l00427">NL3D::CShapeBank::load()</a>, <a class="el" href="a05668.html#l00405">NLMISC::CEntityIdTranslator::load()</a>, <a class="el" href="a05874.html#l00064">NL3D::CLandscapeUser::loadBankFiles()</a>, <a class="el" href="a06032.html#l00391">NLAINIMAT::CMHiCSbase::loadClassifierFromFile()</a>, <a class="el" href="a05634.html#l00558">STRING_MANAGER::loadExcelSheet()</a>, <a class="el" href="a05926.html#l00145">loadForm()</a>, <a class="el" href="a05449.html#l00155">NL3D::CAnimationSet::loadFromFiles()</a>, <a class="el" href="a05708.html#l00135">open()</a>, <a class="el" href="a05597.html#l00297">NLMISC::CConfigFile::reparse()</a>, <a class="el" href="a05457.html#l00377">NL3D::CAsyncFileManager3D::CIGLoad::run()</a>, <a class="el" href="a05457.html#l00231">NL3D::CAsyncFileManager3D::CMeshLoad::run()</a>, and <a class="el" href="a05708.html#l00078">~CIFile()</a>. +<p> +<div class="fragment"><pre>00256 { +00257 <span class="keywordflow">if</span> (<a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_11">_CacheFileOnOpen</a>) +00258 { +00259 <span class="keywordflow">if</span> (<a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_10">_Cache</a>) +00260 { +00261 <span class="keyword">delete</span> <a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_10">_Cache</a>; +00262 <a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_10">_Cache</a> = NULL; +00263 } +00264 } +00265 <span class="keywordflow">else</span> +00266 { +00267 <span class="keywordflow">if</span> (<a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_16">_IsInBigFile</a>) +00268 { +00269 <span class="keywordflow">if</span> (!<a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_8">_AlwaysOpened</a>) +00270 { +00271 <span class="keywordflow">if</span> (<a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_12">_F</a>) +00272 { +00273 fclose (_F); +00274 <a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_12">_F</a> = NULL; +00275 } +00276 } +00277 } +00278 <span class="keywordflow">else</span> +00279 { +00280 <span class="keywordflow">if</span> (<a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_12">_F</a>) +00281 { +00282 fclose (_F); +00283 <a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_12">_F</a> = NULL; +00284 } +00285 } +00286 } +00287 <a class="code" href="a02270.html#NLMISC_1_1IStreamz2040_0">resetPtrTable</a>(); +00288 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1CIFilez1942_0" doxytag="NLMISC::CIFile::dump" ></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::CIFile::dump </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">std::vector< std::string > & </td> + <td class="mdname1" valign="top" nowrap> <em>result</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [static]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Get the last 40 files opened. The files can be in a big file. +<p> + +<p> +Definition at line <a class="el" href="a05708.html#l00457">457</a> of file <a class="el" href="a05708.html">file.cpp</a>. +<p> +References <a class="el" href="a05708.html#l00046">_OpenedFiles</a>. +<p> +<div class="fragment"><pre>00458 { +00459 CSynchronized<list<string> >::CAccessor acces(&_OpenedFiles); +00460 +00461 <span class="keyword">const</span> <a class="code" href="a03889.html">list<string></a> &openedFile = acces.value(); +00462 +00463 <span class="comment">// Resize the destination array</span> +00464 result.clear (); +00465 result.reserve (openedFile.size ()); +00466 +00467 <span class="comment">// Add the waiting strings</span> +00468 <a class="code" href="a03889.html">list<string></a>::const_reverse_iterator ite = openedFile.rbegin (); +00469 <span class="keywordflow">while</span> (ite != openedFile.rend ()) +00470 { +00471 result.push_back (*ite); +00472 +00473 <span class="comment">// Next task</span> +00474 ite++; +00475 } +00476 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1CIFilea4" doxytag="NLMISC::CIFile::eof" ></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::CIFile::eof </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05708.html#l00349">349</a> of file <a class="el" href="a05708.html">file.cpp</a>. +<p> +References <a class="el" href="a05709.html#l00168">_FileSize</a>, <a class="el" href="a05709.html#l00167">_ReadPos</a>, and <a class="el" href="a05981.html#l00099">sint32</a>. +<p> +Referenced by <a class="el" href="a06366.html#l00170">getSHA1()</a>, and <a class="el" href="a06167.html#l00293">NLMISC::CPath::loadRemappedFiles()</a>. +<p> +<div class="fragment"><pre>00350 { +00351 <span class="keywordflow">return</span> <a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_17">_ReadPos</a> >= (<a class="code" href="a04558.html#a10">sint32</a>)<a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_14">_FileSize</a>; +00352 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1CIFilea5" doxytag="NLMISC::CIFile::flush" ></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::CIFile::flush </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +flush the file. +<p> + +<p> +Definition at line <a class="el" href="a05708.html#l00291">291</a> of file <a class="el" href="a05708.html">file.cpp</a>. +<p> +References <a class="el" href="a05709.html#l00164">_CacheFileOnOpen</a>. +<p> +<div class="fragment"><pre>00292 { +00293 <span class="keywordflow">if</span> (<a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_11">_CacheFileOnOpen</a>) +00294 { +00295 } +00296 <span class="keywordflow">else</span> +00297 { +00298 <span class="keywordflow">if</span> (<a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_12">_F</a>) +00299 { +00300 fflush (_F); +00301 } +00302 } +00303 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1CIFilea6" doxytag="NLMISC::CIFile::getFileSize" ></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::CIFile::getFileSize </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05709.html#l00119">119</a> of file <a class="el" href="a05709.html">file.h</a>. +<p> +References <a class="el" href="a05709.html#l00168">_FileSize</a>, and <a class="el" href="a05981.html#l00100">uint32</a>. +<p> +Referenced by <a class="el" href="a05465.html#l00560">NLSOUND::CAudioMixerUser::buildSampleBankList()</a>, <a class="el" href="a06291.html#l00304">NLAIPYSERVER::CPyExport::getCodeFromFile()</a>, <a class="el" href="a06366.html#l00170">getSHA1()</a>, and <a class="el" href="a05459.html#l00150">NLSOUND::CAsyncFileManagerSound::CLoadWavFile::run()</a>. +<p> +<div class="fragment"><pre>00119 { <span class="keywordflow">return</span> <a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_14">_FileSize</a>; } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1CIFilea7" doxytag="NLMISC::CIFile::getline" ></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::CIFile::getline </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">char * </td> + <td class="mdname" nowrap> <em>buffer</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap><a class="el" href="a04558.html#a11">uint32</a> </td> + <td class="mdname" nowrap> <em>bufferSize</em></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05708.html#l00306">306</a> of file <a class="el" href="a05708.html">file.cpp</a>. +<p> +References <a class="el" href="a05646.html#l00649">buffer</a>, <a class="el" href="a05708.html#l00355">serialBuffer()</a>, <a class="el" href="a05981.html#l00105">uint</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="a06032.html#l00391">NLAINIMAT::CMHiCSbase::loadClassifierFromFile()</a>, and <a class="el" href="a06167.html#l00293">NLMISC::CPath::loadRemappedFiles()</a>. +<p> +<div class="fragment"><pre>00307 { +00308 <span class="keywordflow">if</span> (bufferSize == 0) +00309 <span class="keywordflow">return</span>; +00310 +00311 <a class="code" href="a04558.html#a15">uint</a> read = 0; +00312 <span class="keywordflow">while</span> (<span class="keyword">true</span>) +00313 { +00314 <span class="keywordflow">if</span> (read == bufferSize - 1) +00315 { +00316 *<a class="code" href="a04223.html#a589">buffer</a> = <span class="charliteral">'\0'</span>; +00317 <span class="keywordflow">return</span>; +00318 } +00319 +00320 <span class="keywordflow">try</span> +00321 { +00322 <span class="comment">// read one byte</span> +00323 <a class="code" href="a02653.html#NLMISC_1_1CIFilea15">serialBuffer</a> ((<a class="code" href="a04558.html#a7">uint8</a> *)buffer, 1); +00324 } +00325 <span class="keywordflow">catch</span> (EFile &) +00326 { +00327 *<a class="code" href="a04223.html#a589">buffer</a> = <span class="charliteral">'\0'</span>; +00328 <span class="keywordflow">return</span>; +00329 } +00330 +00331 <span class="keywordflow">if</span> (*<a class="code" href="a04223.html#a589">buffer</a> == <span class="charliteral">'\n'</span>) +00332 { +00333 *<a class="code" href="a04223.html#a589">buffer</a> = <span class="charliteral">'\0'</span>; +00334 <span class="keywordflow">return</span>; +00335 } +00336 +00337 <span class="comment">// skip '\r' char</span> +00338 <span class="keywordflow">if</span> (*<a class="code" href="a04223.html#a589">buffer</a> != <span class="charliteral">'\r'</span>) +00339 { +00340 <a class="code" href="a04223.html#a589">buffer</a>++; +00341 read++; +00342 } +00343 } +00344 +00345 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1CIFilez1942_1" doxytag="NLMISC::CIFile::getNumFileOpen" ></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::CIFile::getNumFileOpen </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline, static]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Get the number of file open from the begining of the application. Files can be in a big file. +<p> + +<p> +Definition at line <a class="el" href="a05709.html#l00129">129</a> of file <a class="el" href="a05709.html">file.h</a>. +<p> +References <a class="el" href="a05708.html#l00044">_FileOpened</a>, and <a class="el" href="a05981.html#l00100">uint32</a>. +<p> +<div class="fragment"><pre>00129 {<span class="keywordflow">return</span> <a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_18">_FileOpened</a>;} +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1CIFilez1942_2" doxytag="NLMISC::CIFile::getNumFileRead" ></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::CIFile::getNumFileRead </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline, static]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Get the number of read acces to a file. +<p> + +<p> +Definition at line <a class="el" href="a05709.html#l00132">132</a> of file <a class="el" href="a05709.html">file.h</a>. +<p> +References <a class="el" href="a05708.html#l00045">_FileRead</a>, and <a class="el" href="a05981.html#l00100">uint32</a>. +<p> +<div class="fragment"><pre>00132 {<span class="keywordflow">return</span> <a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_19">_FileRead</a>;} +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1CIFilea8" doxytag="NLMISC::CIFile::getPos" ></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#a10">sint32</a> NLMISC::CIFile::getPos </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> throw (<a class="el" href="a03781.html">EStream</a>)<code> [virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Gt the location of the file pointer. +<p> + +<p> +Reimplemented from <a class="el" href="a02270.html#NLMISC_1_1IStreamz2036_1">NLMISC::IStream</a>. +<p> +Definition at line <a class="el" href="a05708.html#l00436">436</a> of file <a class="el" href="a05708.html">file.cpp</a>. +<p> +References <a class="el" href="a05981.html#l00099">sint32</a>. +<p> +Referenced by <a class="el" href="a06346.html#l00228">NLSOUND::CSampleBank::load()</a>. +<p> +<div class="fragment"><pre>00437 { +00438 <span class="keywordflow">return</span> <a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_17">_ReadPos</a>; +00439 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1CIFilez1942_3" doxytag="NLMISC::CIFile::getReadFromFile" ></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::CIFile::getReadFromFile </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline, static]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Get the number of byte read from the file system since the application start. +<p> + +<p> +Definition at line <a class="el" href="a05709.html#l00135">135</a> of file <a class="el" href="a05709.html">file.h</a>. +<p> +References <a class="el" href="a05708.html#l00042">_ReadFromFile</a>, and <a class="el" href="a05981.html#l00100">uint32</a>. +<p> +<div class="fragment"><pre>00135 {<span class="keywordflow">return</span> <a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_23">_ReadFromFile</a>;} +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1CIFilez1942_4" doxytag="NLMISC::CIFile::getReadingFromFile" ></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::CIFile::getReadingFromFile </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline, static]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Get the number of byte being reading from the file system at the moment. +<p> + +<p> +Definition at line <a class="el" href="a05709.html#l00138">138</a> of file <a class="el" href="a05709.html">file.h</a>. +<p> +References <a class="el" href="a05708.html#l00043">_ReadingFromFile</a>, and <a class="el" href="a05981.html#l00100">uint32</a>. +<p> +<div class="fragment"><pre>00138 {<span class="keywordflow">return</span> <a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_24">_ReadingFromFile</a>;} +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1CIFilea9" doxytag="NLMISC::CIFile::getStreamName" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> std::string NLMISC::CIFile::getStreamName </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> const<code> [virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Get a name for this stream. maybe a fileName if FileStream. Default is to return "". +<p> +Reimplemented from <a class="el" href="a02270.html#NLMISC_1_1IStreamz2036_2">NLMISC::IStream</a>. +<p> +Definition at line <a class="el" href="a05708.html#l00443">443</a> of file <a class="el" href="a05708.html">file.cpp</a>. +<p> +<div class="fragment"><pre>00444 { +00445 <span class="keywordflow">return</span> <a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_13">_FileName</a>; +00446 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1IStreame0" doxytag="NLMISC::CIFile::getVersionException" ></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::IStream::getVersionException </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">bool & </td> + <td class="mdname" nowrap> <em>throwOnOlder</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap>bool & </td> + <td class="mdname" nowrap> <em>throwOnNewer</em></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"><code> [static, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Get the behavior of <a class="el" href="a02270.html">IStream</a> regarding input stream that are older/newer than the class. <dl compact><dt><b>See also:</b></dt><dd><a class="el" href="a02270.html#NLMISC_1_1IStreamz2035_8">serialVersion()</a> <a class="el" href="a02270.html#NLMISC_1_1IStreame1">setVersionException()</a></dd></dl> + +<p> +Definition at line <a class="el" href="a06461.html#l00078">78</a> of file <a class="el" href="a06461.html">stream.cpp</a>. +<p> +References <a class="el" href="a06461.html#l00067">NLMISC::IStream::_ThrowOnNewer</a>, and <a class="el" href="a06461.html#l00066">NLMISC::IStream::_ThrowOnOlder</a>. +<p> +<div class="fragment"><pre>00079 { +00080 throwOnOlder=_ThrowOnOlder; +00081 throwOnNewer=_ThrowOnNewer; +00082 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1IStreama0" doxytag="NLMISC::CIFile::isReading" ></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::IStream::isReading </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> const<code> [inline, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Is this stream a Read/Input stream? +<p> + +<p> +Definition at line <a class="el" href="a06463.html#l00064">64</a> of file <a class="el" href="a06463.html">stream_inline.h</a>. +<p> +References <a class="el" href="a06462.html#l00884">NLMISC::IStream::_InputStream</a>. +<p> +Referenced by <a class="el" href="a06026.html#l00151">NLNET::CMessage::assignFromSubMessage()</a>, <a class="el" href="a05979.html#l00306">NLMISC::CMemStream::bufferToFill()</a>, <a class="el" href="a06152.html#l00136">NL3D::CParticleSystemShape::buildFromPS()</a>, <a class="el" href="a06026.html#l00398">NLNET::CMessage::clear()</a>, <a class="el" href="a05979.html#l00201">NLMISC::CMemStream::clear()</a>, <a class="el" href="a06026.html#l00091">NLNET::CMessage::CMessage()</a>, <a class="el" href="a05482.html#l00673">NLMISC::CBitMemStream::displayStream()</a>, <a class="el" href="a05979.html#l00371">NLMISC::CMemStream::fastSerial()</a>, <a class="el" href="a05979.html#l00277">NLMISC::CMemStream::fill()</a>, <a class="el" href="a06152.html#l00344">NL3D::CParticleSystemShape::flushTextures()</a>, <a class="el" href="a05482.html#l00737">NLMISC::CBitMemStream::getSerialItem()</a>, <a class="el" href="a05483.html#l00730">NLMISC::CBitMemStream::increaseBufferIfNecessary()</a>, <a class="el" href="a06107.html#l00111">NLMISC::COXml::init()</a>, <a class="el" href="a06152.html#l00182">NL3D::CParticleSystemShape::instanciatePS()</a>, <a class="el" href="a05482.html#l00172">NLMISC::CBitMemStream::internalSerial()</a>, <a class="el" href="a06027.html#l00198">NLNET::CMessage::invert()</a>, <a class="el" href="a05979.html#l00331">NLMISC::CMemStream::invert()</a>, <a class="el" href="a05483.html#l00418">NLMISC::CBitMemStream::invert()</a>, <a class="el" href="a06027.html#l00104">NLNET::CMessage::length()</a>, <a class="el" href="a05979.html#l00217">NLMISC::CMemStream::length()</a>, <a class="el" href="a05483.html#l00402">NLMISC::CBitMemStream::length()</a>, <a class="el" href="a05486.html#l00109">NLMISC::CBitmap::load()</a>, <a class="el" href="a05486.html#l02582">NLMISC::CBitmap::loadSize()</a>, <a class="el" href="a06027.html#l00143">NLNET::CMessage::lockSubMessage()</a>, <a class="el" href="a06026.html#l00118">NLNET::CMessage::operator=()</a>, <a class="el" href="a05483.html#l00710">NLMISC::CBitMemStream::pointNextByte()</a>, <a class="el" href="a05979.html#l00190">NLMISC::CMemStream::poke()</a>, <a class="el" href="a05482.html#l00346">NLMISC::CBitMemStream::poke()</a>, <a class="el" href="a05482.html#l00375">NLMISC::CBitMemStream::pokeBits()</a>, <a class="el" href="a05482.html#l00415">NLMISC::CBitMemStream::readBits()</a>, <a class="el" href="a05486.html#l01800">NLMISC::CBitmap::readTGA()</a>, <a class="el" href="a06026.html#l00362">NLNET::CMessage::readTypeAtCurrentPos()</a>, <a class="el" href="a05979.html#l00168">NLMISC::CMemStream::reserve()</a>, <a class="el" href="a05482.html#l00275">NLMISC::CBitMemStream::reserveBits()</a>, <a class="el" href="a05483.html#l00382">NLMISC::CBitMemStream::resetBufPos()</a>, <a class="el" href="a05761.html#l02623">NLPACS::CGlobalRetriever::CLrLoader::run()</a>, <a class="el" href="a06758.html#l00432">NL3D::CZone::serial()</a>, <a class="el" href="a06702.html#l00186">NL3D::CVegetableShape::serial()</a>, <a class="el" href="a06477.html#l00329">NLPACS::CSurfaceQuadTree::serial()</a>, <a class="el" href="a06477.html#l00246">NLPACS::CQuadBranch::serial()</a>, <a class="el" href="a06476.html#l00076">NL3D::CSurfaceLightGrid::CCellCorner::serial()</a>, <a class="el" href="a06471.html#l00115">NLMISC::CStringStream::serial()</a>, <a class="el" href="a06463.html#l00087">NLMISC::IStream::serial()</a>, <a class="el" href="a06350.html#l00379">NL3D::CInstanceGroup::serial()</a>, <a class="el" href="a06350.html#l00065">NL3D::CInstanceGroup::CInstance::serial()</a>, <a class="el" href="a06337.html#l00736">NLPACS::CRetrieverInstance::serial()</a>, <a class="el" href="a06336.html#l00114">NLPACS::CRetrieverBank::serial()</a>, <a class="el" href="a06213.html#l00438">NL3D::CPSAttrib< T >::serial()</a>, <a class="el" href="a06193.html#l00216">NL3D::CPortal::serial()</a>, <a class="el" href="a06184.html#l00073">NL3D::CPointLightNamed::serial()</a>, <a class="el" href="a06179.html#l00230">NL3D::CPointLight::serial()</a>, <a class="el" href="a06155.html#l01576">NL3D::CPatch::serial()</a>, <a class="el" href="a06116.html#l00260">NLMISC::CObjectVector< sint8, false >::serial()</a>, <a class="el" href="a06107.html#l00315">NLMISC::COXml::serial()</a>, <a class="el" href="a06029.html#l00072">NLNET::TMessageRecord::serial()</a>, <a class="el" href="a06011.html#l00991">NL3D::CMeshMRMSkinnedGeom::serial()</a>, <a class="el" href="a05979.html#l00561">NLMISC::CMemStream::serial()</a>, <a class="el" href="a05972.html#l01500">NLMISC::CMatrix::serial()</a>, <a class="el" href="a05968.html#l00438">NL3D::CMaterial::CLightMap::serial()</a>, <a class="el" href="a05968.html#l00139">NL3D::CMaterial::serial()</a>, <a class="el" href="a05810.html#l00409">NLNET::CInetAddress::serial()</a>, <a class="el" href="a05792.html#l00117">NL3D::CHLSTextureBank::serial()</a>, <a class="el" href="a05761.html#l00136">NLPACS::CGlobalRetriever::serial()</a>, <a class="el" href="a05666.html#l00571">NLPACS::CEdgeQuad::serial()</a>, <a class="el" href="a05563.html#l00250">NL3D::CCluster::serial()</a>, <a class="el" href="a05541.html#l00473">NLPACS::CChainQuad::serial()</a>, <a class="el" href="a05539.html#l00158">NLPACS::COrderedChain::serial()</a>, <a class="el" href="a05484.html#l00294">NLMISC::CBitSet::serial()</a>, <a class="el" href="a05482.html#l00447">NLMISC::CBitMemStream::serial()</a>, <a class="el" href="a05437.html#l00045">NL3D::CMaterialBase::CAnimatedTexture::serial()</a>, <a class="el" href="a05384.html#l00337">NLMISC::CAABBoxExt::serial()</a>, <a class="el" href="a05968.html#l00456">NL3D::CMaterial::CLightMap::serial2()</a>, <a class="el" href="a06471.html#l00253">NLMISC::CStringStream::serialBit()</a>, <a class="el" href="a05978.html#l00117">NLMISC::CMemStream::serialBit()</a>, <a class="el" href="a05482.html#l00100">NLMISC::CBitMemStream::serialBit()</a>, <a class="el" href="a05978.html#l00073">NLMISC::CMemStream::serialBuffer()</a>, <a class="el" href="a05482.html#l00073">NLMISC::CBitMemStream::serialBuffer()</a>, <a class="el" href="a06462.html#l00520">NLMISC::IStream::serialCheck()</a>, <a class="el" href="a06471.html#l00340">NLMISC::CStringStream::serialCont()</a>, <a class="el" href="a06461.html#l00318">NLMISC::IStream::serialCont()</a>, <a class="el" href="a05482.html#l00591">NLMISC::CBitMemStream::serialCont()</a>, <a class="el" href="a06462.html#l00261">NLMISC::IStream::serialEnum()</a>, <a class="el" href="a06710.html#l00883">NL3D::CVertexBuffer::serialHeader()</a>, <a class="el" href="a06471.html#l00375">NLMISC::CStringStream::serialHex()</a>, <a class="el" href="a05979.html#l00929">NLMISC::CMemStream::serialHex()</a>, <a class="el" href="a06461.html#l00115">NLMISC::IStream::serialIStreamable()</a>, <a class="el" href="a06005.html#l01918">NL3D::CMeshMRMGeom::serialLodVertexData()</a>, <a class="el" href="a06462.html#l01360">NLMISC::IStream::serialMap()</a>, <a class="el" href="a06461.html#l00436">NLMISC::IStream::serialMemStream()</a>, <a class="el" href="a05482.html#l00551">NLMISC::CBitMemStream::serialMemStream()</a>, <a class="el" href="a06026.html#l00472">NLNET::CMessage::serialMessage()</a>, <a class="el" href="a06462.html#l01271">NLMISC::IStream::serialMultimap()</a>, <a class="el" href="a06710.html#l00741">NL3D::CVertexBuffer::serialOldV1Minus()</a>, <a class="el" href="a06462.html#l00390">NLMISC::IStream::serialPtr()</a>, <a class="el" href="a06471.html#l00041">NLMISC::CStringStream::serialSeparatedBufferIn()</a>, <a class="el" href="a05978.html#l00307">NLMISC::CMemStream::serialSeparatedBufferIn()</a>, <a class="el" href="a06471.html#l00071">NLMISC::CStringStream::serialSeparatedBufferOut()</a>, <a class="el" href="a06107.html#l00160">NLMISC::COXml::serialSeparatedBufferOut()</a>, <a class="el" href="a05978.html#l00338">NLMISC::CMemStream::serialSeparatedBufferOut()</a>, <a class="el" href="a06462.html#l00955">NLMISC::IStream::serialSTLCont()</a>, <a class="el" href="a06462.html#l00905">NLMISC::IStream::serialSTLContLen()</a>, <a class="el" href="a06462.html#l01162">NLMISC::IStream::serialSTLContLenPolyPtr()</a>, <a class="el" href="a06462.html#l01056">NLMISC::IStream::serialSTLContLenPtr()</a>, <a class="el" href="a06462.html#l01192">NLMISC::IStream::serialSTLContPolyPtr()</a>, <a class="el" href="a06462.html#l01086">NLMISC::IStream::serialSTLContPtr()</a>, <a class="el" href="a06710.html#l01008">NL3D::CVertexBuffer::serialSubset()</a>, <a class="el" href="a06462.html#l00992">NLMISC::IStream::serialVector()</a>, <a class="el" href="a06462.html#l01215">NLMISC::IStream::serialVectorPolyPtr()</a>, <a class="el" href="a06462.html#l01121">NLMISC::IStream::serialVectorPtr()</a>, <a class="el" href="a06461.html#l00266">NLMISC::IStream::serialVersion()</a>, <a class="el" href="a06026.html#l00173">NLNET::CMessage::setType()</a>, <a class="el" href="a06027.html#l00164">NLNET::CMessage::unlockSubMessage()</a>, <a class="el" href="a05486.html#l02139">NLMISC::CBitmap::writeTGA()</a>, <a class="el" href="a06107.html#l00556">NLMISC::COXml::xmlBreakLineInternal()</a>, <a class="el" href="a06107.html#l00587">NLMISC::COXml::xmlCommentInternal()</a>, <a class="el" href="a06107.html#l00488">NLMISC::COXml::xmlPopInternal()</a>, <a class="el" href="a06107.html#l00394">NLMISC::COXml::xmlPushBeginInternal()</a>, <a class="el" href="a06107.html#l00457">NLMISC::COXml::xmlPushEndInternal()</a>, and <a class="el" href="a06107.html#l00522">NLMISC::COXml::xmlSetAttribInternal()</a>. +<p> +<div class="fragment"><pre>00065 { +00066 <span class="keywordflow">return</span> _InputStream; +00067 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1IStreama3" doxytag="NLMISC::CIFile::isXML" ></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::IStream::isXML </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> const<code> [inline, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a06462.html#l00221">221</a> of file <a class="el" href="a06462.html">stream.h</a>. +<p> +References <a class="el" href="a06462.html#l01443">NLMISC::IStream::_XML</a>. +<p> +Referenced by <a class="el" href="a05979.html#l00803">NLMISC::CMemStream::serial()</a>. +<p> +<div class="fragment"><pre>00221 { <span class="keywordflow">return</span> _XML; } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1CIFilez1942_6" doxytag="NLMISC::CIFile::loadIntoCache" ></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::CIFile::loadIntoCache </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [private]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Get the last 40 files opened. The files can be in a big file. +<p> + +<p> +Definition at line <a class="el" href="a05708.html#l00085">85</a> of file <a class="el" href="a05708.html">file.cpp</a>. +<p> +References <a class="el" href="a05708.html#l00045">_FileRead</a>, <a class="el" href="a05709.html#l00168">_FileSize</a>, <a class="el" href="a05709.html#l00161">_IsAsyncLoading</a>, <a class="el" href="a05708.html#l00041">_NbBytesLoaded</a>, <a class="el" href="a05708.html#l00042">_ReadFromFile</a>, <a class="el" href="a05708.html#l00043">_ReadingFromFile</a>, <a class="el" href="a05646.html#l00225">index</a>, <a class="el" href="a05586.html#l00073">NLMISC::nlSleep()</a>, <a class="el" href="a05981.html#l00104">sint</a>, <a class="el" href="a05981.html#l00105">uint</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="a05708.html#l00135">open()</a>. +<p> +<div class="fragment"><pre>00086 { +00087 <span class="keyword">const</span> <a class="code" href="a04558.html#a11">uint32</a> READPACKETSIZE = 64 * 1024; +00088 <span class="keyword">const</span> <a class="code" href="a04558.html#a11">uint32</a> INTERPACKETSLEEP = 5; +00089 +00090 <a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_10">_Cache</a> = <span class="keyword">new</span> <a class="code" href="a04558.html#a7">uint8</a>[<a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_14">_FileSize</a>]; +00091 <span class="keywordflow">if</span>(!<a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_15">_IsAsyncLoading</a>) +00092 { +00093 <a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_24">_ReadingFromFile</a> += <a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_14">_FileSize</a>; +00094 <span class="keywordtype">int</span> read = fread (_Cache, _FileSize, 1, _F); +00095 <a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_19">_FileRead</a>++; +00096 <a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_24">_ReadingFromFile</a> -= <a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_14">_FileSize</a>; +00097 <a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_23">_ReadFromFile</a> += read * <a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_14">_FileSize</a>; +00098 } +00099 <span class="keywordflow">else</span> +00100 { +00101 <a class="code" href="a04558.html#a15">uint</a> <a class="code" href="a04223.html#a566">index</a>= 0; +00102 <span class="keywordflow">while</span>(<a class="code" href="a04223.html#a566">index</a><<a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_14">_FileSize</a>) +00103 { +00104 <span class="keywordflow">if</span>( <a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_20">_NbBytesLoaded</a> + (<a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_14">_FileSize</a>-<a class="code" href="a04223.html#a566">index</a>) > READPACKETSIZE ) +00105 { +00106 <a class="code" href="a04558.html#a14">sint</a> n= READPACKETSIZE-<a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_20">_NbBytesLoaded</a>; +00107 n= max(n, 1); +00108 <a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_24">_ReadingFromFile</a> += n; +00109 <span class="keywordtype">int</span> read = fread (_Cache+index, n, 1, _F); +00110 <a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_19">_FileRead</a>++; +00111 <a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_24">_ReadingFromFile</a> -= n; +00112 <a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_23">_ReadFromFile</a> += read * n; +00113 <a class="code" href="a04223.html#a566">index</a>+= n; +00114 +00115 <a class="code" href="a05378.html#a256">nlSleep</a> (INTERPACKETSLEEP); +00116 <a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_20">_NbBytesLoaded</a>= 0; +00117 } +00118 <span class="keywordflow">else</span> +00119 { +00120 <a class="code" href="a04558.html#a15">uint</a> n= <a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_14">_FileSize</a>-<a class="code" href="a04223.html#a566">index</a>; +00121 <a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_24">_ReadingFromFile</a> += n; +00122 <span class="keywordtype">int</span> read = fread (_Cache+index, n, 1, _F); +00123 <a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_19">_FileRead</a>++; +00124 <a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_24">_ReadingFromFile</a> -= n; +00125 <a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_23">_ReadFromFile</a> += read * n; +00126 <a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_20">_NbBytesLoaded</a>+= n; +00127 <a class="code" href="a04223.html#a566">index</a>+= n; +00128 } +00129 } +00130 } +00131 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1CIFilea12" doxytag="NLMISC::CIFile::open" ></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::CIFile::open </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const std::string & </td> + <td class="mdname" nowrap> <em>path</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap>bool </td> + <td class="mdname" nowrap> <em>text</em> = false</td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Open a file for reading. false if failed. <a class="el" href="a02653.html#NLMISC_1_1CIFilea3">close()</a> if a file was opened. +<p> + +<p> +Definition at line <a class="el" href="a05708.html#l00135">135</a> of file <a class="el" href="a05708.html">file.cpp</a>. +<p> +References <a class="el" href="a05709.html#l00165">_AllowBNPCacheFileOnOpen</a>, <a class="el" href="a05709.html#l00171">_AlwaysOpened</a>, <a class="el" href="a05709.html#l00173">_BigFileOffset</a>, <a class="el" href="a05709.html#l00164">_CacheFileOnOpen</a>, <a class="el" href="a05708.html#l00044">_FileOpened</a>, <a class="el" href="a05709.html#l00168">_FileSize</a>, <a class="el" href="a05709.html#l00172">_IsInBigFile</a>, <a class="el" href="a05708.html#l00046">_OpenedFiles</a>, <a class="el" href="a05709.html#l00167">_ReadPos</a>, <a class="el" href="a05708.html#l00255">close()</a>, <a class="el" href="a05708.html#l00085">loadIntoCache()</a>, <a class="el" href="a05586.html#l00903">NLMISC::nlfseek64()</a>, <a class="el" href="a05708.html#l00035">NLMISC_DONE_FILE_OPENED</a>, and <a class="el" href="a05622.html#l00135">nlwarning</a>. +<p> +Referenced by <a class="el" href="a06762.html#l00527">NLLIGO::CZoneBank::addElement()</a>, <a class="el" href="a06336.html#l00094">NLPACS::CRetrieverBank::addRetriever()</a>, <a class="el" href="a06521.html#l00041">NL3D::CTextureFile::buildBitmapFromFile()</a>, <a class="el" href="a05708.html#l00063">CIFile()</a>, <a class="el" href="a06352.html#l00085">NL3D::CSceneUser::createAnimationSet()</a>, <a class="el" href="a06200.html#l00122">NLPACS::UPrimitiveBlock::createPrimitiveBlockFromFile()</a>, <a class="el" href="a06032.html#l00531">NLAINIMAT::CMHiCSbase::dbgPrintClassifierPriorityInFile()</a>, <a class="el" href="a06366.html#l00170">getSHA1()</a>, <a class="el" href="a05824.html#l00305">NL3D::CInstanceLighter::light()</a>, <a class="el" href="a05824.html#l01502">NL3D::CInstanceLighter::lightIgSimple()</a>, <a class="el" href="a06378.html#l00427">NL3D::CShapeBank::load()</a>, <a class="el" href="a05668.html#l00405">NLMISC::CEntityIdTranslator::load()</a>, <a class="el" href="a06032.html#l00391">NLAINIMAT::CMHiCSbase::loadClassifierFromFile()</a>, <a class="el" href="a05634.html#l00558">STRING_MANAGER::loadExcelSheet()</a>, <a class="el" href="a05926.html#l00145">loadForm()</a>, <a class="el" href="a05449.html#l00155">NL3D::CAnimationSet::loadFromFiles()</a>, <a class="el" href="a05657.html#l01393">NL3D::CDriverUser::loadHLSBank()</a>, <a class="el" href="a06167.html#l00293">NLMISC::CPath::loadRemappedFiles()</a>, <a class="el" href="a05486.html#l02671">NLMISC::CBitmap::loadSize()</a>, <a class="el" href="a05798.html#l00377">NLMISC::CI18N::readTextFile()</a>, <a class="el" href="a05597.html#l00297">NLMISC::CConfigFile::reparse()</a>, <a class="el" href="a05457.html#l00377">NL3D::CAsyncFileManager3D::CIGLoad::run()</a>, and <a class="el" href="a05457.html#l00231">NL3D::CAsyncFileManager3D::CMeshLoad::run()</a>. +<p> +<div class="fragment"><pre>00136 { +00137 <span class="comment">// Log opened files</span> +00138 { +00139 CSynchronized<list<string> >::CAccessor fileOpened(&_OpenedFiles); +00140 fileOpened.value().push_front (path); +00141 <span class="keywordflow">if</span> (fileOpened.value().size () > <a class="code" href="a04285.html#a0">NLMISC_DONE_FILE_OPENED</a>) +00142 fileOpened.value().resize (NLMISC_DONE_FILE_OPENED); +00143 <a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_18">_FileOpened</a>++; +00144 } +00145 +00146 <a class="code" href="a02653.html#NLMISC_1_1CIFilea3">close</a>(); +00147 +00148 <span class="comment">// can't open empty filename</span> +00149 <span class="keywordflow">if</span>(path.empty ()) +00150 <span class="keywordflow">return</span> <span class="keyword">false</span>; +00151 +00152 <span class="keywordtype">char</span> mode[3]; +00153 mode[0] = <span class="charliteral">'r'</span>; +00154 mode[1] = <span class="charliteral">'b'</span>; <span class="comment">// No more reading in text mode</span> +00155 mode[2] = <span class="charliteral">'\0'</span>; +00156 +00157 <a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_13">_FileName</a> = path; +00158 <a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_17">_ReadPos</a> = 0; +00159 +00160 <span class="comment">// Bigfile access requested ?</span> +00161 <span class="keywordflow">if</span> (path.find(<span class="charliteral">'@'</span>) != string::npos) +00162 { +00163 <a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_16">_IsInBigFile</a> = <span class="keyword">true</span>; +00164 <span class="keywordflow">if</span>(<a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_7">_AllowBNPCacheFileOnOpen</a>) +00165 { +00166 <a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_12">_F</a> = <a class="code" href="a02261.html#NLMISC_1_1CBigFilee0">CBigFile::getInstance</a>().<a class="code" href="a02261.html#NLMISC_1_1CBigFilea1">getFile</a> (path, _FileSize, _BigFileOffset, _CacheFileOnOpen, _AlwaysOpened); +00167 } +00168 <span class="keywordflow">else</span> +00169 { +00170 <span class="keywordtype">bool</span> dummy; +00171 <a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_12">_F</a> = <a class="code" href="a02261.html#NLMISC_1_1CBigFilee0">CBigFile::getInstance</a>().<a class="code" href="a02261.html#NLMISC_1_1CBigFilea1">getFile</a> (path, _FileSize, _BigFileOffset, dummy, _AlwaysOpened); +00172 } +00173 <span class="keywordflow">if</span>(<a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_12">_F</a> != NULL) +00174 { +00175 <span class="comment">// Start to load the bigfile at the file offset.</span> +00176 <a class="code" href="a05378.html#a284">nlfseek64</a> (_F, _BigFileOffset, SEEK_SET); +00177 +00178 <span class="comment">// Load into cache ?</span> +00179 <span class="keywordflow">if</span> (<a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_11">_CacheFileOnOpen</a>) +00180 { +00181 <span class="comment">// load file in the cache</span> +00182 <a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_6">loadIntoCache</a>(); +00183 +00184 <span class="keywordflow">if</span> (!<a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_8">_AlwaysOpened</a>) +00185 { +00186 fclose (_F); +00187 <a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_12">_F</a> = NULL; +00188 } +00189 <span class="keywordflow">return</span> (<a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_10">_Cache</a> != NULL); +00190 } +00191 } +00192 } +00193 <span class="keywordflow">else</span> +00194 { +00195 <a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_16">_IsInBigFile</a> = <span class="keyword">false</span>; +00196 <a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_9">_BigFileOffset</a> = 0; +00197 <a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_8">_AlwaysOpened</a> = <span class="keyword">false</span>; +00198 <a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_12">_F</a> = fopen (path.c_str(), mode); +00199 <span class="keywordflow">if</span> (<a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_12">_F</a> != NULL) +00200 { +00201 <span class="comment">/*</span> +00202 <span class="comment"> </span> +00203 <span class="comment"> THIS CODE REPLACED BY SADGE BECAUSE SOMETIMES</span> +00204 <span class="comment"> ftell() RETRUNS 0 FOR NO GOOD REASON - LEADING TO CLIENT CRASH</span> +00205 <span class="comment"></span> +00206 <span class="comment"> nlfseek64 (_F, 0, SEEK_END);</span> +00207 <span class="comment"> _FileSize = ftell(_F);</span> +00208 <span class="comment"> nlfseek64 (_F, 0, SEEK_SET);</span> +00209 <span class="comment"> nlassert(_FileSize==filelength(fileno(_F)));</span> +00210 <span class="comment"></span> +00211 <span class="comment"> THE FOLLOWING WORKS BUT IS NOT PORTABLE</span> +00212 <span class="comment"> _FileSize=filelength(fileno(_F));</span> +00213 <span class="comment"> */</span> +00214 <a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_14">_FileSize</a>=CFile::getFileSize (_F); +00215 <span class="keywordflow">if</span> (<a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_14">_FileSize</a> == 0) +00216 { +00217 <a class="code" href="a04199.html#a2">nlwarning</a> (<span class="stringliteral">"FILE: Size of file '%s' is 0"</span>, path.c_str()); +00218 fclose (_F); +00219 <a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_12">_F</a> = NULL; +00220 } +00221 } +00222 <span class="keywordflow">else</span> +00223 { +00224 <a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_14">_FileSize</a> = 0; +00225 } +00226 +00227 <span class="keywordflow">if</span> ((<a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_11">_CacheFileOnOpen</a>) && (<a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_12">_F</a> != NULL)) +00228 { +00229 <span class="comment">// load file in the cache</span> +00230 <a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_6">loadIntoCache</a>(); +00231 +00232 fclose (_F); +00233 <a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_12">_F</a> = NULL; +00234 <span class="keywordflow">return</span> (<a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_10">_Cache</a> != NULL); +00235 } +00236 } +00237 +00238 <span class="keywordflow">return</span> (<a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_12">_F</a> != NULL); +00239 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1IStreamz2040_0" doxytag="NLMISC::CIFile::resetPtrTable" ></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::IStream::resetPtrTable </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [protected, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +for Deriver: reset the PtrTable in the stream. If Derived stream provide reset()-like methods, they must call this method in their reset() methods. For example, CFile::close() must call it, so it will work correctly with next <a class="el" href="a02270.html#NLMISC_1_1IStreamz2035_7">serialPtr()</a> +<p> +Reimplemented in <a class="el" href="a02271.html#NLMISC_1_1CStringStreama20">NLMISC::CMemStream</a>. +<p> +Definition at line <a class="el" href="a06461.html#l00253">253</a> of file <a class="el" href="a06461.html">stream.cpp</a>. +<p> +References <a class="el" href="a06462.html#l00890">NLMISC::IStream::_IdMap</a>, and <a class="el" href="a06462.html#l00889">NLMISC::IStream::_NextSerialPtrId</a>. +<p> +Referenced by <a class="el" href="a05708.html#l00255">close()</a>, <a class="el" href="a06107.html#l00111">NLMISC::COXml::init()</a>, <a class="el" href="a05708.html#l00536">NLMISC::COFile::internalClose()</a>, <a class="el" href="a06463.html#l00055">NLMISC::IStream::IStream()</a>, and <a class="el" href="a06461.html#l00101">NLMISC::IStream::operator=()</a>. +<p> +<div class="fragment"><pre>00254 { +00255 _IdMap.clear(); +00256 _NextSerialPtrId = 1; <span class="comment">// Start at 1 because 0 is the NULL pointer</span> +00257 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1IStreamz2036_3" doxytag="NLMISC::CIFile::seek" ></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::IStream::seek </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a10">sint32</a> </td> + <td class="mdname" nowrap> <em>offset</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap><a class="el" href="a02270.html#NLMISC_1_1IStreamz2036_0">TSeekOrigin</a> </td> + <td class="mdname" nowrap> <em>origin</em></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"><code> [virtual, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Moves the stream pointer to a specified location.<p> +NB: If the stream doesn't support the seek fonctionnality, it throw <a class="el" href="a03808.html">ESeekNotSupported</a>. Default implementation: { throw <a class="el" href="a03808.html">ESeekNotSupported</a>; } <dl compact><dt><b>Parameters:</b></dt><dd> + <table border="0" cellspacing="2" cellpadding="0"> + <tr><td valign=top><em>offset</em> </td><td>is the wanted offset from the origin. </td></tr> + <tr><td valign=top><em>origin</em> </td><td>is the origin of the seek </td></tr> + </table> +</dl> +<dl compact><dt><b>Returns:</b></dt><dd>true if seek sucessfull. </dd></dl> +<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="a03808.html">ESeekNotSupported</a> SeekOrigin <a class="el" href="a02270.html#NLMISC_1_1IStreamz2036_1">getPos</a></dd></dl> + +<p> +Reimplemented in <a class="el" href="a02271.html#NLMISC_1_1CStringStreama22">NLMISC::CMemStream</a>. +<p> +Definition at line <a class="el" href="a06461.html#l00401">401</a> of file <a class="el" href="a06461.html">stream.cpp</a>. +<p> +References <a class="el" href="a05646.html#l00645">offset</a>, and <a class="el" href="a05981.html#l00099">sint32</a>. +<p> +Referenced by <a class="el" href="a05486.html#l00109">NLMISC::CBitmap::load()</a>, <a class="el" href="a06005.html#l02001">NL3D::CMeshMRMGeom::loadNextLod()</a>, <a class="el" href="a05486.html#l02582">NLMISC::CBitmap::loadSize()</a>, <a class="el" href="a05486.html#l00244">NLMISC::CBitmap::readDDS()</a>, and <a class="el" href="a05486.html#l01800">NLMISC::CBitmap::readTGA()</a>. +<p> +<div class="fragment"><pre>00402 { +00403 <span class="keywordflow">throw</span> ESeekNotSupported(*<span class="keyword">this</span>); +00404 <span class="keywordflow">return</span> <span class="keyword">false</span>; +00405 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1CIFilea13" doxytag="NLMISC::CIFile::seek" ></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::CIFile::seek </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a10">sint32</a> </td> + <td class="mdname" nowrap> <em>offset</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap><a class="el" href="a02270.html#NLMISC_1_1IStreamz2036_0">IStream::TSeekOrigin</a> </td> + <td class="mdname" nowrap> <em>origin</em></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"> throw (<a class="el" href="a03781.html">EStream</a>)</td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Seek the file. +<p> + +<p> +Definition at line <a class="el" href="a05708.html#l00404">404</a> of file <a class="el" href="a05708.html">file.cpp</a>. +<p> +References <a class="el" href="a05586.html#l00903">NLMISC::nlfseek64()</a>, <a class="el" href="a05622.html#l00416">nlstop</a>, <a class="el" href="a05646.html#l00645">offset</a>, and <a class="el" href="a05981.html#l00099">sint32</a>. +<p> +Referenced by <a class="el" href="a06346.html#l00228">NLSOUND::CSampleBank::load()</a>. +<p> +<div class="fragment"><pre>00405 { +00406 <span class="keywordflow">if</span> ((<a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_11">_CacheFileOnOpen</a>) && (<a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_10">_Cache</a> == NULL)) +00407 <span class="keywordflow">return</span> <span class="keyword">false</span>; +00408 <span class="keywordflow">if</span> ((!<a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_11">_CacheFileOnOpen</a>) && (<a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_12">_F</a> == NULL)) +00409 <span class="keywordflow">return</span> <span class="keyword">false</span>; +00410 +00411 <span class="keywordflow">switch</span> (origin) +00412 { +00413 <span class="keywordflow">case</span> IStream::begin: +00414 <a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_17">_ReadPos</a> = <a class="code" href="a04223.html#a586">offset</a>; +00415 <span class="keywordflow">break</span>; +00416 <span class="keywordflow">case</span> IStream::current: +00417 <a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_17">_ReadPos</a> = <a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_17">_ReadPos</a> + <a class="code" href="a04223.html#a586">offset</a>; +00418 <span class="keywordflow">break</span>; +00419 <span class="keywordflow">case</span> IStream::end: +00420 <a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_17">_ReadPos</a> = <a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_14">_FileSize</a> + <a class="code" href="a04223.html#a586">offset</a>; +00421 <span class="keywordflow">break</span>; +00422 <span class="keywordflow">default</span>: +00423 <a class="code" href="a04199.html#a12">nlstop</a>; +00424 } +00425 +00426 <span class="keywordflow">if</span> (<a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_11">_CacheFileOnOpen</a>) +00427 <span class="keywordflow">return</span> <span class="keyword">true</span>; +00428 +00429 <span class="comment">// seek in the file. NB: if not in bigfile, _BigFileOffset==0.</span> +00430 <span class="keywordflow">if</span> (<a class="code" href="a05378.html#a284">nlfseek64</a>(_F, _BigFileOffset+_ReadPos, SEEK_SET) != 0) +00431 <span class="keywordflow">return</span> <span class="keyword">false</span>; +00432 <span class="keywordflow">return</span> <span class="keyword">true</span>; +00433 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1IStreamz2032_0" doxytag="NLMISC::CIFile::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" colspan="4"> +template<class T0, class T1, class T2, class T3, class T4, class T5> </td> + </tr> + <tr> + <td class="md" nowrap valign="top"> void NLMISC::IStream::serial </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">T0 & </td> + <td class="mdname" nowrap> <em>a</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap>T1 & </td> + <td class="mdname" nowrap> <em>b</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap>T2 & </td> + <td class="mdname" nowrap> <em>c</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap>T3 & </td> + <td class="mdname" nowrap> <em>d</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap>T4 & </td> + <td class="mdname" nowrap> <em>e</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap>T5 & </td> + <td class="mdname" nowrap> <em>f</em></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"><code> [inline, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Reimplemented in <a class="el" href="a02271.html#NLNET_1_1CMessagea36">NLMISC::CMemStream</a>, and <a class="el" href="a03452.html#NLMISC_1_1CStringStreama23">NLMISC::CStringStream</a>. +<p> +Definition at line <a class="el" href="a06462.html#l00313">313</a> of file <a class="el" href="a06462.html">stream.h</a>. +<p> +References <a class="el" href="a06462.html#l00232">NLMISC::IStream::serial()</a>. +<p> +<div class="fragment"><pre>00314 { <a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(a); <a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(b); <a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(c); <a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(d); <a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(e); <a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(f);} +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1IStreamz2032_1" doxytag="NLMISC::CIFile::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" colspan="4"> +template<class T0, class T1, class T2, class T3, class T4> </td> + </tr> + <tr> + <td class="md" nowrap valign="top"> void NLMISC::IStream::serial </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">T0 & </td> + <td class="mdname" nowrap> <em>a</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap>T1 & </td> + <td class="mdname" nowrap> <em>b</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap>T2 & </td> + <td class="mdname" nowrap> <em>c</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap>T3 & </td> + <td class="mdname" nowrap> <em>d</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap>T4 & </td> + <td class="mdname" nowrap> <em>e</em></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"><code> [inline, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Reimplemented in <a class="el" href="a02271.html#NLNET_1_1CMessagea37">NLMISC::CMemStream</a>, and <a class="el" href="a03452.html#NLMISC_1_1CStringStreama24">NLMISC::CStringStream</a>. +<p> +Definition at line <a class="el" href="a06462.html#l00310">310</a> of file <a class="el" href="a06462.html">stream.h</a>. +<p> +References <a class="el" href="a06462.html#l00232">NLMISC::IStream::serial()</a>. +<p> +<div class="fragment"><pre>00311 { <a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(a); <a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(b); <a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(c); <a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(d); <a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(e);} +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1IStreamz2032_2" doxytag="NLMISC::CIFile::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" colspan="4"> +template<class T0, class T1, class T2, class T3> </td> + </tr> + <tr> + <td class="md" nowrap valign="top"> void NLMISC::IStream::serial </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">T0 & </td> + <td class="mdname" nowrap> <em>a</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap>T1 & </td> + <td class="mdname" nowrap> <em>b</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap>T2 & </td> + <td class="mdname" nowrap> <em>c</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap>T3 & </td> + <td class="mdname" nowrap> <em>d</em></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"><code> [inline, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Reimplemented in <a class="el" href="a02271.html#NLNET_1_1CMessagea38">NLMISC::CMemStream</a>, and <a class="el" href="a03452.html#NLMISC_1_1CStringStreama25">NLMISC::CStringStream</a>. +<p> +Definition at line <a class="el" href="a06462.html#l00307">307</a> of file <a class="el" href="a06462.html">stream.h</a>. +<p> +References <a class="el" href="a06462.html#l00232">NLMISC::IStream::serial()</a>. +<p> +<div class="fragment"><pre>00308 { <a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(a); <a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(b); <a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(c); <a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(d);} +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1IStreamz2032_3" doxytag="NLMISC::CIFile::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" colspan="4"> +template<class T0, class T1, class T2> </td> + </tr> + <tr> + <td class="md" nowrap valign="top"> void NLMISC::IStream::serial </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">T0 & </td> + <td class="mdname" nowrap> <em>a</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap>T1 & </td> + <td class="mdname" nowrap> <em>b</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap>T2 & </td> + <td class="mdname" nowrap> <em>c</em></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"><code> [inline, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Reimplemented in <a class="el" href="a02271.html#NLNET_1_1CMessagea39">NLMISC::CMemStream</a>, and <a class="el" href="a03452.html#NLMISC_1_1CStringStreama26">NLMISC::CStringStream</a>. +<p> +Definition at line <a class="el" href="a06462.html#l00304">304</a> of file <a class="el" href="a06462.html">stream.h</a>. +<p> +References <a class="el" href="a06462.html#l00232">NLMISC::IStream::serial()</a>. +<p> +<div class="fragment"><pre>00305 { <a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(a); <a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(b); <a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(c);} +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1IStreamz2032_4" doxytag="NLMISC::CIFile::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" colspan="4"> +template<class T0, class T1> </td> + </tr> + <tr> + <td class="md" nowrap valign="top"> void NLMISC::IStream::serial </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">T0 & </td> + <td class="mdname" nowrap> <em>a</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap>T1 & </td> + <td class="mdname" nowrap> <em>b</em></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"><code> [inline, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Reimplemented in <a class="el" href="a02271.html#NLNET_1_1CMessagea40">NLMISC::CMemStream</a>, and <a class="el" href="a03452.html#NLMISC_1_1CStringStreama27">NLMISC::CStringStream</a>. +<p> +Definition at line <a class="el" href="a06462.html#l00301">301</a> of file <a class="el" href="a06462.html">stream.h</a>. +<p> +References <a class="el" href="a06462.html#l00232">NLMISC::IStream::serial()</a>. +<p> +<div class="fragment"><pre>00302 { <a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(a); <a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(b);} +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1IStreamz2028_0" doxytag="NLMISC::CIFile::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::IStream::serial </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a03924.html">ucstring</a> & </td> + <td class="mdname1" valign="top" nowrap> <em>b</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline, virtual, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Reimplemented in <a class="el" href="a02973.html#NLAIAGENT_1_1CMsgIStreama7">NLAIAGENT::CMsgIStream</a>, <a class="el" href="a02975.html#NLAIAGENT_1_1CMsgOStreama5">NLAIAGENT::CMsgOStream</a>, <a class="el" href="a02269.html#NLMISC_1_1CBitMemStreamz1916_1">NLMISC::CBitMemStream</a>, <a class="el" href="a02271.html#NLNET_1_1CMessagez1972_0">NLMISC::CMemStream</a>, <a class="el" href="a03032.html#NLMISC_1_1COXmld1">NLMISC::COXml</a>, and <a class="el" href="a03452.html#NLMISC_1_1CStringStreamz2043_0">NLMISC::CStringStream</a>. +<p> +Definition at line <a class="el" href="a06463.html#l00304">304</a> of file <a class="el" href="a06463.html">stream_inline.h</a>. +<p> +References <a class="el" href="a06463.html#l00064">NLMISC::IStream::isReading()</a>, <a class="el" href="a05646.html#l00235">len</a>, <a class="el" href="a06462.html#l00232">NLMISC::IStream::serial()</a>, <a class="el" href="a05981.html#l00104">sint</a>, and <a class="el" href="a05981.html#l00099">sint32</a>. +<p> +<div class="fragment"><pre>00305 { +00306 <a class="code" href="a04558.html#a10">sint32</a> <a class="code" href="a04223.html#a571">len</a>=0; +00307 <span class="comment">// Read/Write the length.</span> +00308 <span class="keywordflow">if</span>(<a class="code" href="a02270.html#NLMISC_1_1IStreama0">isReading</a>()) +00309 { +00310 <a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(len); +00311 b.resize(len); +00312 } +00313 <span class="keywordflow">else</span> +00314 { +00315 <a class="code" href="a04223.html#a571">len</a>= b.size(); +00316 <a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(len); +00317 } +00318 <span class="comment">// Read/Write the string.</span> +00319 <span class="keywordflow">for</span>(<a class="code" href="a04558.html#a14">sint</a> i=0;i<<a class="code" href="a04223.html#a571">len</a>;i++) +00320 <a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(b[i]); +00321 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1IStreamz2028_1" doxytag="NLMISC::CIFile::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::IStream::serial </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">std::string & </td> + <td class="mdname1" valign="top" nowrap> <em>b</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline, virtual, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Reimplemented in <a class="el" href="a02973.html#NLAIAGENT_1_1CMsgIStreama8">NLAIAGENT::CMsgIStream</a>, <a class="el" href="a02975.html#NLAIAGENT_1_1CMsgOStreama6">NLAIAGENT::CMsgOStream</a>, <a class="el" href="a02269.html#NLMISC_1_1CBitMemStreamz1916_2">NLMISC::CBitMemStream</a>, <a class="el" href="a02271.html#NLNET_1_1CMessagez1972_1">NLMISC::CMemStream</a>, <a class="el" href="a03032.html#NLMISC_1_1COXmld2">NLMISC::COXml</a>, and <a class="el" href="a03452.html#NLMISC_1_1CStringStreamz2043_1">NLMISC::CStringStream</a>. +<p> +Definition at line <a class="el" href="a06463.html#l00277">277</a> of file <a class="el" href="a06463.html">stream_inline.h</a>. +<p> +References <a class="el" href="a06463.html#l00064">NLMISC::IStream::isReading()</a>, <a class="el" href="a05646.html#l00235">len</a>, <a class="el" href="a05622.html#l00135">nlwarning</a>, <a class="el" href="a06462.html#l00232">NLMISC::IStream::serial()</a>, <a class="el" href="a05981.html#l00104">sint</a>, and <a class="el" href="a05981.html#l00099">sint32</a>. +<p> +<div class="fragment"><pre>00278 { +00279 <a class="code" href="a04558.html#a10">sint32</a> <a class="code" href="a04223.html#a571">len</a>=0; +00280 <span class="comment">// Read/Write the length.</span> +00281 <span class="keywordflow">if</span>(<a class="code" href="a02270.html#NLMISC_1_1IStreama0">isReading</a>()) +00282 { +00283 <a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(len); +00284 <span class="comment">// nlassert( len<1000000 ); // limiting string size</span> +00285 <span class="keywordflow">if</span> (<a class="code" href="a04223.html#a571">len</a>>1000000) +00286 { +00287 <a class="code" href="a04199.html#a2">nlwarning</a>(<span class="stringliteral">"Trying to serialize a string of %u character !"</span>, len); +00288 <span class="keywordflow">throw</span> <a class="code" href="a03824.html">NLMISC::EStreamOverflow</a>(); +00289 } +00290 b.resize(len); +00291 } +00292 <span class="keywordflow">else</span> +00293 { +00294 <a class="code" href="a04223.html#a571">len</a>= b.size(); +00295 <a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(len); +00296 } +00297 <span class="comment">// Read/Write the string.</span> +00298 <span class="keywordflow">for</span>(<a class="code" href="a04558.html#a14">sint</a> i=0;i<<a class="code" href="a04223.html#a571">len</a>;i++) +00299 <a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(b[i]); +00300 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1IStreamz2028_2" doxytag="NLMISC::CIFile::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::IStream::serial </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">char & </td> + <td class="mdname1" valign="top" nowrap> <em>b</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline, virtual, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Reimplemented in <a class="el" href="a02973.html#NLAIAGENT_1_1CMsgIStreama9">NLAIAGENT::CMsgIStream</a>, <a class="el" href="a02975.html#NLAIAGENT_1_1CMsgOStreama7">NLAIAGENT::CMsgOStream</a>, <a class="el" href="a02269.html#NLMISC_1_1CBitMemStreamz1916_3">NLMISC::CBitMemStream</a>, <a class="el" href="a02271.html#NLNET_1_1CMessagez1972_2">NLMISC::CMemStream</a>, <a class="el" href="a03032.html#NLMISC_1_1COXmld3">NLMISC::COXml</a>, and <a class="el" href="a03452.html#NLMISC_1_1CStringStreamz2043_2">NLMISC::CStringStream</a>. +<p> +Definition at line <a class="el" href="a06463.html#l00270">270</a> of file <a class="el" href="a06463.html">stream_inline.h</a>. +<p> +References <a class="el" href="a02270.html#NLMISC_1_1IStreamz2041_1">NLMISC::IStream::serialBuffer()</a>, and <a class="el" href="a05981.html#l00096">uint8</a>. +<p> +<div class="fragment"><pre>00271 { +00272 <a class="code" href="a02653.html#NLMISC_1_1CIFilea15">serialBuffer</a>((<a class="code" href="a04558.html#a7">uint8</a> *)&b, 1); +00273 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1IStreamz2028_3" doxytag="NLMISC::CIFile::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::IStream::serial </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">bool & </td> + <td class="mdname1" valign="top" nowrap> <em>b</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline, virtual, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Reimplemented in <a class="el" href="a02973.html#NLAIAGENT_1_1CMsgIStreama12">NLAIAGENT::CMsgIStream</a>, <a class="el" href="a02975.html#NLAIAGENT_1_1CMsgOStreama10">NLAIAGENT::CMsgOStream</a>, <a class="el" href="a02269.html#NLMISC_1_1CBitMemStreamz1916_4">NLMISC::CBitMemStream</a>, <a class="el" href="a02271.html#NLNET_1_1CMessagez1972_3">NLMISC::CMemStream</a>, <a class="el" href="a03032.html#NLMISC_1_1COXmld4">NLMISC::COXml</a>, and <a class="el" href="a03452.html#NLMISC_1_1CStringStreamz2043_3">NLMISC::CStringStream</a>. +<p> +Definition at line <a class="el" href="a06463.html#l00263">263</a> of file <a class="el" href="a06463.html">stream_inline.h</a>. +<p> +References <a class="el" href="a02270.html#NLMISC_1_1IStreamz2041_0">NLMISC::IStream::serialBit()</a>. +<p> +<div class="fragment"><pre>00264 { +00265 <a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_5">serialBit</a>(b); +00266 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1IStreamz2028_4" doxytag="NLMISC::CIFile::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::IStream::serial </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">double & </td> + <td class="mdname1" valign="top" nowrap> <em>b</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline, virtual, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Reimplemented in <a class="el" href="a02973.html#NLAIAGENT_1_1CMsgIStreama13">NLAIAGENT::CMsgIStream</a>, <a class="el" href="a02975.html#NLAIAGENT_1_1CMsgOStreama11">NLAIAGENT::CMsgOStream</a>, <a class="el" href="a02269.html#NLMISC_1_1CBitMemStreamz1916_5">NLMISC::CBitMemStream</a>, <a class="el" href="a02271.html#NLNET_1_1CMessagez1972_4">NLMISC::CMemStream</a>, <a class="el" href="a03032.html#NLMISC_1_1COXmld5">NLMISC::COXml</a>, and <a class="el" href="a03452.html#NLMISC_1_1CStringStreamz2043_4">NLMISC::CStringStream</a>. +<p> +Definition at line <a class="el" href="a06463.html#l00241">241</a> of file <a class="el" href="a06463.html">stream_inline.h</a>. +<p> +References <a class="el" href="a06463.html#l00064">NLMISC::IStream::isReading()</a>, <a class="el" href="a06462.html#l00062">NLMISC_BSWAP64</a>, <a class="el" href="a02270.html#NLMISC_1_1IStreamz2041_1">NLMISC::IStream::serialBuffer()</a>, <a class="el" href="a05981.html#l00102">uint64</a>, <a class="el" href="a05981.html#l00096">uint8</a>, and <a class="el" href="a05646.html#l00237">v</a>. +<p> +<div class="fragment"><pre>00242 { +00243 <span class="preprocessor">#ifdef NL_LITTLE_ENDIAN</span> +00244 <span class="preprocessor"></span> <a class="code" href="a02653.html#NLMISC_1_1CIFilea15">serialBuffer</a>((<a class="code" href="a04558.html#a7">uint8</a> *)&b, 8); +00245 <span class="preprocessor">#else // NL_LITTLE_ENDIAN</span> +00246 <span class="preprocessor"></span> <a class="code" href="a04558.html#a13">uint64</a> <a class="code" href="a04223.html#a576">v</a>; +00247 <span class="keywordflow">if</span>(<a class="code" href="a02270.html#NLMISC_1_1IStreama0">isReading</a>()) +00248 { +00249 <a class="code" href="a02653.html#NLMISC_1_1CIFilea15">serialBuffer</a>((<a class="code" href="a04558.html#a7">uint8</a> *)&v, 8); +00250 <a class="code" href="a05039.html#a2">NLMISC_BSWAP64</a>(v); +00251 b=*((<span class="keywordtype">double</span>*)&<a class="code" href="a04223.html#a576">v</a>); +00252 } +00253 <span class="keywordflow">else</span> +00254 { +00255 <a class="code" href="a04223.html#a576">v</a>=*((<a class="code" href="a04558.html#a13">uint64</a>*)&b); +00256 <a class="code" href="a05039.html#a2">NLMISC_BSWAP64</a>(v); +00257 <a class="code" href="a02653.html#NLMISC_1_1CIFilea15">serialBuffer</a>((<a class="code" href="a04558.html#a7">uint8</a> *)&v, 8); +00258 } +00259 <span class="preprocessor">#endif // NL_LITTLE_ENDIAN</span> +00260 <span class="preprocessor"></span>} +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1IStreamz2028_5" doxytag="NLMISC::CIFile::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::IStream::serial </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">float & </td> + <td class="mdname1" valign="top" nowrap> <em>b</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline, virtual, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Reimplemented in <a class="el" href="a02973.html#NLAIAGENT_1_1CMsgIStreama14">NLAIAGENT::CMsgIStream</a>, <a class="el" href="a02975.html#NLAIAGENT_1_1CMsgOStreama12">NLAIAGENT::CMsgOStream</a>, <a class="el" href="a02269.html#NLMISC_1_1CBitMemStreamz1916_6">NLMISC::CBitMemStream</a>, <a class="el" href="a02271.html#NLNET_1_1CMessagez1972_5">NLMISC::CMemStream</a>, <a class="el" href="a03032.html#NLMISC_1_1COXmld6">NLMISC::COXml</a>, and <a class="el" href="a03452.html#NLMISC_1_1CStringStreamz2043_5">NLMISC::CStringStream</a>. +<p> +Definition at line <a class="el" href="a06463.html#l00219">219</a> of file <a class="el" href="a06463.html">stream_inline.h</a>. +<p> +References <a class="el" href="a06463.html#l00064">NLMISC::IStream::isReading()</a>, <a class="el" href="a06462.html#l00060">NLMISC_BSWAP32</a>, <a class="el" href="a02270.html#NLMISC_1_1IStreamz2041_1">NLMISC::IStream::serialBuffer()</a>, <a class="el" href="a05981.html#l00100">uint32</a>, <a class="el" href="a05981.html#l00096">uint8</a>, and <a class="el" href="a05646.html#l00237">v</a>. +<p> +<div class="fragment"><pre>00220 { +00221 <span class="preprocessor">#ifdef NL_LITTLE_ENDIAN</span> +00222 <span class="preprocessor"></span> <a class="code" href="a02653.html#NLMISC_1_1CIFilea15">serialBuffer</a>((<a class="code" href="a04558.html#a7">uint8</a> *)&b, 4); +00223 <span class="preprocessor">#else // NL_LITTLE_ENDIAN</span> +00224 <span class="preprocessor"></span> <a class="code" href="a04558.html#a11">uint32</a> <a class="code" href="a04223.html#a576">v</a>; +00225 <span class="keywordflow">if</span>(<a class="code" href="a02270.html#NLMISC_1_1IStreama0">isReading</a>()) +00226 { +00227 <a class="code" href="a02653.html#NLMISC_1_1CIFilea15">serialBuffer</a>((<a class="code" href="a04558.html#a7">uint8</a> *)&v, 4); +00228 <a class="code" href="a05039.html#a1">NLMISC_BSWAP32</a>(v); +00229 b=*((<span class="keywordtype">float</span>*)&<a class="code" href="a04223.html#a576">v</a>); +00230 } +00231 <span class="keywordflow">else</span> +00232 { +00233 <a class="code" href="a04223.html#a576">v</a>=*((<a class="code" href="a04558.html#a11">uint32</a>*)&b); +00234 <a class="code" href="a05039.html#a1">NLMISC_BSWAP32</a>(v); +00235 <a class="code" href="a02653.html#NLMISC_1_1CIFilea15">serialBuffer</a>((<a class="code" href="a04558.html#a7">uint8</a> *)&v, 4); +00236 } +00237 <span class="preprocessor">#endif // NL_LITTLE_ENDIAN</span> +00238 <span class="preprocessor"></span>} +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1IStreamz2028_6" doxytag="NLMISC::CIFile::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::IStream::serial </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a12">sint64</a> & </td> + <td class="mdname1" valign="top" nowrap> <em>b</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline, virtual, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Reimplemented in <a class="el" href="a02973.html#NLAIAGENT_1_1CMsgIStreama15">NLAIAGENT::CMsgIStream</a>, <a class="el" href="a02975.html#NLAIAGENT_1_1CMsgOStreama13">NLAIAGENT::CMsgOStream</a>, <a class="el" href="a02269.html#NLMISC_1_1CBitMemStreamz1916_7">NLMISC::CBitMemStream</a>, <a class="el" href="a02271.html#NLNET_1_1CMessagez1972_6">NLMISC::CMemStream</a>, <a class="el" href="a03032.html#NLMISC_1_1COXmld7">NLMISC::COXml</a>, and <a class="el" href="a03452.html#NLMISC_1_1CStringStreamz2043_6">NLMISC::CStringStream</a>. +<p> +Definition at line <a class="el" href="a06463.html#l00197">197</a> of file <a class="el" href="a06463.html">stream_inline.h</a>. +<p> +References <a class="el" href="a06463.html#l00064">NLMISC::IStream::isReading()</a>, <a class="el" href="a06462.html#l00062">NLMISC_BSWAP64</a>, <a class="el" href="a02270.html#NLMISC_1_1IStreamz2041_1">NLMISC::IStream::serialBuffer()</a>, <a class="el" href="a05981.html#l00101">sint64</a>, <a class="el" href="a05981.html#l00102">uint64</a>, <a class="el" href="a05981.html#l00096">uint8</a>, and <a class="el" href="a05646.html#l00237">v</a>. +<p> +<div class="fragment"><pre>00198 { +00199 <span class="preprocessor">#ifdef NL_LITTLE_ENDIAN</span> +00200 <span class="preprocessor"></span> <a class="code" href="a02653.html#NLMISC_1_1CIFilea15">serialBuffer</a>((<a class="code" href="a04558.html#a7">uint8</a> *)&b, 8); +00201 <span class="preprocessor">#else // NL_LITTLE_ENDIAN</span> +00202 <span class="preprocessor"></span> <a class="code" href="a04558.html#a13">uint64</a> <a class="code" href="a04223.html#a576">v</a>; +00203 <span class="keywordflow">if</span>(<a class="code" href="a02270.html#NLMISC_1_1IStreama0">isReading</a>()) +00204 { +00205 <a class="code" href="a02653.html#NLMISC_1_1CIFilea15">serialBuffer</a>((<a class="code" href="a04558.html#a7">uint8</a> *)&v, 8); +00206 <a class="code" href="a05039.html#a2">NLMISC_BSWAP64</a>(v); +00207 b=<a class="code" href="a04223.html#a576">v</a>; +00208 } +00209 <span class="keywordflow">else</span> +00210 { +00211 <a class="code" href="a04223.html#a576">v</a>=b; +00212 <a class="code" href="a05039.html#a2">NLMISC_BSWAP64</a>(v); +00213 <a class="code" href="a02653.html#NLMISC_1_1CIFilea15">serialBuffer</a>((<a class="code" href="a04558.html#a7">uint8</a> *)&v, 8); +00214 } +00215 <span class="preprocessor">#endif // NL_LITTLE_ENDIAN</span> +00216 <span class="preprocessor"></span>} +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1IStreamz2028_7" doxytag="NLMISC::CIFile::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::IStream::serial </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a13">uint64</a> & </td> + <td class="mdname1" valign="top" nowrap> <em>b</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline, virtual, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Reimplemented in <a class="el" href="a02973.html#NLAIAGENT_1_1CMsgIStreama16">NLAIAGENT::CMsgIStream</a>, <a class="el" href="a02975.html#NLAIAGENT_1_1CMsgOStreama14">NLAIAGENT::CMsgOStream</a>, <a class="el" href="a02269.html#NLMISC_1_1CBitMemStreamz1916_8">NLMISC::CBitMemStream</a>, <a class="el" href="a02271.html#NLNET_1_1CMessagez1972_7">NLMISC::CMemStream</a>, <a class="el" href="a03032.html#NLMISC_1_1COXmld8">NLMISC::COXml</a>, and <a class="el" href="a03452.html#NLMISC_1_1CStringStreamz2043_7">NLMISC::CStringStream</a>. +<p> +Definition at line <a class="el" href="a06463.html#l00175">175</a> of file <a class="el" href="a06463.html">stream_inline.h</a>. +<p> +References <a class="el" href="a06463.html#l00064">NLMISC::IStream::isReading()</a>, <a class="el" href="a06462.html#l00062">NLMISC_BSWAP64</a>, <a class="el" href="a02270.html#NLMISC_1_1IStreamz2041_1">NLMISC::IStream::serialBuffer()</a>, <a class="el" href="a05981.html#l00102">uint64</a>, <a class="el" href="a05981.html#l00096">uint8</a>, and <a class="el" href="a05646.html#l00237">v</a>. +<p> +<div class="fragment"><pre>00176 { +00177 <span class="preprocessor">#ifdef NL_LITTLE_ENDIAN</span> +00178 <span class="preprocessor"></span> <a class="code" href="a02653.html#NLMISC_1_1CIFilea15">serialBuffer</a>((<a class="code" href="a04558.html#a7">uint8</a> *)&b, 8); +00179 <span class="preprocessor">#else // NL_LITTLE_ENDIAN</span> +00180 <span class="preprocessor"></span> <a class="code" href="a04558.html#a13">uint64</a> <a class="code" href="a04223.html#a576">v</a>; +00181 <span class="keywordflow">if</span>(<a class="code" href="a02270.html#NLMISC_1_1IStreama0">isReading</a>()) +00182 { +00183 <a class="code" href="a02653.html#NLMISC_1_1CIFilea15">serialBuffer</a>((<a class="code" href="a04558.html#a7">uint8</a> *)&v, 8); +00184 <a class="code" href="a05039.html#a2">NLMISC_BSWAP64</a>(v); +00185 b=<a class="code" href="a04223.html#a576">v</a>; +00186 } +00187 <span class="keywordflow">else</span> +00188 { +00189 <a class="code" href="a04223.html#a576">v</a>=b; +00190 <a class="code" href="a05039.html#a2">NLMISC_BSWAP64</a>(v); +00191 <a class="code" href="a02653.html#NLMISC_1_1CIFilea15">serialBuffer</a>((<a class="code" href="a04558.html#a7">uint8</a> *)&v, 8); +00192 } +00193 <span class="preprocessor">#endif // NL_LITTLE_ENDIAN</span> +00194 <span class="preprocessor"></span>} +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1IStreamz2028_8" doxytag="NLMISC::CIFile::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::IStream::serial </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a10">sint32</a> & </td> + <td class="mdname1" valign="top" nowrap> <em>b</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline, virtual, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Reimplemented in <a class="el" href="a02973.html#NLAIAGENT_1_1CMsgIStreama17">NLAIAGENT::CMsgIStream</a>, <a class="el" href="a02975.html#NLAIAGENT_1_1CMsgOStreama15">NLAIAGENT::CMsgOStream</a>, <a class="el" href="a02269.html#NLMISC_1_1CBitMemStreamz1916_9">NLMISC::CBitMemStream</a>, <a class="el" href="a02271.html#NLNET_1_1CMessagez1972_8">NLMISC::CMemStream</a>, <a class="el" href="a03032.html#NLMISC_1_1COXmld9">NLMISC::COXml</a>, and <a class="el" href="a03452.html#NLMISC_1_1CStringStreamz2043_8">NLMISC::CStringStream</a>. +<p> +Definition at line <a class="el" href="a06463.html#l00153">153</a> of file <a class="el" href="a06463.html">stream_inline.h</a>. +<p> +References <a class="el" href="a06463.html#l00064">NLMISC::IStream::isReading()</a>, <a class="el" href="a06462.html#l00060">NLMISC_BSWAP32</a>, <a class="el" href="a02270.html#NLMISC_1_1IStreamz2041_1">NLMISC::IStream::serialBuffer()</a>, <a class="el" href="a05981.html#l00099">sint32</a>, <a class="el" href="a05981.html#l00100">uint32</a>, <a class="el" href="a05981.html#l00096">uint8</a>, and <a class="el" href="a05646.html#l00237">v</a>. +<p> +<div class="fragment"><pre>00154 { +00155 <span class="preprocessor">#ifdef NL_LITTLE_ENDIAN</span> +00156 <span class="preprocessor"></span> <a class="code" href="a02653.html#NLMISC_1_1CIFilea15">serialBuffer</a>((<a class="code" href="a04558.html#a7">uint8</a> *)&b, 4); +00157 <span class="preprocessor">#else // NL_LITTLE_ENDIAN</span> +00158 <span class="preprocessor"></span> <a class="code" href="a04558.html#a11">uint32</a> <a class="code" href="a04223.html#a576">v</a>; +00159 <span class="keywordflow">if</span>(<a class="code" href="a02270.html#NLMISC_1_1IStreama0">isReading</a>()) +00160 { +00161 <a class="code" href="a02653.html#NLMISC_1_1CIFilea15">serialBuffer</a>((<a class="code" href="a04558.html#a7">uint8</a> *)&v, 4); +00162 <a class="code" href="a05039.html#a1">NLMISC_BSWAP32</a>(v); +00163 b=<a class="code" href="a04223.html#a576">v</a>; +00164 } +00165 <span class="keywordflow">else</span> +00166 { +00167 <a class="code" href="a04223.html#a576">v</a>=b; +00168 <a class="code" href="a05039.html#a1">NLMISC_BSWAP32</a>(v); +00169 <a class="code" href="a02653.html#NLMISC_1_1CIFilea15">serialBuffer</a>((<a class="code" href="a04558.html#a7">uint8</a> *)&v, 4); +00170 } +00171 <span class="preprocessor">#endif // NL_LITTLE_ENDIAN</span> +00172 <span class="preprocessor"></span>} +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1IStreamz2028_9" doxytag="NLMISC::CIFile::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::IStream::serial </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a11">uint32</a> & </td> + <td class="mdname1" valign="top" nowrap> <em>b</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline, virtual, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Reimplemented in <a class="el" href="a02973.html#NLAIAGENT_1_1CMsgIStreama18">NLAIAGENT::CMsgIStream</a>, <a class="el" href="a02975.html#NLAIAGENT_1_1CMsgOStreama16">NLAIAGENT::CMsgOStream</a>, <a class="el" href="a02269.html#NLMISC_1_1CBitMemStreamz1916_10">NLMISC::CBitMemStream</a>, <a class="el" href="a02271.html#NLNET_1_1CMessagez1972_9">NLMISC::CMemStream</a>, <a class="el" href="a03032.html#NLMISC_1_1COXmld10">NLMISC::COXml</a>, and <a class="el" href="a03452.html#NLMISC_1_1CStringStreamz2043_9">NLMISC::CStringStream</a>. +<p> +Definition at line <a class="el" href="a06463.html#l00131">131</a> of file <a class="el" href="a06463.html">stream_inline.h</a>. +<p> +References <a class="el" href="a06463.html#l00064">NLMISC::IStream::isReading()</a>, <a class="el" href="a06462.html#l00060">NLMISC_BSWAP32</a>, <a class="el" href="a02270.html#NLMISC_1_1IStreamz2041_1">NLMISC::IStream::serialBuffer()</a>, <a class="el" href="a05981.html#l00100">uint32</a>, <a class="el" href="a05981.html#l00096">uint8</a>, and <a class="el" href="a05646.html#l00237">v</a>. +<p> +<div class="fragment"><pre>00132 { +00133 <span class="preprocessor">#ifdef NL_LITTLE_ENDIAN</span> +00134 <span class="preprocessor"></span> <a class="code" href="a02653.html#NLMISC_1_1CIFilea15">serialBuffer</a>((<a class="code" href="a04558.html#a7">uint8</a> *)&b, 4); +00135 <span class="preprocessor">#else // NL_LITTLE_ENDIAN</span> +00136 <span class="preprocessor"></span> <a class="code" href="a04558.html#a11">uint32</a> <a class="code" href="a04223.html#a576">v</a>; +00137 <span class="keywordflow">if</span>(<a class="code" href="a02270.html#NLMISC_1_1IStreama0">isReading</a>()) +00138 { +00139 <a class="code" href="a02653.html#NLMISC_1_1CIFilea15">serialBuffer</a>((<a class="code" href="a04558.html#a7">uint8</a> *)&v, 4); +00140 <a class="code" href="a05039.html#a1">NLMISC_BSWAP32</a>(v); +00141 b=<a class="code" href="a04223.html#a576">v</a>; +00142 } +00143 <span class="keywordflow">else</span> +00144 { +00145 <a class="code" href="a04223.html#a576">v</a>=b; +00146 <a class="code" href="a05039.html#a1">NLMISC_BSWAP32</a>(v); +00147 <a class="code" href="a02653.html#NLMISC_1_1CIFilea15">serialBuffer</a>((<a class="code" href="a04558.html#a7">uint8</a> *)&v, 4); +00148 } +00149 <span class="preprocessor">#endif // NL_LITTLE_ENDIAN</span> +00150 <span class="preprocessor"></span>} +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1IStreamz2028_10" doxytag="NLMISC::CIFile::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::IStream::serial </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a8">sint16</a> & </td> + <td class="mdname1" valign="top" nowrap> <em>b</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline, virtual, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Reimplemented in <a class="el" href="a02973.html#NLAIAGENT_1_1CMsgIStreama19">NLAIAGENT::CMsgIStream</a>, <a class="el" href="a02975.html#NLAIAGENT_1_1CMsgOStreama17">NLAIAGENT::CMsgOStream</a>, <a class="el" href="a02269.html#NLMISC_1_1CBitMemStreamz1916_11">NLMISC::CBitMemStream</a>, <a class="el" href="a02271.html#NLNET_1_1CMessagez1972_10">NLMISC::CMemStream</a>, <a class="el" href="a03032.html#NLMISC_1_1COXmld11">NLMISC::COXml</a>, and <a class="el" href="a03452.html#NLMISC_1_1CStringStreamz2043_10">NLMISC::CStringStream</a>. +<p> +Definition at line <a class="el" href="a06463.html#l00109">109</a> of file <a class="el" href="a06463.html">stream_inline.h</a>. +<p> +References <a class="el" href="a06463.html#l00064">NLMISC::IStream::isReading()</a>, <a class="el" href="a06462.html#l00056">NLMISC_BSWAP16</a>, <a class="el" href="a02270.html#NLMISC_1_1IStreamz2041_1">NLMISC::IStream::serialBuffer()</a>, <a class="el" href="a05981.html#l00097">sint16</a>, <a class="el" href="a05981.html#l00098">uint16</a>, <a class="el" href="a05981.html#l00096">uint8</a>, and <a class="el" href="a05646.html#l00237">v</a>. +<p> +<div class="fragment"><pre>00110 { +00111 <span class="preprocessor">#ifdef NL_LITTLE_ENDIAN</span> +00112 <span class="preprocessor"></span> <a class="code" href="a02653.html#NLMISC_1_1CIFilea15">serialBuffer</a>((<a class="code" href="a04558.html#a7">uint8</a> *)&b, 2); +00113 <span class="preprocessor">#else // NL_LITTLE_ENDIAN</span> +00114 <span class="preprocessor"></span> <a class="code" href="a04558.html#a9">uint16</a> <a class="code" href="a04223.html#a576">v</a>; +00115 <span class="keywordflow">if</span>(<a class="code" href="a02270.html#NLMISC_1_1IStreama0">isReading</a>()) +00116 { +00117 <a class="code" href="a02653.html#NLMISC_1_1CIFilea15">serialBuffer</a>((<a class="code" href="a04558.html#a7">uint8</a> *)&v, 2); +00118 <a class="code" href="a05039.html#a0">NLMISC_BSWAP16</a>(v); +00119 b=<a class="code" href="a04223.html#a576">v</a>; +00120 } +00121 <span class="keywordflow">else</span> +00122 { +00123 <a class="code" href="a04223.html#a576">v</a>=b; +00124 <a class="code" href="a05039.html#a0">NLMISC_BSWAP16</a>(v); +00125 <a class="code" href="a02653.html#NLMISC_1_1CIFilea15">serialBuffer</a>((<a class="code" href="a04558.html#a7">uint8</a> *)&v, 2); +00126 } +00127 <span class="preprocessor">#endif // NL_LITTLE_ENDIAN</span> +00128 <span class="preprocessor"></span>} +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1IStreamz2028_11" doxytag="NLMISC::CIFile::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::IStream::serial </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a9">uint16</a> & </td> + <td class="mdname1" valign="top" nowrap> <em>b</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline, virtual, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Reimplemented in <a class="el" href="a02973.html#NLAIAGENT_1_1CMsgIStreama20">NLAIAGENT::CMsgIStream</a>, <a class="el" href="a02975.html#NLAIAGENT_1_1CMsgOStreama18">NLAIAGENT::CMsgOStream</a>, <a class="el" href="a02269.html#NLMISC_1_1CBitMemStreamz1916_12">NLMISC::CBitMemStream</a>, <a class="el" href="a02271.html#NLNET_1_1CMessagez1972_11">NLMISC::CMemStream</a>, <a class="el" href="a03032.html#NLMISC_1_1COXmld12">NLMISC::COXml</a>, and <a class="el" href="a03452.html#NLMISC_1_1CStringStreamz2043_11">NLMISC::CStringStream</a>. +<p> +Definition at line <a class="el" href="a06463.html#l00087">87</a> of file <a class="el" href="a06463.html">stream_inline.h</a>. +<p> +References <a class="el" href="a06463.html#l00064">NLMISC::IStream::isReading()</a>, <a class="el" href="a06462.html#l00056">NLMISC_BSWAP16</a>, <a class="el" href="a02270.html#NLMISC_1_1IStreamz2041_1">NLMISC::IStream::serialBuffer()</a>, <a class="el" href="a05981.html#l00098">uint16</a>, <a class="el" href="a05981.html#l00096">uint8</a>, and <a class="el" href="a05646.html#l00237">v</a>. +<p> +<div class="fragment"><pre>00088 { +00089 <span class="preprocessor">#ifdef NL_LITTLE_ENDIAN</span> +00090 <span class="preprocessor"></span> <a class="code" href="a02653.html#NLMISC_1_1CIFilea15">serialBuffer</a>((<a class="code" href="a04558.html#a7">uint8</a> *)&b, 2); +00091 <span class="preprocessor">#else // NL_LITTLE_ENDIAN</span> +00092 <span class="preprocessor"></span> <a class="code" href="a04558.html#a9">uint16</a> <a class="code" href="a04223.html#a576">v</a>; +00093 <span class="keywordflow">if</span>(<a class="code" href="a02270.html#NLMISC_1_1IStreama0">isReading</a>()) +00094 { +00095 <a class="code" href="a02653.html#NLMISC_1_1CIFilea15">serialBuffer</a>((<a class="code" href="a04558.html#a7">uint8</a> *)&v, 2); +00096 <a class="code" href="a05039.html#a0">NLMISC_BSWAP16</a>(v); +00097 b=<a class="code" href="a04223.html#a576">v</a>; +00098 } +00099 <span class="keywordflow">else</span> +00100 { +00101 <a class="code" href="a04223.html#a576">v</a>=b; +00102 <a class="code" href="a05039.html#a0">NLMISC_BSWAP16</a>(v); +00103 <a class="code" href="a02653.html#NLMISC_1_1CIFilea15">serialBuffer</a>((<a class="code" href="a04558.html#a7">uint8</a> *)&v, 2); +00104 } +00105 <span class="preprocessor">#endif // NL_LITTLE_ENDIAN</span> +00106 <span class="preprocessor"></span>} +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1IStreamz2028_12" doxytag="NLMISC::CIFile::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::IStream::serial </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a6">sint8</a> & </td> + <td class="mdname1" valign="top" nowrap> <em>b</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline, virtual, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Reimplemented in <a class="el" href="a02973.html#NLAIAGENT_1_1CMsgIStreama21">NLAIAGENT::CMsgIStream</a>, <a class="el" href="a02975.html#NLAIAGENT_1_1CMsgOStreama19">NLAIAGENT::CMsgOStream</a>, <a class="el" href="a02269.html#NLMISC_1_1CBitMemStreamz1916_13">NLMISC::CBitMemStream</a>, <a class="el" href="a02271.html#NLNET_1_1CMessagez1972_12">NLMISC::CMemStream</a>, <a class="el" href="a03032.html#NLMISC_1_1COXmld13">NLMISC::COXml</a>, and <a class="el" href="a03452.html#NLMISC_1_1CStringStreamz2043_12">NLMISC::CStringStream</a>. +<p> +Definition at line <a class="el" href="a06463.html#l00081">81</a> of file <a class="el" href="a06463.html">stream_inline.h</a>. +<p> +References <a class="el" href="a02270.html#NLMISC_1_1IStreamz2041_1">NLMISC::IStream::serialBuffer()</a>, <a class="el" href="a05981.html#l00095">sint8</a>, and <a class="el" href="a05981.html#l00096">uint8</a>. +<p> +<div class="fragment"><pre>00082 { +00083 <a class="code" href="a02653.html#NLMISC_1_1CIFilea15">serialBuffer</a>((<a class="code" href="a04558.html#a7">uint8</a> *)&b, 1); +00084 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1IStreamz2028_13" doxytag="NLMISC::CIFile::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::IStream::serial </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a7">uint8</a> & </td> + <td class="mdname1" valign="top" nowrap> <em>b</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline, virtual, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Reimplemented in <a class="el" href="a02973.html#NLAIAGENT_1_1CMsgIStreama22">NLAIAGENT::CMsgIStream</a>, <a class="el" href="a02975.html#NLAIAGENT_1_1CMsgOStreama20">NLAIAGENT::CMsgOStream</a>, <a class="el" href="a02269.html#NLMISC_1_1CBitMemStreamz1916_14">NLMISC::CBitMemStream</a>, <a class="el" href="a02271.html#NLNET_1_1CMessagez1972_13">NLMISC::CMemStream</a>, <a class="el" href="a03032.html#NLMISC_1_1COXmld14">NLMISC::COXml</a>, and <a class="el" href="a03452.html#NLMISC_1_1CStringStreamz2043_13">NLMISC::CStringStream</a>. +<p> +Definition at line <a class="el" href="a06463.html#l00075">75</a> of file <a class="el" href="a06463.html">stream_inline.h</a>. +<p> +References <a class="el" href="a02270.html#NLMISC_1_1IStreamz2041_1">NLMISC::IStream::serialBuffer()</a>, and <a class="el" href="a05981.html#l00096">uint8</a>. +<p> +<div class="fragment"><pre>00076 { +00077 <a class="code" href="a02653.html#NLMISC_1_1CIFilea15">serialBuffer</a>((<a class="code" href="a04558.html#a7">uint8</a> *)&b, 1); +00078 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1IStreama5" doxytag="NLMISC::CIFile::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" colspan="4"> +template<class T> </td> + </tr> + <tr> + <td class="md" nowrap valign="top"> void NLMISC::IStream::serial </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">T & </td> + <td class="mdname1" valign="top" nowrap> <em>obj</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Template Object serialisation. <dl compact><dt><b>Parameters:</b></dt><dd> + <table border="0" cellspacing="2" cellpadding="0"> + <tr><td valign=top><em>obj</em> </td><td>any object providing a "void serial(IStream&)" method. The object doesn't have to derive from <a class="el" href="a02867.html">IStreamable</a>.</td></tr> + </table> +</dl> +the VC++ error "error C2228: left of '.serial' must have class/struct/union type" means you don't provide a <a class="el" href="a02270.html#NLMISC_1_1IStreama5">serial()</a> method to your object. Or you may have use serial with a int / uint / sint type. REMEMBER YOU CANNOT do this, since those type have unspecified length. +<p> +Reimplemented in <a class="el" href="a02269.html#NLMISC_1_1CBitMemStreama36">NLMISC::CBitMemStream</a>, <a class="el" href="a02271.html#NLNET_1_1CMessagea41">NLMISC::CMemStream</a>, and <a class="el" href="a03452.html#NLMISC_1_1CStringStreama28">NLMISC::CStringStream</a>. +<p> +Definition at line <a class="el" href="a06462.html#l00232">232</a> of file <a class="el" href="a06462.html">stream.h</a>. +<p> +Referenced by <a class="el" href="a05465.html#l00560">NLSOUND::CAudioMixerUser::buildSampleBankList()</a>, <a class="el" href="a05673.html#l00178">NLMISC::CEntityId::CEntityId()</a>, <a class="el" href="a05805.html#l00332">NLAIAGENT::CIdent::CIdent()</a>, <a class="el" href="a05475.html#l00521">NLAIAGENT::IConnectIA::connectLoadStream()</a>, <a class="el" href="a06047.html#l00043">H_AUTO_DECL()</a>, <a class="el" href="a06005.html#l00055">NL3D::H_AUTO_DECL()</a>, <a class="el" href="a06671.html#l00332">NLAISCRIPT::CVarPStackParam::load()</a>, <a class="el" href="a06671.html#l00111">NLAISCRIPT::CVarPStack::load()</a>, <a class="el" href="a06669.html#l00084">NLAILOGIC::CVarSet::load()</a>, <a class="el" href="a06660.html#l00190">NLAILOGIC::CVar::load()</a>, <a class="el" href="a06658.html#l00399">NLAILOGIC::CValueSet::load()</a>, <a class="el" href="a06378.html#l00427">NL3D::CShapeBank::load()</a>, <a class="el" href="a06356.html#l00155">NLAISCRIPT::CScriptDebugSourceMemory::load()</a>, <a class="el" href="a06356.html#l00099">NLAISCRIPT::CScriptDebugSourceFile::load()</a>, <a class="el" href="a06346.html#l00228">NLSOUND::CSampleBank::load()</a>, <a class="el" href="a06328.html#l00221">NLAIC::CBinaryType::load()</a>, <a class="el" href="a06131.html#l00122">NLAILOGIC::IBaseOperator::load()</a>, <a class="el" href="a06127.html#l00359">NLAISCRIPT::CLdbRefOpCode::load()</a>, <a class="el" href="a06127.html#l00304">NLAISCRIPT::CLdbHeapMemberiOpCode::load()</a>, <a class="el" href="a06127.html#l00132">NLAISCRIPT::CLdbMemberOpCode::load()</a>, <a class="el" href="a06127.html#l00072">NLAISCRIPT::CLdbOpCode::load()</a>, <a class="el" href="a06125.html#l00437">NLAISCRIPT::CCallMethodi::load()</a>, <a class="el" href="a06125.html#l00315">NLAISCRIPT::CCallStackMethodi::load()</a>, <a class="el" href="a06125.html#l00242">NLAISCRIPT::CCallHeapMethodi::load()</a>, <a class="el" href="a06125.html#l00168">NLAISCRIPT::CCallMethod::load()</a>, <a class="el" href="a06123.html#l00537">NLAISCRIPT::CLibHeapMemberMethod::load()</a>, <a class="el" href="a06123.html#l00439">NLAISCRIPT::CLibStackMemberMethod::load()</a>, <a class="el" href="a06123.html#l00370">NLAISCRIPT::CLibCallMethodi::load()</a>, <a class="el" href="a06123.html#l00303">NLAISCRIPT::CLibCallInheritedMethod::load()</a>, <a class="el" href="a06123.html#l00241">NLAISCRIPT::CLibCallMethod::load()</a>, <a class="el" href="a06123.html#l00184">NLAISCRIPT::CLibMemberMethodi::load()</a>, <a class="el" href="a06123.html#l00125">NLAISCRIPT::CLibMemberInheritedMethod::load()</a>, <a class="el" href="a06123.html#l00072">NLAISCRIPT::CLibMemberMethod::load()</a>, <a class="el" href="a06121.html#l01742">NLAISCRIPT::CMarkMsg::load()</a>, <a class="el" href="a06121.html#l01229">NLAISCRIPT::CAffMemberOpCode::load()</a>, <a class="el" href="a06121.html#l01099">NLAISCRIPT::CAffHeapMemberiOpCode::load()</a>, <a class="el" href="a06121.html#l01001">NLAISCRIPT::CAffOpCode::load()</a>, <a class="el" href="a06121.html#l00918">NLAISCRIPT::CJmpOpCode::load()</a>, <a class="el" href="a06121.html#l00854">NLAISCRIPT::CJFalseOpCode::load()</a>, <a class="el" href="a06120.html#l00758">NLAISCRIPT::CAddParamNameDebug::load()</a>, <a class="el" href="a06120.html#l00658">NLAISCRIPT::CFindRunMsg::load()</a>, <a class="el" href="a06120.html#l00502">NLAISCRIPT::CAffOpCodeDebug::load()</a>, <a class="el" href="a06112.html#l00217">NLAISCRIPT::CLoadHeapObject::load()</a>, <a class="el" href="a06077.html#l00075">NLAIAGENT::CMessageGroup::load()</a>, <a class="el" href="a06065.html#l00236">NLAIAGENT::IMessageBase::load()</a>, <a class="el" href="a05964.html#l00194">NLAIAGENT::CLocalMailBox::load()</a>, <a class="el" href="a05911.html#l00061">NLAIAGENT::IListBasicManager::load()</a>, <a class="el" href="a05847.html#l00783">NLAISCRIPT::CAgentClass::load()</a>, <a class="el" href="a05845.html#l00038">NLAISCRIPT::CComponent::load()</a>, <a class="el" href="a05843.html#l00404">NLAISCRIPT::CMethodeName::load()</a>, <a class="el" href="a05843.html#l00218">NLAISCRIPT::CParam::load()</a>, <a class="el" href="a05805.html#l00376">NLAIAGENT::CIdent::load()</a>, <a class="el" href="a05803.html#l00267">NLAIAGENT::CIndexVariant< T, indexMax, maxT >::load()</a>, <a class="el" href="a05770.html#l01055">NLAIAGENT::CVectorGroupType::load()</a>, <a class="el" href="a05770.html#l00643">NLAIAGENT::CGroupType::load()</a>, <a class="el" href="a05753.html#l00201">NLAIFUZZY::CFuzzyVar::load()</a>, <a class="el" href="a05751.html#l00052">NLAIFUZZY::FuzzyType::load()</a>, <a class="el" href="a05749.html#l00523">NLAIFUZZY::CTriangleFuzzySet::load()</a>, <a class="el" href="a05745.html#l00145">NLAIFUZZY::CFuzzyRule::load()</a>, <a class="el" href="a05697.html#l00168">NLAILOGIC::CFactBase::load()</a>, <a class="el" href="a05673.html#l00443">NLMISC::CEntityId::load()</a>, <a class="el" href="a05573.html#l00114">NLAISCRIPT::CCodeBrancheRunDebug::load()</a>, <a class="el" href="a05571.html#l00061">NLAISCRIPT::CCodeBrancheRun::load()</a>, <a class="el" href="a05545.html#l00098">NLAICHARACTER::CCharacterChild::load()</a>, <a class="el" href="a05499.html#l00082">NLAILOGIC::CBoolOperator::load()</a>, <a class="el" href="a05495.html#l00093">NLAILOGIC::CBoolAssert::load()</a>, <a class="el" href="a05486.html#l00109">NLMISC::CBitmap::load()</a>, <a class="el" href="a05477.html#l00153">NLAIAGENT::IAgentComposite::load()</a>, <a class="el" href="a05471.html#l00618">NLSOUND::CBackgroundSoundManager::load()</a>, <a class="el" href="a05415.html#l00188">NLAIAGENT::CStringVarName::load()</a>, <a class="el" href="a05412.html#l00605">NLAIAGENT::CAgentScript::load()</a>, <a class="el" href="a05407.html#l00087">NLAIAGENT::CStringType::load()</a>, <a class="el" href="a05405.html#l00157">NLAIAGENT::INombre< sint32 >::load()</a>, <a class="el" href="a05398.html#l00104">NLAIAGENT::IAgentInput::load()</a>, <a class="el" href="a05395.html#l00083">NLAIAGENT::IVector::load()</a>, <a class="el" href="a05389.html#l00438">NLAIAGENT::CActorScript::load()</a>, <a class="el" href="a05414.html#l00095">NLAIAGENT::CIndexedVarName::loadClass()</a>, <a class="el" href="a06005.html#l01951">NL3D::CMeshMRMGeom::loadFirstLod()</a>, <a class="el" href="a05926.html#l00145">loadForm()</a>, <a class="el" href="a05657.html#l01393">NL3D::CDriverUser::loadHLSBank()</a>, <a class="el" href="a06589.html#l00982">NLAISCRIPT::IOpType::loadIOpType()</a>, <a class="el" href="a06005.html#l02001">NL3D::CMeshMRMGeom::loadNextLod()</a>, <a class="el" href="a05486.html#l02582">NLMISC::CBitmap::loadSize()</a>, <a class="el" href="a06536.html#l01570">NL3D::CTileSet::loadTileVegetableDesc()</a>, <a class="el" href="a05486.html#l00244">NLMISC::CBitmap::readDDS()</a>, <a class="el" href="a05486.html#l01800">NLMISC::CBitmap::readTGA()</a>, <a class="el" href="a05475.html#l00433">NLAIAGENT::IRefrence::refLoadStream()</a>, <a class="el" href="a05457.html#l00231">NL3D::CAsyncFileManager3D::CMeshLoad::run()</a>, <a class="el" href="a06671.html#l00324">NLAISCRIPT::CVarPStackParam::save()</a>, <a class="el" href="a06671.html#l00105">NLAISCRIPT::CVarPStack::save()</a>, <a class="el" href="a06669.html#l00071">NLAILOGIC::CVarSet::save()</a>, <a class="el" href="a06660.html#l00172">NLAILOGIC::CVar::save()</a>, <a class="el" href="a06658.html#l00369">NLAILOGIC::CValueSet::save()</a>, <a class="el" href="a06356.html#l00148">NLAISCRIPT::CScriptDebugSourceMemory::save()</a>, <a class="el" href="a06356.html#l00093">NLAISCRIPT::CScriptDebugSourceFile::save()</a>, <a class="el" href="a06328.html#l00210">NLAIC::CBinaryType::save()</a>, <a class="el" href="a06131.html#l00102">NLAILOGIC::IBaseOperator::save()</a>, <a class="el" href="a06127.html#l00353">NLAISCRIPT::CLdbRefOpCode::save()</a>, <a class="el" href="a06127.html#l00296">NLAISCRIPT::CLdbHeapMemberiOpCode::save()</a>, <a class="el" href="a06127.html#l00126">NLAISCRIPT::CLdbMemberOpCode::save()</a>, <a class="el" href="a06127.html#l00066">NLAISCRIPT::CLdbOpCode::save()</a>, <a class="el" href="a06125.html#l00427">NLAISCRIPT::CCallMethodi::save()</a>, <a class="el" href="a06125.html#l00305">NLAISCRIPT::CCallStackMethodi::save()</a>, <a class="el" href="a06125.html#l00230">NLAISCRIPT::CCallHeapMethodi::save()</a>, <a class="el" href="a06125.html#l00160">NLAISCRIPT::CCallMethod::save()</a>, <a class="el" href="a06123.html#l00530">NLAISCRIPT::CLibHeapMemberMethod::save()</a>, <a class="el" href="a06123.html#l00429">NLAISCRIPT::CLibStackMemberMethod::save()</a>, <a class="el" href="a06123.html#l00358">NLAISCRIPT::CLibCallMethodi::save()</a>, <a class="el" href="a06123.html#l00293">NLAISCRIPT::CLibCallInheritedMethod::save()</a>, <a class="el" href="a06123.html#l00233">NLAISCRIPT::CLibCallMethod::save()</a>, <a class="el" href="a06123.html#l00174">NLAISCRIPT::CLibMemberMethodi::save()</a>, <a class="el" href="a06123.html#l00117">NLAISCRIPT::CLibMemberInheritedMethod::save()</a>, <a class="el" href="a06123.html#l00066">NLAISCRIPT::CLibMemberMethod::save()</a>, <a class="el" href="a06121.html#l01734">NLAISCRIPT::CMarkMsg::save()</a>, <a class="el" href="a06121.html#l01223">NLAISCRIPT::CAffMemberOpCode::save()</a>, <a class="el" href="a06121.html#l01091">NLAISCRIPT::CAffHeapMemberiOpCode::save()</a>, <a class="el" href="a06121.html#l00995">NLAISCRIPT::CAffOpCode::save()</a>, <a class="el" href="a06121.html#l00912">NLAISCRIPT::CJmpOpCode::save()</a>, <a class="el" href="a06121.html#l00848">NLAISCRIPT::CJFalseOpCode::save()</a>, <a class="el" href="a06121.html#l00096">NLAISCRIPT::CLdbNewOpCode::save()</a>, <a class="el" href="a06120.html#l00752">NLAISCRIPT::CAddParamNameDebug::save()</a>, <a class="el" href="a06120.html#l00647">NLAISCRIPT::CFindRunMsg::save()</a>, <a class="el" href="a06120.html#l00494">NLAISCRIPT::CAffOpCodeDebug::save()</a>, <a class="el" href="a06112.html#l00210">NLAISCRIPT::CLoadHeapObject::save()</a>, <a class="el" href="a06077.html#l00069">NLAIAGENT::CMessageGroup::save()</a>, <a class="el" href="a06065.html#l00190">NLAIAGENT::IMessageBase::save()</a>, <a class="el" href="a05964.html#l00170">NLAIAGENT::CLocalMailBox::save()</a>, <a class="el" href="a05911.html#l00055">NLAIAGENT::IListBasicManager::save()</a>, <a class="el" href="a05847.html#l00760">NLAISCRIPT::CAgentClass::save()</a>, <a class="el" href="a05845.html#l00030">NLAISCRIPT::CComponent::save()</a>, <a class="el" href="a05843.html#l00395">NLAISCRIPT::CMethodeName::save()</a>, <a class="el" href="a05843.html#l00235">NLAISCRIPT::CParam::save()</a>, <a class="el" href="a05805.html#l00369">NLAIAGENT::CIdent::save()</a>, <a class="el" href="a05803.html#l00254">NLAIAGENT::CIndexVariant< T, indexMax, maxT >::save()</a>, <a class="el" href="a05770.html#l01030">NLAIAGENT::CVectorGroupType::save()</a>, <a class="el" href="a05770.html#l00618">NLAIAGENT::CGroupType::save()</a>, <a class="el" href="a05753.html#l00187">NLAIFUZZY::CFuzzyVar::save()</a>, <a class="el" href="a05751.html#l00043">NLAIFUZZY::FuzzyType::save()</a>, <a class="el" href="a05749.html#l00753">NLAIFUZZY::CTrapezeFuzzySet::save()</a>, <a class="el" href="a05749.html#l00631">NLAIFUZZY::CLeftFuzzySet::save()</a>, <a class="el" href="a05749.html#l00515">NLAIFUZZY::CTriangleFuzzySet::save()</a>, <a class="el" href="a05749.html#l00239">NLAIFUZZY::CRightFuzzySet::save()</a>, <a class="el" href="a05749.html#l00133">NLAIFUZZY::CFuzzyInterval::save()</a>, <a class="el" href="a05697.html#l00154">NLAILOGIC::CFactBase::save()</a>, <a class="el" href="a05673.html#l00426">NLMISC::CEntityId::save()</a>, <a class="el" href="a05573.html#l00101">NLAISCRIPT::CCodeBrancheRunDebug::save()</a>, <a class="el" href="a05571.html#l00042">NLAISCRIPT::CCodeBrancheRun::save()</a>, <a class="el" href="a05545.html#l00189">NLAICHARACTER::CCharacterNoeud::save()</a>, <a class="el" href="a05545.html#l00092">NLAICHARACTER::CCharacterChild::save()</a>, <a class="el" href="a05501.html#l00067">NLAILOGIC::CBoolType::save()</a>, <a class="el" href="a05499.html#l00060">NLAILOGIC::CBoolOperator::save()</a>, <a class="el" href="a05495.html#l00087">NLAILOGIC::CBoolAssert::save()</a>, <a class="el" href="a05477.html#l00138">NLAIAGENT::IAgentComposite::save()</a>, <a class="el" href="a05475.html#l00414">NLAIAGENT::IRefrence::save()</a>, <a class="el" href="a05475.html#l00036">NLAIAGENT::IConnectIA::save()</a>, <a class="el" href="a05415.html#l00180">NLAIAGENT::CStringVarName::save()</a>, <a class="el" href="a05414.html#l00268">NLAIAGENT::CIndexedVarName::save()</a>, <a class="el" href="a05412.html#l00593">NLAIAGENT::CAgentScript::save()</a>, <a class="el" href="a05407.html#l00081">NLAIAGENT::CStringType::save()</a>, <a class="el" href="a05405.html#l00150">NLAIAGENT::INombre< sint32 >::save()</a>, <a class="el" href="a05401.html#l00063">NLAIAGENT::CLocalAgentMail::save()</a>, <a class="el" href="a05398.html#l00097">NLAIAGENT::IAgentInput::save()</a>, <a class="el" href="a05395.html#l00078">NLAIAGENT::IVector::save()</a>, <a class="el" href="a05389.html#l00431">NLAIAGENT::CActorScript::save()</a>, <a class="el" href="a05387.html#l00167">NLAIAGENT::CActor::save()</a>, <a class="el" href="a05414.html#l00074">NLAIAGENT::CIndexedVarName::saveClass()</a>, <a class="el" href="a06336.html#l00185">NLPACS::CRetrieverBank::saveRetrievers()</a>, <a class="el" href="a06758.html#l00432">NL3D::CZone::serial()</a>, <a class="el" href="a06758.html#l00410">NL3D::CZone::CPatchConnect::serial()</a>, <a class="el" href="a06710.html#l01060">NL3D::CPaletteSkin::serial()</a>, <a class="el" href="a06702.html#l00186">NL3D::CVegetableShape::serial()</a>, <a class="el" href="a06686.html#l00375">NL3D::CVegetable::serial()</a>, <a class="el" href="a06685.html#l00183">NLMISC::CVectorD::serial()</a>, <a class="el" href="a06682.html#l00198">NLMISC::CVector::serial()</a>, <a class="el" href="a06679.html#l00171">NLPACS::CVector2s::serial()</a>, <a class="el" href="a06677.html#l00127">NLMISC::CVector2f::serial()</a>, <a class="el" href="a06675.html#l00125">NLMISC::CVector2d::serial()</a>, <a class="el" href="a06655.html#l00140">NLMISC::CUVW::serial()</a>, <a class="el" href="a06655.html#l00082">NLMISC::CUV::serial()</a>, <a class="el" href="a06564.html#l00062">NL3D::CTrackSampledVector::serial()</a>, <a class="el" href="a06563.html#l00100">NL3D::CTrackSampledQuat::CQuatPack::serial()</a>, <a class="el" href="a06562.html#l00125">NL3D::CTrackSampledQuat::serial()</a>, <a class="el" href="a06560.html#l00080">NL3D::CTrackSampledCommon::CTimeBlock::serial()</a>, <a class="el" href="a06550.html#l00099">NL3D::CTileVegetableDesc::serial()</a>, <a class="el" href="a06544.html#l00067">NL3D::CTileLightInfluence::serial()</a>, <a class="el" href="a06536.html#l01912">NL3D::CTileNoise::serial()</a>, <a class="el" href="a06478.html#l00080">NLPACS::IQuadNode::serial()</a>, <a class="el" href="a06477.html#l00329">NLPACS::CSurfaceQuadTree::serial()</a>, <a class="el" href="a06477.html#l00246">NLPACS::CQuadBranch::serial()</a>, <a class="el" href="a06476.html#l00076">NL3D::CSurfaceLightGrid::CCellCorner::serial()</a>, <a class="el" href="a06475.html#l00051">NL3D::CSurfaceLightGrid::serial()</a>, <a class="el" href="a06462.html#l00301">NLMISC::IStream::serial()</a>, <a class="el" href="a06399.html#l00083">NL3D::CSkeletonWeight::CNode::serial()</a>, <a class="el" href="a06367.html#l00098">CHashKey::serial()</a>, <a class="el" href="a06350.html#l00379">NL3D::CInstanceGroup::serial()</a>, <a class="el" href="a06350.html#l00065">NL3D::CInstanceGroup::CInstance::serial()</a>, <a class="el" href="a06338.html#l00071">NLPACS::CRetrieverInstance::CLink::serial()</a>, <a class="el" href="a06337.html#l00736">NLPACS::CRetrieverInstance::serial()</a>, <a class="el" href="a06336.html#l00114">NLPACS::CRetrieverBank::serial()</a>, <a class="el" href="a06334.html#l00090">NLPACS::CRetrievableSurface::CSurfaceLink::serial()</a>, <a class="el" href="a06333.html#l00097">NLPACS::CRetrievableSurface::TLoop::serial()</a>, <a class="el" href="a06333.html#l00051">NLPACS::CRetrievableSurface::serial()</a>, <a class="el" href="a06308.html#l00168">NLMISC::CQuatT< float >::serial()</a>, <a class="el" href="a06308.html#l00059">NLMISC::CAngleAxis::serial()</a>, <a class="el" href="a06213.html#l00438">NL3D::CPSAttrib< T >::serial()</a>, <a class="el" href="a06197.html#l00219">NL3D::CPrimitiveBlock::serial()</a>, <a class="el" href="a06193.html#l00216">NL3D::CPortal::serial()</a>, <a class="el" href="a06187.html#l00119">NL3D::CPointLightNamedArray::CPointLightGroupV0::serial()</a>, <a class="el" href="a06187.html#l00100">NL3D::CPointLightNamedArray::CPointLightGroup::serial()</a>, <a class="el" href="a06184.html#l00073">NL3D::CPointLightNamed::serial()</a>, <a class="el" href="a06179.html#l00230">NL3D::CPointLight::serial()</a>, <a class="el" href="a06171.html#l00155">NLMISC::CPlane::serial()</a>, <a class="el" href="a06156.html#l00127">NL3D::CVector3s::serial()</a>, <a class="el" href="a06155.html#l01576">NL3D::CPatch::serial()</a>, <a class="el" href="a06116.html#l00260">NLMISC::CObjectVector< sint8, false >::serial()</a>, <a class="el" href="a06105.html#l00337">NLMISC::CNoiseColorGradient::serial()</a>, <a class="el" href="a06105.html#l00294">NLMISC::CNoiseValue::serial()</a>, <a class="el" href="a06062.html#l00188">NL3D::CMRMWedgeGeom::serial()</a>, <a class="el" href="a06012.html#l00338">NL3D::CMeshMRMSkinnedGeom::CVertexBlock::serial()</a>, <a class="el" href="a06012.html#l00314">NL3D::CMeshMRMSkinnedGeom::CRdrPass::serial()</a>, <a class="el" href="a06012.html#l00262">NL3D::CMeshMRMSkinnedGeom::CShadowVertex::serial()</a>, <a class="el" href="a06011.html#l01937">NL3D::CMeshMRMSkinnedGeom::CPackedVertexBuffer::CPackedVertex::serial()</a>, <a class="el" href="a06011.html#l01926">NL3D::CMeshMRMSkinnedGeom::CPackedVertexBuffer::serial()</a>, <a class="el" href="a06011.html#l00991">NL3D::CMeshMRMSkinnedGeom::serial()</a>, <a class="el" href="a06006.html#l00463">NL3D::CMeshMRMGeom::CLodInfo::serial()</a>, <a class="el" href="a06006.html#l00368">NL3D::CMeshMRMGeom::CVertexBlock::serial()</a>, <a class="el" href="a06006.html#l00350">NL3D::CMeshMRMGeom::CRdrPass::serial()</a>, <a class="el" href="a06006.html#l00296">NL3D::CMeshMRMGeom::CShadowVertex::serial()</a>, <a class="el" href="a05992.html#l00103">NL3D::CMeshBase::CLightMapInfoList::serial()</a>, <a class="el" href="a05992.html#l00092">NL3D::CMeshBase::CLightMapInfoList::CMatStage::serial()</a>, <a class="el" href="a05992.html#l00063">NL3D::CMeshBase::CMatStageV7::serial()</a>, <a class="el" href="a05990.html#l00518">NL3D::CMeshGeom::CMatrixBlock::serial()</a>, <a class="el" href="a05990.html#l00497">NL3D::CMeshGeom::CRdrPass::serial()</a>, <a class="el" href="a05972.html#l01500">NLMISC::CMatrix::serial()</a>, <a class="el" href="a05969.html#l00542">NL3D::CMaterial::CTexEnv::serial()</a>, <a class="el" href="a05968.html#l00438">NL3D::CMaterial::CLightMap::serial()</a>, <a class="el" href="a05968.html#l00139">NL3D::CMaterial::serial()</a>, <a class="el" href="a05942.html#l00065">NL3D::CLodCharacterTexture::CTUVQ::serial()</a>, <a class="el" href="a05941.html#l00043">NL3D::CLodCharacterTexture::serial()</a>, <a class="el" href="a05938.html#l00256">NL3D::CLodCharacterShape::CVertexInf::serial()</a>, <a class="el" href="a05938.html#l00153">NL3D::CLodCharacterShape::CVector3s::serial()</a>, <a class="el" href="a05938.html#l00067">NL3D::CLodCharacterShapeBuild::CPixelInfo::serial()</a>, <a class="el" href="a05937.html#l00505">NL3D::CLodCharacterShape::serial()</a>, <a class="el" href="a05937.html#l00495">NL3D::CLodCharacterShape::CBoneInfluence::serial()</a>, <a class="el" href="a05937.html#l00481">NL3D::CLodCharacterShape::CAnim::serial()</a>, <a class="el" href="a05937.html#l00273">NL3D::CLodCharacterShapeBuild::serial()</a>, <a class="el" href="a05930.html#l00179">NLPACS::CLocalRetriever::CInteriorFace::serial()</a>, <a class="el" href="a05930.html#l00106">NLPACS::CLocalRetriever::CTip::serial()</a>, <a class="el" href="a05930.html#l00093">NLPACS::CLocalRetriever::CTip::CChainTip::serial()</a>, <a class="el" href="a05929.html#l00895">NLPACS::CLocalRetriever::serial()</a>, <a class="el" href="a05807.html#l00056">NL3D::CIGSurfaceLight::CRetrieverLightGrid::serial()</a>, <a class="el" href="a05806.html#l00098">NL3D::CIGSurfaceLight::serial()</a>, <a class="el" href="a05792.html#l00154">NL3D::CHLSTextureBank::CTextureInstance::serial()</a>, <a class="el" href="a05790.html#l00313">NL3D::CHLSColorTexture::serial()</a>, <a class="el" href="a05790.html#l00057">NL3D::CHLSColorTexture::CMask::serial()</a>, <a class="el" href="a05790.html#l00049">NL3D::CHLSColorDelta::serial()</a>, <a class="el" href="a05761.html#l00136">NLPACS::CGlobalRetriever::serial()</a>, <a class="el" href="a05694.html#l00170">NLPACS::CFaceGrid::serial()</a>, <a class="el" href="a05693.html#l00086">NLPACS::CExteriorMesh::CLink::serial()</a>, <a class="el" href="a05693.html#l00075">NLPACS::CExteriorMesh::COrderedEdges::serial()</a>, <a class="el" href="a05693.html#l00067">NLPACS::CExteriorMesh::CEdge::serial()</a>, <a class="el" href="a05692.html#l00098">NLPACS::CExteriorMesh::serial()</a>, <a class="el" href="a05666.html#l00571">NLPACS::CEdgeQuad::serial()</a>, <a class="el" href="a05585.html#l00164">NLMISC::CSerialCommand::serial()</a>, <a class="el" href="a05583.html#l00149">NLPACS::CExteriorEdgeEntry::serial()</a>, <a class="el" href="a05579.html#l00087">NLPACS::CCollisionFace::serial()</a>, <a class="el" href="a05578.html#l00088">NLPACS::CSurfaceIdent::serial()</a>, <a class="el" href="a05563.html#l00250">NL3D::CCluster::serial()</a>, <a class="el" href="a05541.html#l00473">NLPACS::CChainQuad::serial()</a>, <a class="el" href="a05539.html#l00274">NLPACS::CChain::serial()</a>, <a class="el" href="a05539.html#l00158">NLPACS::COrderedChain::serial()</a>, <a class="el" href="a05539.html#l00064">NLPACS::COrderedChain3f::serial()</a>, <a class="el" href="a05491.html#l00056">NL3D::CBoneBase::serial()</a>, <a class="el" href="a05484.html#l00294">NLMISC::CBitSet::serial()</a>, <a class="el" href="a05468.html#l00115">CAutomataDesc::CState::serial()</a>, <a class="el" href="a05447.html#l00292">NL3D::CAnimationPlaylist::serial()</a>, <a class="el" href="a05443.html#l00080">NL3D::CAnimation::serial()</a>, <a class="el" href="a05439.html#l00047">NL3D::CMorphBase::serial()</a>, <a class="el" href="a05438.html#l00103">NL3D::CMaterialBase::CTexAnimTracks::serial()</a>, <a class="el" href="a05437.html#l00080">NL3D::CMaterialBase::serial()</a>, <a class="el" href="a05384.html#l00206">NLMISC::CAABBox::serial()</a>, <a class="el" href="a05968.html#l00456">NL3D::CMaterial::CLightMap::serial2()</a>, <a class="el" href="a06463.html#l00332">NLMISC::IStream::serialBitField16()</a>, <a class="el" href="a06463.html#l00338">NLMISC::IStream::serialBitField32()</a>, <a class="el" href="a06463.html#l00326">NLMISC::IStream::serialBitField8()</a>, <a class="el" href="a06462.html#l00877">NLMISC::IStream::serialBufferWithSize()</a>, <a class="el" href="a06462.html#l00520">NLMISC::IStream::serialCheck()</a>, <a class="el" href="a06560.html#l00090">NL3D::CTrackSampledCommon::serialCommon()</a>, <a class="el" href="a06461.html#l00318">NLMISC::IStream::serialCont()</a>, <a class="el" href="a06462.html#l00261">NLMISC::IStream::serialEnum()</a>, <a class="el" href="a06710.html#l00883">NL3D::CVertexBuffer::serialHeader()</a>, <a class="el" href="a06461.html#l00115">NLMISC::IStream::serialIStreamable()</a>, <a class="el" href="a06005.html#l01918">NL3D::CMeshMRMGeom::serialLodVertexData()</a>, <a class="el" href="a06462.html#l01360">NLMISC::IStream::serialMap()</a>, <a class="el" href="a06461.html#l00436">NLMISC::IStream::serialMemStream()</a>, <a class="el" href="a06462.html#l01271">NLMISC::IStream::serialMultimap()</a>, <a class="el" href="a06710.html#l00741">NL3D::CVertexBuffer::serialOldV1Minus()</a>, <a class="el" href="a06462.html#l00390">NLMISC::IStream::serialPtr()</a>, <a class="el" href="a06462.html#l00955">NLMISC::IStream::serialSTLCont()</a>, <a class="el" href="a06462.html#l00905">NLMISC::IStream::serialSTLContLen()</a>, <a class="el" href="a06462.html#l01192">NLMISC::IStream::serialSTLContPolyPtr()</a>, <a class="el" href="a06462.html#l01086">NLMISC::IStream::serialSTLContPtr()</a>, <a class="el" href="a06462.html#l00992">NLMISC::IStream::serialVector()</a>, <a class="el" href="a06462.html#l01215">NLMISC::IStream::serialVectorPolyPtr()</a>, <a class="el" href="a06462.html#l01121">NLMISC::IStream::serialVectorPtr()</a>, <a class="el" href="a06461.html#l00266">NLMISC::IStream::serialVersion()</a>, <a class="el" href="a05486.html#l02139">NLMISC::CBitmap::writeTGA()</a>, and <a class="el" href="a06462.html#l00647">NLMISC::IStream::xmlSerial()</a>. +<p> +<div class="fragment"><pre>00232 { obj.serial(*<span class="keyword">this</span>); } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1CIFilez1942_5" doxytag="NLMISC::CIFile::serialBit" ></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::CIFile::serialBit </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">bool & </td> + <td class="mdname1" valign="top" nowrap> <em>bit</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> throw (<a class="el" href="a03801.html">EReadError</a>)<code> [protected, virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Get the last 40 files opened. The files can be in a big file. +<p> + +<p> +Implements <a class="el" href="a02270.html#NLMISC_1_1IStreamz2041_0">NLMISC::IStream</a>. +<p> +Definition at line <a class="el" href="a05708.html#l00395">395</a> of file <a class="el" href="a05708.html">file.cpp</a>. +<p> +References <a class="el" href="a05981.html#l00096">uint8</a>, and <a class="el" href="a05646.html#l00237">v</a>. +<p> +<div class="fragment"><pre>00396 { +00397 <span class="comment">// Simple for now.</span> +00398 <a class="code" href="a04558.html#a7">uint8</a> <a class="code" href="a04223.html#a576">v</a>=bit; +00399 <a class="code" href="a02653.html#NLMISC_1_1CIFilea15">serialBuffer</a>(&v, 1); +00400 bit=(<a class="code" href="a04223.html#a576">v</a>!=0); +00401 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1IStreamz2030_0" doxytag="NLMISC::CIFile::serialBitField16" ></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#a9">uint16</a> NLMISC::IStream::serialBitField16 </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a9">uint16</a> </td> + <td class="mdname1" valign="top" nowrap> <em>bf</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Serialisation of bitfield <=16 bits. +<p> + +<p> +Definition at line <a class="el" href="a06463.html#l00332">332</a> of file <a class="el" href="a06463.html">stream_inline.h</a>. +<p> +References <a class="el" href="a06462.html#l00232">NLMISC::IStream::serial()</a>, and <a class="el" href="a05981.html#l00098">uint16</a>. +<p> +<div class="fragment"><pre>00333 { +00334 <a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(bf); +00335 <span class="keywordflow">return</span> bf; +00336 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1IStreamz2030_1" doxytag="NLMISC::CIFile::serialBitField32" ></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::IStream::serialBitField32 </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a11">uint32</a> </td> + <td class="mdname1" valign="top" nowrap> <em>bf</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Serialisation of bitfield <=32 bits. +<p> + +<p> +Definition at line <a class="el" href="a06463.html#l00338">338</a> of file <a class="el" href="a06463.html">stream_inline.h</a>. +<p> +References <a class="el" href="a06462.html#l00232">NLMISC::IStream::serial()</a>, and <a class="el" href="a05981.html#l00100">uint32</a>. +<p> +<div class="fragment"><pre>00339 { +00340 <a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(bf); +00341 <span class="keywordflow">return</span> bf; +00342 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1IStreamz2030_2" doxytag="NLMISC::CIFile::serialBitField8" ></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::IStream::serialBitField8 </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a7">uint8</a> </td> + <td class="mdname1" valign="top" nowrap> <em>bf</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Serialisation of bitfield <=8 bits. +<p> + +<p> +Definition at line <a class="el" href="a06463.html#l00326">326</a> of file <a class="el" href="a06463.html">stream_inline.h</a>. +<p> +References <a class="el" href="a06462.html#l00232">NLMISC::IStream::serial()</a>, and <a class="el" href="a05981.html#l00096">uint8</a>. +<p> +Referenced by <a class="el" href="a05969.html#l00542">NL3D::CMaterial::CTexEnv::serial()</a>. +<p> +<div class="fragment"><pre>00327 { +00328 <a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(bf); +00329 <span class="keywordflow">return</span> bf; +00330 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1CIFilea15" doxytag="NLMISC::CIFile::serialBuffer" ></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::CIFile::serialBuffer </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a7">uint8</a> * </td> + <td class="mdname" nowrap> <em>buf</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap><a class="el" href="a04558.html#a15">uint</a> </td> + <td class="mdname" nowrap> <em>len</em></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"> throw (<a class="el" href="a03801.html">EReadError</a>)<code> [virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Method to be specified by the Deriver. <dl compact><dt><b>Warning:</b></dt><dd>Do not call these methods from outside, unless you really know what you are doing. Using them instead of <a class="el" href="a02270.html#NLMISC_1_1IStreama5">serial()</a> can lead to communication problems between different platforms !</dd></dl> + +<p> +Implements <a class="el" href="a02270.html#NLMISC_1_1IStreamz2041_1">NLMISC::IStream</a>. +<p> +Definition at line <a class="el" href="a05708.html#l00355">355</a> of file <a class="el" href="a05708.html">file.cpp</a>. +<p> +References <a class="el" href="a05646.html#l00235">len</a>, <a class="el" href="a05586.html#l00073">NLMISC::nlSleep()</a>, <a class="el" href="a05981.html#l00105">uint</a>, and <a class="el" href="a05981.html#l00096">uint8</a>. +<p> +Referenced by <a class="el" href="a05465.html#l00560">NLSOUND::CAudioMixerUser::buildSampleBankList()</a>, <a class="el" href="a06291.html#l00304">NLAIPYSERVER::CPyExport::getCodeFromFile()</a>, <a class="el" href="a05708.html#l00306">getline()</a>, <a class="el" href="a06366.html#l00170">getSHA1()</a>, <a class="el" href="a06346.html#l00228">NLSOUND::CSampleBank::load()</a>, <a class="el" href="a05926.html#l00145">loadForm()</a>, and <a class="el" href="a05459.html#l00150">NLSOUND::CAsyncFileManagerSound::CLoadWavFile::run()</a>. +<p> +<div class="fragment"><pre>00356 { +00357 <span class="comment">// Check the read pos</span> +00358 <span class="keywordflow">if</span> ((_ReadPos < 0) || ((_ReadPos+len) > <a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_14">_FileSize</a>)) +00359 <span class="keywordflow">throw</span> EReadError (_FileName); +00360 <span class="keywordflow">if</span> ((<a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_11">_CacheFileOnOpen</a>) && (<a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_10">_Cache</a> == NULL)) +00361 <span class="keywordflow">throw</span> EFileNotOpened (_FileName); +00362 <span class="keywordflow">if</span> ((!<a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_11">_CacheFileOnOpen</a>) && (<a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_12">_F</a> == NULL)) +00363 <span class="keywordflow">throw</span> EFileNotOpened (_FileName); +00364 +00365 <span class="keywordflow">if</span> (<a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_15">_IsAsyncLoading</a>) +00366 { +00367 <a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_21">_NbBytesSerialized</a> += <a class="code" href="a04223.html#a571">len</a>; +00368 <span class="keywordflow">if</span> (<a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_21">_NbBytesSerialized</a> > 64 * 1024) +00369 { +00370 <a class="code" href="a05378.html#a256">nlSleep</a> (5); +00371 <a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_21">_NbBytesSerialized</a> = 0; +00372 } +00373 } +00374 +00375 <span class="keywordflow">if</span> (<a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_11">_CacheFileOnOpen</a>) +00376 { +00377 memcpy (buf, _Cache + _ReadPos, len); +00378 <a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_17">_ReadPos</a> += <a class="code" href="a04223.html#a571">len</a>; +00379 } +00380 <span class="keywordflow">else</span> +00381 { +00382 <span class="keywordtype">int</span> read; +00383 <a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_24">_ReadingFromFile</a> += <a class="code" href="a04223.html#a571">len</a>; +00384 read=fread(buf, 1, len, _F); +00385 <a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_19">_FileRead</a>++; +00386 <a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_24">_ReadingFromFile</a> -= <a class="code" href="a04223.html#a571">len</a>; +00387 <a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_23">_ReadFromFile</a> += read * 1; +00388 <span class="keywordflow">if</span> (read < (<span class="keywordtype">int</span>)<a class="code" href="a04223.html#a571">len</a>) +00389 <span class="keywordflow">throw</span> EReadError(_FileName); +00390 <a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_17">_ReadPos</a> += <a class="code" href="a04223.html#a571">len</a>; +00391 } +00392 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1IStreama6" doxytag="NLMISC::CIFile::serialBufferWithSize" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> virtual void NLMISC::IStream::serialBufferWithSize </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a7">uint8</a> * </td> + <td class="mdname" nowrap> <em>buf</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap><a class="el" href="a04558.html#a11">uint32</a> </td> + <td class="mdname" nowrap> <em>len</em></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"><code> [inline, virtual, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +This method first serializes the size of the buffer and after the buffer itself, it enables the possibility to serial with a <a class="el" href="a02270.html#NLMISC_1_1IStreamz2033_9">serialCont()</a> on the other side. +<p> +Definition at line <a class="el" href="a06462.html#l00877">877</a> of file <a class="el" href="a06462.html">stream.h</a>. +<p> +References <a class="el" href="a05646.html#l00235">len</a>, <a class="el" href="a06462.html#l00232">NLMISC::IStream::serial()</a>, <a class="el" href="a02270.html#NLMISC_1_1IStreamz2041_1">NLMISC::IStream::serialBuffer()</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>00878 { +00879 <a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a> (len); +00880 <a class="code" href="a02653.html#NLMISC_1_1CIFilea15">serialBuffer</a> (buf, len); +00881 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1IStreamz2035_0" doxytag="NLMISC::CIFile::serialCheck" ></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" colspan="4"> +template<class T> </td> + </tr> + <tr> + <td class="md" nowrap valign="top"> void NLMISC::IStream::serialCheck </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const T & </td> + <td class="mdname1" valign="top" nowrap> <em>value</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Serialize a check value. An object can stream a check value to check integrity or format of filed or streamed data. Just call serial check with a const value. Write will serial the value. Read will check the value is the same. If it is not, it will throw <a class="el" href="a03794.html">EInvalidDataStream</a> exception.<p> +NB: The type of the value must implement an operator == and must be serializable. <dl compact><dt><b>Parameters:</b></dt><dd> + <table border="0" cellspacing="2" cellpadding="0"> + <tr><td valign=top><em>value</em> </td><td>the value used to the check. </td></tr> + </table> +</dl> +<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="a03794.html">EInvalidDataStream</a></dd></dl> + +<p> +Definition at line <a class="el" href="a06462.html#l00520">520</a> of file <a class="el" href="a06462.html">stream.h</a>. +<p> +References <a class="el" href="a06463.html#l00064">NLMISC::IStream::isReading()</a>, <a class="el" href="a06462.html#l00232">NLMISC::IStream::serial()</a>, <a class="el" href="a05646.html#l01132">value</a>, <a class="el" href="a06462.html#l00759">NLMISC::IStream::xmlPop()</a>, and <a class="el" href="a06462.html#l00701">NLMISC::IStream::xmlPush()</a>. +<p> +Referenced by <a class="el" href="a06138.html#l00495">NLNET::cbPacsAnswer()</a>, <a class="el" href="a06138.html#l00085">NLNET::CPacsClient::initMessage()</a>, <a class="el" href="a05926.html#l00145">loadForm()</a>, <a class="el" href="a06772.html#l00159">NLLIGO::CZoneRegion::serial()</a>, <a class="el" href="a06762.html#l00105">NLLIGO::CZoneBankElement::serial()</a>, <a class="el" href="a06758.html#l00432">NL3D::CZone::serial()</a>, <a class="el" href="a06702.html#l00186">NL3D::CVegetableShape::serial()</a>, <a class="el" href="a06399.html#l00069">NL3D::CSkeletonWeight::serial()</a>, <a class="el" href="a06350.html#l00379">NL3D::CInstanceGroup::serial()</a>, <a class="el" href="a05937.html#l00505">NL3D::CLodCharacterShape::serial()</a>, <a class="el" href="a05937.html#l00273">NL3D::CLodCharacterShapeBuild::serial()</a>, <a class="el" href="a05449.html#l00134">NL3D::CAnimationSet::serial()</a>, and <a class="el" href="a05443.html#l00080">NL3D::CAnimation::serial()</a>. +<p> +<div class="fragment"><pre>00521 { +00522 <span class="comment">// Open a node</span> +00523 <a class="code" href="a02270.html#NLMISC_1_1IStreamz2038_0">xmlPush</a> (<span class="stringliteral">"CHECK"</span>); +00524 +00525 <span class="keywordflow">if</span> (<a class="code" href="a02270.html#NLMISC_1_1IStreama0">isReading</a>()) +00526 { +00527 T read; +00528 <a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a> (read); +00529 <span class="keywordflow">if</span> (read!=<a class="code" href="a04223.html#a658">value</a>) +00530 <span class="keywordflow">throw</span> EInvalidDataStream(*<span class="keyword">this</span>); +00531 } +00532 <span class="keywordflow">else</span> +00533 { +00534 <a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a> (const_cast<T&>(value)); +00535 } +00536 +00537 <span class="comment">// Close the node </span> +00538 <a class="code" href="a02270.html#NLMISC_1_1IStreamz2039_2">xmlPop</a> (); +00539 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1IStreamz2033_0" doxytag="NLMISC::CIFile::serialCont" ></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::IStream::serialCont </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">std::vector< bool > & </td> + <td class="mdname1" valign="top" nowrap> <em>cont</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [virtual, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Specialisation of <a class="el" href="a02270.html#NLMISC_1_1IStreamz2033_9">serialCont()</a> for vector<bool>. +<p> + +<p> +Reimplemented in <a class="el" href="a02269.html#NLMISC_1_1CBitMemStreama42">NLMISC::CBitMemStream</a>, <a class="el" href="a02271.html#NLNET_1_1CMessagea45">NLMISC::CMemStream</a>, and <a class="el" href="a03452.html#NLMISC_1_1CStringStreama32">NLMISC::CStringStream</a>. +<p> +Definition at line <a class="el" href="a06461.html#l00356">356</a> of file <a class="el" href="a06461.html">stream.cpp</a>. +<p> +References <a class="el" href="a06463.html#l00064">NLMISC::IStream::isReading()</a>, <a class="el" href="a05646.html#l00235">len</a>, <a class="el" href="a06462.html#l00232">NLMISC::IStream::serial()</a>, <a class="el" href="a02270.html#NLMISC_1_1IStreamz2041_1">NLMISC::IStream::serialBuffer()</a>, <a class="el" href="a05981.html#l00104">sint</a>, <a class="el" href="a05981.html#l00099">sint32</a>, <a class="el" href="a05981.html#l00105">uint</a>, and <a class="el" href="a05981.html#l00096">uint8</a>. +<p> +<div class="fragment"><pre>00357 { +00358 <a class="code" href="a04558.html#a10">sint32</a> <a class="code" href="a04223.html#a571">len</a>=0; +00359 vector<uint8> vec; +00360 +00361 <span class="keywordflow">if</span>(<a class="code" href="a02270.html#NLMISC_1_1IStreama0">isReading</a>()) +00362 { +00363 <a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(len); +00364 cont.resize(len); +00365 +00366 <span class="keywordflow">if</span> (<a class="code" href="a04223.html#a571">len</a> != 0) +00367 { +00368 <span class="comment">// read as uint8*.</span> +00369 <a class="code" href="a04558.html#a14">sint</a> lb= (<a class="code" href="a04223.html#a571">len</a>+7)/8; +00370 vec.resize(lb); +00371 <a class="code" href="a02653.html#NLMISC_1_1CIFilea15">serialBuffer</a>( (<a class="code" href="a04558.html#a7">uint8</a>*)&(*vec.begin()) , lb); +00372 <span class="keywordflow">for</span>(<a class="code" href="a04558.html#a14">sint</a> i=0;i<<a class="code" href="a04223.html#a571">len</a>;i++) +00373 { +00374 <a class="code" href="a04558.html#a15">uint</a> bit= (vec[i>>3]>>(i&7)) & 1; +00375 cont[i]= bit?<span class="keyword">true</span>:<span class="keyword">false</span>; +00376 } +00377 } +00378 } +00379 <span class="keywordflow">else</span> +00380 { +00381 <a class="code" href="a04223.html#a571">len</a>= cont.size(); +00382 <a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(len); +00383 +00384 <span class="keywordflow">if</span> (<a class="code" href="a04223.html#a571">len</a> != 0) +00385 { +00386 <span class="comment">// write as uint8*.</span> +00387 <a class="code" href="a04558.html#a14">sint</a> lb= (<a class="code" href="a04223.html#a571">len</a>+7)/8; +00388 vec.resize(lb); +00389 fill_n(vec.begin(), lb, 0); +00390 <span class="keywordflow">for</span>(<a class="code" href="a04558.html#a14">sint</a> i=0;i<<a class="code" href="a04223.html#a571">len</a>;i++) +00391 { +00392 <a class="code" href="a04558.html#a15">uint</a> bit= cont[i]?1:0; +00393 vec[i>>3]|= bit<<(i&7); +00394 } +00395 <a class="code" href="a02653.html#NLMISC_1_1CIFilea15">serialBuffer</a>( (<a class="code" href="a04558.html#a7">uint8</a>*)&(*vec.begin()) , lb); +00396 } +00397 } +00398 +00399 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1IStreamz2033_1" doxytag="NLMISC::CIFile::serialCont" ></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::IStream::serialCont </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">std::vector< <a class="el" href="a04558.html#a6">sint8</a> > & </td> + <td class="mdname1" valign="top" nowrap> <em>cont</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [virtual, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Specialisation of <a class="el" href="a02270.html#NLMISC_1_1IStreamz2033_9">serialCont()</a> for vector<sint8>. +<p> + +<p> +Reimplemented in <a class="el" href="a02269.html#NLMISC_1_1CBitMemStreama43">NLMISC::CBitMemStream</a>, <a class="el" href="a02271.html#NLNET_1_1CMessagea46">NLMISC::CMemStream</a>, and <a class="el" href="a03452.html#NLMISC_1_1CStringStreama33">NLMISC::CStringStream</a>. +<p> +Definition at line <a class="el" href="a06461.html#l00337">337</a> of file <a class="el" href="a06461.html">stream.cpp</a>. +<p> +References <a class="el" href="a06463.html#l00064">NLMISC::IStream::isReading()</a>, <a class="el" href="a05646.html#l00235">len</a>, <a class="el" href="a06462.html#l00232">NLMISC::IStream::serial()</a>, <a class="el" href="a02270.html#NLMISC_1_1IStreamz2041_1">NLMISC::IStream::serialBuffer()</a>, <a class="el" href="a05981.html#l00099">sint32</a>, and <a class="el" href="a05981.html#l00096">uint8</a>. +<p> +<div class="fragment"><pre>00338 { +00339 <a class="code" href="a04558.html#a10">sint32</a> <a class="code" href="a04223.html#a571">len</a>=0; +00340 <span class="keywordflow">if</span>(<a class="code" href="a02270.html#NLMISC_1_1IStreama0">isReading</a>()) +00341 { +00342 <a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(len); +00343 cont.resize(len); +00344 <span class="keywordflow">if</span> (<a class="code" href="a04223.html#a571">len</a> != 0) +00345 <a class="code" href="a02653.html#NLMISC_1_1CIFilea15">serialBuffer</a>( (<a class="code" href="a04558.html#a7">uint8</a>*)&(*cont.begin()) , <a class="code" href="a04223.html#a571">len</a>); +00346 } +00347 <span class="keywordflow">else</span> +00348 { +00349 <a class="code" href="a04223.html#a571">len</a>= cont.size(); +00350 <a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(len); +00351 <span class="keywordflow">if</span> (<a class="code" href="a04223.html#a571">len</a> != 0) +00352 <a class="code" href="a02653.html#NLMISC_1_1CIFilea15">serialBuffer</a>( (<a class="code" href="a04558.html#a7">uint8</a>*)&(*cont.begin()) , <a class="code" href="a04223.html#a571">len</a>); +00353 } +00354 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1IStreamz2033_2" doxytag="NLMISC::CIFile::serialCont" ></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::IStream::serialCont </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">std::vector< <a class="el" href="a04558.html#a7">uint8</a> > & </td> + <td class="mdname1" valign="top" nowrap> <em>cont</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [virtual, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Specialisation of <a class="el" href="a02270.html#NLMISC_1_1IStreamz2033_9">serialCont()</a> for vector<uint8>. +<p> + +<p> +Reimplemented in <a class="el" href="a02269.html#NLMISC_1_1CBitMemStreama44">NLMISC::CBitMemStream</a>, <a class="el" href="a02271.html#NLNET_1_1CMessagea47">NLMISC::CMemStream</a>, and <a class="el" href="a03452.html#NLMISC_1_1CStringStreama34">NLMISC::CStringStream</a>. +<p> +Definition at line <a class="el" href="a06461.html#l00318">318</a> of file <a class="el" href="a06461.html">stream.cpp</a>. +<p> +References <a class="el" href="a06463.html#l00064">NLMISC::IStream::isReading()</a>, <a class="el" href="a05646.html#l00235">len</a>, <a class="el" href="a06462.html#l00232">NLMISC::IStream::serial()</a>, <a class="el" href="a02270.html#NLMISC_1_1IStreamz2041_1">NLMISC::IStream::serialBuffer()</a>, <a class="el" href="a05981.html#l00099">sint32</a>, and <a class="el" href="a05981.html#l00096">uint8</a>. +<p> +<div class="fragment"><pre>00319 { +00320 <a class="code" href="a04558.html#a10">sint32</a> <a class="code" href="a04223.html#a571">len</a>=0; +00321 <span class="keywordflow">if</span>(<a class="code" href="a02270.html#NLMISC_1_1IStreama0">isReading</a>()) +00322 { +00323 <a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(len); +00324 cont.resize(len); +00325 <span class="keywordflow">if</span> (<a class="code" href="a04223.html#a571">len</a> != 0) +00326 <a class="code" href="a02653.html#NLMISC_1_1CIFilea15">serialBuffer</a>( (<a class="code" href="a04558.html#a7">uint8</a>*)&(*cont.begin()) , <a class="code" href="a04223.html#a571">len</a>); +00327 } +00328 <span class="keywordflow">else</span> +00329 { +00330 <a class="code" href="a04223.html#a571">len</a>= cont.size(); +00331 <a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(len); +00332 <span class="keywordflow">if</span> (<a class="code" href="a04223.html#a571">len</a> != 0) +00333 <a class="code" href="a02653.html#NLMISC_1_1CIFilea15">serialBuffer</a>( (<a class="code" href="a04558.html#a7">uint8</a>*)&(*cont.begin()) , <a class="code" href="a04223.html#a571">len</a>); +00334 } +00335 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1IStreamz2033_3" doxytag="NLMISC::CIFile::serialCont" ></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" colspan="4"> +template<class K, class T> </td> + </tr> + <tr> + <td class="md" nowrap valign="top"> void NLMISC::IStream::serialCont </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">std::multimap< K, T > & </td> + <td class="mdname1" valign="top" nowrap> <em>cont</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Specialisation of <a class="el" href="a02270.html#NLMISC_1_1IStreamz2033_9">serialCont()</a> for vector<bool>. +<p> + +<p> +Reimplemented in <a class="el" href="a02269.html#NLMISC_1_1CBitMemStreama45">NLMISC::CBitMemStream</a>, <a class="el" href="a02271.html#NLNET_1_1CMessagea48">NLMISC::CMemStream</a>, and <a class="el" href="a03452.html#NLMISC_1_1CStringStreama35">NLMISC::CStringStream</a>. +<p> +Definition at line <a class="el" href="a06462.html#l00336">336</a> of file <a class="el" href="a06462.html">stream.h</a>. +<p> +References <a class="el" href="a06462.html#l01271">NLMISC::IStream::serialMultimap()</a>. +<p> +<div class="fragment"><pre>00336 {<a class="code" href="a02270.html#NLMISC_1_1IStreamd2">serialMultimap</a>(cont);} +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1IStreamz2033_4" doxytag="NLMISC::CIFile::serialCont" ></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" colspan="4"> +template<class K, class T> </td> + </tr> + <tr> + <td class="md" nowrap valign="top"> void NLMISC::IStream::serialCont </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">std::map< K, T > & </td> + <td class="mdname1" valign="top" nowrap> <em>cont</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Specialisation of <a class="el" href="a02270.html#NLMISC_1_1IStreamz2033_9">serialCont()</a> for vector<bool>. +<p> + +<p> +Reimplemented in <a class="el" href="a02269.html#NLMISC_1_1CBitMemStreama46">NLMISC::CBitMemStream</a>, <a class="el" href="a02271.html#NLNET_1_1CMessagea49">NLMISC::CMemStream</a>, and <a class="el" href="a03452.html#NLMISC_1_1CStringStreama36">NLMISC::CStringStream</a>. +<p> +Definition at line <a class="el" href="a06462.html#l00334">334</a> of file <a class="el" href="a06462.html">stream.h</a>. +<p> +References <a class="el" href="a06462.html#l01360">NLMISC::IStream::serialMap()</a>. +<p> +<div class="fragment"><pre>00334 {<a class="code" href="a02270.html#NLMISC_1_1IStreamd1">serialMap</a>(cont);} +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1IStreamz2033_5" doxytag="NLMISC::CIFile::serialCont" ></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" colspan="4"> +template<class T> </td> + </tr> + <tr> + <td class="md" nowrap valign="top"> void NLMISC::IStream::serialCont </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">std::multiset< T > & </td> + <td class="mdname1" valign="top" nowrap> <em>cont</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Specialisation of <a class="el" href="a02270.html#NLMISC_1_1IStreamz2033_9">serialCont()</a> for vector<bool>. +<p> + +<p> +Reimplemented in <a class="el" href="a02269.html#NLMISC_1_1CBitMemStreama47">NLMISC::CBitMemStream</a>, <a class="el" href="a02271.html#NLNET_1_1CMessagea50">NLMISC::CMemStream</a>, and <a class="el" href="a03452.html#NLMISC_1_1CStringStreama37">NLMISC::CStringStream</a>. +<p> +Definition at line <a class="el" href="a06462.html#l00332">332</a> of file <a class="el" href="a06462.html">stream.h</a>. +<p> +References <a class="el" href="a06462.html#l00955">NLMISC::IStream::serialSTLCont()</a>. +<p> +<div class="fragment"><pre>00332 {<a class="code" href="a02270.html#NLMISC_1_1IStreamd3">serialSTLCont</a>(cont);} +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1IStreamz2033_6" doxytag="NLMISC::CIFile::serialCont" ></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" colspan="4"> +template<class T> </td> + </tr> + <tr> + <td class="md" nowrap valign="top"> void NLMISC::IStream::serialCont </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">std::set< T > & </td> + <td class="mdname1" valign="top" nowrap> <em>cont</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Specialisation of <a class="el" href="a02270.html#NLMISC_1_1IStreamz2033_9">serialCont()</a> for vector<bool>. +<p> + +<p> +Reimplemented in <a class="el" href="a02269.html#NLMISC_1_1CBitMemStreama48">NLMISC::CBitMemStream</a>, <a class="el" href="a02271.html#NLNET_1_1CMessagea51">NLMISC::CMemStream</a>, and <a class="el" href="a03452.html#NLMISC_1_1CStringStreama38">NLMISC::CStringStream</a>. +<p> +Definition at line <a class="el" href="a06462.html#l00330">330</a> of file <a class="el" href="a06462.html">stream.h</a>. +<p> +References <a class="el" href="a06462.html#l00955">NLMISC::IStream::serialSTLCont()</a>. +<p> +<div class="fragment"><pre>00330 {<a class="code" href="a02270.html#NLMISC_1_1IStreamd3">serialSTLCont</a>(cont);} +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1IStreamz2033_7" doxytag="NLMISC::CIFile::serialCont" ></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" colspan="4"> +template<class T> </td> + </tr> + <tr> + <td class="md" nowrap valign="top"> void NLMISC::IStream::serialCont </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">std::deque< T > & </td> + <td class="mdname1" valign="top" nowrap> <em>cont</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Specialisation of <a class="el" href="a02270.html#NLMISC_1_1IStreamz2033_9">serialCont()</a> for vector<bool>. +<p> + +<p> +Reimplemented in <a class="el" href="a02269.html#NLMISC_1_1CBitMemStreama49">NLMISC::CBitMemStream</a>, <a class="el" href="a02271.html#NLNET_1_1CMessagea52">NLMISC::CMemStream</a>, and <a class="el" href="a03452.html#NLMISC_1_1CStringStreama39">NLMISC::CStringStream</a>. +<p> +Definition at line <a class="el" href="a06462.html#l00328">328</a> of file <a class="el" href="a06462.html">stream.h</a>. +<p> +References <a class="el" href="a06462.html#l00955">NLMISC::IStream::serialSTLCont()</a>. +<p> +<div class="fragment"><pre>00328 {<a class="code" href="a02270.html#NLMISC_1_1IStreamd3">serialSTLCont</a>(cont);} +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1IStreamz2033_8" doxytag="NLMISC::CIFile::serialCont" ></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" colspan="4"> +template<class T> </td> + </tr> + <tr> + <td class="md" nowrap valign="top"> void NLMISC::IStream::serialCont </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">std::list< T > & </td> + <td class="mdname1" valign="top" nowrap> <em>cont</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Specialisation of <a class="el" href="a02270.html#NLMISC_1_1IStreamz2033_9">serialCont()</a> for vector<bool>. +<p> + +<p> +Reimplemented in <a class="el" href="a02269.html#NLMISC_1_1CBitMemStreama50">NLMISC::CBitMemStream</a>, <a class="el" href="a02271.html#NLNET_1_1CMessagea53">NLMISC::CMemStream</a>, and <a class="el" href="a03452.html#NLMISC_1_1CStringStreama40">NLMISC::CStringStream</a>. +<p> +Definition at line <a class="el" href="a06462.html#l00326">326</a> of file <a class="el" href="a06462.html">stream.h</a>. +<p> +References <a class="el" href="a06462.html#l00955">NLMISC::IStream::serialSTLCont()</a>. +<p> +<div class="fragment"><pre>00326 {<a class="code" href="a02270.html#NLMISC_1_1IStreamd3">serialSTLCont</a>(cont);} +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1IStreamz2033_9" doxytag="NLMISC::CIFile::serialCont" ></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" colspan="4"> +template<class T, class Allocator> </td> + </tr> + <tr> + <td class="md" nowrap valign="top"> void NLMISC::IStream::serialCont </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">std::vector< T, Allocator > & </td> + <td class="mdname1" valign="top" nowrap> <em>cont</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Specialisation of <a class="el" href="a02270.html#NLMISC_1_1IStreamz2033_9">serialCont()</a> for vector<bool>. +<p> + +<p> +Definition at line <a class="el" href="a06462.html#l00324">324</a> of file <a class="el" href="a06462.html">stream.h</a>. +<p> +References <a class="el" href="a06462.html#l00992">NLMISC::IStream::serialVector()</a>. +<p> +Referenced by <a class="el" href="a06005.html#l00055">NL3D::H_AUTO_DECL()</a>, <a class="el" href="a06127.html#l00304">NLAISCRIPT::CLdbHeapMemberiOpCode::load()</a>, <a class="el" href="a06127.html#l00245">NLAISCRIPT::CLdbStackMemberiOpCode::load()</a>, <a class="el" href="a06127.html#l00188">NLAISCRIPT::CLdbMemberiOpCode::load()</a>, <a class="el" href="a06125.html#l00437">NLAISCRIPT::CCallMethodi::load()</a>, <a class="el" href="a06125.html#l00315">NLAISCRIPT::CCallStackMethodi::load()</a>, <a class="el" href="a06125.html#l00242">NLAISCRIPT::CCallHeapMethodi::load()</a>, <a class="el" href="a06123.html#l00439">NLAISCRIPT::CLibStackMemberMethod::load()</a>, <a class="el" href="a06123.html#l00370">NLAISCRIPT::CLibCallMethodi::load()</a>, <a class="el" href="a06123.html#l00184">NLAISCRIPT::CLibMemberMethodi::load()</a>, <a class="el" href="a06121.html#l01165">NLAISCRIPT::CAffMemberiOpCode::load()</a>, <a class="el" href="a06121.html#l01099">NLAISCRIPT::CAffHeapMemberiOpCode::load()</a>, <a class="el" href="a06112.html#l00217">NLAISCRIPT::CLoadHeapObject::load()</a>, <a class="el" href="a06112.html#l00166">NLAISCRIPT::CLoadStackObject::load()</a>, <a class="el" href="a06112.html#l00117">NLAISCRIPT::CLoadSelfObject::load()</a>, <a class="el" href="a05668.html#l00405">NLMISC::CEntityIdTranslator::load()</a>, <a class="el" href="a05471.html#l00618">NLSOUND::CBackgroundSoundManager::load()</a>, <a class="el" href="a05926.html#l00145">loadForm()</a>, <a class="el" href="a06127.html#l00296">NLAISCRIPT::CLdbHeapMemberiOpCode::save()</a>, <a class="el" href="a06127.html#l00239">NLAISCRIPT::CLdbStackMemberiOpCode::save()</a>, <a class="el" href="a06127.html#l00182">NLAISCRIPT::CLdbMemberiOpCode::save()</a>, <a class="el" href="a06125.html#l00427">NLAISCRIPT::CCallMethodi::save()</a>, <a class="el" href="a06125.html#l00305">NLAISCRIPT::CCallStackMethodi::save()</a>, <a class="el" href="a06125.html#l00230">NLAISCRIPT::CCallHeapMethodi::save()</a>, <a class="el" href="a06123.html#l00429">NLAISCRIPT::CLibStackMemberMethod::save()</a>, <a class="el" href="a06123.html#l00358">NLAISCRIPT::CLibCallMethodi::save()</a>, <a class="el" href="a06123.html#l00174">NLAISCRIPT::CLibMemberMethodi::save()</a>, <a class="el" href="a06121.html#l01159">NLAISCRIPT::CAffMemberiOpCode::save()</a>, <a class="el" href="a06121.html#l01091">NLAISCRIPT::CAffHeapMemberiOpCode::save()</a>, <a class="el" href="a06112.html#l00210">NLAISCRIPT::CLoadHeapObject::save()</a>, <a class="el" href="a06112.html#l00161">NLAISCRIPT::CLoadStackObject::save()</a>, <a class="el" href="a06112.html#l00112">NLAISCRIPT::CLoadSelfObject::save()</a>, <a class="el" href="a05668.html#l00442">NLMISC::CEntityIdTranslator::save()</a>, <a class="el" href="a06772.html#l00159">NLLIGO::CZoneRegion::serial()</a>, <a class="el" href="a06762.html#l00105">NLLIGO::CZoneBankElement::serial()</a>, <a class="el" href="a06758.html#l00432">NL3D::CZone::serial()</a>, <a class="el" href="a06702.html#l00186">NL3D::CVegetableShape::serial()</a>, <a class="el" href="a06550.html#l00099">NL3D::CTileVegetableDesc::serial()</a>, <a class="el" href="a06399.html#l00069">NL3D::CSkeletonWeight::serial()</a>, <a class="el" href="a06350.html#l00379">NL3D::CInstanceGroup::serial()</a>, <a class="el" href="a06350.html#l00065">NL3D::CInstanceGroup::CInstance::serial()</a>, <a class="el" href="a06337.html#l00736">NLPACS::CRetrieverInstance::serial()</a>, <a class="el" href="a06336.html#l00114">NLPACS::CRetrieverBank::serial()</a>, <a class="el" href="a06333.html#l00097">NLPACS::CRetrievableSurface::TLoop::serial()</a>, <a class="el" href="a06333.html#l00051">NLPACS::CRetrievableSurface::serial()</a>, <a class="el" href="a06197.html#l00219">NL3D::CPrimitiveBlock::serial()</a>, <a class="el" href="a06193.html#l00216">NL3D::CPortal::serial()</a>, <a class="el" href="a06186.html#l00164">NL3D::CPointLightNamedArray::serial()</a>, <a class="el" href="a06155.html#l01576">NL3D::CPatch::serial()</a>, <a class="el" href="a06105.html#l00337">NLMISC::CNoiseColorGradient::serial()</a>, <a class="el" href="a06012.html#l00314">NL3D::CMeshMRMSkinnedGeom::CRdrPass::serial()</a>, <a class="el" href="a06011.html#l01926">NL3D::CMeshMRMSkinnedGeom::CPackedVertexBuffer::serial()</a>, <a class="el" href="a06011.html#l00991">NL3D::CMeshMRMSkinnedGeom::serial()</a>, <a class="el" href="a05992.html#l00103">NL3D::CMeshBase::CLightMapInfoList::serial()</a>, <a class="el" href="a05992.html#l00071">NL3D::CMeshBase::CLightInfoMapListV7::serial()</a>, <a class="el" href="a05990.html#l00518">NL3D::CMeshGeom::CMatrixBlock::serial()</a>, <a class="el" href="a05968.html#l00139">NL3D::CMaterial::serial()</a>, <a class="el" href="a05941.html#l00043">NL3D::CLodCharacterTexture::serial()</a>, <a class="el" href="a05939.html#l00121">NL3D::CLodCharacterShapeBank::serial()</a>, <a class="el" href="a05937.html#l00505">NL3D::CLodCharacterShape::serial()</a>, <a class="el" href="a05937.html#l00495">NL3D::CLodCharacterShape::CBoneInfluence::serial()</a>, <a class="el" href="a05937.html#l00481">NL3D::CLodCharacterShape::CAnim::serial()</a>, <a class="el" href="a05937.html#l00273">NL3D::CLodCharacterShapeBuild::serial()</a>, <a class="el" href="a05930.html#l00129">NLPACS::CLocalRetriever::CTopology::serial()</a>, <a class="el" href="a05930.html#l00106">NLPACS::CLocalRetriever::CTip::serial()</a>, <a class="el" href="a05929.html#l00895">NLPACS::CLocalRetriever::serial()</a>, <a class="el" href="a05806.html#l00098">NL3D::CIGSurfaceLight::serial()</a>, <a class="el" href="a05792.html#l00117">NL3D::CHLSTextureBank::serial()</a>, <a class="el" href="a05790.html#l00313">NL3D::CHLSColorTexture::serial()</a>, <a class="el" href="a05790.html#l00057">NL3D::CHLSColorTexture::CMask::serial()</a>, <a class="el" href="a05761.html#l00136">NLPACS::CGlobalRetriever::serial()</a>, <a class="el" href="a05694.html#l00170">NLPACS::CFaceGrid::serial()</a>, <a class="el" href="a05692.html#l00098">NLPACS::CExteriorMesh::serial()</a>, <a class="el" href="a05666.html#l00571">NLPACS::CEdgeQuad::serial()</a>, <a class="el" href="a05579.html#l00149">NLPACS::CCollisionMeshBuild::serial()</a>, <a class="el" href="a05563.html#l00250">NL3D::CCluster::serial()</a>, <a class="el" href="a05539.html#l00274">NLPACS::CChain::serial()</a>, <a class="el" href="a05539.html#l00158">NLPACS::COrderedChain::serial()</a>, <a class="el" href="a05539.html#l00064">NLPACS::COrderedChain3f::serial()</a>, <a class="el" href="a05484.html#l00294">NLMISC::CBitSet::serial()</a>, <a class="el" href="a05468.html#l00115">CAutomataDesc::CState::serial()</a>, <a class="el" href="a05449.html#l00134">NL3D::CAnimationSet::serial()</a>, <a class="el" href="a05443.html#l00080">NL3D::CAnimation::serial()</a>, <a class="el" href="a05437.html#l00080">NL3D::CMaterialBase::serial()</a>, and <a class="el" href="a05584.html#l00374">NLMISC::ICommand::serialCommands()</a>. +<p> +<div class="fragment"><pre>00324 {<a class="code" href="a02270.html#NLMISC_1_1IStreamb0">serialVector</a>(cont);} +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1IStreamz2035_1" doxytag="NLMISC::CIFile::serialContPolyPtr" ></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" colspan="4"> +template<class T> </td> + </tr> + <tr> + <td class="md" nowrap valign="top"> void NLMISC::IStream::serialContPolyPtr </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">std::multiset< T > & </td> + <td class="mdname1" valign="top" nowrap> <em>cont</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Serialize a check value. An object can stream a check value to check integrity or format of filed or streamed data. Just call serial check with a const value. Write will serial the value. Read will check the value is the same. If it is not, it will throw <a class="el" href="a03794.html">EInvalidDataStream</a> exception.<p> +NB: The type of the value must implement an operator == and must be serializable. <dl compact><dt><b>Parameters:</b></dt><dd> + <table border="0" cellspacing="2" cellpadding="0"> + <tr><td valign=top><em>value</em> </td><td>the value used to the check. </td></tr> + </table> +</dl> +<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="a03794.html">EInvalidDataStream</a></dd></dl> + +<p> +Definition at line <a class="el" href="a06462.html#l00379">379</a> of file <a class="el" href="a06462.html">stream.h</a>. +<p> +References <a class="el" href="a06462.html#l01192">NLMISC::IStream::serialSTLContPolyPtr()</a>. +<p> +<div class="fragment"><pre>00379 {<a class="code" href="a02270.html#NLMISC_1_1IStreamd7">serialSTLContPolyPtr</a>(cont);} +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1IStreamz2035_2" doxytag="NLMISC::CIFile::serialContPolyPtr" ></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" colspan="4"> +template<class T> </td> + </tr> + <tr> + <td class="md" nowrap valign="top"> void NLMISC::IStream::serialContPolyPtr </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">std::set< T > & </td> + <td class="mdname1" valign="top" nowrap> <em>cont</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Serialize a check value. An object can stream a check value to check integrity or format of filed or streamed data. Just call serial check with a const value. Write will serial the value. Read will check the value is the same. If it is not, it will throw <a class="el" href="a03794.html">EInvalidDataStream</a> exception.<p> +NB: The type of the value must implement an operator == and must be serializable. <dl compact><dt><b>Parameters:</b></dt><dd> + <table border="0" cellspacing="2" cellpadding="0"> + <tr><td valign=top><em>value</em> </td><td>the value used to the check. </td></tr> + </table> +</dl> +<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="a03794.html">EInvalidDataStream</a></dd></dl> + +<p> +Definition at line <a class="el" href="a06462.html#l00377">377</a> of file <a class="el" href="a06462.html">stream.h</a>. +<p> +References <a class="el" href="a06462.html#l01192">NLMISC::IStream::serialSTLContPolyPtr()</a>. +<p> +<div class="fragment"><pre>00377 {<a class="code" href="a02270.html#NLMISC_1_1IStreamd7">serialSTLContPolyPtr</a>(cont);} +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1IStreamz2035_3" doxytag="NLMISC::CIFile::serialContPolyPtr" ></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" colspan="4"> +template<class T> </td> + </tr> + <tr> + <td class="md" nowrap valign="top"> void NLMISC::IStream::serialContPolyPtr </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">std::deque< T > & </td> + <td class="mdname1" valign="top" nowrap> <em>cont</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Serialize a check value. An object can stream a check value to check integrity or format of filed or streamed data. Just call serial check with a const value. Write will serial the value. Read will check the value is the same. If it is not, it will throw <a class="el" href="a03794.html">EInvalidDataStream</a> exception.<p> +NB: The type of the value must implement an operator == and must be serializable. <dl compact><dt><b>Parameters:</b></dt><dd> + <table border="0" cellspacing="2" cellpadding="0"> + <tr><td valign=top><em>value</em> </td><td>the value used to the check. </td></tr> + </table> +</dl> +<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="a03794.html">EInvalidDataStream</a></dd></dl> + +<p> +Definition at line <a class="el" href="a06462.html#l00375">375</a> of file <a class="el" href="a06462.html">stream.h</a>. +<p> +References <a class="el" href="a06462.html#l01192">NLMISC::IStream::serialSTLContPolyPtr()</a>. +<p> +<div class="fragment"><pre>00375 {<a class="code" href="a02270.html#NLMISC_1_1IStreamd7">serialSTLContPolyPtr</a>(cont);} +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1IStreamz2035_4" doxytag="NLMISC::CIFile::serialContPolyPtr" ></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" colspan="4"> +template<class T> </td> + </tr> + <tr> + <td class="md" nowrap valign="top"> void NLMISC::IStream::serialContPolyPtr </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">std::list< T > & </td> + <td class="mdname1" valign="top" nowrap> <em>cont</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Serialize a check value. An object can stream a check value to check integrity or format of filed or streamed data. Just call serial check with a const value. Write will serial the value. Read will check the value is the same. If it is not, it will throw <a class="el" href="a03794.html">EInvalidDataStream</a> exception.<p> +NB: The type of the value must implement an operator == and must be serializable. <dl compact><dt><b>Parameters:</b></dt><dd> + <table border="0" cellspacing="2" cellpadding="0"> + <tr><td valign=top><em>value</em> </td><td>the value used to the check. </td></tr> + </table> +</dl> +<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="a03794.html">EInvalidDataStream</a></dd></dl> + +<p> +Definition at line <a class="el" href="a06462.html#l00373">373</a> of file <a class="el" href="a06462.html">stream.h</a>. +<p> +References <a class="el" href="a06462.html#l01192">NLMISC::IStream::serialSTLContPolyPtr()</a>. +<p> +<div class="fragment"><pre>00373 {<a class="code" href="a02270.html#NLMISC_1_1IStreamd7">serialSTLContPolyPtr</a>(cont);} +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1IStreamz2035_5" doxytag="NLMISC::CIFile::serialContPolyPtr" ></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" colspan="4"> +template<class T, class Allocator> </td> + </tr> + <tr> + <td class="md" nowrap valign="top"> void NLMISC::IStream::serialContPolyPtr </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">std::vector< T, Allocator > & </td> + <td class="mdname1" valign="top" nowrap> <em>cont</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Serialize a check value. An object can stream a check value to check integrity or format of filed or streamed data. Just call serial check with a const value. Write will serial the value. Read will check the value is the same. If it is not, it will throw <a class="el" href="a03794.html">EInvalidDataStream</a> exception.<p> +NB: The type of the value must implement an operator == and must be serializable. <dl compact><dt><b>Parameters:</b></dt><dd> + <table border="0" cellspacing="2" cellpadding="0"> + <tr><td valign=top><em>value</em> </td><td>the value used to the check. </td></tr> + </table> +</dl> +<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="a03794.html">EInvalidDataStream</a></dd></dl> + +<p> +Definition at line <a class="el" href="a06462.html#l00371">371</a> of file <a class="el" href="a06462.html">stream.h</a>. +<p> +References <a class="el" href="a06462.html#l01215">NLMISC::IStream::serialVectorPolyPtr()</a>. +<p> +Referenced by <a class="el" href="a05443.html#l00080">NL3D::CAnimation::serial()</a>. +<p> +<div class="fragment"><pre>00371 {<a class="code" href="a02270.html#NLMISC_1_1IStreamd9">serialVectorPolyPtr</a>(cont);} +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1IStreamz2034_0" doxytag="NLMISC::CIFile::serialContPtr" ></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" colspan="4"> +template<class T> </td> + </tr> + <tr> + <td class="md" nowrap valign="top"> void NLMISC::IStream::serialContPtr </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">std::multiset< T > & </td> + <td class="mdname1" valign="top" nowrap> <em>cont</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a06462.html#l00362">362</a> of file <a class="el" href="a06462.html">stream.h</a>. +<p> +References <a class="el" href="a06462.html#l01086">NLMISC::IStream::serialSTLContPtr()</a>. +<p> +<div class="fragment"><pre>00362 {<a class="code" href="a02270.html#NLMISC_1_1IStreamd8">serialSTLContPtr</a>(cont);} +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1IStreamz2034_1" doxytag="NLMISC::CIFile::serialContPtr" ></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" colspan="4"> +template<class T> </td> + </tr> + <tr> + <td class="md" nowrap valign="top"> void NLMISC::IStream::serialContPtr </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">std::set< T > & </td> + <td class="mdname1" valign="top" nowrap> <em>cont</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a06462.html#l00360">360</a> of file <a class="el" href="a06462.html">stream.h</a>. +<p> +References <a class="el" href="a06462.html#l01086">NLMISC::IStream::serialSTLContPtr()</a>. +<p> +<div class="fragment"><pre>00360 {<a class="code" href="a02270.html#NLMISC_1_1IStreamd8">serialSTLContPtr</a>(cont);} +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1IStreamz2034_2" doxytag="NLMISC::CIFile::serialContPtr" ></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" colspan="4"> +template<class T> </td> + </tr> + <tr> + <td class="md" nowrap valign="top"> void NLMISC::IStream::serialContPtr </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">std::deque< T > & </td> + <td class="mdname1" valign="top" nowrap> <em>cont</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a06462.html#l00358">358</a> of file <a class="el" href="a06462.html">stream.h</a>. +<p> +References <a class="el" href="a06462.html#l01086">NLMISC::IStream::serialSTLContPtr()</a>. +<p> +<div class="fragment"><pre>00358 {<a class="code" href="a02270.html#NLMISC_1_1IStreamd8">serialSTLContPtr</a>(cont);} +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1IStreamz2034_3" doxytag="NLMISC::CIFile::serialContPtr" ></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" colspan="4"> +template<class T> </td> + </tr> + <tr> + <td class="md" nowrap valign="top"> void NLMISC::IStream::serialContPtr </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">std::list< T > & </td> + <td class="mdname1" valign="top" nowrap> <em>cont</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a06462.html#l00356">356</a> of file <a class="el" href="a06462.html">stream.h</a>. +<p> +References <a class="el" href="a06462.html#l01086">NLMISC::IStream::serialSTLContPtr()</a>. +<p> +<div class="fragment"><pre>00356 {<a class="code" href="a02270.html#NLMISC_1_1IStreamd8">serialSTLContPtr</a>(cont);} +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1IStreamz2034_4" doxytag="NLMISC::CIFile::serialContPtr" ></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" colspan="4"> +template<class T, class Allocator> </td> + </tr> + <tr> + <td class="md" nowrap valign="top"> void NLMISC::IStream::serialContPtr </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">std::vector< T, Allocator > & </td> + <td class="mdname1" valign="top" nowrap> <em>cont</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a06462.html#l00354">354</a> of file <a class="el" href="a06462.html">stream.h</a>. +<p> +References <a class="el" href="a06462.html#l01121">NLMISC::IStream::serialVectorPtr()</a>. +<p> +Referenced by <a class="el" href="a05449.html#l00134">NL3D::CAnimationSet::serial()</a>. +<p> +<div class="fragment"><pre>00354 {<a class="code" href="a02270.html#NLMISC_1_1IStreamd10">serialVectorPtr</a>(cont);} +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1IStreama7" doxytag="NLMISC::CIFile::serialEnum" ></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" colspan="4"> +template<class T> </td> + </tr> + <tr> + <td class="md" nowrap valign="top"> void NLMISC::IStream::serialEnum </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">T & </td> + <td class="mdname1" valign="top" nowrap> <em>em</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Template enum serialisation. Serialized as a sint32. +<p> + +<p> +Definition at line <a class="el" href="a06462.html#l00261">261</a> of file <a class="el" href="a06462.html">stream.h</a>. +<p> +References <a class="el" href="a06463.html#l00064">NLMISC::IStream::isReading()</a>, <a class="el" href="a06462.html#l00232">NLMISC::IStream::serial()</a>, and <a class="el" href="a05981.html#l00099">sint32</a>. +<p> +Referenced by <a class="el" href="a06580.html#l00279">NLNET::cbTCReceiveOtherSideClass()</a>, <a class="el" href="a06702.html#l00186">NL3D::CVegetableShape::serial()</a>, <a class="el" href="a06686.html#l00375">NL3D::CVegetable::serial()</a>, <a class="el" href="a06337.html#l00736">NLPACS::CRetrieverInstance::serial()</a>, <a class="el" href="a06179.html#l00230">NL3D::CPointLight::serial()</a>, <a class="el" href="a05968.html#l00139">NL3D::CMaterial::serial()</a>, <a class="el" href="a05929.html#l00895">NLPACS::CLocalRetriever::serial()</a>, <a class="el" href="a05585.html#l00164">NLMISC::CSerialCommand::serial()</a>, and <a class="el" href="a05447.html#l00292">NL3D::CAnimationPlaylist::serial()</a>. +<p> +<div class="fragment"><pre>00262 { +00263 <a class="code" href="a04558.html#a10">sint32</a> i; +00264 <span class="keywordflow">if</span>(<a class="code" href="a02270.html#NLMISC_1_1IStreama0">isReading</a>()) +00265 { +00266 <a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(i); +00267 em = (T)i; +00268 } +00269 <span class="keywordflow">else</span> +00270 { +00271 i = em; +00272 <a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(i); +00273 } +00274 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1IStreama8" doxytag="NLMISC::CIFile::serialMemStream" ></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::IStream::serialMemStream </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a02271.html">CMemStream</a> & </td> + <td class="mdname1" valign="top" nowrap> <em>b</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [virtual, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Serial memstream, bitmemstream... +<p> + +<p> +Definition at line <a class="el" href="a06461.html#l00436">436</a> of file <a class="el" href="a06461.html">stream.cpp</a>. +<p> +References <a class="el" href="a05979.html#l00238">NLMISC::CMemStream::buffer()</a>, <a class="el" href="a05979.html#l00306">NLMISC::CMemStream::bufferToFill()</a>, <a class="el" href="a06463.html#l00064">NLMISC::IStream::isReading()</a>, <a class="el" href="a05646.html#l00235">len</a>, <a class="el" href="a05979.html#l00217">NLMISC::CMemStream::length()</a>, <a class="el" href="a05979.html#l00270">NLMISC::CMemStream::resetBufPos()</a>, <a class="el" href="a06462.html#l00232">NLMISC::IStream::serial()</a>, <a class="el" href="a02270.html#NLMISC_1_1IStreamz2041_1">NLMISC::IStream::serialBuffer()</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>00437 { +00438 <a class="code" href="a04558.html#a11">uint32</a> <a class="code" href="a04223.html#a571">len</a>=0; +00439 +00440 <span class="comment">// Serialize length</span> +00441 <span class="keywordflow">if</span> ( <a class="code" href="a02270.html#NLMISC_1_1IStreama0">isReading</a>() ) +00442 { +00443 <span class="comment">// fill b with data from this</span> +00444 <a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a> (len); +00445 <a class="code" href="a02653.html#NLMISC_1_1CIFilea15">serialBuffer</a> (b.bufferToFill (len), <a class="code" href="a04223.html#a571">len</a>); +00446 b.resetBufPos (); +00447 } +00448 <span class="keywordflow">else</span> +00449 { +00450 <span class="comment">// fill this with data from b</span> +00451 <a class="code" href="a04223.html#a571">len</a> = b.length(); +00452 +00453 <a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>( len ); +00454 <a class="code" href="a02653.html#NLMISC_1_1CIFilea15">serialBuffer</a>( (<a class="code" href="a04558.html#a7">uint8</a>*) b.buffer (), <a class="code" href="a04223.html#a571">len</a> ); +00455 } +00456 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1IStreamz2035_6" doxytag="NLMISC::CIFile::serialPolyPtr" ></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" colspan="4"> +template<class T> </td> + </tr> + <tr> + <td class="md" nowrap valign="top"> void NLMISC::IStream::serialPolyPtr </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">T *& </td> + <td class="mdname1" valign="top" nowrap> <em>ptr</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Serialize Polymorphic Objet Ptr. Works with NULL pointers. If the same object is found mutliple time in the stream, ONLY ONE instance is written! NB: The ptr is serialised as a uint64 (64 bit compliant). <dl compact><dt><b>Parameters:</b></dt><dd> + <table border="0" cellspacing="2" cellpadding="0"> + <tr><td valign=top><em>ptr</em> </td><td>a pointer on a <a class="el" href="a02867.html">IStreamable</a> object. </td></tr> + </table> +</dl> +<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="a02270.html#NLMISC_1_1IStreamz2040_0">resetPtrTable()</a></dd></dl> + +<p> +Definition at line <a class="el" href="a06462.html#l00492">492</a> of file <a class="el" href="a06462.html">stream.h</a>. +<p> +References <a class="el" href="a06461.html#l00115">NLMISC::IStream::serialIStreamable()</a>. +<p> +Referenced by <a class="el" href="a05445.html#l00138">NL3D::CAnimationOptimizer::cloneTrack()</a>, <a class="el" href="a05968.html#l00438">NL3D::CMaterial::CLightMap::serial()</a>, <a class="el" href="a05968.html#l00139">NL3D::CMaterial::serial()</a>, <a class="el" href="a05437.html#l00045">NL3D::CMaterialBase::CAnimatedTexture::serial()</a>, <a class="el" href="a05968.html#l00456">NL3D::CMaterial::CLightMap::serial2()</a>, and <a class="el" href="a06462.html#l01162">NLMISC::IStream::serialSTLContLenPolyPtr()</a>. +<p> +<div class="fragment"><pre>00493 { IStreamable *p=ptr; <a class="code" href="a02270.html#NLMISC_1_1IStreamd0">serialIStreamable</a>(p); ptr= static_cast<T*>(p);} +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1IStreamz2035_7" doxytag="NLMISC::CIFile::serialPtr" ></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" colspan="4"> +template<class T> </td> + </tr> + <tr> + <td class="md" nowrap valign="top"> void NLMISC::IStream::serialPtr </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">T *& </td> + <td class="mdname1" valign="top" nowrap> <em>ptr</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Serialize Non Polymorphic Objet Ptr. Works with NULL pointers. If the same object is found mutliple time in the stream, ONLY ONE instance is written! NB: The ptr is serialised as a uint64 (64 bit compliant). <dl compact><dt><b>Parameters:</b></dt><dd> + <table border="0" cellspacing="2" cellpadding="0"> + <tr><td valign=top><em>ptr</em> </td><td>a pointer on a base type or an object. </td></tr> + </table> +</dl> +<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="a02270.html#NLMISC_1_1IStreamz2040_0">resetPtrTable()</a></dd></dl> + +<p> +Definition at line <a class="el" href="a06462.html#l00390">390</a> of file <a class="el" href="a06462.html">stream.h</a>. +<p> +References <a class="el" href="a06462.html#l00890">NLMISC::IStream::_IdMap</a>, <a class="el" href="a06462.html#l00889">NLMISC::IStream::_NextSerialPtrId</a>, <a class="el" href="a06463.html#l00064">NLMISC::IStream::isReading()</a>, <a class="el" href="a06462.html#l00891">NLMISC::IStream::ItIdMap</a>, <a class="el" href="a06462.html#l00232">NLMISC::IStream::serial()</a>, <a class="el" href="a05981.html#l00105">uint</a>, <a class="el" href="a05981.html#l00102">uint64</a>, <a class="el" href="a06462.html#l00892">NLMISC::IStream::ValueIdMap</a>, <a class="el" href="a06462.html#l00759">NLMISC::IStream::xmlPop()</a>, <a class="el" href="a06462.html#l00725">NLMISC::IStream::xmlPushBegin()</a>, <a class="el" href="a06462.html#l00742">NLMISC::IStream::xmlPushEnd()</a>, and <a class="el" href="a06462.html#l00777">NLMISC::IStream::xmlSetAttrib()</a>. +<p> +Referenced by <a class="el" href="a06152.html#l00136">NL3D::CParticleSystemShape::buildFromPS()</a>, <a class="el" href="a06152.html#l00344">NL3D::CParticleSystemShape::flushTextures()</a>, <a class="el" href="a06152.html#l00182">NL3D::CParticleSystemShape::instanciatePS()</a>, and <a class="el" href="a06462.html#l01056">NLMISC::IStream::serialSTLContLenPtr()</a>. +<p> +<div class="fragment"><pre>00391 { +00392 <a class="code" href="a04558.html#a13">uint64</a> node; +00393 +00394 <span class="comment">// Open the node header</span> +00395 <a class="code" href="a02270.html#NLMISC_1_1IStreamz2039_3">xmlPushBegin</a> (<span class="stringliteral">"PTR"</span>); +00396 +00397 <a class="code" href="a02270.html#NLMISC_1_1IStreamz2039_5">xmlSetAttrib</a> (<span class="stringliteral">"id"</span>); +00398 +00399 <span class="keywordflow">if</span>(<a class="code" href="a02270.html#NLMISC_1_1IStreama0">isReading</a>()) +00400 { +00401 <a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(node); +00402 +00403 <span class="comment">// Close the header</span> +00404 <a class="code" href="a02270.html#NLMISC_1_1IStreamz2039_4">xmlPushEnd</a> (); +00405 +00406 <span class="keywordflow">if</span>(node==0) +00407 ptr=NULL; +00408 <span class="keywordflow">else</span> +00409 { +00410 ItIdMap it; +00411 it= _IdMap.find(node); +00412 +00413 <span class="comment">// Test if object already created/read.</span> +00414 <span class="keywordflow">if</span>( it==_IdMap.end() ) +00415 { +00416 <span class="comment">// Construct object. </span> +00417 ptr= <span class="keyword">new</span> T; +00418 <span class="keywordflow">if</span>(ptr==NULL) +00419 <span class="keywordflow">throw</span> EStream(); +00420 +00421 <span class="comment">// Insert the node.</span> +00422 _IdMap.insert( <a class="code" href="a02270.html#NLMISC_1_1IStreamy1">ValueIdMap</a>(node, ptr) ); +00423 +00424 <span class="comment">// Read the object!</span> +00425 <a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(*ptr); +00426 } +00427 <span class="keywordflow">else</span> +00428 ptr= static_cast<T*>(it->second); +00429 } +00430 } +00431 <span class="keywordflow">else</span> +00432 { +00433 <span class="keywordflow">if</span>(ptr==NULL) +00434 { +00435 node= 0; +00436 <a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(node); +00437 +00438 <span class="comment">// Close the header</span> +00439 <a class="code" href="a02270.html#NLMISC_1_1IStreamz2039_4">xmlPushEnd</a> (); +00440 } +00441 <span class="keywordflow">else</span> +00442 { +00443 ItIdMap it; +00444 it = _IdMap.find((<a class="code" href="a04558.html#a13">uint64</a>)(<a class="code" href="a04558.html#a15">uint</a>)ptr); +00445 +00446 <span class="comment">// Test if object has been already written</span> +00447 <span class="keywordflow">if</span>( it==_IdMap.end() ) +00448 { +00449 <span class="comment">// Not yet written</span> +00450 +00451 <span class="comment">// Get the next available ID</span> +00452 node = _NextSerialPtrId++; +00453 +00454 <span class="comment">// Serial the id</span> +00455 <a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(node); +00456 +00457 <span class="comment">// Insert the pointer in the map with the id</span> +00458 _IdMap.insert( <a class="code" href="a02270.html#NLMISC_1_1IStreamy1">ValueIdMap</a>((<a class="code" href="a04558.html#a13">uint64</a>)(<a class="code" href="a04558.html#a15">uint</a>)ptr, (<span class="keywordtype">void</span>*)(uint)node) ); +00459 +00460 <span class="comment">// Close the header</span> +00461 <a class="code" href="a02270.html#NLMISC_1_1IStreamz2039_4">xmlPushEnd</a> (); +00462 +00463 <span class="comment">// Write the object</span> +00464 <a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(*ptr); +00465 } +00466 <span class="keywordflow">else</span> +00467 { +00468 <span class="comment">// Write only the object id</span> +00469 node = (<a class="code" href="a04558.html#a13">uint64</a>)(<a class="code" href="a04558.html#a15">uint</a>)(it->second); +00470 +00471 <a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(node); +00472 +00473 <span class="comment">// Close the header</span> +00474 <a class="code" href="a02270.html#NLMISC_1_1IStreamz2039_4">xmlPushEnd</a> (); +00475 } +00476 } +00477 } +00478 +00479 <span class="comment">// Close the node</span> +00480 <a class="code" href="a02270.html#NLMISC_1_1IStreamz2039_2">xmlPop</a> (); +00481 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1IStreamb0" doxytag="NLMISC::CIFile::serialVector" ></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" colspan="4"> +template<class T> </td> + </tr> + <tr> + <td class="md" nowrap valign="top"> void NLMISC::IStream::serialVector </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">T & </td> + <td class="mdname1" valign="top" nowrap> <em>cont</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline, protected, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +special version for serializing a vector. Support up to sint32 length containers. +<p> +Definition at line <a class="el" href="a06462.html#l00992">992</a> of file <a class="el" href="a06462.html">stream.h</a>. +<p> +References <a class="el" href="a05587.html#l00141">NLMISC::contReset()</a>, <a class="el" href="a06463.html#l00064">NLMISC::IStream::isReading()</a>, <a class="el" href="a05646.html#l00235">len</a>, <a class="el" href="a06462.html#l00232">NLMISC::IStream::serial()</a>, <a class="el" href="a05981.html#l00104">sint</a>, <a class="el" href="a05981.html#l00099">sint32</a>, <a class="el" href="a06462.html#l00759">NLMISC::IStream::xmlPop()</a>, <a class="el" href="a06462.html#l00701">NLMISC::IStream::xmlPush()</a>, <a class="el" href="a06462.html#l00725">NLMISC::IStream::xmlPushBegin()</a>, <a class="el" href="a06462.html#l00742">NLMISC::IStream::xmlPushEnd()</a>, and <a class="el" href="a06462.html#l00777">NLMISC::IStream::xmlSetAttrib()</a>. +<p> +Referenced by <a class="el" href="a06472.html#l00124">NLMISC::CStringStream::serialCont()</a>, <a class="el" href="a06462.html#l00324">NLMISC::IStream::serialCont()</a>, and <a class="el" href="a05483.html#l00634">NLMISC::CBitMemStream::serialCont()</a>. +<p> +<div class="fragment"><pre>00993 { +00994 <span class="keyword">typedef</span> <span class="keyword">typename</span> T::value_type __value_type; +00995 <span class="keyword">typedef</span> <span class="keyword">typename</span> T::iterator __iterator; +00996 +00997 <span class="comment">// Open a node header</span> +00998 <a class="code" href="a02270.html#NLMISC_1_1IStreamz2039_3">xmlPushBegin</a> (<span class="stringliteral">"VECTOR"</span>); +00999 +01000 <span class="comment">// Attrib size</span> +01001 <a class="code" href="a02270.html#NLMISC_1_1IStreamz2039_5">xmlSetAttrib</a> (<span class="stringliteral">"size"</span>); +01002 +01003 <a class="code" href="a04558.html#a10">sint32</a> <a class="code" href="a04223.html#a571">len</a>=0; +01004 <span class="keywordflow">if</span>(<a class="code" href="a02270.html#NLMISC_1_1IStreama0">isReading</a>()) +01005 { +01006 <a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(len); +01007 +01008 <span class="comment">// Open a node header</span> +01009 <a class="code" href="a02270.html#NLMISC_1_1IStreamz2039_4">xmlPushEnd</a> (); +01010 +01011 <span class="comment">// special version for vector: adjut good size.</span> +01012 <a class="code" href="a05378.html#a381">contReset</a>(cont); +01013 cont.resize (len); +01014 +01015 <span class="comment">// Read the vector</span> +01016 <span class="keywordflow">for</span>(<a class="code" href="a04558.html#a14">sint</a> i=0;i<<a class="code" href="a04223.html#a571">len</a>;i++) +01017 { +01018 <a class="code" href="a02270.html#NLMISC_1_1IStreamz2038_0">xmlPush</a> (<span class="stringliteral">"ELM"</span>); +01019 +01020 <a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(cont[i]); +01021 +01022 <a class="code" href="a02270.html#NLMISC_1_1IStreamz2039_2">xmlPop</a> (); +01023 } +01024 } +01025 <span class="keywordflow">else</span> +01026 { +01027 <a class="code" href="a04223.html#a571">len</a>= cont.size(); +01028 <a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(len); +01029 +01030 <span class="comment">// Close the node header</span> +01031 <a class="code" href="a02270.html#NLMISC_1_1IStreamz2039_4">xmlPushEnd</a> (); +01032 +01033 <span class="comment">// Write the vector</span> +01034 __iterator it= cont.begin(); +01035 <span class="keywordflow">for</span>(<a class="code" href="a04558.html#a14">sint</a> i=0;i<<a class="code" href="a04223.html#a571">len</a>;i++, it++) +01036 { +01037 <a class="code" href="a02270.html#NLMISC_1_1IStreamz2038_0">xmlPush</a> (<span class="stringliteral">"ELM"</span>); +01038 +01039 <a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(const_cast<__value_type&>(*it)); +01040 +01041 <a class="code" href="a02270.html#NLMISC_1_1IStreamz2039_2">xmlPop</a> (); +01042 } +01043 } +01044 +01045 <span class="comment">// Close the node</span> +01046 <a class="code" href="a02270.html#NLMISC_1_1IStreamz2039_2">xmlPop</a> (); +01047 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1IStreamz2035_8" doxytag="NLMISC::CIFile::serialVersion" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a15">uint</a> NLMISC::IStream::serialVersion </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a15">uint</a> </td> + <td class="mdname1" valign="top" nowrap> <em>currentVersion</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Serialize a version number. Each object should store/read first a version number, using this method. Then he can use the streamVersion returned to see how he should serialise himself.<p> +NB: Version Number is read/store as a uint8, or uint32 if too bigger.. <dl compact><dt><b>Parameters:</b></dt><dd> + <table border="0" cellspacing="2" cellpadding="0"> + <tr><td valign=top><em>currentVersion</em> </td><td>the current version of the class, provided by user. </td></tr> + </table> +</dl> +<dl compact><dt><b>Returns:</b></dt><dd>the version of the stream. If the stream is an Output stream, currentVersion is returned. </dd></dl> +<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="a02270.html#NLMISC_1_1IStreame1">setVersionException()</a> <a class="el" href="a02270.html#NLMISC_1_1IStreame0">getVersionException()</a></dd></dl> + +<p> +Definition at line <a class="el" href="a06461.html#l00266">266</a> of file <a class="el" href="a06461.html">stream.cpp</a>. +<p> +References <a class="el" href="a06461.html#l00067">NLMISC::IStream::_ThrowOnNewer</a>, <a class="el" href="a06461.html#l00066">NLMISC::IStream::_ThrowOnOlder</a>, <a class="el" href="a06463.html#l00064">NLMISC::IStream::isReading()</a>, <a class="el" href="a06462.html#l00232">NLMISC::IStream::serial()</a>, <a class="el" href="a05981.html#l00105">uint</a>, <a class="el" href="a05981.html#l00100">uint32</a>, <a class="el" href="a05981.html#l00096">uint8</a>, <a class="el" href="a05646.html#l00237">v</a>, <a class="el" href="a06462.html#l00759">NLMISC::IStream::xmlPop()</a>, and <a class="el" href="a06462.html#l00701">NLMISC::IStream::xmlPush()</a>. +<p> +Referenced by <a class="el" href="a06005.html#l00055">NL3D::H_AUTO_DECL()</a>, <a class="el" href="a05668.html#l00405">NLMISC::CEntityIdTranslator::load()</a>, <a class="el" href="a05926.html#l00145">loadForm()</a>, <a class="el" href="a05668.html#l00442">NLMISC::CEntityIdTranslator::save()</a>, <a class="el" href="a06772.html#l00159">NLLIGO::CZoneRegion::serial()</a>, <a class="el" href="a06772.html#l00101">NLLIGO::CZoneRegion::SZoneUnit2::serial()</a>, <a class="el" href="a06762.html#l00105">NLLIGO::CZoneBankElement::serial()</a>, <a class="el" href="a06758.html#l00432">NL3D::CZone::serial()</a>, <a class="el" href="a06758.html#l00421">NL3D::CPatchInfo::CBindInfo::serial()</a>, <a class="el" href="a06758.html#l00410">NL3D::CZone::CPatchConnect::serial()</a>, <a class="el" href="a06758.html#l00402">NL3D::CBorderVertex::serial()</a>, <a class="el" href="a06710.html#l00854">NL3D::CVertexBuffer::serial()</a>, <a class="el" href="a06702.html#l00186">NL3D::CVegetableShape::serial()</a>, <a class="el" href="a06686.html#l00375">NL3D::CVegetable::serial()</a>, <a class="el" href="a06564.html#l00062">NL3D::CTrackSampledVector::serial()</a>, <a class="el" href="a06562.html#l00125">NL3D::CTrackSampledQuat::serial()</a>, <a class="el" href="a06560.html#l00080">NL3D::CTrackSampledCommon::CTimeBlock::serial()</a>, <a class="el" href="a06550.html#l00099">NL3D::CTileVegetableDesc::serial()</a>, <a class="el" href="a06548.html#l00036">NL3D::CTileNoiseMap::serial()</a>, <a class="el" href="a06536.html#l01912">NL3D::CTileNoise::serial()</a>, <a class="el" href="a06477.html#l00329">NLPACS::CSurfaceQuadTree::serial()</a>, <a class="el" href="a06476.html#l00076">NL3D::CSurfaceLightGrid::CCellCorner::serial()</a>, <a class="el" href="a06475.html#l00051">NL3D::CSurfaceLightGrid::serial()</a>, <a class="el" href="a06399.html#l00083">NL3D::CSkeletonWeight::CNode::serial()</a>, <a class="el" href="a06399.html#l00069">NL3D::CSkeletonWeight::serial()</a>, <a class="el" href="a06350.html#l00379">NL3D::CInstanceGroup::serial()</a>, <a class="el" href="a06350.html#l00065">NL3D::CInstanceGroup::CInstance::serial()</a>, <a class="el" href="a06337.html#l00736">NLPACS::CRetrieverInstance::serial()</a>, <a class="el" href="a06336.html#l00114">NLPACS::CRetrieverBank::serial()</a>, <a class="el" href="a06333.html#l00051">NLPACS::CRetrievableSurface::serial()</a>, <a class="el" href="a06213.html#l00438">NL3D::CPSAttrib< T >::serial()</a>, <a class="el" href="a06197.html#l00219">NL3D::CPrimitiveBlock::serial()</a>, <a class="el" href="a06193.html#l00216">NL3D::CPortal::serial()</a>, <a class="el" href="a06187.html#l00100">NL3D::CPointLightNamedArray::CPointLightGroup::serial()</a>, <a class="el" href="a06186.html#l00164">NL3D::CPointLightNamedArray::serial()</a>, <a class="el" href="a06184.html#l00073">NL3D::CPointLightNamed::serial()</a>, <a class="el" href="a06179.html#l00230">NL3D::CPointLight::serial()</a>, <a class="el" href="a06155.html#l01576">NL3D::CPatch::serial()</a>, <a class="el" href="a06105.html#l00337">NLMISC::CNoiseColorGradient::serial()</a>, <a class="el" href="a06105.html#l00294">NLMISC::CNoiseValue::serial()</a>, <a class="el" href="a06012.html#l00314">NL3D::CMeshMRMSkinnedGeom::CRdrPass::serial()</a>, <a class="el" href="a06012.html#l00262">NL3D::CMeshMRMSkinnedGeom::CShadowVertex::serial()</a>, <a class="el" href="a06011.html#l01937">NL3D::CMeshMRMSkinnedGeom::CPackedVertexBuffer::CPackedVertex::serial()</a>, <a class="el" href="a06011.html#l01926">NL3D::CMeshMRMSkinnedGeom::CPackedVertexBuffer::serial()</a>, <a class="el" href="a06011.html#l01482">NL3D::CMeshMRMSkinned::serial()</a>, <a class="el" href="a06011.html#l00991">NL3D::CMeshMRMSkinnedGeom::serial()</a>, <a class="el" href="a06006.html#l00463">NL3D::CMeshMRMGeom::CLodInfo::serial()</a>, <a class="el" href="a06006.html#l00350">NL3D::CMeshMRMGeom::CRdrPass::serial()</a>, <a class="el" href="a06006.html#l00296">NL3D::CMeshMRMGeom::CShadowVertex::serial()</a>, <a class="el" href="a05992.html#l00103">NL3D::CMeshBase::CLightMapInfoList::serial()</a>, <a class="el" href="a05992.html#l00092">NL3D::CMeshBase::CLightMapInfoList::CMatStage::serial()</a>, <a class="el" href="a05990.html#l00518">NL3D::CMeshGeom::CMatrixBlock::serial()</a>, <a class="el" href="a05990.html#l00497">NL3D::CMeshGeom::CRdrPass::serial()</a>, <a class="el" href="a05972.html#l01500">NLMISC::CMatrix::serial()</a>, <a class="el" href="a05968.html#l00139">NL3D::CMaterial::serial()</a>, <a class="el" href="a05941.html#l00043">NL3D::CLodCharacterTexture::serial()</a>, <a class="el" href="a05939.html#l00121">NL3D::CLodCharacterShapeBank::serial()</a>, <a class="el" href="a05937.html#l00505">NL3D::CLodCharacterShape::serial()</a>, <a class="el" href="a05937.html#l00495">NL3D::CLodCharacterShape::CBoneInfluence::serial()</a>, <a class="el" href="a05937.html#l00481">NL3D::CLodCharacterShape::CAnim::serial()</a>, <a class="el" href="a05937.html#l00273">NL3D::CLodCharacterShapeBuild::serial()</a>, <a class="el" href="a05929.html#l00895">NLPACS::CLocalRetriever::serial()</a>, <a class="el" href="a05807.html#l00056">NL3D::CIGSurfaceLight::CRetrieverLightGrid::serial()</a>, <a class="el" href="a05806.html#l00098">NL3D::CIGSurfaceLight::serial()</a>, <a class="el" href="a05792.html#l00154">NL3D::CHLSTextureBank::CTextureInstance::serial()</a>, <a class="el" href="a05792.html#l00117">NL3D::CHLSTextureBank::serial()</a>, <a class="el" href="a05790.html#l00313">NL3D::CHLSColorTexture::serial()</a>, <a class="el" href="a05790.html#l00057">NL3D::CHLSColorTexture::CMask::serial()</a>, <a class="el" href="a05790.html#l00049">NL3D::CHLSColorDelta::serial()</a>, <a class="el" href="a05761.html#l00136">NLPACS::CGlobalRetriever::serial()</a>, <a class="el" href="a05694.html#l00170">NLPACS::CFaceGrid::serial()</a>, <a class="el" href="a05692.html#l00098">NLPACS::CExteriorMesh::serial()</a>, <a class="el" href="a05666.html#l00571">NLPACS::CEdgeQuad::serial()</a>, <a class="el" href="a05563.html#l00250">NL3D::CCluster::serial()</a>, <a class="el" href="a05541.html#l00473">NLPACS::CChainQuad::serial()</a>, <a class="el" href="a05539.html#l00274">NLPACS::CChain::serial()</a>, <a class="el" href="a05539.html#l00158">NLPACS::COrderedChain::serial()</a>, <a class="el" href="a05539.html#l00064">NLPACS::COrderedChain3f::serial()</a>, <a class="el" href="a05491.html#l00056">NL3D::CBoneBase::serial()</a>, <a class="el" href="a05484.html#l00294">NLMISC::CBitSet::serial()</a>, <a class="el" href="a05449.html#l00134">NL3D::CAnimationSet::serial()</a>, <a class="el" href="a05447.html#l00292">NL3D::CAnimationPlaylist::serial()</a>, <a class="el" href="a05443.html#l00080">NL3D::CAnimation::serial()</a>, <a class="el" href="a05438.html#l00103">NL3D::CMaterialBase::CTexAnimTracks::serial()</a>, <a class="el" href="a05437.html#l00080">NL3D::CMaterialBase::serial()</a>, <a class="el" href="a05384.html#l00206">NLMISC::CAABBox::serial()</a>, <a class="el" href="a05968.html#l00456">NL3D::CMaterial::CLightMap::serial2()</a>, <a class="el" href="a06560.html#l00090">NL3D::CTrackSampledCommon::serialCommon()</a>, <a class="el" href="a06710.html#l00883">NL3D::CVertexBuffer::serialHeader()</a>, <a class="el" href="a06005.html#l01918">NL3D::CMeshMRMGeom::serialLodVertexData()</a>, and <a class="el" href="a06710.html#l01008">NL3D::CVertexBuffer::serialSubset()</a>. +<p> +<div class="fragment"><pre>00267 { +00268 <a class="code" href="a04558.html#a7">uint8</a> b=0; +00269 <a class="code" href="a04558.html#a11">uint32</a> <a class="code" href="a04223.html#a576">v</a>=0; +00270 <a class="code" href="a04558.html#a15">uint</a> streamVersion; +00271 +00272 <span class="comment">// Open the node</span> +00273 <a class="code" href="a02270.html#NLMISC_1_1IStreamz2038_0">xmlPush</a> (<span class="stringliteral">"VERSION"</span>); +00274 +00275 <span class="keywordflow">if</span>(<a class="code" href="a02270.html#NLMISC_1_1IStreama0">isReading</a>()) +00276 { +00277 <a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(b); +00278 <span class="keywordflow">if</span>(b==0xFF) +00279 <a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(v); +00280 <span class="keywordflow">else</span> +00281 <a class="code" href="a04223.html#a576">v</a>=b; +00282 streamVersion=<a class="code" href="a04223.html#a576">v</a>; +00283 +00284 <span class="comment">// Exception test.</span> +00285 <span class="keywordflow">if</span>(_ThrowOnOlder && streamVersion < currentVersion) +00286 <span class="keywordflow">throw</span> EOlderStream(*<span class="keyword">this</span>); +00287 <span class="keywordflow">if</span>(_ThrowOnNewer && streamVersion > currentVersion) +00288 <span class="keywordflow">throw</span> ENewerStream(*<span class="keyword">this</span>); +00289 } +00290 <span class="keywordflow">else</span> +00291 { +00292 <a class="code" href="a04223.html#a576">v</a>= streamVersion=currentVersion; +00293 <span class="keywordflow">if</span>(<a class="code" href="a04223.html#a576">v</a>>=0xFF) +00294 { +00295 b=0xFF; +00296 <a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(b); +00297 <a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(v); +00298 } +00299 <span class="keywordflow">else</span> +00300 { +00301 b= (<a class="code" href="a04558.html#a7">uint8</a>)<a class="code" href="a04223.html#a576">v</a>; +00302 <a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(b); +00303 } +00304 } +00305 +00306 <span class="comment">// Close the node</span> +00307 <a class="code" href="a02270.html#NLMISC_1_1IStreamz2039_2">xmlPop</a> (); +00308 +00309 <span class="keywordflow">return</span> streamVersion; +00310 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1CIFilea19" doxytag="NLMISC::CIFile::setAsyncLoading" ></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::CIFile::setAsyncLoading </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">bool </td> + <td class="mdname1" valign="top" nowrap> <em>newState</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Set the async loading state (to go to sleep 5 ms after 100 Ko serialized). +<p> + +<p> +Definition at line <a class="el" href="a05708.html#l00248">248</a> of file <a class="el" href="a05708.html">file.cpp</a>. +<p> +References <a class="el" href="a05709.html#l00161">_IsAsyncLoading</a>. +<p> +Referenced by <a class="el" href="a06521.html#l00041">NL3D::CTextureFile::buildBitmapFromFile()</a>, <a class="el" href="a05457.html#l00377">NL3D::CAsyncFileManager3D::CIGLoad::run()</a>, and <a class="el" href="a05457.html#l00231">NL3D::CAsyncFileManager3D::CMeshLoad::run()</a>. +<p> +<div class="fragment"><pre>00249 { +00250 <a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_15">_IsAsyncLoading</a> = <span class="keyword">true</span>; +00251 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1CIFilea20" doxytag="NLMISC::CIFile::setCacheFileOnOpen" ></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::CIFile::setCacheFileOnOpen </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">bool </td> + <td class="mdname1" valign="top" nowrap> <em>newState</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Set the cache file on open option (default behaviour is false (file is not cached at opening). +<p> + +<p> +Definition at line <a class="el" href="a05708.html#l00242">242</a> of file <a class="el" href="a05708.html">file.cpp</a>. +<p> +References <a class="el" href="a05709.html#l00164">_CacheFileOnOpen</a>. +<p> +Referenced by <a class="el" href="a06521.html#l00041">NL3D::CTextureFile::buildBitmapFromFile()</a>, <a class="el" href="a06366.html#l00170">getSHA1()</a>, <a class="el" href="a05926.html#l00145">loadForm()</a>, <a class="el" href="a06167.html#l00293">NLMISC::CPath::loadRemappedFiles()</a>, <a class="el" href="a05457.html#l00377">NL3D::CAsyncFileManager3D::CIGLoad::run()</a>, and <a class="el" href="a05457.html#l00231">NL3D::CAsyncFileManager3D::CMeshLoad::run()</a>. +<p> +<div class="fragment"><pre>00243 { +00244 <a class="code" href="a02653.html#NLMISC_1_1CIFilez1942_11">_CacheFileOnOpen</a> = newState; +00245 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1IStreamz2040_1" doxytag="NLMISC::CIFile::setInOut" ></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::IStream::setInOut </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">bool </td> + <td class="mdname1" valign="top" nowrap> <em>inputStream</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [protected, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Change, in live, the state of the inputStream. This could be usefull in certain case. The deriver which would want to do such a thing must call this method, and implement his own behavior. In certain case, it should call <a class="el" href="a02270.html#NLMISC_1_1IStreamz2040_0">resetPtrTable()</a> if he want to reset the stream ptr info (maybe always)... +<p> +Definition at line <a class="el" href="a06461.html#l00413">413</a> of file <a class="el" href="a06461.html">stream.cpp</a>. +<p> +References <a class="el" href="a06462.html#l00884">NLMISC::IStream::_InputStream</a>. +<p> +Referenced by <a class="el" href="a05482.html#l00737">NLMISC::CBitMemStream::getSerialItem()</a>, and <a class="el" href="a05979.html#l00331">NLMISC::CMemStream::invert()</a>. +<p> +<div class="fragment"><pre>00414 { +00415 _InputStream= inputStream; +00416 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1IStreame1" doxytag="NLMISC::CIFile::setVersionException" ></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::IStream::setVersionException </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">bool </td> + <td class="mdname" nowrap> <em>throwOnOlder</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap>bool </td> + <td class="mdname" nowrap> <em>throwOnNewer</em></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"><code> [static, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Set the behavior of <a class="el" href="a02270.html">IStream</a> regarding input stream that are older/newer than the class. If throwOnOlder==true, <a class="el" href="a02270.html">IStream</a> throws a <a class="el" href="a03798.html">EOlderStream</a> when needed. If throwOnNewer==true, <a class="el" href="a02270.html">IStream</a> throws a <a class="el" href="a03797.html">ENewerStream</a> when needed.<p> +By default, the behavior is throwOnOlder=false, throwOnNewer=true. <dl compact><dt><b>See also:</b></dt><dd><a class="el" href="a02270.html#NLMISC_1_1IStreamz2035_8">serialVersion()</a> <a class="el" href="a02270.html#NLMISC_1_1IStreame0">getVersionException()</a></dd></dl> + +<p> +Definition at line <a class="el" href="a06461.html#l00071">71</a> of file <a class="el" href="a06461.html">stream.cpp</a>. +<p> +References <a class="el" href="a06461.html#l00067">NLMISC::IStream::_ThrowOnNewer</a>, and <a class="el" href="a06461.html#l00066">NLMISC::IStream::_ThrowOnOlder</a>. +<p> +<div class="fragment"><pre>00072 { +00073 _ThrowOnOlder=throwOnOlder; +00074 _ThrowOnNewer=throwOnNewer; +00075 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1IStreamz2040_2" doxytag="NLMISC::CIFile::setXMLMode" ></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::IStream::setXMLMode </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">bool </td> + <td class="mdname1" valign="top" nowrap> <em>on</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [protected, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Set the XML mode is true to enable XML mode else false +<p> +Definition at line <a class="el" href="a06461.html#l00427">427</a> of file <a class="el" href="a06461.html">stream.cpp</a>. +<p> +References <a class="el" href="a06462.html#l01443">NLMISC::IStream::_XML</a>. +<p> +Referenced by <a class="el" href="a06107.html#l00075">NLMISC::COXml::COXml()</a>, and <a class="el" href="a06107.html#l00111">NLMISC::COXml::init()</a>. +<p> +<div class="fragment"><pre>00428 { +00429 _XML = on; +00430 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1IStreamz2039_0" doxytag="NLMISC::CIFile::xmlBreakLine" ></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::IStream::xmlBreakLine </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +<a class="el" href="a02270.html#NLMISC_1_1IStreamz2039_0">xmlBreakLine()</a> insert a break line in the XML stream.<p> +<dl compact><dt><b>Returns:</b></dt><dd>true if the break line is added, return false if no node is opened.</dd></dl> + +<p> +Definition at line <a class="el" href="a06462.html#l00794">794</a> of file <a class="el" href="a06462.html">stream.h</a>. +<p> +References <a class="el" href="a06462.html#l01443">NLMISC::IStream::_XML</a>, and <a class="el" href="a06462.html#l00845">NLMISC::IStream::xmlBreakLineInternal()</a>. +<p> +<div class="fragment"><pre>00795 { +00796 <span class="comment">// XML Mode ?</span> +00797 <span class="keywordflow">if</span> (_XML) +00798 { +00799 <span class="keywordflow">return</span> <a class="code" href="a02270.html#NLMISC_1_1IStreamz2040_3">xmlBreakLineInternal</a> (); +00800 } +00801 +00802 <span class="comment">// Return ok</span> +00803 <span class="keywordflow">return</span> <span class="keyword">true</span>; +00804 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1IStreamz2040_3" doxytag="NLMISC::CIFile::xmlBreakLineInternal" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> virtual bool NLMISC::IStream::xmlBreakLineInternal </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline, protected, virtual, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +xmlBreakLine implementation +<p> + +<p> +Reimplemented in <a class="el" href="a03032.html#NLMISC_1_1COXmld18">NLMISC::COXml</a>. +<p> +Definition at line <a class="el" href="a06462.html#l00845">845</a> of file <a class="el" href="a06462.html">stream.h</a>. +<p> +Referenced by <a class="el" href="a06462.html#l00794">NLMISC::IStream::xmlBreakLine()</a>. +<p> +<div class="fragment"><pre>00845 { <span class="keywordflow">return</span> <span class="keyword">true</span>; }; +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1IStreamz2039_1" doxytag="NLMISC::CIFile::xmlComment" ></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::IStream::xmlComment </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const char * </td> + <td class="mdname1" valign="top" nowrap> <em>comment</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +<a class="el" href="a02270.html#NLMISC_1_1IStreamz2039_1">xmlComment()</a> insert a comment line in the XML stream.<p> +<dl compact><dt><b>Returns:</b></dt><dd>true if the comment is added, return false if no node is opened.</dd></dl> + +<p> +Definition at line <a class="el" href="a06462.html#l00811">811</a> of file <a class="el" href="a06462.html">stream.h</a>. +<p> +References <a class="el" href="a06462.html#l01443">NLMISC::IStream::_XML</a>, <a class="el" href="a04115.html#a118">comment()</a>, and <a class="el" href="a06462.html#l00848">NLMISC::IStream::xmlCommentInternal()</a>. +<p> +<div class="fragment"><pre>00812 { +00813 <span class="comment">// XML Mode ?</span> +00814 <span class="keywordflow">if</span> (_XML) +00815 { +00816 <span class="keywordflow">return</span> <a class="code" href="a02270.html#NLMISC_1_1IStreamz2040_4">xmlCommentInternal</a> (comment); +00817 } +00818 +00819 <span class="comment">// Return ok</span> +00820 <span class="keywordflow">return</span> <span class="keyword">true</span>; +00821 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1IStreamz2040_4" doxytag="NLMISC::CIFile::xmlCommentInternal" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> virtual bool NLMISC::IStream::xmlCommentInternal </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const char * </td> + <td class="mdname1" valign="top" nowrap> <em>comment</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline, protected, virtual, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +xmlComment implementation +<p> + +<p> +Reimplemented in <a class="el" href="a03032.html#NLMISC_1_1COXmld19">NLMISC::COXml</a>. +<p> +Definition at line <a class="el" href="a06462.html#l00848">848</a> of file <a class="el" href="a06462.html">stream.h</a>. +<p> +Referenced by <a class="el" href="a06462.html#l00811">NLMISC::IStream::xmlComment()</a>. +<p> +<div class="fragment"><pre>00848 { <span class="keywordflow">return</span> <span class="keyword">true</span>; }; +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1IStreamz2039_2" doxytag="NLMISC::CIFile::xmlPop" ></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::IStream::xmlPop </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +<a class="el" href="a02270.html#NLMISC_1_1IStreamz2039_2">xmlPop()</a> close the node.<p> +<dl compact><dt><b>Returns:</b></dt><dd>true if you can close the node, false if the node can't be closed (its header is still opened) or if there is no node to close.</dd></dl> + +<p> +Definition at line <a class="el" href="a06462.html#l00759">759</a> of file <a class="el" href="a06462.html">stream.h</a>. +<p> +References <a class="el" href="a06462.html#l01443">NLMISC::IStream::_XML</a>, and <a class="el" href="a06462.html#l00839">NLMISC::IStream::xmlPopInternal()</a>. +<p> +Referenced by <a class="el" href="a06772.html#l00159">NLLIGO::CZoneRegion::serial()</a>, <a class="el" href="a06762.html#l00105">NLLIGO::CZoneBankElement::serial()</a>, <a class="el" href="a06758.html#l00432">NL3D::CZone::serial()</a>, <a class="el" href="a06155.html#l01576">NL3D::CPatch::serial()</a>, <a class="el" href="a06116.html#l00260">NLMISC::CObjectVector< sint8, false >::serial()</a>, <a class="el" href="a06107.html#l00315">NLMISC::COXml::serial()</a>, <a class="el" href="a06107.html#l00373">NLMISC::COXml::serialBuffer()</a>, <a class="el" href="a06462.html#l00520">NLMISC::IStream::serialCheck()</a>, <a class="el" href="a06461.html#l00115">NLMISC::IStream::serialIStreamable()</a>, <a class="el" href="a06462.html#l01360">NLMISC::IStream::serialMap()</a>, <a class="el" href="a06462.html#l01271">NLMISC::IStream::serialMultimap()</a>, <a class="el" href="a06462.html#l00390">NLMISC::IStream::serialPtr()</a>, <a class="el" href="a06462.html#l00955">NLMISC::IStream::serialSTLCont()</a>, <a class="el" href="a06462.html#l00905">NLMISC::IStream::serialSTLContLen()</a>, <a class="el" href="a06462.html#l01086">NLMISC::IStream::serialSTLContPtr()</a>, <a class="el" href="a06462.html#l00992">NLMISC::IStream::serialVector()</a>, <a class="el" href="a06462.html#l01215">NLMISC::IStream::serialVectorPolyPtr()</a>, <a class="el" href="a06462.html#l01121">NLMISC::IStream::serialVectorPtr()</a>, <a class="el" href="a06461.html#l00266">NLMISC::IStream::serialVersion()</a>, and <a class="el" href="a06462.html#l00647">NLMISC::IStream::xmlSerial()</a>. +<p> +<div class="fragment"><pre>00760 { +00761 <span class="comment">// XML Mode ?</span> +00762 <span class="keywordflow">if</span> (_XML) +00763 { +00764 <span class="keywordflow">return</span> <a class="code" href="a02270.html#NLMISC_1_1IStreamz2040_5">xmlPopInternal</a> (); +00765 } +00766 +00767 <span class="comment">// Return ok</span> +00768 <span class="keywordflow">return</span> <span class="keyword">true</span>; +00769 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1IStreamz2040_5" doxytag="NLMISC::CIFile::xmlPopInternal" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> virtual bool NLMISC::IStream::xmlPopInternal </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline, protected, virtual, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +xmlPop implementation +<p> + +<p> +Reimplemented in <a class="el" href="a03032.html#NLMISC_1_1COXmld20">NLMISC::COXml</a>. +<p> +Definition at line <a class="el" href="a06462.html#l00839">839</a> of file <a class="el" href="a06462.html">stream.h</a>. +<p> +Referenced by <a class="el" href="a06462.html#l00759">NLMISC::IStream::xmlPop()</a>. +<p> +<div class="fragment"><pre>00839 { <span class="keywordflow">return</span> <span class="keyword">true</span>; }; +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1IStreamz2038_0" doxytag="NLMISC::CIFile::xmlPush" ></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::IStream::xmlPush </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const char * </td> + <td class="mdname1" valign="top" nowrap> <em>name</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a06462.html#l00701">701</a> of file <a class="el" href="a06462.html">stream.h</a>. +<p> +References <a class="el" href="a06462.html#l01443">NLMISC::IStream::_XML</a>, <a class="el" href="a05646.html#l01119">res</a>, <a class="el" href="a06462.html#l00833">NLMISC::IStream::xmlPushBeginInternal()</a>, and <a class="el" href="a06462.html#l00836">NLMISC::IStream::xmlPushEndInternal()</a>. +<p> +Referenced by <a class="el" href="a06772.html#l00159">NLLIGO::CZoneRegion::serial()</a>, <a class="el" href="a06762.html#l00105">NLLIGO::CZoneBankElement::serial()</a>, <a class="el" href="a06758.html#l00432">NL3D::CZone::serial()</a>, <a class="el" href="a06155.html#l01576">NL3D::CPatch::serial()</a>, <a class="el" href="a06116.html#l00260">NLMISC::CObjectVector< sint8, false >::serial()</a>, <a class="el" href="a06107.html#l00315">NLMISC::COXml::serial()</a>, <a class="el" href="a06107.html#l00373">NLMISC::COXml::serialBuffer()</a>, <a class="el" href="a06462.html#l00520">NLMISC::IStream::serialCheck()</a>, <a class="el" href="a06462.html#l01360">NLMISC::IStream::serialMap()</a>, <a class="el" href="a06462.html#l01271">NLMISC::IStream::serialMultimap()</a>, <a class="el" href="a06462.html#l00905">NLMISC::IStream::serialSTLContLen()</a>, <a class="el" href="a06462.html#l00992">NLMISC::IStream::serialVector()</a>, <a class="el" href="a06461.html#l00266">NLMISC::IStream::serialVersion()</a>, and <a class="el" href="a06462.html#l00647">NLMISC::IStream::xmlSerial()</a>. +<p> +<div class="fragment"><pre>00702 { +00703 <span class="comment">// XML Mode ?</span> +00704 <span class="keywordflow">if</span> (_XML) +00705 { +00706 <span class="comment">// Open the header</span> +00707 <span class="keywordtype">bool</span> <a class="code" href="a04223.html#a643">res</a>=<a class="code" href="a02270.html#NLMISC_1_1IStreamz2040_6">xmlPushBeginInternal</a> (name); +00708 <span class="keywordflow">if</span> (<a class="code" href="a04223.html#a643">res</a>) +00709 <span class="comment">// close the header</span> +00710 <a class="code" href="a02270.html#NLMISC_1_1IStreamz2040_7">xmlPushEndInternal</a> (); +00711 <span class="comment">// Return the result</span> +00712 <span class="keywordflow">return</span> <a class="code" href="a04223.html#a643">res</a>; +00713 } +00714 +00715 <span class="comment">// Return ok</span> +00716 <span class="keywordflow">return</span> <span class="keyword">true</span>; +00717 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1IStreamz2039_3" doxytag="NLMISC::CIFile::xmlPushBegin" ></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::IStream::xmlPushBegin </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const char * </td> + <td class="mdname1" valign="top" nowrap> <em>name</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +<a class="el" href="a02270.html#NLMISC_1_1IStreamz2039_0">xmlBreakLine()</a> insert a break line in the XML stream.<p> +<dl compact><dt><b>Returns:</b></dt><dd>true if the break line is added, return false if no node is opened.</dd></dl> + +<p> +Definition at line <a class="el" href="a06462.html#l00725">725</a> of file <a class="el" href="a06462.html">stream.h</a>. +<p> +References <a class="el" href="a06462.html#l01443">NLMISC::IStream::_XML</a>, and <a class="el" href="a06462.html#l00833">NLMISC::IStream::xmlPushBeginInternal()</a>. +<p> +Referenced by <a class="el" href="a06116.html#l00260">NLMISC::CObjectVector< sint8, false >::serial()</a>, <a class="el" href="a06461.html#l00115">NLMISC::IStream::serialIStreamable()</a>, <a class="el" href="a06462.html#l01360">NLMISC::IStream::serialMap()</a>, <a class="el" href="a06462.html#l01271">NLMISC::IStream::serialMultimap()</a>, <a class="el" href="a06462.html#l00390">NLMISC::IStream::serialPtr()</a>, <a class="el" href="a06462.html#l00955">NLMISC::IStream::serialSTLCont()</a>, <a class="el" href="a06462.html#l01086">NLMISC::IStream::serialSTLContPtr()</a>, <a class="el" href="a06462.html#l00992">NLMISC::IStream::serialVector()</a>, <a class="el" href="a06462.html#l01215">NLMISC::IStream::serialVectorPolyPtr()</a>, and <a class="el" href="a06462.html#l01121">NLMISC::IStream::serialVectorPtr()</a>. +<p> +<div class="fragment"><pre>00726 { +00727 <span class="comment">// XML Mode ?</span> +00728 <span class="keywordflow">if</span> (_XML) +00729 { +00730 <span class="keywordflow">return</span> <a class="code" href="a02270.html#NLMISC_1_1IStreamz2040_6">xmlPushBeginInternal</a> (name); +00731 } +00732 +00733 <span class="comment">// Return ok</span> +00734 <span class="keywordflow">return</span> <span class="keyword">true</span>; +00735 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1IStreamz2040_6" doxytag="NLMISC::CIFile::xmlPushBeginInternal" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> virtual bool NLMISC::IStream::xmlPushBeginInternal </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const char * </td> + <td class="mdname1" valign="top" nowrap> <em>name</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline, protected, virtual, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +xmlPushBegin implementation +<p> + +<p> +Reimplemented in <a class="el" href="a03032.html#NLMISC_1_1COXmld21">NLMISC::COXml</a>. +<p> +Definition at line <a class="el" href="a06462.html#l00833">833</a> of file <a class="el" href="a06462.html">stream.h</a>. +<p> +Referenced by <a class="el" href="a06462.html#l00701">NLMISC::IStream::xmlPush()</a>, and <a class="el" href="a06462.html#l00725">NLMISC::IStream::xmlPushBegin()</a>. +<p> +<div class="fragment"><pre>00833 { <span class="keywordflow">return</span> <span class="keyword">true</span>; }; +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1IStreamz2039_4" doxytag="NLMISC::CIFile::xmlPushEnd" ></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::IStream::xmlPushEnd </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +<a class="el" href="a02270.html#NLMISC_1_1IStreamz2039_4">xmlPushEnd()</a> close the node header.<p> +<dl compact><dt><b>Returns:</b></dt><dd>true if you can close the node header, false if no node header have been opened with <a class="el" href="a02270.html#NLMISC_1_1IStreamz2039_3">xmlPushBegin()</a>.</dd></dl> + +<p> +Definition at line <a class="el" href="a06462.html#l00742">742</a> of file <a class="el" href="a06462.html">stream.h</a>. +<p> +References <a class="el" href="a06462.html#l01443">NLMISC::IStream::_XML</a>, and <a class="el" href="a06462.html#l00836">NLMISC::IStream::xmlPushEndInternal()</a>. +<p> +Referenced by <a class="el" href="a06116.html#l00260">NLMISC::CObjectVector< sint8, false >::serial()</a>, <a class="el" href="a06461.html#l00115">NLMISC::IStream::serialIStreamable()</a>, <a class="el" href="a06462.html#l01360">NLMISC::IStream::serialMap()</a>, <a class="el" href="a06462.html#l01271">NLMISC::IStream::serialMultimap()</a>, <a class="el" href="a06462.html#l00390">NLMISC::IStream::serialPtr()</a>, <a class="el" href="a06462.html#l00955">NLMISC::IStream::serialSTLCont()</a>, <a class="el" href="a06462.html#l01086">NLMISC::IStream::serialSTLContPtr()</a>, <a class="el" href="a06462.html#l00992">NLMISC::IStream::serialVector()</a>, <a class="el" href="a06462.html#l01215">NLMISC::IStream::serialVectorPolyPtr()</a>, and <a class="el" href="a06462.html#l01121">NLMISC::IStream::serialVectorPtr()</a>. +<p> +<div class="fragment"><pre>00743 { +00744 <span class="comment">// XML Mode ?</span> +00745 <span class="keywordflow">if</span> (_XML) +00746 { +00747 <span class="keywordflow">return</span> <a class="code" href="a02270.html#NLMISC_1_1IStreamz2040_7">xmlPushEndInternal</a> (); +00748 } +00749 +00750 <span class="comment">// Return ok</span> +00751 <span class="keywordflow">return</span> <span class="keyword">true</span>; +00752 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1IStreamz2040_7" doxytag="NLMISC::CIFile::xmlPushEndInternal" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> virtual bool NLMISC::IStream::xmlPushEndInternal </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline, protected, virtual, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +xmlPushEnd implementation +<p> + +<p> +Reimplemented in <a class="el" href="a03032.html#NLMISC_1_1COXmld22">NLMISC::COXml</a>. +<p> +Definition at line <a class="el" href="a06462.html#l00836">836</a> of file <a class="el" href="a06462.html">stream.h</a>. +<p> +Referenced by <a class="el" href="a06462.html#l00701">NLMISC::IStream::xmlPush()</a>, and <a class="el" href="a06462.html#l00742">NLMISC::IStream::xmlPushEnd()</a>. +<p> +<div class="fragment"><pre>00836 { <span class="keywordflow">return</span> <span class="keyword">true</span>; }; +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1IStreamz2037_0" doxytag="NLMISC::CIFile::xmlSerial" ></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" colspan="4"> +template<class T> </td> + </tr> + <tr> + <td class="md" nowrap valign="top"> void NLMISC::IStream::xmlSerial </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">T & </td> + <td class="mdname" nowrap> <em>value0</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap>T & </td> + <td class="mdname" nowrap> <em>value1</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap>T & </td> + <td class="mdname" nowrap> <em>value2</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap>T & </td> + <td class="mdname" nowrap> <em>value3</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap>const char * </td> + <td class="mdname" nowrap> <em>nodeName</em></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"><code> [inline, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a06462.html#l00683">683</a> of file <a class="el" href="a06462.html">stream.h</a>. +<p> +References <a class="el" href="a06462.html#l00232">NLMISC::IStream::serial()</a>, <a class="el" href="a06462.html#l00759">NLMISC::IStream::xmlPop()</a>, and <a class="el" href="a06462.html#l00701">NLMISC::IStream::xmlPush()</a>. +<p> +<div class="fragment"><pre>00684 { +00685 <span class="comment">// Open the node</span> +00686 <a class="code" href="a02270.html#NLMISC_1_1IStreamz2038_0">xmlPush</a> (nodeName); +00687 +00688 <span class="comment">// Serial the values</span> +00689 <a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a> (value0, value1, value2, value3); +00690 +00691 <span class="comment">// Close the node</span> +00692 <a class="code" href="a02270.html#NLMISC_1_1IStreamz2039_2">xmlPop</a> (); +00693 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1IStreamz2037_1" doxytag="NLMISC::CIFile::xmlSerial" ></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" colspan="4"> +template<class T> </td> + </tr> + <tr> + <td class="md" nowrap valign="top"> void NLMISC::IStream::xmlSerial </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">T & </td> + <td class="mdname" nowrap> <em>value0</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap>T & </td> + <td class="mdname" nowrap> <em>value1</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap>T & </td> + <td class="mdname" nowrap> <em>value2</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap>const char * </td> + <td class="mdname" nowrap> <em>nodeName</em></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"><code> [inline, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a06462.html#l00671">671</a> of file <a class="el" href="a06462.html">stream.h</a>. +<p> +References <a class="el" href="a06462.html#l00232">NLMISC::IStream::serial()</a>, <a class="el" href="a06462.html#l00759">NLMISC::IStream::xmlPop()</a>, and <a class="el" href="a06462.html#l00701">NLMISC::IStream::xmlPush()</a>. +<p> +<div class="fragment"><pre>00672 { +00673 <span class="comment">// Open the node</span> +00674 <a class="code" href="a02270.html#NLMISC_1_1IStreamz2038_0">xmlPush</a> (nodeName); +00675 +00676 <span class="comment">// Serial the values</span> +00677 <a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a> (value0, value1, value2); +00678 +00679 <span class="comment">// Close the node</span> +00680 <a class="code" href="a02270.html#NLMISC_1_1IStreamz2039_2">xmlPop</a> (); +00681 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1IStreamz2037_2" doxytag="NLMISC::CIFile::xmlSerial" ></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" colspan="4"> +template<class T> </td> + </tr> + <tr> + <td class="md" nowrap valign="top"> void NLMISC::IStream::xmlSerial </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">T & </td> + <td class="mdname" nowrap> <em>value0</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap>T & </td> + <td class="mdname" nowrap> <em>value1</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap>const char * </td> + <td class="mdname" nowrap> <em>nodeName</em></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"><code> [inline, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a06462.html#l00659">659</a> of file <a class="el" href="a06462.html">stream.h</a>. +<p> +References <a class="el" href="a06462.html#l00232">NLMISC::IStream::serial()</a>, <a class="el" href="a06462.html#l00759">NLMISC::IStream::xmlPop()</a>, and <a class="el" href="a06462.html#l00701">NLMISC::IStream::xmlPush()</a>. +<p> +<div class="fragment"><pre>00660 { +00661 <span class="comment">// Open the node</span> +00662 <a class="code" href="a02270.html#NLMISC_1_1IStreamz2038_0">xmlPush</a> (nodeName); +00663 +00664 <span class="comment">// Serial the values</span> +00665 <a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a> (value0, value1); +00666 +00667 <span class="comment">// Close the node</span> +00668 <a class="code" href="a02270.html#NLMISC_1_1IStreamz2039_2">xmlPop</a> (); +00669 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1IStreamz2037_3" doxytag="NLMISC::CIFile::xmlSerial" ></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" colspan="4"> +template<class T> </td> + </tr> + <tr> + <td class="md" nowrap valign="top"> void NLMISC::IStream::xmlSerial </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">T & </td> + <td class="mdname" nowrap> <em>value0</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap>const char * </td> + <td class="mdname" nowrap> <em>nodeName</em></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"><code> [inline, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +<a class="el" href="a02270.html#NLMISC_1_1IStreamz2037_3">xmlSerial()</a> serial a values into a node. +<p> +Definition at line <a class="el" href="a06462.html#l00647">647</a> of file <a class="el" href="a06462.html">stream.h</a>. +<p> +References <a class="el" href="a06462.html#l00232">NLMISC::IStream::serial()</a>, <a class="el" href="a06462.html#l00759">NLMISC::IStream::xmlPop()</a>, and <a class="el" href="a06462.html#l00701">NLMISC::IStream::xmlPush()</a>. +<p> +Referenced by <a class="el" href="a06772.html#l00159">NLLIGO::CZoneRegion::serial()</a>, <a class="el" href="a06772.html#l00101">NLLIGO::CZoneRegion::SZoneUnit2::serial()</a>, <a class="el" href="a06772.html#l00057">NLLIGO::CZoneRegion::SZoneUnit::serial()</a>, <a class="el" href="a06758.html#l00432">NL3D::CZone::serial()</a>, <a class="el" href="a06758.html#l00421">NL3D::CPatchInfo::CBindInfo::serial()</a>, <a class="el" href="a06758.html#l00410">NL3D::CZone::CPatchConnect::serial()</a>, <a class="el" href="a06758.html#l00402">NL3D::CBorderVertex::serial()</a>, <a class="el" href="a06540.html#l00082">NL3D::CTileElement::serial()</a>, <a class="el" href="a06539.html#l00080">NL3D::CTileColorOldPatchVersion6::serial()</a>, <a class="el" href="a06539.html#l00056">NL3D::CTileColor::serial()</a>, and <a class="el" href="a06155.html#l01576">NL3D::CPatch::serial()</a>. +<p> +<div class="fragment"><pre>00648 { +00649 <span class="comment">// Open the node</span> +00650 <a class="code" href="a02270.html#NLMISC_1_1IStreamz2038_0">xmlPush</a> (nodeName); +00651 +00652 <span class="comment">// Serial the value</span> +00653 <a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a> (value0); +00654 +00655 <span class="comment">// Close the node</span> +00656 <a class="code" href="a02270.html#NLMISC_1_1IStreamz2039_2">xmlPop</a> (); +00657 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1IStreamz2039_5" doxytag="NLMISC::CIFile::xmlSetAttrib" ></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::IStream::xmlSetAttrib </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const char * </td> + <td class="mdname1" valign="top" nowrap> <em>name</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +<a class="el" href="a02270.html#NLMISC_1_1IStreamz2039_5">xmlSetAttrib()</a> set the name of the next node header attribute serialised.<p> +is the name of the node header attribute serialised. <dl compact><dt><b>Returns:</b></dt><dd>true if the attribute name have been set, false if the node header is not open (the call is not between xmlPushBegin and xmlPushEnd)</dd></dl> + +<p> +Definition at line <a class="el" href="a06462.html#l00777">777</a> of file <a class="el" href="a06462.html">stream.h</a>. +<p> +References <a class="el" href="a06462.html#l01443">NLMISC::IStream::_XML</a>, and <a class="el" href="a06462.html#l00842">NLMISC::IStream::xmlSetAttribInternal()</a>. +<p> +Referenced by <a class="el" href="a06116.html#l00260">NLMISC::CObjectVector< sint8, false >::serial()</a>, <a class="el" href="a06461.html#l00115">NLMISC::IStream::serialIStreamable()</a>, <a class="el" href="a06462.html#l01360">NLMISC::IStream::serialMap()</a>, <a class="el" href="a06462.html#l01271">NLMISC::IStream::serialMultimap()</a>, <a class="el" href="a06462.html#l00390">NLMISC::IStream::serialPtr()</a>, <a class="el" href="a06462.html#l00955">NLMISC::IStream::serialSTLCont()</a>, <a class="el" href="a06462.html#l01086">NLMISC::IStream::serialSTLContPtr()</a>, <a class="el" href="a06462.html#l00992">NLMISC::IStream::serialVector()</a>, <a class="el" href="a06462.html#l01215">NLMISC::IStream::serialVectorPolyPtr()</a>, and <a class="el" href="a06462.html#l01121">NLMISC::IStream::serialVectorPtr()</a>. +<p> +<div class="fragment"><pre>00778 { +00779 <span class="comment">// XML Mode ?</span> +00780 <span class="keywordflow">if</span> (_XML) +00781 { +00782 <span class="keywordflow">return</span> <a class="code" href="a02270.html#NLMISC_1_1IStreamz2040_8">xmlSetAttribInternal</a> (name); +00783 } +00784 +00785 <span class="comment">// Return ok</span> +00786 <span class="keywordflow">return</span> <span class="keyword">true</span>; +00787 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1IStreamz2040_8" doxytag="NLMISC::CIFile::xmlSetAttribInternal" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> virtual bool NLMISC::IStream::xmlSetAttribInternal </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const char * </td> + <td class="mdname1" valign="top" nowrap> <em>name</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline, protected, virtual, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +xmlBreakLine implementation +<p> + +<p> +Reimplemented in <a class="el" href="a03032.html#NLMISC_1_1COXmld23">NLMISC::COXml</a>. +<p> +Definition at line <a class="el" href="a06462.html#l00842">842</a> of file <a class="el" href="a06462.html">stream.h</a>. +<p> +Referenced by <a class="el" href="a06462.html#l00777">NLMISC::IStream::xmlSetAttrib()</a>. +<p> +<div class="fragment"><pre>00842 { <span class="keywordflow">return</span> <span class="keyword">true</span>; }; +</pre></div> </td> + </tr> +</table> +<hr><h2>Field Documentation</h2> +<a class="anchor" name="NLMISC_1_1CIFilez1942_7" doxytag="NLMISC::CIFile::_AllowBNPCacheFileOnOpen" ></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="a02653.html#NLMISC_1_1CIFilez1942_7">NLMISC::CIFile::_AllowBNPCacheFileOnOpen</a><code> [private]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Get the last 40 files opened. The files can be in a big file. +<p> + +<p> +Definition at line <a class="el" href="a05709.html#l00165">165</a> of file <a class="el" href="a05709.html">file.h</a>. +<p> +Referenced by <a class="el" href="a05708.html#l00450">allowBNPCacheFileOnOpen()</a>, <a class="el" href="a05708.html#l00049">CIFile()</a>, and <a class="el" href="a05708.html#l00135">open()</a>. </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1CIFilez1942_8" doxytag="NLMISC::CIFile::_AlwaysOpened" ></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="a02653.html#NLMISC_1_1CIFilez1942_8">NLMISC::CIFile::_AlwaysOpened</a><code> [private]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Get the last 40 files opened. The files can be in a big file. +<p> + +<p> +Definition at line <a class="el" href="a05709.html#l00171">171</a> of file <a class="el" href="a05709.html">file.h</a>. +<p> +Referenced by <a class="el" href="a05708.html#l00255">close()</a>, and <a class="el" href="a05708.html#l00135">open()</a>. </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1CIFilez1942_9" doxytag="NLMISC::CIFile::_BigFileOffset" ></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> <a class="el" href="a02653.html#NLMISC_1_1CIFilez1942_9">NLMISC::CIFile::_BigFileOffset</a><code> [private]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Get the last 40 files opened. The files can be in a big file. +<p> + +<p> +Definition at line <a class="el" href="a05709.html#l00173">173</a> of file <a class="el" href="a05709.html">file.h</a>. +<p> +Referenced by <a class="el" href="a05708.html#l00049">CIFile()</a>, and <a class="el" href="a05708.html#l00135">open()</a>. </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1CIFilez1942_10" doxytag="NLMISC::CIFile::_Cache" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a7">uint8</a>* <a class="el" href="a02653.html#NLMISC_1_1CIFilez1942_10">NLMISC::CIFile::_Cache</a><code> [private]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Get the last 40 files opened. The files can be in a big file. +<p> + +<p> +Definition at line <a class="el" href="a05709.html#l00166">166</a> of file <a class="el" href="a05709.html">file.h</a>. </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1CIFilez1942_11" doxytag="NLMISC::CIFile::_CacheFileOnOpen" ></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="a02653.html#NLMISC_1_1CIFilez1942_11">NLMISC::CIFile::_CacheFileOnOpen</a><code> [private]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Get the last 40 files opened. The files can be in a big file. +<p> + +<p> +Definition at line <a class="el" href="a05709.html#l00164">164</a> of file <a class="el" href="a05709.html">file.h</a>. +<p> +Referenced by <a class="el" href="a05708.html#l00049">CIFile()</a>, <a class="el" href="a05708.html#l00255">close()</a>, <a class="el" href="a05708.html#l00291">flush()</a>, <a class="el" href="a05708.html#l00135">open()</a>, and <a class="el" href="a05708.html#l00242">setCacheFileOnOpen()</a>. </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1CIFilez1942_12" doxytag="NLMISC::CIFile::_F" ></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"> FILE* <a class="el" href="a02653.html#NLMISC_1_1CIFilez1942_12">NLMISC::CIFile::_F</a><code> [private]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Get the last 40 files opened. The files can be in a big file. +<p> + +<p> +Definition at line <a class="el" href="a05709.html#l00147">147</a> of file <a class="el" href="a05709.html">file.h</a>. </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1CIFilez1942_13" doxytag="NLMISC::CIFile::_FileName" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> std::string <a class="el" href="a02653.html#NLMISC_1_1CIFilez1942_13">NLMISC::CIFile::_FileName</a><code> [private]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Get the last 40 files opened. The files can be in a big file. +<p> + +<p> +Definition at line <a class="el" href="a05709.html#l00148">148</a> of file <a class="el" href="a05709.html">file.h</a>. </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1CIFilez1942_18" doxytag="NLMISC::CIFile::_FileOpened" ></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> <a class="el" href="a02653.html#NLMISC_1_1CIFilez1942_18">NLMISC::CIFile::_FileOpened</a> = 0<code> [static, private]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Get the last 40 files opened. The files can be in a big file. +<p> + +<p> +Definition at line <a class="el" href="a05708.html#l00044">44</a> of file <a class="el" href="a05708.html">file.cpp</a>. +<p> +Referenced by <a class="el" href="a05709.html#l00129">getNumFileOpen()</a>, and <a class="el" href="a05708.html#l00135">open()</a>. </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1CIFilez1942_19" doxytag="NLMISC::CIFile::_FileRead" ></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> <a class="el" href="a02653.html#NLMISC_1_1CIFilez1942_19">NLMISC::CIFile::_FileRead</a> = 0<code> [static, private]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Get the last 40 files opened. The files can be in a big file. +<p> + +<p> +Definition at line <a class="el" href="a05708.html#l00045">45</a> of file <a class="el" href="a05708.html">file.cpp</a>. +<p> +Referenced by <a class="el" href="a05709.html#l00132">getNumFileRead()</a>, and <a class="el" href="a05708.html#l00085">loadIntoCache()</a>. </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1CIFilez1942_14" doxytag="NLMISC::CIFile::_FileSize" ></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> <a class="el" href="a02653.html#NLMISC_1_1CIFilez1942_14">NLMISC::CIFile::_FileSize</a><code> [private]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Get the last 40 files opened. The files can be in a big file. +<p> + +<p> +Definition at line <a class="el" href="a05709.html#l00168">168</a> of file <a class="el" href="a05709.html">file.h</a>. +<p> +Referenced by <a class="el" href="a05708.html#l00049">CIFile()</a>, <a class="el" href="a05708.html#l00349">eof()</a>, <a class="el" href="a05709.html#l00119">getFileSize()</a>, <a class="el" href="a05708.html#l00085">loadIntoCache()</a>, and <a class="el" href="a05708.html#l00135">open()</a>. </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1CIFilez1942_15" doxytag="NLMISC::CIFile::_IsAsyncLoading" ></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="a02653.html#NLMISC_1_1CIFilez1942_15">NLMISC::CIFile::_IsAsyncLoading</a><code> [private]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Get the last 40 files opened. The files can be in a big file. +<p> + +<p> +Definition at line <a class="el" href="a05709.html#l00161">161</a> of file <a class="el" href="a05709.html">file.h</a>. +<p> +Referenced by <a class="el" href="a05708.html#l00049">CIFile()</a>, <a class="el" href="a05708.html#l00085">loadIntoCache()</a>, and <a class="el" href="a05708.html#l00248">setAsyncLoading()</a>. </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1CIFilez1942_16" doxytag="NLMISC::CIFile::_IsInBigFile" ></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="a02653.html#NLMISC_1_1CIFilez1942_16">NLMISC::CIFile::_IsInBigFile</a><code> [private]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Get the last 40 files opened. The files can be in a big file. +<p> + +<p> +Definition at line <a class="el" href="a05709.html#l00172">172</a> of file <a class="el" href="a05709.html">file.h</a>. +<p> +Referenced by <a class="el" href="a05708.html#l00049">CIFile()</a>, <a class="el" href="a05708.html#l00255">close()</a>, and <a class="el" href="a05708.html#l00135">open()</a>. </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1CIFilez1942_20" doxytag="NLMISC::CIFile::_NbBytesLoaded" ></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> <a class="el" href="a02653.html#NLMISC_1_1CIFilez1942_20">NLMISC::CIFile::_NbBytesLoaded</a> = 0<code> [static, private]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Get the last 40 files opened. The files can be in a big file. +<p> + +<p> +Definition at line <a class="el" href="a05708.html#l00041">41</a> of file <a class="el" href="a05708.html">file.cpp</a>. +<p> +Referenced by <a class="el" href="a05708.html#l00085">loadIntoCache()</a>. </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1CIFilez1942_21" doxytag="NLMISC::CIFile::_NbBytesSerialized" ></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> <a class="el" href="a02653.html#NLMISC_1_1CIFilez1942_21">NLMISC::CIFile::_NbBytesSerialized</a> = 0<code> [static, private]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Get the last 40 files opened. The files can be in a big file. +<p> + +<p> +Definition at line <a class="el" href="a05708.html#l00040">40</a> of file <a class="el" href="a05708.html">file.cpp</a>. </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1CIFilez1942_22" doxytag="NLMISC::CIFile::_OpenedFiles" ></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"> CSynchronized< std::list< std::string > > <a class="el" href="a02653.html#NLMISC_1_1CIFilez1942_22">NLMISC::CIFile::_OpenedFiles</a> = CSynchronized<std::list<std::string> >("")<code> [static, private]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Get the last 40 files opened. The files can be in a big file. +<p> + +<p> +Definition at line <a class="el" href="a05708.html#l00046">46</a> of file <a class="el" href="a05708.html">file.cpp</a>. +<p> +Referenced by <a class="el" href="a05708.html#l00457">dump()</a>, and <a class="el" href="a05708.html#l00135">open()</a>. </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1CIFilez1942_23" doxytag="NLMISC::CIFile::_ReadFromFile" ></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> <a class="el" href="a02653.html#NLMISC_1_1CIFilez1942_23">NLMISC::CIFile::_ReadFromFile</a> = 0<code> [static, private]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Get the last 40 files opened. The files can be in a big file. +<p> + +<p> +Definition at line <a class="el" href="a05708.html#l00042">42</a> of file <a class="el" href="a05708.html">file.cpp</a>. +<p> +Referenced by <a class="el" href="a05709.html#l00135">getReadFromFile()</a>, and <a class="el" href="a05708.html#l00085">loadIntoCache()</a>. </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1CIFilez1942_24" doxytag="NLMISC::CIFile::_ReadingFromFile" ></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> <a class="el" href="a02653.html#NLMISC_1_1CIFilez1942_24">NLMISC::CIFile::_ReadingFromFile</a> = 0<code> [static, private]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Get the last 40 files opened. The files can be in a big file. +<p> + +<p> +Definition at line <a class="el" href="a05708.html#l00043">43</a> of file <a class="el" href="a05708.html">file.cpp</a>. +<p> +Referenced by <a class="el" href="a05709.html#l00138">getReadingFromFile()</a>, and <a class="el" href="a05708.html#l00085">loadIntoCache()</a>. </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1CIFilez1942_17" doxytag="NLMISC::CIFile::_ReadPos" ></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#a10">sint32</a> <a class="el" href="a02653.html#NLMISC_1_1CIFilez1942_17">NLMISC::CIFile::_ReadPos</a><code> [private]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Get the last 40 files opened. The files can be in a big file. +<p> + +<p> +Definition at line <a class="el" href="a05709.html#l00167">167</a> of file <a class="el" href="a05709.html">file.h</a>. +<p> +Referenced by <a class="el" href="a05708.html#l00049">CIFile()</a>, <a class="el" href="a05708.html#l00349">eof()</a>, and <a class="el" href="a05708.html#l00135">open()</a>. </td> + </tr> +</table> +<hr>The documentation for this class was generated from the following files:<ul> +<li><a class="el" href="a05709.html">file.h</a><li><a class="el" href="a05708.html">file.cpp</a></ul> +<hr size="1"><address style="align: right;"><small>Generated on Tue Mar 16 13:19:39 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> |