diff options
Diffstat (limited to 'docs/doxygen/nel/a02224.html')
-rw-r--r-- | docs/doxygen/nel/a02224.html | 248 |
1 files changed, 248 insertions, 0 deletions
diff --git a/docs/doxygen/nel/a02224.html b/docs/doxygen/nel/a02224.html new file mode 100644 index 00000000..9a4b6c53 --- /dev/null +++ b/docs/doxygen/nel/a02224.html @@ -0,0 +1,248 @@ +<!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::CAsyncFileManager::CMultipleFileLoad 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::CAsyncFileManager::CMultipleFileLoad Class Reference</h1><p>Inheritance diagram for NLMISC::CAsyncFileManager::CMultipleFileLoad: +<p><center><img src="a02224.png" usemap="#NLMISC::CAsyncFileManager::CMultipleFileLoad_map" border="0" alt=""></center> +<map name="NLMISC::CAsyncFileManager::CMultipleFileLoad_map"> +<area href="a02187.html" alt="NLMISC::IRunnable" shape="rect" coords="0,0,290,24"> +</map> +<table border=0 cellpadding=0 cellspacing=0> +<tr><td></td></tr> +<tr><td colspan=2><br><h2>Public Member Functions</h2></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top> </td><td class="memItemRight" valign=bottom><a class="el" href="a02224.html#NLMISC_1_1CAsyncFileManager_1_1CMultipleFileLoada0">CMultipleFileLoad</a> (const std::vector< std::string > &vFileNames, const std::vector< <a class="el" href="a04558.html#a7">uint8</a> ** > &vPtrs)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02224.html#NLMISC_1_1CAsyncFileManager_1_1CMultipleFileLoada1">getName</a> (std::string &result) const </td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02224.html#NLMISC_1_1CAsyncFileManager_1_1CMultipleFileLoada2">run</a> (void)</td></tr> + +<tr><td colspan=2><br><h2>Private Attributes</h2></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>std::vector< std::string > </td><td class="memItemRight" valign=bottom><a class="el" href="a02224.html#NLMISC_1_1CAsyncFileManager_1_1CMultipleFileLoadr0">_FileNames</a></td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>std::vector< <a class="el" href="a04558.html#a7">uint8</a> ** > </td><td class="memItemRight" valign=bottom><a class="el" href="a02224.html#NLMISC_1_1CAsyncFileManager_1_1CMultipleFileLoadr1">_Ptrs</a></td></tr> + +</table> +<hr><h2>Constructor & Destructor Documentation</h2> +<a class="anchor" name="NLMISC_1_1CAsyncFileManager_1_1CMultipleFileLoada0" doxytag="NLMISC::CAsyncFileManager::CMultipleFileLoad::CMultipleFileLoad" ></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::CAsyncFileManager::CMultipleFileLoad::CMultipleFileLoad </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const std::vector< std::string > & </td> + <td class="mdname" nowrap> <em>vFileNames</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap>const std::vector< <a class="el" href="a04558.html#a7">uint8</a> ** > & </td> + <td class="mdname" nowrap> <em>vPtrs</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="a05455.html#l00241">241</a> of file <a class="el" href="a05455.html">async_file_manager.cpp</a>. +<p> +References <a class="el" href="a05456.html#l00102">_Ptrs</a>. +<p> +<div class="fragment"><pre>00243 { +00244 <a class="code" href="a02224.html#NLMISC_1_1CAsyncFileManager_1_1CMultipleFileLoadr0">_FileNames</a> = vFileNames; +00245 <a class="code" href="a02224.html#NLMISC_1_1CAsyncFileManager_1_1CMultipleFileLoadr1">_Ptrs</a> = vPtrs; +00246 } +</pre></div> </td> + </tr> +</table> +<hr><h2>Member Function Documentation</h2> +<a class="anchor" name="NLMISC_1_1CAsyncFileManager_1_1CMultipleFileLoada1" doxytag="NLMISC::CAsyncFileManager::CMultipleFileLoad::getName" ></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::CAsyncFileManager::CMultipleFileLoad::getName </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">std::string & </td> + <td class="mdname1" valign="top" nowrap> <em>result</em> </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> + +<p> +Reimplemented from <a class="el" href="a02187.html#NLMISC_1_1IRunnablePosa0">NLMISC::IRunnable</a>. +<p> +Definition at line <a class="el" href="a05455.html#l00278">278</a> of file <a class="el" href="a05455.html">async_file_manager.cpp</a>. +<p> +References <a class="el" href="a05981.html#l00105">uint</a>. +<p> +<div class="fragment"><pre>00279 { +00280 result = <span class="stringliteral">"MultipleFileLoad ("</span>; +00281 <a class="code" href="a04558.html#a15">uint</a> i; +00282 <span class="keywordflow">for</span> (i=0; i<<a class="code" href="a02224.html#NLMISC_1_1CAsyncFileManager_1_1CMultipleFileLoadr0">_FileNames</a>.size (); i++) +00283 { +00284 <span class="keywordflow">if</span> (i) +00285 result += <span class="stringliteral">", "</span>; +00286 result += <a class="code" href="a02224.html#NLMISC_1_1CAsyncFileManager_1_1CMultipleFileLoadr0">_FileNames</a>[i]; +00287 } +00288 result += <span class="stringliteral">")"</span>; +00289 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1CAsyncFileManager_1_1CMultipleFileLoada2" doxytag="NLMISC::CAsyncFileManager::CMultipleFileLoad::run" ></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::CAsyncFileManager::CMultipleFileLoad::run </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">void </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Implements <a class="el" href="a02187.html#NLMISC_1_1IRunnablePosa1">NLMISC::IRunnable</a>. +<p> +Definition at line <a class="el" href="a05455.html#l00249">249</a> of file <a class="el" href="a05455.html">async_file_manager.cpp</a>. +<p> +References <a class="el" href="a05456.html#l00102">_Ptrs</a>, <a class="el" href="a05622.html#l00135">nlwarning</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>00250 { +00251 <span class="keywordflow">for</span> (<a class="code" href="a04558.html#a11">uint32</a> i = 0; i < <a class="code" href="a02224.html#NLMISC_1_1CAsyncFileManager_1_1CMultipleFileLoadr0">_FileNames</a>.size(); ++i) +00252 { +00253 FILE *f = fopen (_FileNames[i].c_str(), <span class="stringliteral">"rb"</span>); +00254 <span class="keywordflow">if</span> (f != NULL) +00255 { +00256 <a class="code" href="a04558.html#a7">uint8</a> *ptr; +00257 <span class="keywordtype">long</span> filesize=CFile::getFileSize (f); +00258 <span class="comment">//fseek (f, 0, SEEK_END);</span> +00259 <span class="comment">//long filesize = ftell (f);</span> +00260 <span class="comment">//nlSleep(5);</span> +00261 <span class="comment">//fseek (f, 0, SEEK_SET);</span> +00262 ptr = <span class="keyword">new</span> <a class="code" href="a04558.html#a7">uint8</a>[filesize]; +00263 fread (ptr, filesize, 1, f); +00264 fclose (f); +00265 +00266 *<a class="code" href="a02224.html#NLMISC_1_1CAsyncFileManager_1_1CMultipleFileLoadr1">_Ptrs</a>[i] = ptr; +00267 } +00268 <span class="keywordflow">else</span> +00269 { +00270 <a class="code" href="a04199.html#a2">nlwarning</a> (<span class="stringliteral">"AFM: Couldn't load '%s'"</span>, _FileNames[i].c_str()); +00271 *<a class="code" href="a02224.html#NLMISC_1_1CAsyncFileManager_1_1CMultipleFileLoadr1">_Ptrs</a>[i] = (<a class="code" href="a04558.html#a7">uint8</a>*)-1; +00272 } +00273 } +00274 +00275 } +</pre></div> </td> + </tr> +</table> +<hr><h2>Field Documentation</h2> +<a class="anchor" name="NLMISC_1_1CAsyncFileManager_1_1CMultipleFileLoadr0" doxytag="NLMISC::CAsyncFileManager::CMultipleFileLoad::_FileNames" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> std::vector<std::string> <a class="el" href="a02224.html#NLMISC_1_1CAsyncFileManager_1_1CMultipleFileLoadr0">NLMISC::CAsyncFileManager::CMultipleFileLoad::_FileNames</a><code> [private]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05456.html#l00101">101</a> of file <a class="el" href="a05456.html">async_file_manager.h</a>. </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1CAsyncFileManager_1_1CMultipleFileLoadr1" doxytag="NLMISC::CAsyncFileManager::CMultipleFileLoad::_Ptrs" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> std::vector<<a class="el" href="a04558.html#a7">uint8</a>**> <a class="el" href="a02224.html#NLMISC_1_1CAsyncFileManager_1_1CMultipleFileLoadr1">NLMISC::CAsyncFileManager::CMultipleFileLoad::_Ptrs</a><code> [private]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05456.html#l00102">102</a> of file <a class="el" href="a05456.html">async_file_manager.h</a>. +<p> +Referenced by <a class="el" href="a05455.html#l00241">CMultipleFileLoad()</a>, and <a class="el" href="a05455.html#l00249">run()</a>. </td> + </tr> +</table> +<hr>The documentation for this class was generated from the following files:<ul> +<li><a class="el" href="a05456.html">async_file_manager.h</a><li><a class="el" href="a05455.html">async_file_manager.cpp</a></ul> +<hr size="1"><address style="align: right;"><small>Generated on Tue Mar 16 13:01:52 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> |