Sophie

Sophie

distrib > Fedora > 13 > i386 > by-pkgid > 7fd7c575020aa78a8e2e309ea8909f43 > files > 251

gdal-1.6.2-6.fc13.i686.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>GDAL: cpl_vsi.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.2-20100208 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
      <li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
    </ul>
  </div>
<h1>cpl_vsi.h</h1><a href="cpl__vsi_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/******************************************************************************</span>
<a name="l00002"></a>00002 <span class="comment"> * $Id: cpl_vsi.h 15217 2008-08-25 20:34:50Z rouault $</span>
<a name="l00003"></a>00003 <span class="comment"> *</span>
<a name="l00004"></a>00004 <span class="comment"> * Project:  CPL - Common Portability Library</span>
<a name="l00005"></a>00005 <span class="comment"> * Author:   Frank Warmerdam, warmerdam@pobox.com</span>
<a name="l00006"></a>00006 <span class="comment"> * Purpose:  Include file defining Virtual File System (VSI) functions, a</span>
<a name="l00007"></a>00007 <span class="comment"> *           layer over POSIX file and other system services. </span>
<a name="l00008"></a>00008 <span class="comment"> *</span>
<a name="l00009"></a>00009 <span class="comment"> ******************************************************************************</span>
<a name="l00010"></a>00010 <span class="comment"> * Copyright (c) 1998, Frank Warmerdam</span>
<a name="l00011"></a>00011 <span class="comment"> *</span>
<a name="l00012"></a>00012 <span class="comment"> * Permission is hereby granted, free of charge, to any person obtaining a</span>
<a name="l00013"></a>00013 <span class="comment"> * copy of this software and associated documentation files (the &quot;Software&quot;),</span>
<a name="l00014"></a>00014 <span class="comment"> * to deal in the Software without restriction, including without limitation</span>
<a name="l00015"></a>00015 <span class="comment"> * the rights to use, copy, modify, merge, publish, distribute, sublicense,</span>
<a name="l00016"></a>00016 <span class="comment"> * and/or sell copies of the Software, and to permit persons to whom the</span>
<a name="l00017"></a>00017 <span class="comment"> * Software is furnished to do so, subject to the following conditions:</span>
<a name="l00018"></a>00018 <span class="comment"> *</span>
<a name="l00019"></a>00019 <span class="comment"> * The above copyright notice and this permission notice shall be included</span>
<a name="l00020"></a>00020 <span class="comment"> * in all copies or substantial portions of the Software.</span>
<a name="l00021"></a>00021 <span class="comment"> *</span>
<a name="l00022"></a>00022 <span class="comment"> * THE SOFTWARE IS PROVIDED &quot;AS IS&quot;, WITHOUT WARRANTY OF ANY KIND, EXPRESS</span>
<a name="l00023"></a>00023 <span class="comment"> * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,</span>
<a name="l00024"></a>00024 <span class="comment"> * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL</span>
<a name="l00025"></a>00025 <span class="comment"> * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER</span>
<a name="l00026"></a>00026 <span class="comment"> * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING</span>
<a name="l00027"></a>00027 <span class="comment"> * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER</span>
<a name="l00028"></a>00028 <span class="comment"> * DEALINGS IN THE SOFTWARE.</span>
<a name="l00029"></a>00029 <span class="comment"> ****************************************************************************/</span>
<a name="l00030"></a>00030 
<a name="l00031"></a>00031 <span class="preprocessor">#ifndef CPL_VSI_H_INCLUDED</span>
<a name="l00032"></a>00032 <span class="preprocessor"></span><span class="preprocessor">#define CPL_VSI_H_INCLUDED</span>
<a name="l00033"></a>00033 <span class="preprocessor"></span>
<a name="l00034"></a>00034 <span class="preprocessor">#include &quot;<a class="code" href="cpl__port_8h.html">cpl_port.h</a>&quot;</span>
<a name="l00054"></a>00054 <span class="comment">/* -------------------------------------------------------------------- */</span>
<a name="l00055"></a>00055 <span class="comment">/*      We need access to ``struct stat&#39;&#39;.                              */</span>
<a name="l00056"></a>00056 <span class="comment">/* -------------------------------------------------------------------- */</span>
<a name="l00057"></a>00057 
<a name="l00058"></a>00058 <span class="comment">/* Unix */</span>
<a name="l00059"></a>00059 <span class="preprocessor">#if !defined(_WIN32) &amp;&amp; !defined(_WIN32_WCE)</span>
<a name="l00060"></a>00060 <span class="preprocessor"></span><span class="preprocessor">#  include &lt;unistd.h&gt;</span>
<a name="l00061"></a>00061 <span class="preprocessor">#endif</span>
<a name="l00062"></a>00062 <span class="preprocessor"></span>
<a name="l00063"></a>00063 <span class="comment">/* Windows */</span>
<a name="l00064"></a>00064 <span class="preprocessor">#if !defined(macos_pre10) &amp;&amp; !defined(_WIN32_WCE)</span>
<a name="l00065"></a>00065 <span class="preprocessor"></span><span class="preprocessor">#  include &lt;sys/stat.h&gt;</span>
<a name="l00066"></a>00066 <span class="preprocessor">#endif</span>
<a name="l00067"></a>00067 <span class="preprocessor"></span>
<a name="l00068"></a>00068 <span class="comment">/* Windows CE */</span>
<a name="l00069"></a>00069 <span class="preprocessor">#if defined(_WIN32_WCE)</span>
<a name="l00070"></a>00070 <span class="preprocessor"></span><span class="preprocessor">#  include &lt;wce_stat.h&gt;</span>
<a name="l00071"></a>00071 <span class="preprocessor">#endif</span>
<a name="l00072"></a>00072 <span class="preprocessor"></span>
<a name="l00073"></a>00073 CPL_C_START
<a name="l00074"></a>00074 
<a name="l00075"></a>00075 <span class="comment">/* ==================================================================== */</span>
<a name="l00076"></a>00076 <span class="comment">/*      stdio file access functions.  These may not support large       */</span>
<a name="l00077"></a>00077 <span class="comment">/*      files, and don&#39;t necessarily go through the virtualization      */</span>
<a name="l00078"></a>00078 <span class="comment">/*      API.                                                            */</span>
<a name="l00079"></a>00079 <span class="comment">/* ==================================================================== */</span>
<a name="l00080"></a>00080 
<a name="l00081"></a>00081 FILE CPL_DLL *  VSIFOpen( <span class="keyword">const</span> <span class="keywordtype">char</span> *, <span class="keyword">const</span> <span class="keywordtype">char</span> * );
<a name="l00082"></a>00082 <span class="keywordtype">int</span> CPL_DLL     VSIFClose( FILE * );
<a name="l00083"></a>00083 <span class="keywordtype">int</span> CPL_DLL     VSIFSeek( FILE *, <span class="keywordtype">long</span>, <span class="keywordtype">int</span> );
<a name="l00084"></a>00084 <span class="keywordtype">long</span> CPL_DLL    VSIFTell( FILE * );
<a name="l00085"></a>00085 <span class="keywordtype">void</span> CPL_DLL    VSIRewind( FILE * );
<a name="l00086"></a>00086 <span class="keywordtype">void</span> CPL_DLL    VSIFFlush( FILE * );
<a name="l00087"></a>00087 
<a name="l00088"></a>00088 <span class="keywordtype">size_t</span> CPL_DLL  VSIFRead( <span class="keywordtype">void</span> *, <span class="keywordtype">size_t</span>, <span class="keywordtype">size_t</span>, FILE * );
<a name="l00089"></a>00089 <span class="keywordtype">size_t</span> CPL_DLL  VSIFWrite( <span class="keyword">const</span> <span class="keywordtype">void</span> *, <span class="keywordtype">size_t</span>, <span class="keywordtype">size_t</span>, FILE * );
<a name="l00090"></a>00090 <span class="keywordtype">char</span> CPL_DLL   *VSIFGets( <span class="keywordtype">char</span> *, <span class="keywordtype">int</span>, FILE * );
<a name="l00091"></a>00091 <span class="keywordtype">int</span> CPL_DLL     VSIFPuts( <span class="keyword">const</span> <span class="keywordtype">char</span> *, FILE * );
<a name="l00092"></a>00092 <span class="keywordtype">int</span> CPL_DLL     VSIFPrintf( FILE *, <span class="keyword">const</span> <span class="keywordtype">char</span> *, ... ) CPL_PRINT_FUNC_FORMAT(2, 3);
<a name="l00093"></a>00093 
<a name="l00094"></a>00094 <span class="keywordtype">int</span> CPL_DLL     VSIFGetc( FILE * );
<a name="l00095"></a>00095 <span class="keywordtype">int</span> CPL_DLL     VSIFPutc( <span class="keywordtype">int</span>, FILE * );
<a name="l00096"></a>00096 <span class="keywordtype">int</span> CPL_DLL     VSIUngetc( <span class="keywordtype">int</span>, FILE * );
<a name="l00097"></a>00097 <span class="keywordtype">int</span> CPL_DLL     VSIFEof( FILE * );
<a name="l00098"></a>00098 
<a name="l00099"></a>00099 <span class="comment">/* ==================================================================== */</span>
<a name="l00100"></a>00100 <span class="comment">/*      VSIStat() related.                                              */</span>
<a name="l00101"></a>00101 <span class="comment">/* ==================================================================== */</span>
<a name="l00102"></a>00102 
<a name="l00103"></a>00103 typedef struct stat VSIStatBuf;
<a name="l00104"></a>00104 <span class="keywordtype">int</span> CPL_DLL VSIStat( const <span class="keywordtype">char</span> *, VSIStatBuf * );
<a name="l00105"></a>00105 
<a name="l00106"></a>00106 <span class="preprocessor">#ifdef _WIN32</span>
<a name="l00107"></a>00107 <span class="preprocessor"></span><span class="preprocessor">#  define VSI_ISLNK(x)  ( 0 )            </span><span class="comment">/* N/A on Windows */</span>
<a name="l00108"></a>00108 <span class="preprocessor">#  define VSI_ISREG(x)  ((x) &amp; S_IFREG)</span>
<a name="l00109"></a>00109 <span class="preprocessor"></span><span class="preprocessor">#  define VSI_ISDIR(x)  ((x) &amp; S_IFDIR)</span>
<a name="l00110"></a>00110 <span class="preprocessor"></span><span class="preprocessor">#  define VSI_ISCHR(x)  ((x) &amp; S_IFCHR)</span>
<a name="l00111"></a>00111 <span class="preprocessor"></span><span class="preprocessor">#  define VSI_ISBLK(x)  ( 0 )            </span><span class="comment">/* N/A on Windows */</span>
<a name="l00112"></a>00112 <span class="preprocessor">#else</span>
<a name="l00113"></a>00113 <span class="preprocessor"></span><span class="preprocessor">#  define VSI_ISLNK(x)  S_ISLNK(x)</span>
<a name="l00114"></a>00114 <span class="preprocessor"></span><span class="preprocessor">#  define VSI_ISREG(x)  S_ISREG(x)</span>
<a name="l00115"></a>00115 <span class="preprocessor"></span><span class="preprocessor">#  define VSI_ISDIR(x)  S_ISDIR(x)</span>
<a name="l00116"></a>00116 <span class="preprocessor"></span><span class="preprocessor">#  define VSI_ISCHR(x)  S_ISCHR(x)</span>
<a name="l00117"></a>00117 <span class="preprocessor"></span><span class="preprocessor">#  define VSI_ISBLK(x)  S_ISBLK(x)</span>
<a name="l00118"></a>00118 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00119"></a>00119 <span class="preprocessor"></span>
<a name="l00120"></a>00120 <span class="comment">/* ==================================================================== */</span>
<a name="l00121"></a>00121 <span class="comment">/*      64bit stdio file access functions.  If we have a big size       */</span>
<a name="l00122"></a>00122 <span class="comment">/*      defined, then provide protypes for the large file API,          */</span>
<a name="l00123"></a>00123 <span class="comment">/*      otherwise redefine to use the regular api.                      */</span>
<a name="l00124"></a>00124 <span class="comment">/* ==================================================================== */</span>
<a name="l00125"></a>00125 <span class="keyword">typedef</span> GUIntBig vsi_l_offset;
<a name="l00126"></a>00126 
<a name="l00127"></a>00127 FILE CPL_DLL *  <a class="code" href="cpl__vsi_8h.html#a48b5fab6cc22a9d0a543c095ee358634" title="Open file.">VSIFOpenL</a>( <span class="keyword">const</span> <span class="keywordtype">char</span> *, <span class="keyword">const</span> <span class="keywordtype">char</span> * );
<a name="l00128"></a>00128 <span class="keywordtype">int</span> CPL_DLL     <a class="code" href="cpl__vsi_8h.html#ab1fc5cbfff98db8f5aa912606b07e8d9" title="Close file.">VSIFCloseL</a>( FILE * );
<a name="l00129"></a>00129 <span class="keywordtype">int</span> CPL_DLL     <a class="code" href="cpl__vsi_8h.html#ae4fbf582f429d575cd06d559afb0ce5a" title="Seek to requested offset.">VSIFSeekL</a>( FILE *, vsi_l_offset, <span class="keywordtype">int</span> );
<a name="l00130"></a>00130 vsi_l_offset CPL_DLL <a class="code" href="cpl__vsi_8h.html#a8e02ad6d2abd844a57a206e3ebba50b4" title="Tell current file offset.">VSIFTellL</a>( FILE * );
<a name="l00131"></a>00131 <span class="keywordtype">void</span> CPL_DLL    VSIRewindL( FILE * );
<a name="l00132"></a>00132 <span class="keywordtype">size_t</span> CPL_DLL  <a class="code" href="cpl__vsi_8h.html#a64335c9b9395cf8b40273a9cce4b46bf" title="Read bytes from file.">VSIFReadL</a>( <span class="keywordtype">void</span> *, <span class="keywordtype">size_t</span>, <span class="keywordtype">size_t</span>, FILE * );
<a name="l00133"></a>00133 <span class="keywordtype">size_t</span> CPL_DLL  <a class="code" href="cpl__vsi_8h.html#a485b2abb8535e77a9ee2bef266a4442d" title="Write bytes to file.">VSIFWriteL</a>( <span class="keyword">const</span> <span class="keywordtype">void</span> *, <span class="keywordtype">size_t</span>, <span class="keywordtype">size_t</span>, FILE * );
<a name="l00134"></a>00134 <span class="keywordtype">int</span> CPL_DLL     <a class="code" href="cpl__vsi_8h.html#a9e4f504264ad821b81bd26744a9c291f" title="Test for end of file.">VSIFEofL</a>( FILE * );
<a name="l00135"></a>00135 <span class="keywordtype">int</span> CPL_DLL     <a class="code" href="cpl__vsi_8h.html#a1e43bee7439e2da7f59bfa8c4d9ff473" title="Flush pending writes to disk.">VSIFFlushL</a>( FILE * );
<a name="l00136"></a>00136 <span class="keywordtype">int</span> CPL_DLL     VSIFPrintfL( FILE *, <span class="keyword">const</span> <span class="keywordtype">char</span> *, ... ) CPL_PRINT_FUNC_FORMAT(2, 3);
<a name="l00137"></a>00137 <span class="keywordtype">int</span> CPL_DLL     VSIFPutcL( <span class="keywordtype">int</span>, FILE * );
<a name="l00138"></a>00138 
<a name="l00139"></a>00139 <span class="preprocessor">#if defined(VSI_STAT64_T)</span>
<a name="l00140"></a>00140 <span class="preprocessor"></span><span class="keyword">typedef</span> <span class="keyword">struct </span>VSI_STAT64_T VSIStatBufL;
<a name="l00141"></a>00141 <span class="preprocessor">#else</span>
<a name="l00142"></a>00142 <span class="preprocessor"></span><span class="preprocessor">#define VSIStatBufL    VSIStatBuf</span>
<a name="l00143"></a>00143 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00144"></a>00144 <span class="preprocessor"></span>
<a name="l00145"></a>00145 <span class="keywordtype">int</span> CPL_DLL     <a class="code" href="cpl__vsi_8h.html#ac92fbd5e6fc143b026001b32c4c19ed1" title="Get filesystem object info.">VSIStatL</a>( <span class="keyword">const</span> <span class="keywordtype">char</span> *, VSIStatBufL * );
<a name="l00146"></a>00146 
<a name="l00147"></a>00147 <span class="comment">/* ==================================================================== */</span>
<a name="l00148"></a>00148 <span class="comment">/*      Memory allocation                                               */</span>
<a name="l00149"></a>00149 <span class="comment">/* ==================================================================== */</span>
<a name="l00150"></a>00150 
<a name="l00151"></a>00151 <span class="keywordtype">void</span> CPL_DLL   *VSICalloc( <span class="keywordtype">size_t</span>, <span class="keywordtype">size_t</span> );
<a name="l00152"></a>00152 <span class="keywordtype">void</span> CPL_DLL   *VSIMalloc( <span class="keywordtype">size_t</span> );
<a name="l00153"></a>00153 <span class="keywordtype">void</span> CPL_DLL    VSIFree( <span class="keywordtype">void</span> * );
<a name="l00154"></a>00154 <span class="keywordtype">void</span> CPL_DLL   *VSIRealloc( <span class="keywordtype">void</span> *, <span class="keywordtype">size_t</span> );
<a name="l00155"></a>00155 <span class="keywordtype">char</span> CPL_DLL   *VSIStrdup( <span class="keyword">const</span> <span class="keywordtype">char</span> * );
<a name="l00156"></a>00156 
<a name="l00164"></a>00164 <span class="keywordtype">void</span> CPL_DLL *<a class="code" href="cpl__vsi_8h.html#a9b88331b0be4f7f2bd43e7b830af7038">VSIMalloc2</a>( <span class="keywordtype">size_t</span> nSize1, <span class="keywordtype">size_t</span> nSize2 );
<a name="l00165"></a>00165 
<a name="l00173"></a>00173 <span class="keywordtype">void</span> CPL_DLL *<a class="code" href="cpl__vsi_8h.html#a644254757e7d9ec23df256d34fff565d">VSIMalloc3</a>( <span class="keywordtype">size_t</span> nSize1, <span class="keywordtype">size_t</span> nSize2, <span class="keywordtype">size_t</span> nSize3 );
<a name="l00174"></a>00174 
<a name="l00175"></a>00175 
<a name="l00176"></a>00176 <span class="comment">/* ==================================================================== */</span>
<a name="l00177"></a>00177 <span class="comment">/*      Other...                                                        */</span>
<a name="l00178"></a>00178 <span class="comment">/* ==================================================================== */</span>
<a name="l00179"></a>00179 
<a name="l00180"></a>00180 <span class="preprocessor">#define CPLReadDir VSIReadDir</span>
<a name="l00181"></a>00181 <span class="preprocessor"></span><span class="keywordtype">char</span> CPL_DLL **<a class="code" href="cpl__vsi_8h.html#a6158d73485d6cf92c75b38e7f26d00c3" title="Read names in a directory.">VSIReadDir</a>( <span class="keyword">const</span> <span class="keywordtype">char</span> * );
<a name="l00182"></a>00182 <span class="keywordtype">int</span> CPL_DLL <a class="code" href="cpl__vsi_8h.html#aef0a5243bbc47cf9645a135d0c7d26df" title="Create a directory.">VSIMkdir</a>( <span class="keyword">const</span> <span class="keywordtype">char</span> * pathname, <span class="keywordtype">long</span> mode );
<a name="l00183"></a>00183 <span class="keywordtype">int</span> CPL_DLL <a class="code" href="cpl__vsi_8h.html#a763cceaa0966f37b71a0185c92bb3ad8" title="Delete a directory.">VSIRmdir</a>( <span class="keyword">const</span> <span class="keywordtype">char</span> * pathname );
<a name="l00184"></a>00184 <span class="keywordtype">int</span> CPL_DLL <a class="code" href="cpl__vsi_8h.html#a69dad1bd6f1af9935c1523db0c6c212f" title="Delete a file.">VSIUnlink</a>( <span class="keyword">const</span> <span class="keywordtype">char</span> * pathname );
<a name="l00185"></a>00185 <span class="keywordtype">int</span> CPL_DLL <a class="code" href="cpl__vsi_8h.html#a26cae93b5a32e11bef9ec7c118f8cca4" title="Rename a file.">VSIRename</a>( <span class="keyword">const</span> <span class="keywordtype">char</span> * oldpath, <span class="keyword">const</span> <span class="keywordtype">char</span> * newpath );
<a name="l00186"></a>00186 <span class="keywordtype">char</span> CPL_DLL *VSIStrerror( <span class="keywordtype">int</span> );
<a name="l00187"></a>00187 
<a name="l00188"></a>00188 <span class="comment">/* ==================================================================== */</span>
<a name="l00189"></a>00189 <span class="comment">/*      Install special file access handlers.                           */</span>
<a name="l00190"></a>00190 <span class="comment">/* ==================================================================== */</span>
<a name="l00191"></a>00191 <span class="keywordtype">void</span> CPL_DLL <a class="code" href="cpl__vsi_8h.html#a66e2e6f093fd42f8a941b962d4c8a19e" title="Install &amp;quot;memory&amp;quot; file system handler.">VSIInstallMemFileHandler</a>(<span class="keywordtype">void</span>);
<a name="l00192"></a>00192 <span class="keywordtype">void</span> CPL_DLL VSIInstallLargeFileHandler(<span class="keywordtype">void</span>);
<a name="l00193"></a>00193 <span class="keywordtype">void</span> <a class="code" href="cpl__vsi_8h.html#a3cde09f204df6f417653b7af4761178e" title="Install GZip file system handler.">VSIInstallGZipFileHandler</a>(<span class="keywordtype">void</span>); <span class="comment">/* No reason to export that */</span>
<a name="l00194"></a>00194 <span class="keywordtype">void</span> <a class="code" href="cpl__vsi_8h.html#a884fac3cd6be2c09deb807e959d78b3a" title="Install ZIP file system handler.">VSIInstallZipFileHandler</a>(<span class="keywordtype">void</span>); <span class="comment">/* No reason to export that */</span>
<a name="l00195"></a>00195 <span class="keywordtype">void</span> CPL_DLL VSICleanupFileManager(<span class="keywordtype">void</span>);
<a name="l00196"></a>00196 
<a name="l00197"></a>00197 FILE CPL_DLL *<a class="code" href="cpl__vsi_8h.html#a1ecb3a78729ecea4d2ce22065a605244" title="Create memory &amp;quot;file&amp;quot; from a buffer.">VSIFileFromMemBuffer</a>( <span class="keyword">const</span> <span class="keywordtype">char</span> *pszFilename, 
<a name="l00198"></a>00198                                     GByte *pabyData, 
<a name="l00199"></a>00199                                     vsi_l_offset nDataLength,
<a name="l00200"></a>00200                                     <span class="keywordtype">int</span> bTakeOwnership );
<a name="l00201"></a>00201 GByte CPL_DLL *<a class="code" href="cpl__vsi_8h.html#aeaf26bcc4a5314371f426bb2a5e6ce7a" title="Fetch buffer underlying memory file.">VSIGetMemFileBuffer</a>( <span class="keyword">const</span> <span class="keywordtype">char</span> *pszFilename, 
<a name="l00202"></a>00202                                     vsi_l_offset *pnDataLength, 
<a name="l00203"></a>00203                                     <span class="keywordtype">int</span> bUnlinkAndSeize );
<a name="l00204"></a>00204 
<a name="l00205"></a>00205 <span class="comment">/* ==================================================================== */</span>
<a name="l00206"></a>00206 <span class="comment">/*      Time quering.                                                   */</span>
<a name="l00207"></a>00207 <span class="comment">/* ==================================================================== */</span>
<a name="l00208"></a>00208 
<a name="l00209"></a>00209 <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> CPL_DLL VSITime( <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> * );
<a name="l00210"></a>00210 <span class="keyword">const</span> <span class="keywordtype">char</span> CPL_DLL *VSICTime( <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> );
<a name="l00211"></a>00211 <span class="keyword">struct </span>tm CPL_DLL *VSIGMTime( <span class="keyword">const</span> time_t *pnTime,
<a name="l00212"></a>00212                               <span class="keyword">struct</span> tm *poBrokenTime );
<a name="l00213"></a>00213 <span class="keyword">struct </span>tm CPL_DLL *VSILocalTime( <span class="keyword">const</span> time_t *pnTime,
<a name="l00214"></a>00214                                  <span class="keyword">struct</span> tm *poBrokenTime );
<a name="l00215"></a>00215 
<a name="l00216"></a>00216 <span class="comment">/* -------------------------------------------------------------------- */</span>
<a name="l00217"></a>00217 <span class="comment">/*      the following can be turned on for detailed logging of          */</span>
<a name="l00218"></a>00218 <span class="comment">/*      almost all IO calls.                                            */</span>
<a name="l00219"></a>00219 <span class="comment">/* -------------------------------------------------------------------- */</span>
<a name="l00220"></a>00220 <span class="preprocessor">#ifdef VSI_DEBUG</span>
<a name="l00221"></a>00221 <span class="preprocessor"></span>
<a name="l00222"></a>00222 <span class="preprocessor">#ifndef DEBUG</span>
<a name="l00223"></a>00223 <span class="preprocessor"></span><span class="preprocessor">#  define DEBUG</span>
<a name="l00224"></a>00224 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00225"></a>00225 <span class="preprocessor"></span>
<a name="l00226"></a>00226 <span class="preprocessor">#include &quot;<a class="code" href="cpl__error_8h.html">cpl_error.h</a>&quot;</span>
<a name="l00227"></a>00227 
<a name="l00228"></a>00228 <span class="preprocessor">#define VSIDebug4(f,a1,a2,a3,a4)   CPLDebug( &quot;VSI&quot;, f, a1, a2, a3, a4 );</span>
<a name="l00229"></a>00229 <span class="preprocessor"></span><span class="preprocessor">#define VSIDebug3( f, a1, a2, a3 ) CPLDebug( &quot;VSI&quot;, f, a1, a2, a3 );</span>
<a name="l00230"></a>00230 <span class="preprocessor"></span><span class="preprocessor">#define VSIDebug2( f, a1, a2 )     CPLDebug( &quot;VSI&quot;, f, a1, a2 );</span>
<a name="l00231"></a>00231 <span class="preprocessor"></span><span class="preprocessor">#define VSIDebug1( f, a1 )         CPLDebug( &quot;VSI&quot;, f, a1 );</span>
<a name="l00232"></a>00232 <span class="preprocessor"></span><span class="preprocessor">#else</span>
<a name="l00233"></a>00233 <span class="preprocessor"></span><span class="preprocessor">#define VSIDebug4( f, a1, a2, a3, a4 ) {}</span>
<a name="l00234"></a>00234 <span class="preprocessor"></span><span class="preprocessor">#define VSIDebug3( f, a1, a2, a3 ) {}</span>
<a name="l00235"></a>00235 <span class="preprocessor"></span><span class="preprocessor">#define VSIDebug2( f, a1, a2 )     {}</span>
<a name="l00236"></a>00236 <span class="preprocessor"></span><span class="preprocessor">#define VSIDebug1( f, a1 )         {}</span>
<a name="l00237"></a>00237 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00238"></a>00238 <span class="preprocessor"></span>
<a name="l00239"></a>00239 CPL_C_END
<a name="l00240"></a>00240 
<a name="l00241"></a>00241 <span class="preprocessor">#endif </span><span class="comment">/* ndef CPL_VSI_H_INCLUDED */</span>
</pre></div></div>
<hr>

Generated for GDAL by 
<a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.6.2-20100208.
</body>
</html>