Sophie

Sophie

distrib > Mandriva > current > i586 > media > main-updates > by-pkgid > ed376d6842ea322c25405e7c23b3bc12 > files > 490

libcommoncpp-devel-1.8.0-5.1mdv2010.1.i586.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>GNU CommonC++: file.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.3 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</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>
      <li><a href="examples.html"><span>Examples</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>file.h</h1><a href="file_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">// Copyright (C) 1999-2005 Open Source Telecom Corporation.</span>
<a name="l00002"></a>00002 <span class="comment">// Copyright (C) 2006-2008 David Sugar, Tycho Softworks.</span>
<a name="l00003"></a>00003 <span class="comment">//</span>
<a name="l00004"></a>00004 <span class="comment">// This program is free software; you can redistribute it and/or modify</span>
<a name="l00005"></a>00005 <span class="comment">// it under the terms of the GNU General Public License as published by</span>
<a name="l00006"></a>00006 <span class="comment">// the Free Software Foundation; either version 2 of the License, or</span>
<a name="l00007"></a>00007 <span class="comment">// (at your option) any later version.</span>
<a name="l00008"></a>00008 <span class="comment">//</span>
<a name="l00009"></a>00009 <span class="comment">// This program is distributed in the hope that it will be useful,</span>
<a name="l00010"></a>00010 <span class="comment">// but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00011"></a>00011 <span class="comment">// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span>
<a name="l00012"></a>00012 <span class="comment">// GNU General Public License for more details.</span>
<a name="l00013"></a>00013 <span class="comment">//</span>
<a name="l00014"></a>00014 <span class="comment">// You should have received a copy of the GNU General Public License</span>
<a name="l00015"></a>00015 <span class="comment">// along with this program; if not, write to the Free Software</span>
<a name="l00016"></a>00016 <span class="comment">// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.</span>
<a name="l00017"></a>00017 <span class="comment">//</span>
<a name="l00018"></a>00018 <span class="comment">// As a special exception, you may use this file as part of a free software</span>
<a name="l00019"></a>00019 <span class="comment">// library without restriction.  Specifically, if other files instantiate</span>
<a name="l00020"></a>00020 <span class="comment">// templates or use macros or inline functions from this file, or you compile</span>
<a name="l00021"></a>00021 <span class="comment">// this file and link it with other files to produce an executable, this</span>
<a name="l00022"></a>00022 <span class="comment">// file does not by itself cause the resulting executable to be covered by</span>
<a name="l00023"></a>00023 <span class="comment">// the GNU General Public License.  This exception does not however</span>
<a name="l00024"></a>00024 <span class="comment">// invalidate any other reasons why the executable file might be covered by</span>
<a name="l00025"></a>00025 <span class="comment">// the GNU General Public License.</span>
<a name="l00026"></a>00026 <span class="comment">//</span>
<a name="l00027"></a>00027 <span class="comment">// This exception applies only to the code released under the name GNU</span>
<a name="l00028"></a>00028 <span class="comment">// Common C++.  If you copy code from other releases into a copy of GNU</span>
<a name="l00029"></a>00029 <span class="comment">// Common C++, as the General Public License permits, the exception does</span>
<a name="l00030"></a>00030 <span class="comment">// not apply to the code that you add in this way.  To avoid misleading</span>
<a name="l00031"></a>00031 <span class="comment">// anyone as to the status of such modified files, you must delete</span>
<a name="l00032"></a>00032 <span class="comment">// this exception notice from them.</span>
<a name="l00033"></a>00033 <span class="comment">//</span>
<a name="l00034"></a>00034 <span class="comment">// If you write modifications of your own for GNU Common C++, it is your choice</span>
<a name="l00035"></a>00035 <span class="comment">// whether to permit this exception to apply to your modifications.</span>
<a name="l00036"></a>00036 <span class="comment">// If you do not wish that, delete this exception notice.</span>
<a name="l00037"></a>00037 <span class="comment">//</span>
<a name="l00038"></a>00038 
<a name="l00044"></a>00044 <span class="preprocessor">#ifndef CCXX_FILE_H_</span>
<a name="l00045"></a>00045 <span class="preprocessor"></span><span class="preprocessor">#define CCXX_FILE_H_</span>
<a name="l00046"></a>00046 <span class="preprocessor"></span>
<a name="l00047"></a>00047 <span class="preprocessor">#ifndef CCXX_CONFIG_H_</span>
<a name="l00048"></a>00048 <span class="preprocessor"></span><span class="preprocessor">#include &lt;<a class="code" href="config_8h.html">cc++/config.h</a>&gt;</span>
<a name="l00049"></a>00049 <span class="preprocessor">#endif</span>
<a name="l00050"></a>00050 <span class="preprocessor"></span>
<a name="l00051"></a>00051 <span class="preprocessor">#ifndef CCXX_MISSING_H_</span>
<a name="l00052"></a>00052 <span class="preprocessor"></span><span class="preprocessor">#include &lt;<a class="code" href="missing_8h.html" title="substitute functions which may be missing in target platform libc.">cc++/missing.h</a>&gt;</span>
<a name="l00053"></a>00053 <span class="preprocessor">#endif</span>
<a name="l00054"></a>00054 <span class="preprocessor"></span>
<a name="l00055"></a>00055 <span class="preprocessor">#ifndef CCXX_THREAD_H_</span>
<a name="l00056"></a>00056 <span class="preprocessor"></span><span class="preprocessor">#include &lt;<a class="code" href="thread_8h.html" title="Synchronization and threading services.">cc++/thread.h</a>&gt;</span>
<a name="l00057"></a>00057 <span class="preprocessor">#endif</span>
<a name="l00058"></a>00058 <span class="preprocessor"></span>
<a name="l00059"></a>00059 <span class="preprocessor">#ifndef CCXX_EXCEPTION_H_</span>
<a name="l00060"></a>00060 <span class="preprocessor"></span><span class="preprocessor">#include &lt;<a class="code" href="exception_8h.html" title="GNU Common C++ exception model base classes.">cc++/exception.h</a>&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="preprocessor">#ifndef WIN32</span>
<a name="l00064"></a>00064 <span class="preprocessor"></span><span class="preprocessor"># ifdef __BORLANDC__</span>
<a name="l00065"></a>00065 <span class="preprocessor"></span><span class="preprocessor">#  include &lt;stdio.h&gt;</span>
<a name="l00066"></a>00066 <span class="preprocessor">#  include &lt;sys/types.h&gt;</span>
<a name="l00067"></a>00067 <span class="preprocessor"># else</span>
<a name="l00068"></a>00068 <span class="preprocessor"></span><span class="preprocessor">#  include &lt;cstdio&gt;</span>
<a name="l00069"></a>00069 <span class="preprocessor"># endif</span>
<a name="l00070"></a>00070 <span class="preprocessor"></span><span class="preprocessor"># include &lt;dirent.h&gt;</span>
<a name="l00071"></a>00071 <span class="preprocessor"># include &lt;sys/stat.h&gt;</span>
<a name="l00072"></a>00072 <span class="preprocessor"># include &lt;sys/mman.h&gt;</span>
<a name="l00073"></a>00073 <span class="preprocessor">#else</span>
<a name="l00074"></a>00074 <span class="preprocessor"></span><span class="preprocessor"># if __BORLANDC__ &gt;= 0x0560</span>
<a name="l00075"></a>00075 <span class="preprocessor"></span><span class="preprocessor">#  include &lt;dirent.h&gt;</span>
<a name="l00076"></a>00076 <span class="preprocessor">#  include &lt;sys/stat.h&gt;</span>
<a name="l00077"></a>00077 <span class="preprocessor"># else</span>
<a name="l00078"></a>00078 <span class="preprocessor"></span><span class="preprocessor">#  include &lt;direct.h&gt;</span>
<a name="l00079"></a>00079 <span class="preprocessor"># endif</span>
<a name="l00080"></a>00080 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00081"></a>00081 <span class="preprocessor"></span>
<a name="l00082"></a>00082 <span class="preprocessor">#ifdef  HAVE_SHL_LOAD</span>
<a name="l00083"></a>00083 <span class="preprocessor"></span><span class="preprocessor">#include &lt;dl.h&gt;</span>
<a name="l00084"></a>00084 <span class="preprocessor">#endif</span>
<a name="l00085"></a>00085 <span class="preprocessor"></span>
<a name="l00086"></a>00086 <span class="preprocessor">#ifdef  HAVE_MACH_DYLD</span>
<a name="l00087"></a>00087 <span class="preprocessor"></span><span class="preprocessor">#include &lt;mach-o/dyld.h&gt;</span>
<a name="l00088"></a>00088 <span class="preprocessor">#endif</span>
<a name="l00089"></a>00089 <span class="preprocessor"></span>
<a name="l00090"></a>00090 <span class="preprocessor">#ifdef  CCXX_NAMESPACES</span>
<a name="l00091"></a>00091 <span class="preprocessor"></span><span class="keyword">namespace </span>ost {
<a name="l00092"></a>00092 <span class="preprocessor">#endif</span>
<a name="l00093"></a>00093 <span class="preprocessor"></span>
<a name="l00094"></a><a class="code" href="namespaceost.html#a4bb988be58c6264b160ef2d6ceb178e5">00094</a> <span class="keyword">typedef</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <a class="code" href="namespaceost.html#a4bb988be58c6264b160ef2d6ceb178e5">pos_t</a>;
<a name="l00095"></a>00095 <span class="preprocessor">#ifndef WIN32</span>
<a name="l00096"></a>00096 <span class="preprocessor"></span><span class="comment">// use a define so that if the sys/types.h header already defines caddr_t</span>
<a name="l00097"></a>00097 <span class="comment">// as it may on BSD systems, we do not break it by redefining again.</span>
<a name="l00098"></a>00098 <span class="preprocessor">#undef  caddr_t</span>
<a name="l00099"></a><a class="code" href="file_8h.html#a0c3c2cf6b572d3e4659668a6d2ddc265">00099</a> <span class="preprocessor"></span><span class="preprocessor">#define caddr_t char *</span>
<a name="l00100"></a><a class="code" href="namespaceost.html#acedd0902cc2709bd066b9f8a2d1f44a0">00100</a> <span class="preprocessor"></span><span class="keyword">typedef</span> <span class="keywordtype">size_t</span> <a class="code" href="namespaceost.html#acedd0902cc2709bd066b9f8a2d1f44a0">ccxx_size_t</a>;
<a name="l00101"></a>00101 <span class="preprocessor">#else</span>
<a name="l00102"></a>00102 <span class="preprocessor"></span><span class="preprocessor">#if     !defined(__BORLANDC__) || __BORLANDC__ &gt;= 0x0560</span>
<a name="l00103"></a>00103 <span class="preprocessor"></span><span class="keyword">typedef</span> LONG off_t;
<a name="l00104"></a>00104 <span class="preprocessor">#endif</span>
<a name="l00105"></a>00105 <span class="preprocessor"></span><span class="keyword">typedef</span> <span class="keywordtype">void</span>* <a class="code" href="file_8h.html#a0c3c2cf6b572d3e4659668a6d2ddc265">caddr_t</a>;
<a name="l00106"></a>00106 <span class="keyword">typedef</span> DWORD <a class="code" href="namespaceost.html#acedd0902cc2709bd066b9f8a2d1f44a0">ccxx_size_t</a>;
<a name="l00107"></a>00107 <span class="preprocessor">#endif</span>
<a name="l00108"></a>00108 <span class="preprocessor"></span>
<a name="l00109"></a>00109 <span class="preprocessor">#ifndef PATH_MAX</span>
<a name="l00110"></a>00110 <span class="preprocessor"></span><span class="preprocessor">#define PATH_MAX        256</span>
<a name="l00111"></a>00111 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00112"></a>00112 <span class="preprocessor"></span>
<a name="l00113"></a>00113 <span class="preprocessor">#ifndef NAME_MAX</span>
<a name="l00114"></a><a class="code" href="file_8h.html#ac64541bdd81c961304b9babef1402640">00114</a> <span class="preprocessor"></span><span class="preprocessor">#define NAME_MAX        64</span>
<a name="l00115"></a>00115 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00116"></a>00116 <span class="preprocessor"></span>
<a name="l00117"></a><a class="code" href="classost_1_1_file.html">00117</a> <span class="keyword">class </span><a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> <a class="code" href="classost_1_1_file.html">File</a>
<a name="l00118"></a>00118 {
<a name="l00119"></a>00119 <span class="keyword">public</span>:
<a name="l00120"></a><a class="code" href="classost_1_1_file.html#a726c26bbd45c9cb0701267a2824284e6">00120</a>         <span class="keyword">enum</span> <a class="code" href="classost_1_1_file.html#a726c26bbd45c9cb0701267a2824284e6">Error</a> {
<a name="l00121"></a><a class="code" href="classost_1_1_file.html#a726c26bbd45c9cb0701267a2824284e6a207f3271e4132a03ed5624a6a5651c17">00121</a>                 errSuccess = 0,
<a name="l00122"></a><a class="code" href="classost_1_1_file.html#a726c26bbd45c9cb0701267a2824284e6a050d0e79c2ca5edf7f84c575e2957381">00122</a>                 errNotOpened,
<a name="l00123"></a><a class="code" href="classost_1_1_file.html#a726c26bbd45c9cb0701267a2824284e6af8f7b5e5ffd0e724131dcb83efafd3d3">00123</a>                 errMapFailed,
<a name="l00124"></a><a class="code" href="classost_1_1_file.html#a726c26bbd45c9cb0701267a2824284e6aee14627c63cab2530066a5a1b6421f71">00124</a>                 errInitFailed,
<a name="l00125"></a><a class="code" href="classost_1_1_file.html#a726c26bbd45c9cb0701267a2824284e6aa13e658bd29adfdbfccea54a74f212a7">00125</a>                 errOpenDenied,
<a name="l00126"></a><a class="code" href="classost_1_1_file.html#a726c26bbd45c9cb0701267a2824284e6a40eaf2e7f3bdbb5aa380e183c35b253d">00126</a>                 errOpenFailed,
<a name="l00127"></a><a class="code" href="classost_1_1_file.html#a726c26bbd45c9cb0701267a2824284e6a599eb6e10a9d34070a71ff55e5e05b86">00127</a>                 errOpenInUse,
<a name="l00128"></a><a class="code" href="classost_1_1_file.html#a726c26bbd45c9cb0701267a2824284e6a797c9f9fb59f3f2d69a325c02c69d747">00128</a>                 errReadInterrupted,
<a name="l00129"></a><a class="code" href="classost_1_1_file.html#a726c26bbd45c9cb0701267a2824284e6aab30228d37127f636e8296ef55ecccaf">00129</a>                 errReadIncomplete,
<a name="l00130"></a><a class="code" href="classost_1_1_file.html#a726c26bbd45c9cb0701267a2824284e6a4ad81d1cd9c7eda8ec6a655f3373bd98">00130</a>                 errReadFailure,
<a name="l00131"></a><a class="code" href="classost_1_1_file.html#a726c26bbd45c9cb0701267a2824284e6a1d1fde6a839bd8d41fd9b5ac98d86cb3">00131</a>                 errWriteInterrupted,
<a name="l00132"></a><a class="code" href="classost_1_1_file.html#a726c26bbd45c9cb0701267a2824284e6acdce746373598e52b2407bc020a3f8d1">00132</a>                 errWriteIncomplete,
<a name="l00133"></a><a class="code" href="classost_1_1_file.html#a726c26bbd45c9cb0701267a2824284e6acc1148cc886b1181e0471d634a644f5f">00133</a>                 errWriteFailure,
<a name="l00134"></a><a class="code" href="classost_1_1_file.html#a726c26bbd45c9cb0701267a2824284e6abaa5f9bfe8d250ade4133bc81406b4fc">00134</a>                 errLockFailure,
<a name="l00135"></a><a class="code" href="classost_1_1_file.html#a726c26bbd45c9cb0701267a2824284e6a9e9eef24fce1e9691b483fae652e5fc0">00135</a>                 errExtended
<a name="l00136"></a>00136         };
<a name="l00137"></a><a class="code" href="classost_1_1_file.html#ac65e9af20a431154c8d8a811d4c58bde">00137</a>         <span class="keyword">typedef</span> <span class="keyword">enum</span> <a class="code" href="classost_1_1_file.html#a726c26bbd45c9cb0701267a2824284e6">Error</a> <a class="code" href="classost_1_1_file.html#a726c26bbd45c9cb0701267a2824284e6">Error</a>;
<a name="l00138"></a>00138 
<a name="l00139"></a><a class="code" href="classost_1_1_file.html#af371cd81457b88328c08c4501f5e8271">00139</a>         <span class="keyword">enum</span> <a class="code" href="classost_1_1_file.html#af371cd81457b88328c08c4501f5e8271">Access</a> {
<a name="l00140"></a>00140 <span class="preprocessor">#ifndef WIN32</span>
<a name="l00141"></a><a class="code" href="classost_1_1_file.html#af371cd81457b88328c08c4501f5e8271acb2f610b0ba650697c1b68ae59c49a5d">00141</a> <span class="preprocessor"></span>                accessReadOnly = O_RDONLY,
<a name="l00142"></a><a class="code" href="classost_1_1_file.html#af371cd81457b88328c08c4501f5e8271a47fddcbc2462202862402f50dbd42459">00142</a>                 accessWriteOnly= O_WRONLY,
<a name="l00143"></a><a class="code" href="classost_1_1_file.html#af371cd81457b88328c08c4501f5e8271ae6776a9332be29f0ae3426d7f5d91a60">00143</a>                 accessReadWrite = O_RDWR
<a name="l00144"></a>00144 <span class="preprocessor">#else</span>
<a name="l00145"></a>00145 <span class="preprocessor"></span>                accessReadOnly = GENERIC_READ,
<a name="l00146"></a>00146                 accessWriteOnly = GENERIC_WRITE,
<a name="l00147"></a>00147                 accessReadWrite = GENERIC_READ | GENERIC_WRITE
<a name="l00148"></a>00148 <span class="preprocessor">#endif</span>
<a name="l00149"></a>00149 <span class="preprocessor"></span>        };
<a name="l00150"></a><a class="code" href="classost_1_1_file.html#abb89129e6b212f038cfbf591a791a48e">00150</a>         <span class="keyword">typedef</span> <span class="keyword">enum</span> <a class="code" href="classost_1_1_file.html#af371cd81457b88328c08c4501f5e8271">Access</a> <a class="code" href="classost_1_1_file.html#af371cd81457b88328c08c4501f5e8271">Access</a>;
<a name="l00151"></a>00151 
<a name="l00152"></a>00152 <span class="keyword">protected</span>:
<a name="l00153"></a><a class="code" href="structost_1_1_file_1_1__fcb.html">00153</a>         <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structost_1_1_file_1_1__fcb.html">_fcb</a> {
<a name="l00154"></a><a class="code" href="structost_1_1_file_1_1__fcb.html#a39849d37ebbaac4b9ace50cbac517c6b">00154</a>                 <span class="keyword">struct </span><a class="code" href="structost_1_1_file_1_1__fcb.html">_fcb</a> *next;
<a name="l00155"></a><a class="code" href="structost_1_1_file_1_1__fcb.html#aceebca344445afbf87316d8eaa73da7e">00155</a>                 <a class="code" href="file_8h.html#a0c3c2cf6b572d3e4659668a6d2ddc265">caddr_t</a> address;
<a name="l00156"></a><a class="code" href="structost_1_1_file_1_1__fcb.html#afba94087bf06d08d1c5d0794a645fb5c">00156</a>                 <a class="code" href="namespaceost.html#acedd0902cc2709bd066b9f8a2d1f44a0">ccxx_size_t</a> len;
<a name="l00157"></a><a class="code" href="structost_1_1_file_1_1__fcb.html#af8bba3cf0ce830566ae6a0a075625177">00157</a>                 off_t pos;
<a name="l00158"></a><a class="code" href="structost_1_1_file_1_1__fcb.html#abe1c0799a24cd0c7a8f3c23c3f75c198">00158</a>                 <span class="keywordtype">bool</span> locked;
<a name="l00159"></a>00159         } <a class="code" href="structost_1_1_file_1_1__fcb.html">fcb_t</a>;
<a name="l00160"></a>00160 
<a name="l00161"></a>00161 <span class="keyword">public</span>:
<a name="l00162"></a>00162 <span class="preprocessor">#ifdef  WIN32</span>
<a name="l00163"></a>00163 <span class="preprocessor"></span>        <span class="keyword">enum</span> <a class="code" href="classost_1_1_file.html#a8b12e2068a433de7f63427b549d9772d">Open</a> {
<a name="l00164"></a>00164                 openReadOnly, <span class="comment">// = FILE_OPEN_READONLY,</span>
<a name="l00165"></a>00165                 openWriteOnly, <span class="comment">// = FILE_OPEN_WRITEONLY,</span>
<a name="l00166"></a>00166                 openReadWrite, <span class="comment">// = FILE_OPEN_READWRITE,</span>
<a name="l00167"></a>00167                 openAppend, <span class="comment">// = FILE_OPEN_APPEND,</span>
<a name="l00168"></a>00168                 openTruncate <span class="comment">// = FILE_OPEN_TRUNCATE</span>
<a name="l00169"></a>00169         };
<a name="l00170"></a>00170 <span class="preprocessor">        #else</span>
<a name="l00171"></a><a class="code" href="classost_1_1_file.html#a8b12e2068a433de7f63427b549d9772d">00171</a> <span class="preprocessor"></span>        <span class="keyword">enum</span> <a class="code" href="classost_1_1_file.html#a8b12e2068a433de7f63427b549d9772d">Open</a> {
<a name="l00172"></a><a class="code" href="classost_1_1_file.html#a8b12e2068a433de7f63427b549d9772da4c5bc3b0beded5891dcc40d2cb2b24f6">00172</a>                 openReadOnly = O_RDONLY,
<a name="l00173"></a><a class="code" href="classost_1_1_file.html#a8b12e2068a433de7f63427b549d9772dad682d89e71a5dd3ac438c9d981ca3112">00173</a>                 openWriteOnly = O_WRONLY,
<a name="l00174"></a><a class="code" href="classost_1_1_file.html#a8b12e2068a433de7f63427b549d9772da4bf20ddd12a0cde912fd16662db49c49">00174</a>                 openReadWrite = O_RDWR,
<a name="l00175"></a><a class="code" href="classost_1_1_file.html#a8b12e2068a433de7f63427b549d9772da18ac77d351475d57ef12fc35e3f5c2ae">00175</a>                 openAppend = O_WRONLY | O_APPEND,
<a name="l00176"></a>00176 <span class="preprocessor">#ifdef  O_SYNC</span>
<a name="l00177"></a>00177 <span class="preprocessor"></span>                openSync = O_RDWR | O_SYNC,
<a name="l00178"></a>00178 <span class="preprocessor">#else</span>
<a name="l00179"></a><a class="code" href="classost_1_1_file.html#a8b12e2068a433de7f63427b549d9772dac7a180ce2eb4c708da93bc085ff83f9b">00179</a> <span class="preprocessor"></span>                openSync = O_RDWR,
<a name="l00180"></a>00180 <span class="preprocessor">#endif</span>
<a name="l00181"></a><a class="code" href="classost_1_1_file.html#a8b12e2068a433de7f63427b549d9772da758de2e4063c9ae6306409c117809321">00181</a> <span class="preprocessor"></span>                openTruncate = O_RDWR | O_TRUNC
<a name="l00182"></a>00182         };
<a name="l00183"></a><a class="code" href="classost_1_1_file.html#a4eedef07455f1487e2988d229ff8e2a7">00183</a>         <span class="keyword">typedef</span> <span class="keyword">enum</span> <a class="code" href="classost_1_1_file.html#a8b12e2068a433de7f63427b549d9772d">Open</a> <a class="code" href="classost_1_1_file.html#a8b12e2068a433de7f63427b549d9772d">Open</a>;
<a name="l00184"></a>00184 
<a name="l00185"></a>00185 <span class="comment">/* to be used in future */</span>
<a name="l00186"></a>00186 
<a name="l00187"></a>00187 <span class="preprocessor">#ifndef S_IRUSR</span>
<a name="l00188"></a><a class="code" href="file_8h.html#a84c7dbf5cf2fdfb690f76348b60a8cb7">00188</a> <span class="preprocessor"></span><span class="preprocessor">#define S_IRUSR 0400</span>
<a name="l00189"></a><a class="code" href="file_8h.html#ad70001754261c15a1bdc8e876c6d09d7">00189</a> <span class="preprocessor"></span><span class="preprocessor">#define S_IWUSR 0200</span>
<a name="l00190"></a><a class="code" href="file_8h.html#a4f5f280b929768113739fb34d6f7be8a">00190</a> <span class="preprocessor"></span><span class="preprocessor">#define S_IRGRP 0040</span>
<a name="l00191"></a><a class="code" href="file_8h.html#ae6774871a90d9442f00abe18b87fee6e">00191</a> <span class="preprocessor"></span><span class="preprocessor">#define S_IWGRP 0020</span>
<a name="l00192"></a><a class="code" href="file_8h.html#a071147a0cb995036967c80f64b1f74b9">00192</a> <span class="preprocessor"></span><span class="preprocessor">#define S_IROTH 0004</span>
<a name="l00193"></a><a class="code" href="file_8h.html#a5303f49f26293acdb9533756c78322fb">00193</a> <span class="preprocessor"></span><span class="preprocessor">#define S_IWOTH 0002</span>
<a name="l00194"></a>00194 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00195"></a>00195 <span class="preprocessor"></span>
<a name="l00196"></a>00196 <span class="preprocessor">#endif // !WIN32</span>
<a name="l00197"></a>00197 <span class="preprocessor"></span>
<a name="l00198"></a>00198 <span class="preprocessor">#ifndef WIN32</span>
<a name="l00199"></a><a class="code" href="classost_1_1_file.html#ae2d644ff1e3bff4611e73f5526081118">00199</a> <span class="preprocessor"></span>        <span class="keyword">enum</span> <a class="code" href="classost_1_1_file.html#ae2d644ff1e3bff4611e73f5526081118">Attr</a> {
<a name="l00200"></a><a class="code" href="classost_1_1_file.html#ae2d644ff1e3bff4611e73f5526081118a792916179434c95ed8e62da29e46749a">00200</a>                 attrInvalid = 0,
<a name="l00201"></a><a class="code" href="classost_1_1_file.html#ae2d644ff1e3bff4611e73f5526081118afb6d21af5bf0e8dfa64bbc4de94494ef">00201</a>                 attrPrivate = <a class="code" href="file_8h.html#a84c7dbf5cf2fdfb690f76348b60a8cb7">S_IRUSR</a> | <a class="code" href="file_8h.html#ad70001754261c15a1bdc8e876c6d09d7">S_IWUSR</a>,
<a name="l00202"></a><a class="code" href="classost_1_1_file.html#ae2d644ff1e3bff4611e73f5526081118ada5cbe9786424b3c652078c95d4ac5d3">00202</a>                 attrGroup = attrPrivate | <a class="code" href="file_8h.html#a4f5f280b929768113739fb34d6f7be8a">S_IRGRP</a> | <a class="code" href="file_8h.html#ae6774871a90d9442f00abe18b87fee6e">S_IWGRP</a>,
<a name="l00203"></a><a class="code" href="classost_1_1_file.html#ae2d644ff1e3bff4611e73f5526081118a572c71d829d969de792943d543067371">00203</a>                 attrPublic = attrGroup | <a class="code" href="file_8h.html#a071147a0cb995036967c80f64b1f74b9">S_IROTH</a> | <a class="code" href="file_8h.html#a5303f49f26293acdb9533756c78322fb">S_IWOTH</a>
<a name="l00204"></a>00204         };
<a name="l00205"></a>00205 <span class="preprocessor">        #else // defined WIN32</span>
<a name="l00206"></a>00206 <span class="preprocessor"></span>        <span class="keyword">enum</span> Attr {
<a name="l00207"></a>00207                 attrInvalid=0,
<a name="l00208"></a>00208                 attrPrivate,
<a name="l00209"></a>00209                 attrGroup,
<a name="l00210"></a>00210                 attrPublic
<a name="l00211"></a>00211         };
<a name="l00212"></a>00212 <span class="preprocessor">#endif // !WIN32</span>
<a name="l00213"></a><a class="code" href="classost_1_1_file.html#aec7dcd0857559c7b77fa1e5c7b8790be">00213</a> <span class="preprocessor"></span>        <span class="keyword">typedef</span> <span class="keyword">enum</span> <a class="code" href="classost_1_1_file.html#ae2d644ff1e3bff4611e73f5526081118">Attr</a> <a class="code" href="classost_1_1_file.html#ae2d644ff1e3bff4611e73f5526081118">Attr</a>;
<a name="l00214"></a>00214 
<a name="l00215"></a>00215 <span class="preprocessor">#ifdef  WIN32</span>
<a name="l00216"></a>00216 <span class="preprocessor"></span>        <span class="keyword">enum</span> <a class="code" href="classost_1_1_file.html#a81c533fbe84167e862768a396ff30e32">Complete</a> {
<a name="l00217"></a>00217                 completionImmediate, <span class="comment">// = FILE_COMPLETION_IMMEDIATE,</span>
<a name="l00218"></a>00218                 completionDelayed, <span class="comment">// = FILE_COMPLETION_DELAYED,</span>
<a name="l00219"></a>00219                 completionDeferred <span class="comment">// = FILE_COMPLETION_DEFERRED</span>
<a name="l00220"></a>00220         };
<a name="l00221"></a>00221 
<a name="l00222"></a>00222         <span class="keyword">enum</span> Mapping {
<a name="l00223"></a>00223                 mappedRead,
<a name="l00224"></a>00224                 mappedWrite,
<a name="l00225"></a>00225                 mappedReadWrite
<a name="l00226"></a>00226         };
<a name="l00227"></a>00227 <span class="preprocessor">#else</span>
<a name="l00228"></a><a class="code" href="classost_1_1_file.html#a19532855f2541003a0a2240e1310b6a3">00228</a> <span class="preprocessor"></span>        <span class="keyword">enum</span> <a class="code" href="classost_1_1_file.html#a19532855f2541003a0a2240e1310b6a3">Mapping</a> {
<a name="l00229"></a><a class="code" href="classost_1_1_file.html#a19532855f2541003a0a2240e1310b6a3a2630a8cb91de2acc9e4e606bbd062a59">00229</a>                 mappedRead = accessReadOnly,
<a name="l00230"></a><a class="code" href="classost_1_1_file.html#a19532855f2541003a0a2240e1310b6a3a38cb595821ce2e154fef758c44cdaec4">00230</a>                 mappedWrite = accessWriteOnly,
<a name="l00231"></a><a class="code" href="classost_1_1_file.html#a19532855f2541003a0a2240e1310b6a3a7347e2b33a199b520bc98dc136e4231f">00231</a>                 mappedReadWrite = accessReadWrite
<a name="l00232"></a>00232         };
<a name="l00233"></a><a class="code" href="classost_1_1_file.html#a81c533fbe84167e862768a396ff30e32">00233</a>         <span class="keyword">enum</span> <a class="code" href="classost_1_1_file.html#a81c533fbe84167e862768a396ff30e32">Complete</a> {
<a name="l00234"></a><a class="code" href="classost_1_1_file.html#a81c533fbe84167e862768a396ff30e32a1f7d50166d07b59cfa213e0a1686018f">00234</a>                 completionImmediate,
<a name="l00235"></a><a class="code" href="classost_1_1_file.html#a81c533fbe84167e862768a396ff30e32af26018fa0614b8f02af5c87cdcf1299b">00235</a>                 completionDelayed,
<a name="l00236"></a><a class="code" href="classost_1_1_file.html#a81c533fbe84167e862768a396ff30e32a0c2349e20e5133814955099a6408b9d8">00236</a>                 completionDeferred
<a name="l00237"></a>00237         };
<a name="l00238"></a>00238 <span class="preprocessor">#endif</span>
<a name="l00239"></a><a class="code" href="classost_1_1_file.html#a2afa7c4439dca397c91c687a2d7f7401">00239</a> <span class="preprocessor"></span>        <span class="keyword">typedef</span> <span class="keyword">enum</span> <a class="code" href="classost_1_1_file.html#a81c533fbe84167e862768a396ff30e32">Complete</a> <a class="code" href="classost_1_1_file.html#a81c533fbe84167e862768a396ff30e32">Complete</a>;
<a name="l00240"></a><a class="code" href="classost_1_1_file.html#a885985da266aee847c7ba6f85dddc17c">00240</a>         <span class="keyword">typedef</span> <span class="keyword">enum</span> <a class="code" href="classost_1_1_file.html#a19532855f2541003a0a2240e1310b6a3">Mapping</a> <a class="code" href="classost_1_1_file.html#a19532855f2541003a0a2240e1310b6a3">Mapping</a>;
<a name="l00241"></a>00241 
<a name="l00242"></a>00242 <span class="keyword">public</span>:
<a name="l00243"></a>00243         <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *getExtension(<span class="keyword">const</span> <span class="keywordtype">char</span> *path);
<a name="l00244"></a>00244         <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *getFilename(<span class="keyword">const</span> <span class="keywordtype">char</span> *path);
<a name="l00245"></a>00245         <span class="keyword">static</span> <span class="keywordtype">char</span> *getFilename(<span class="keyword">const</span> <span class="keywordtype">char</span> *path, <span class="keywordtype">char</span> *buffer, <span class="keywordtype">size_t</span> size = <a class="code" href="file_8h.html#ac64541bdd81c961304b9babef1402640">NAME_MAX</a>);
<a name="l00246"></a>00246         <span class="keyword">static</span> <span class="keywordtype">char</span> *getDirname(<span class="keyword">const</span> <span class="keywordtype">char</span> *path, <span class="keywordtype">char</span> *buffer, <span class="keywordtype">size_t</span> size = PATH_MAX);
<a name="l00247"></a>00247         <span class="keyword">static</span> <span class="keywordtype">char</span> *getRealpath(<span class="keyword">const</span> <span class="keywordtype">char</span> *path, <span class="keywordtype">char</span> *buffer, <span class="keywordtype">size_t</span> size = PATH_MAX);
<a name="l00248"></a>00248 };
<a name="l00249"></a>00249 
<a name="l00258"></a><a class="code" href="classost_1_1_dir.html">00258</a> <span class="keyword">class </span><a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> <a class="code" href="classost_1_1_dir.html" title="A low level portable directory class.">Dir</a> : <span class="keyword">public</span> <a class="code" href="classost_1_1_file.html">File</a>
<a name="l00259"></a>00259 {
<a name="l00260"></a>00260 <span class="keyword">private</span>:
<a name="l00261"></a>00261 <span class="preprocessor">#ifndef WIN32</span>
<a name="l00262"></a>00262 <span class="preprocessor"></span>        DIR *dir;
<a name="l00263"></a>00263 <span class="preprocessor">#ifdef  HAVE_READDIR_R</span>
<a name="l00264"></a>00264 <span class="preprocessor"></span>        <span class="keyword">struct </span>dirent *save;
<a name="l00265"></a>00265         <span class="keywordtype">char</span> save_space[<span class="keyword">sizeof</span>(<span class="keyword">struct </span>dirent) + PATH_MAX + 1];
<a name="l00266"></a>00266 <span class="preprocessor">#endif</span>
<a name="l00267"></a>00267 <span class="preprocessor"></span>        <span class="keyword">struct </span>dirent *entry;
<a name="l00268"></a>00268 <span class="preprocessor">#else</span>
<a name="l00269"></a>00269 <span class="preprocessor"></span>        <a class="code" href="serial_8h.html#a069bb8cb95b0528d5ce0304bb5561a40">HANDLE</a> hDir;
<a name="l00270"></a>00270         WIN32_FIND_DATA data, fdata;
<a name="l00271"></a>00271         <span class="keywordtype">char</span> *name;
<a name="l00272"></a>00272 <span class="preprocessor">#endif</span>
<a name="l00273"></a>00273 <span class="preprocessor"></span>
<a name="l00274"></a>00274 <span class="keyword">public</span>:
<a name="l00275"></a>00275         <a class="code" href="classost_1_1_dir.html" title="A low level portable directory class.">Dir</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *name = NULL);
<a name="l00276"></a>00276 
<a name="l00277"></a>00277         <span class="keyword">static</span> <span class="keywordtype">bool</span> create(<span class="keyword">const</span> <span class="keywordtype">char</span> *path, <a class="code" href="classost_1_1_file.html#ae2d644ff1e3bff4611e73f5526081118">Attr</a> attr = attrGroup);
<a name="l00278"></a>00278         <span class="keyword">static</span> <span class="keywordtype">bool</span> <span class="keyword">remove</span>(<span class="keyword">const</span> <span class="keywordtype">char</span> *path);
<a name="l00279"></a>00279         <span class="keyword">static</span> <span class="keywordtype">bool</span> setPrefix(<span class="keyword">const</span> <span class="keywordtype">char</span> *path);
<a name="l00280"></a>00280         <span class="keyword">static</span> <span class="keywordtype">bool</span> getPrefix(<span class="keywordtype">char</span> *path, <span class="keywordtype">size_t</span> size = PATH_MAX);
<a name="l00281"></a>00281 
<a name="l00282"></a>00282         <span class="keywordtype">void</span> open(<span class="keyword">const</span> <span class="keywordtype">char</span> *name);
<a name="l00283"></a>00283         <span class="keywordtype">void</span> close(<span class="keywordtype">void</span>);
<a name="l00284"></a>00284 
<a name="l00285"></a>00285         <span class="keyword">virtual</span> ~<a class="code" href="classost_1_1_dir.html" title="A low level portable directory class.">Dir</a>();
<a name="l00286"></a>00286 
<a name="l00287"></a>00287         <span class="keyword">const</span> <span class="keywordtype">char</span> *getName(<span class="keywordtype">void</span>);
<a name="l00288"></a>00288 
<a name="l00289"></a><a class="code" href="classost_1_1_dir.html#abf520535c863cb5a1b94f0612f5c6ca3">00289</a>         <span class="keyword">const</span> <span class="keywordtype">char</span> *operator++()
<a name="l00290"></a>00290                 {<span class="keywordflow">return</span> getName();};
<a name="l00291"></a>00291 
<a name="l00292"></a><a class="code" href="classost_1_1_dir.html#a38d64fc32a9e901edbcf3476ef849ff1">00292</a>         <span class="keyword">const</span> <span class="keywordtype">char</span> *operator++(<span class="keywordtype">int</span>)
<a name="l00293"></a>00293                 {<span class="keywordflow">return</span> getName();};
<a name="l00294"></a>00294 
<a name="l00295"></a>00295         <span class="keyword">const</span> <span class="keywordtype">char</span> *operator*();
<a name="l00296"></a>00296 
<a name="l00297"></a>00297         <span class="keywordtype">bool</span> rewind(<span class="keywordtype">void</span>);
<a name="l00298"></a>00298 
<a name="l00299"></a><a class="code" href="classost_1_1_dir.html#ab346cc699cf34444e58bb481e2c0336b">00299</a>         <span class="keywordtype">bool</span> operator!()
<a name="l00300"></a>00300 <span class="preprocessor">#ifndef WIN32</span>
<a name="l00301"></a>00301 <span class="preprocessor"></span>                {<span class="keywordflow">return</span> !dir;};
<a name="l00302"></a>00302 <span class="preprocessor">#else</span>
<a name="l00303"></a>00303 <span class="preprocessor"></span>                {<span class="keywordflow">return</span> hDir != <a class="code" href="serial_8h.html#a5fdc7facea201bfce4ad308105f88d0c">INVALID_HANDLE_VALUE</a>;};
<a name="l00304"></a>00304 <span class="preprocessor">#endif</span>
<a name="l00305"></a>00305 <span class="preprocessor"></span>
<a name="l00306"></a>00306         <span class="keywordtype">bool</span> isValid(<span class="keywordtype">void</span>);
<a name="l00307"></a>00307 };
<a name="l00308"></a>00308 
<a name="l00315"></a><a class="code" href="classost_1_1_dir_tree.html">00315</a> <span class="keyword">class </span><a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a>  <a class="code" href="classost_1_1_dir_tree.html" title="A generic class to walk a hierarchical directory structure.">DirTree</a>
<a name="l00316"></a>00316 {
<a name="l00317"></a>00317 <span class="keyword">private</span>:
<a name="l00318"></a>00318         <span class="keywordtype">char</span> path[PATH_MAX + 1];
<a name="l00319"></a>00319         <a class="code" href="classost_1_1_dir.html" title="A low level portable directory class.">Dir</a> *dir;
<a name="l00320"></a>00320         <span class="keywordtype">unsigned</span> max, current, prefixpos;
<a name="l00321"></a>00321 
<a name="l00322"></a>00322 <span class="keyword">protected</span>:
<a name="l00332"></a>00332         <span class="keyword">virtual</span> <span class="keywordtype">bool</span> filter(<span class="keyword">const</span> <span class="keywordtype">char</span> *file, <span class="keyword">struct</span> stat *ino);
<a name="l00333"></a>00333 
<a name="l00334"></a>00334 <span class="keyword">public</span>:
<a name="l00342"></a>00342         <a class="code" href="classost_1_1_dir_tree.html" title="A generic class to walk a hierarchical directory structure.">DirTree</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *prefix, <span class="keywordtype">unsigned</span> maxdepth);
<a name="l00343"></a>00343 
<a name="l00349"></a>00349         <a class="code" href="classost_1_1_dir_tree.html" title="A generic class to walk a hierarchical directory structure.">DirTree</a>(<span class="keywordtype">unsigned</span> maxdepth);
<a name="l00350"></a>00350 
<a name="l00351"></a>00351         <span class="keyword">virtual</span> ~<a class="code" href="classost_1_1_dir_tree.html" title="A generic class to walk a hierarchical directory structure.">DirTree</a>();
<a name="l00352"></a>00352 
<a name="l00358"></a>00358         <span class="keywordtype">void</span> open(<span class="keyword">const</span> <span class="keywordtype">char</span> *prefix);
<a name="l00359"></a>00359 
<a name="l00363"></a>00363         <span class="keywordtype">void</span> close(<span class="keywordtype">void</span>);
<a name="l00364"></a>00364 
<a name="l00372"></a>00372         <span class="keywordtype">char</span> *getPath(<span class="keywordtype">void</span>);
<a name="l00373"></a>00373 
<a name="l00383"></a>00383         <span class="keywordtype">unsigned</span> perform(<span class="keyword">const</span> <span class="keywordtype">char</span> *prefix);
<a name="l00384"></a>00384 };
<a name="l00385"></a>00385 
<a name="l00396"></a><a class="code" href="classost_1_1_random_file.html">00396</a> <span class="keyword">class </span><a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> <a class="code" href="classost_1_1_random_file.html" title="The purpose of this class is to define a base class for low level random file access...">RandomFile</a> : <span class="keyword">protected</span> <a class="code" href="classost_1_1_mutex.html" title="The Mutex class is used to protect a section of code so that at any given time only...">Mutex</a>, <span class="keyword">public</span> <a class="code" href="classost_1_1_file.html">File</a>
<a name="l00397"></a>00397 {
<a name="l00398"></a>00398 <span class="keyword">private</span>:
<a name="l00399"></a>00399         <a class="code" href="classost_1_1_file.html#a726c26bbd45c9cb0701267a2824284e6">Error</a> errid;
<a name="l00400"></a>00400         <span class="keywordtype">char</span> *errstr;
<a name="l00401"></a>00401 
<a name="l00402"></a>00402 <span class="keyword">protected</span>:
<a name="l00403"></a>00403 <span class="preprocessor">#ifndef WIN32</span>
<a name="l00404"></a><a class="code" href="classost_1_1_random_file.html#abc91558a45f6d8c78165625e01addc0c">00404</a> <span class="preprocessor"></span>        <span class="keywordtype">int</span> fd;
<a name="l00405"></a>00405         <span class="comment">// FIXME: WIN32 as no access member</span>
<a name="l00406"></a><a class="code" href="classost_1_1_random_file.html#a36f63b4d57f5f789f4ec3cade258ceba">00406</a>         <a class="code" href="classost_1_1_file.html#af371cd81457b88328c08c4501f5e8271">Access</a> access;
<a name="l00407"></a>00407 <span class="preprocessor">#else</span>
<a name="l00408"></a>00408 <span class="preprocessor"></span>        <a class="code" href="serial_8h.html#a069bb8cb95b0528d5ce0304bb5561a40">HANDLE</a> fd;
<a name="l00409"></a>00409 <span class="preprocessor">#endif</span>
<a name="l00410"></a><a class="code" href="classost_1_1_random_file.html#a564788b0bea48ae7ea0155a5bf01be31">00410</a> <span class="preprocessor"></span>        <span class="keywordtype">char</span> *pathname;
<a name="l00411"></a>00411 
<a name="l00412"></a>00412         <span class="keyword">struct </span>{
<a name="l00413"></a><a class="code" href="classost_1_1_random_file.html#aeda3247665dcab25eadc6c1cda60f035">00413</a>                 <span class="keywordtype">unsigned</span> count : 16;
<a name="l00414"></a><a class="code" href="classost_1_1_random_file.html#a289ffc07e73dcb9498f94bbf4fba850e">00414</a>                 <span class="keywordtype">bool</span> thrown : 1;
<a name="l00415"></a><a class="code" href="classost_1_1_random_file.html#af02ec49a4e28eeb3eefd76926ff18857">00415</a>                 <span class="keywordtype">bool</span> initial : 1;
<a name="l00416"></a>00416 <span class="preprocessor">#ifndef WIN32</span>
<a name="l00417"></a><a class="code" href="classost_1_1_random_file.html#a7b1672a1fbe2f99bee46abd9f725a3ef">00417</a> <span class="preprocessor"></span>                <span class="keywordtype">bool</span> immediate : 1;
<a name="l00418"></a>00418 <span class="preprocessor">#endif</span>
<a name="l00419"></a><a class="code" href="classost_1_1_random_file.html#a73521e78146eebab7d971975ee909739">00419</a> <span class="preprocessor"></span>                <span class="keywordtype">bool</span> temp : 1;
<a name="l00420"></a>00420         } flags;
<a name="l00421"></a>00421 
<a name="l00425"></a>00425         <a class="code" href="classost_1_1_random_file.html" title="The purpose of this class is to define a base class for low level random file access...">RandomFile</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *name = NULL);
<a name="l00426"></a>00426 
<a name="l00430"></a>00430         <a class="code" href="classost_1_1_random_file.html" title="The purpose of this class is to define a base class for low level random file access...">RandomFile</a>(<span class="keyword">const</span> <a class="code" href="classost_1_1_random_file.html" title="The purpose of this class is to define a base class for low level random file access...">RandomFile</a> &amp;rf);
<a name="l00431"></a>00431 
<a name="l00439"></a>00439         Error <a class="code" href="namespaceost.html#a61faeec2dc6ec946dc3e98979bd93124" title="Manipulator for error level.">error</a>(Error errid, <span class="keywordtype">char</span> *errstr = NULL);
<a name="l00440"></a>00440 
<a name="l00447"></a><a class="code" href="classost_1_1_random_file.html#a92df85d985d4fd0f4b272742243db7da">00447</a>         <span class="keyword">inline</span> <a class="code" href="classost_1_1_file.html#a726c26bbd45c9cb0701267a2824284e6">Error</a> <a class="code" href="namespaceost.html#a61faeec2dc6ec946dc3e98979bd93124" title="Manipulator for error level.">error</a>(<span class="keywordtype">char</span> *err)
<a name="l00448"></a>00448                 {<span class="keywordflow">return</span> <a class="code" href="classost_1_1_random_file.html#a92df85d985d4fd0f4b272742243db7da" title="Post an extended string error message.">error</a>(errExtended, err);};
<a name="l00449"></a>00449 
<a name="l00456"></a><a class="code" href="classost_1_1_random_file.html#af8205a0d1592268c7de8212c7c5d38b1">00456</a>         <span class="keyword">inline</span> <span class="keywordtype">void</span> setError(<span class="keywordtype">bool</span> enable)
<a name="l00457"></a>00457                 {flags.thrown = !enable;};
<a name="l00458"></a>00458 
<a name="l00459"></a>00459 <span class="preprocessor">#ifndef WIN32</span>
<a name="l00460"></a>00460 <span class="preprocessor"></span>
<a name="l00467"></a>00467         Error setCompletion(Complete mode);
<a name="l00468"></a>00468 <span class="preprocessor">#endif</span>
<a name="l00469"></a>00469 <span class="preprocessor"></span>
<a name="l00476"></a><a class="code" href="classost_1_1_random_file.html#a429480dd369c4058a8af0cc8ec91866a">00476</a>         <span class="keyword">inline</span> <span class="keywordtype">void</span> setTemporary(<span class="keywordtype">bool</span> enable)
<a name="l00477"></a>00477                 {flags.temp = enable;};
<a name="l00478"></a>00478 
<a name="l00490"></a>00490         <span class="keyword">virtual</span> Attr initialize(<span class="keywordtype">void</span>);
<a name="l00491"></a>00491 
<a name="l00495"></a>00495         <span class="keywordtype">void</span> <span class="keyword">final</span>(void);
<a name="l00496"></a>00496 
<a name="l00497"></a>00497 <span class="keyword">public</span>:
<a name="l00501"></a>00501         <span class="keyword">virtual</span> ~<a class="code" href="classost_1_1_random_file.html" title="The purpose of this class is to define a base class for low level random file access...">RandomFile</a>();
<a name="l00502"></a>00502 
<a name="l00511"></a>00511         <span class="keywordtype">bool</span> initial(<span class="keywordtype">void</span>);
<a name="l00512"></a>00512 
<a name="l00518"></a>00518         off_t getCapacity(<span class="keywordtype">void</span>);
<a name="l00519"></a>00519 
<a name="l00525"></a>00525         <span class="keyword">virtual</span> Error restart(<span class="keywordtype">void</span>);
<a name="l00526"></a>00526 
<a name="l00532"></a><a class="code" href="classost_1_1_random_file.html#a4c6b37d6c510619a3988eb2024e5596e">00532</a>         <span class="keyword">inline</span> <a class="code" href="classost_1_1_file.html#a726c26bbd45c9cb0701267a2824284e6">Error</a> getErrorNumber(<span class="keywordtype">void</span>)
<a name="l00533"></a>00533                 {<span class="keywordflow">return</span> errid;};
<a name="l00534"></a>00534 
<a name="l00540"></a><a class="code" href="classost_1_1_random_file.html#a161d0a323f1493fb241537c780ea50d3">00540</a>         <span class="keyword">inline</span> <span class="keywordtype">char</span> *getErrorString(<span class="keywordtype">void</span>)
<a name="l00541"></a>00541                 {<span class="keywordflow">return</span> errstr;};
<a name="l00542"></a>00542 
<a name="l00543"></a>00543         <span class="keywordtype">bool</span> operator!(<span class="keywordtype">void</span>);
<a name="l00544"></a>00544 };
<a name="l00545"></a>00545 
<a name="l00565"></a><a class="code" href="classost_1_1_thread_file.html">00565</a> <span class="keyword">class </span><a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> <a class="code" href="classost_1_1_thread_file.html" title="This class defines a database I/O file service that can be shared by multiple threads...">ThreadFile</a> : <span class="keyword">public</span> <a class="code" href="classost_1_1_random_file.html" title="The purpose of this class is to define a base class for low level random file access...">RandomFile</a>
<a name="l00566"></a>00566 {
<a name="l00567"></a>00567 <span class="keyword">private</span>:
<a name="l00568"></a>00568         <a class="code" href="classost_1_1_thread_key.html" title="This class allows the creation of a thread context unique &amp;quot;pointer&amp;quot; that...">ThreadKey</a> state;
<a name="l00569"></a>00569         fcb_t *first;
<a name="l00570"></a>00570         fcb_t *getFCB(<span class="keywordtype">void</span>);
<a name="l00571"></a>00571         <a class="code" href="classost_1_1_file.html#a726c26bbd45c9cb0701267a2824284e6">Error</a> open(<span class="keyword">const</span> <span class="keywordtype">char</span> *path);
<a name="l00572"></a>00572 
<a name="l00573"></a>00573 <span class="keyword">public</span>:
<a name="l00580"></a>00580         <a class="code" href="classost_1_1_thread_file.html" title="This class defines a database I/O file service that can be shared by multiple threads...">ThreadFile</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *path);
<a name="l00581"></a>00581 
<a name="l00585"></a>00585         <span class="keyword">virtual</span> ~<a class="code" href="classost_1_1_thread_file.html" title="This class defines a database I/O file service that can be shared by multiple threads...">ThreadFile</a>();
<a name="l00586"></a>00586 
<a name="l00592"></a>00592         <a class="code" href="classost_1_1_file.html#a726c26bbd45c9cb0701267a2824284e6">Error</a> restart(<span class="keywordtype">void</span>);
<a name="l00593"></a>00593 
<a name="l00603"></a>00603         <a class="code" href="classost_1_1_file.html#a726c26bbd45c9cb0701267a2824284e6">Error</a> fetch(<a class="code" href="file_8h.html#a0c3c2cf6b572d3e4659668a6d2ddc265">caddr_t</a> address = NULL, <a class="code" href="namespaceost.html#acedd0902cc2709bd066b9f8a2d1f44a0">ccxx_size_t</a> length = 0, off_t position = -1);
<a name="l00604"></a>00604 
<a name="l00614"></a>00614         <a class="code" href="classost_1_1_file.html#a726c26bbd45c9cb0701267a2824284e6">Error</a> update(<a class="code" href="file_8h.html#a0c3c2cf6b572d3e4659668a6d2ddc265">caddr_t</a> address = NULL, <a class="code" href="namespaceost.html#acedd0902cc2709bd066b9f8a2d1f44a0">ccxx_size_t</a> length = 0, off_t position = -1);
<a name="l00615"></a>00615 
<a name="l00621"></a>00621         <a class="code" href="classost_1_1_file.html#a726c26bbd45c9cb0701267a2824284e6">Error</a> append(<a class="code" href="file_8h.html#a0c3c2cf6b572d3e4659668a6d2ddc265">caddr_t</a> address = NULL, <a class="code" href="namespaceost.html#acedd0902cc2709bd066b9f8a2d1f44a0">ccxx_size_t</a> length = 0);
<a name="l00622"></a>00622 
<a name="l00628"></a>00628         off_t getPosition(<span class="keywordtype">void</span>);
<a name="l00629"></a>00629 
<a name="l00630"></a>00630         <span class="keywordtype">bool</span> operator++(<span class="keywordtype">void</span>);
<a name="l00631"></a>00631         <span class="keywordtype">bool</span> operator--(<span class="keywordtype">void</span>);
<a name="l00632"></a>00632 };
<a name="l00633"></a>00633 
<a name="l00648"></a><a class="code" href="classost_1_1_shared_file.html">00648</a> <span class="keyword">class </span><a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> <a class="code" href="classost_1_1_shared_file.html" title="This class defines a database I/O file service that can be shared by multiple processes...">SharedFile</a> : <span class="keyword">public</span> <a class="code" href="classost_1_1_random_file.html" title="The purpose of this class is to define a base class for low level random file access...">RandomFile</a>
<a name="l00649"></a>00649 {
<a name="l00650"></a>00650 <span class="keyword">private</span>:
<a name="l00651"></a>00651         <a class="code" href="structost_1_1_file_1_1__fcb.html">fcb_t</a> fcb;
<a name="l00652"></a>00652         <a class="code" href="classost_1_1_file.html#a726c26bbd45c9cb0701267a2824284e6">Error</a> open(<span class="keyword">const</span> <span class="keywordtype">char</span> *path);
<a name="l00653"></a>00653 
<a name="l00654"></a>00654 <span class="keyword">public</span>:
<a name="l00661"></a>00661         <a class="code" href="classost_1_1_shared_file.html" title="This class defines a database I/O file service that can be shared by multiple processes...">SharedFile</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *path);
<a name="l00662"></a>00662 
<a name="l00669"></a>00669         <a class="code" href="classost_1_1_shared_file.html" title="This class defines a database I/O file service that can be shared by multiple processes...">SharedFile</a>(<span class="keyword">const</span> <a class="code" href="classost_1_1_shared_file.html" title="This class defines a database I/O file service that can be shared by multiple processes...">SharedFile</a> &amp;file);
<a name="l00670"></a>00670 
<a name="l00674"></a>00674         <span class="keyword">virtual</span> ~<a class="code" href="classost_1_1_shared_file.html" title="This class defines a database I/O file service that can be shared by multiple processes...">SharedFile</a>();
<a name="l00675"></a>00675 
<a name="l00681"></a><a class="code" href="classost_1_1_shared_file.html#a254c43de705b9ad9f5d24536b6cff1e0">00681</a>         <a class="code" href="classost_1_1_file.html#a726c26bbd45c9cb0701267a2824284e6">Error</a> restart(<span class="keywordtype">void</span>)
<a name="l00682"></a>00682                 {<span class="keywordflow">return</span> open(pathname);};
<a name="l00683"></a>00683 
<a name="l00694"></a>00694         Error fetch(<a class="code" href="file_8h.html#a0c3c2cf6b572d3e4659668a6d2ddc265">caddr_t</a> address = NULL, <a class="code" href="namespaceost.html#acedd0902cc2709bd066b9f8a2d1f44a0">ccxx_size_t</a> length = 0, off_t position = -1);
<a name="l00695"></a>00695 
<a name="l00706"></a>00706         Error update(<a class="code" href="file_8h.html#a0c3c2cf6b572d3e4659668a6d2ddc265">caddr_t</a> address = NULL, <a class="code" href="namespaceost.html#acedd0902cc2709bd066b9f8a2d1f44a0">ccxx_size_t</a> length = 0, off_t position = -1);
<a name="l00707"></a>00707 
<a name="l00716"></a>00716         Error clear(<a class="code" href="namespaceost.html#acedd0902cc2709bd066b9f8a2d1f44a0">ccxx_size_t</a> length = 0, off_t pos = -1);
<a name="l00717"></a>00717 
<a name="l00724"></a>00724         Error append(<a class="code" href="file_8h.html#a0c3c2cf6b572d3e4659668a6d2ddc265">caddr_t</a> address = NULL, <a class="code" href="namespaceost.html#acedd0902cc2709bd066b9f8a2d1f44a0">ccxx_size_t</a> length = 0);
<a name="l00725"></a>00725 
<a name="l00731"></a>00731         off_t getPosition(<span class="keywordtype">void</span>);
<a name="l00732"></a>00732 
<a name="l00733"></a>00733         <span class="keywordtype">bool</span> operator++(<span class="keywordtype">void</span>);
<a name="l00734"></a>00734         <span class="keywordtype">bool</span> operator--(<span class="keywordtype">void</span>);
<a name="l00735"></a>00735 };
<a name="l00736"></a>00736 
<a name="l00747"></a><a class="code" href="classost_1_1_mapped_file.html">00747</a> <span class="keyword">class </span><a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> <a class="code" href="classost_1_1_mapped_file.html" title="Create and map a disk file into memory.">MappedFile</a> : <span class="keyword">public</span> <a class="code" href="classost_1_1_random_file.html" title="The purpose of this class is to define a base class for low level random file access...">RandomFile</a>
<a name="l00748"></a>00748 {
<a name="l00749"></a>00749 <span class="keyword">private</span>:
<a name="l00750"></a>00750         fcb_t fcb;
<a name="l00751"></a>00751         <span class="keywordtype">int</span> prot;
<a name="l00752"></a>00752 <span class="preprocessor">#ifdef  WIN32</span>
<a name="l00753"></a>00753 <span class="preprocessor"></span>        <a class="code" href="serial_8h.html#a069bb8cb95b0528d5ce0304bb5561a40">HANDLE</a> map;
<a name="l00754"></a>00754         <span class="keywordtype">char</span> mapname[64];
<a name="l00755"></a>00755 <span class="preprocessor">#endif</span>
<a name="l00756"></a>00756 <span class="preprocessor"></span>
<a name="l00757"></a>00757 <span class="keyword">public</span>:
<a name="l00765"></a>00765         <a class="code" href="classost_1_1_mapped_file.html" title="Create and map a disk file into memory.">MappedFile</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *fname, <a class="code" href="classost_1_1_file.html#af371cd81457b88328c08c4501f5e8271">Access</a> mode);
<a name="l00766"></a>00766 
<a name="l00775"></a>00775         <a class="code" href="classost_1_1_mapped_file.html" title="Create and map a disk file into memory.">MappedFile</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *fname, <a class="code" href="classost_1_1_file.html#af371cd81457b88328c08c4501f5e8271">Access</a> mode, <span class="keywordtype">size_t</span> size);
<a name="l00776"></a>00776 
<a name="l00787"></a>00787         <a class="code" href="classost_1_1_mapped_file.html" title="Create and map a disk file into memory.">MappedFile</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *fname, <a class="code" href="namespaceost.html#a4bb988be58c6264b160ef2d6ceb178e5">pos_t</a> offset, <span class="keywordtype">size_t</span> size, <a class="code" href="classost_1_1_file.html#af371cd81457b88328c08c4501f5e8271">Access</a> mode);
<a name="l00788"></a>00788 
<a name="l00793"></a>00793         <span class="keyword">virtual</span> ~<a class="code" href="classost_1_1_mapped_file.html" title="Create and map a disk file into memory.">MappedFile</a>();
<a name="l00794"></a>00794 
<a name="l00795"></a>00795         <span class="comment">// FIXME: not use library function in header ??</span>
<a name="l00801"></a>00801 <span class="comment"></span>        <span class="keywordtype">void</span> sync(<span class="keywordtype">void</span>);
<a name="l00802"></a>00802 
<a name="l00809"></a>00809         <span class="keywordtype">void</span> sync(<a class="code" href="file_8h.html#a0c3c2cf6b572d3e4659668a6d2ddc265">caddr_t</a> address, <span class="keywordtype">size_t</span> len);
<a name="l00810"></a>00810 
<a name="l00819"></a>00819         <span class="keywordtype">void</span> update(<span class="keywordtype">size_t</span> offset = 0, <span class="keywordtype">size_t</span> len = 0);
<a name="l00820"></a>00820 
<a name="l00828"></a>00828         <span class="keywordtype">void</span> update(<a class="code" href="file_8h.html#a0c3c2cf6b572d3e4659668a6d2ddc265">caddr_t</a> address, <span class="keywordtype">size_t</span> len);
<a name="l00829"></a>00829 
<a name="l00836"></a>00836         <span class="keywordtype">void</span> release(<a class="code" href="file_8h.html#a0c3c2cf6b572d3e4659668a6d2ddc265">caddr_t</a> address, <span class="keywordtype">size_t</span> len);
<a name="l00837"></a>00837 
<a name="l00846"></a><a class="code" href="classost_1_1_mapped_file.html#a0d8be211f29d23d39051a86512dee853">00846</a>         <span class="keyword">inline</span> <a class="code" href="file_8h.html#a0c3c2cf6b572d3e4659668a6d2ddc265">caddr_t</a> fetch(<span class="keywordtype">size_t</span> offset = 0)
<a name="l00847"></a>00847                 {<span class="keywordflow">return</span> ((<span class="keywordtype">char</span> *)(fcb.address)) + offset;};
<a name="l00848"></a>00848 
<a name="l00857"></a>00857         <a class="code" href="file_8h.html#a0c3c2cf6b572d3e4659668a6d2ddc265">caddr_t</a> fetch(off_t pos, <span class="keywordtype">size_t</span> len);
<a name="l00858"></a>00858 
<a name="l00864"></a>00864         <span class="keywordtype">bool</span> lock(<span class="keywordtype">void</span>);
<a name="l00865"></a>00865 
<a name="l00869"></a>00869         <span class="keywordtype">void</span> unlock(<span class="keywordtype">void</span>);
<a name="l00870"></a>00870 
<a name="l00877"></a>00877         <span class="keywordtype">size_t</span> pageAligned(<span class="keywordtype">size_t</span> size);
<a name="l00878"></a>00878 };
<a name="l00879"></a>00879 
<a name="l00880"></a>00880 
<a name="l00889"></a><a class="code" href="classost_1_1_d_s_o.html">00889</a> <span class="keyword">class </span><a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> <a class="code" href="classost_1_1_d_s_o.html" title="The DSO dynamic loader class is used to load object files.">DSO</a>
<a name="l00890"></a>00890 {
<a name="l00891"></a>00891 <span class="keyword">private</span>:
<a name="l00892"></a>00892         <span class="keyword">const</span> <span class="keywordtype">char</span> *err;
<a name="l00893"></a>00893 <span class="preprocessor">#ifdef  HAVE_MODULES</span>
<a name="l00894"></a>00894 <span class="preprocessor"></span>        <span class="keyword">static</span> <a class="code" href="classost_1_1_mutex.html" title="The Mutex class is used to protect a section of code so that at any given time only...">Mutex</a> mutex;
<a name="l00895"></a>00895         <span class="keyword">static</span> <a class="code" href="classost_1_1_d_s_o.html" title="The DSO dynamic loader class is used to load object files.">DSO</a> *first;
<a name="l00896"></a>00896         <span class="keyword">static</span> <a class="code" href="classost_1_1_d_s_o.html" title="The DSO dynamic loader class is used to load object files.">DSO</a> *last;
<a name="l00897"></a>00897         <a class="code" href="classost_1_1_d_s_o.html" title="The DSO dynamic loader class is used to load object files.">DSO</a> *next, *prev;
<a name="l00898"></a>00898         <span class="keyword">const</span> <span class="keywordtype">char</span> *id;
<a name="l00899"></a>00899 <span class="preprocessor">#if     defined(HAVE_MACH_DYLD)</span>
<a name="l00900"></a>00900 <span class="preprocessor"></span>        NSModule oModule;
<a name="l00901"></a>00901 <span class="preprocessor">#elif   defined(HAVE_SHL_LOAD)</span>
<a name="l00902"></a>00902 <span class="preprocessor"></span>        shl_t image;
<a name="l00903"></a>00903 <span class="preprocessor">#elif   defined(WIN32)</span>
<a name="l00904"></a>00904 <span class="preprocessor"></span>        HINSTANCE hImage;
<a name="l00905"></a>00905 <span class="preprocessor">#else</span>
<a name="l00906"></a>00906 <span class="preprocessor"></span>        <span class="keywordtype">void</span> *image;
<a name="l00907"></a>00907 <span class="preprocessor">#endif</span>
<a name="l00908"></a>00908 <span class="preprocessor"></span>        <span class="keywordtype">void</span> loader(<span class="keyword">const</span> <span class="keywordtype">char</span> *filename, <span class="keywordtype">bool</span> resolve);
<a name="l00909"></a>00909 <span class="preprocessor">#endif</span>
<a name="l00910"></a>00910 <span class="preprocessor"></span>
<a name="l00911"></a>00911 <span class="keyword">public</span>:
<a name="l00917"></a>00917 <span class="preprocessor">#ifdef  HAVE_MODULES</span>
<a name="l00918"></a><a class="code" href="classost_1_1_d_s_o.html#a38010e609db983bf8c07120b47c82078">00918</a> <span class="preprocessor"></span>        <a class="code" href="classost_1_1_d_s_o.html" title="The DSO dynamic loader class is used to load object files.">DSO</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *filename)
<a name="l00919"></a>00919                 {loader(filename, <span class="keyword">true</span>);};
<a name="l00920"></a>00920 
<a name="l00921"></a><a class="code" href="classost_1_1_d_s_o.html#a2b4df72c23dbca413654f26ca8f838c3">00921</a>         <a class="code" href="classost_1_1_d_s_o.html" title="The DSO dynamic loader class is used to load object files.">DSO</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *filename, <span class="keywordtype">bool</span> resolve)
<a name="l00922"></a>00922                 {loader(filename, resolve);};
<a name="l00923"></a>00923 <span class="preprocessor">#else</span>
<a name="l00924"></a>00924 <span class="preprocessor"></span>        <a class="code" href="classost_1_1_d_s_o.html" title="The DSO dynamic loader class is used to load object files.">DSO</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *filename)
<a name="l00925"></a>00925                 {<span class="keywordflow">throw</span> <span class="keyword">this</span>;};
<a name="l00926"></a>00926         DSO(<span class="keyword">const</span> <span class="keywordtype">char</span> *filename, <span class="keywordtype">bool</span> resolve)
<a name="l00927"></a>00927                 {<span class="keywordflow">throw</span> <span class="keyword">this</span>;};
<a name="l00928"></a>00928 <span class="preprocessor">#endif</span>
<a name="l00929"></a>00929 <span class="preprocessor"></span>
<a name="l00934"></a><a class="code" href="classost_1_1_d_s_o.html#ae6c8fceb1e5545d692322ed3cfcbe809">00934</a>         <span class="keyword">inline</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *getError(<span class="keywordtype">void</span>)
<a name="l00935"></a>00935                 {<span class="keywordflow">return</span> err;};
<a name="l00936"></a>00936 
<a name="l00940"></a>00940 <span class="preprocessor">#ifdef  HAVE_MODULES</span>
<a name="l00941"></a>00941 <span class="preprocessor"></span>        <span class="keyword">virtual</span> ~<a class="code" href="classost_1_1_d_s_o.html" title="The DSO dynamic loader class is used to load object files.">DSO</a>();
<a name="l00942"></a>00942 <span class="preprocessor">#endif</span>
<a name="l00943"></a>00943 <span class="preprocessor"></span>
<a name="l00947"></a>00947 <span class="preprocessor">#ifdef  HAVE_MODULES</span>
<a name="l00948"></a>00948 <span class="preprocessor"></span>        <span class="keywordtype">void</span>* operator[](<span class="keyword">const</span> <span class="keywordtype">char</span> *sym);
<a name="l00949"></a>00949 <span class="preprocessor">#else</span>
<a name="l00950"></a>00950 <span class="preprocessor"></span>        <span class="keywordtype">void</span> *operator[](<span class="keyword">const</span> <span class="keywordtype">char</span> *)
<a name="l00951"></a>00951                 {<span class="keywordflow">return</span> NULL;};
<a name="l00952"></a>00952 <span class="preprocessor">#endif</span>
<a name="l00953"></a>00953 <span class="preprocessor"></span>
<a name="l00954"></a>00954 <span class="preprocessor">#ifdef  HAVE_MODULES</span>
<a name="l00955"></a>00955 <span class="preprocessor"></span>        <span class="keyword">static</span> <span class="keywordtype">void</span> dynunload(<span class="keywordtype">void</span>);
<a name="l00956"></a>00956 <span class="preprocessor">#else</span>
<a name="l00957"></a>00957 <span class="preprocessor"></span>        <span class="keyword">static</span> <span class="keywordtype">void</span> dynunload(<span class="keywordtype">void</span>)
<a name="l00958"></a>00958                 {<span class="keywordflow">return</span>;};
<a name="l00959"></a>00959 <span class="preprocessor">#endif</span>
<a name="l00960"></a>00960 <span class="preprocessor"></span>
<a name="l00966"></a>00966         <span class="keyword">static</span> DSO *getObject(<span class="keyword">const</span> <span class="keywordtype">char</span> *name);
<a name="l00967"></a>00967 
<a name="l00973"></a>00973         <span class="keywordtype">bool</span> isValid(<span class="keywordtype">void</span>);
<a name="l00974"></a>00974 
<a name="l00978"></a>00978         <span class="keyword">static</span> <span class="keywordtype">void</span> setDebug(<span class="keywordtype">void</span>);
<a name="l00979"></a>00979 };
<a name="l00980"></a>00980 
<a name="l00982"></a>00982 <span class="keywordtype">bool</span> <a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> isDir(<span class="keyword">const</span> <span class="keywordtype">char</span> *path);
<a name="l00984"></a>00984 <span class="keywordtype">bool</span> <a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> isFile(<span class="keyword">const</span> <span class="keywordtype">char</span> *path);
<a name="l00985"></a>00985 <span class="preprocessor">#ifndef WIN32</span>
<a name="l00986"></a>00986 <span class="preprocessor"></span>
<a name="l00987"></a>00987 <span class="keywordtype">bool</span> <a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> isDevice(<span class="keyword">const</span> <span class="keywordtype">char</span> *path);
<a name="l00988"></a>00988 <span class="preprocessor">#else</span>
<a name="l00989"></a>00989 <span class="preprocessor"></span>
<a name="l00990"></a>00990 <span class="keyword">inline</span> <span class="keywordtype">bool</span> isDevice(<span class="keyword">const</span> <span class="keywordtype">char</span> *path)
<a name="l00991"></a>00991 { <span class="keywordflow">return</span> <span class="keyword">false</span>; }
<a name="l00992"></a>00992 <span class="preprocessor">#endif</span>
<a name="l00993"></a>00993 <span class="preprocessor"></span>
<a name="l00994"></a>00994 <span class="keywordtype">bool</span> <a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> canAccess(<span class="keyword">const</span> <span class="keywordtype">char</span> *path);
<a name="l00996"></a>00996 <span class="keywordtype">bool</span> <a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> canModify(<span class="keyword">const</span> <span class="keywordtype">char</span> *path);
<a name="l00998"></a>00998 time_t <a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> lastModified(<span class="keyword">const</span> <span class="keywordtype">char</span> *path);
<a name="l01000"></a>01000 time_t <a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> lastAccessed(<span class="keyword">const</span> <span class="keywordtype">char</span> *path);
<a name="l01001"></a>01001 
<a name="l01002"></a>01002 <span class="preprocessor">#ifdef  COMMON_STD_EXCEPTION</span>
<a name="l01003"></a>01003 <span class="preprocessor"></span>
<a name="l01004"></a><a class="code" href="classost_1_1_dir_exception.html">01004</a> <span class="keyword">class </span><a class="code" href="classost_1_1_dir_exception.html">DirException</a> : <span class="keyword">public</span> <a class="code" href="classost_1_1_i_o_exception.html" title="A sub-hierarchy for all Common C++ I/O related classes.">IOException</a>
<a name="l01005"></a>01005 {
<a name="l01006"></a>01006 <span class="keyword">public</span>:
<a name="l01007"></a><a class="code" href="classost_1_1_dir_exception.html#a453938fe3df514fde21f4b82d863a8ef">01007</a>         <a class="code" href="classost_1_1_dir_exception.html#a453938fe3df514fde21f4b82d863a8ef">DirException</a>(<span class="keyword">const</span> <a class="code" href="classost_1_1_string.html" title="This is a generic and portable string class.">String</a> &amp;str) : <a class="code" href="classost_1_1_i_o_exception.html" title="A sub-hierarchy for all Common C++ I/O related classes.">IOException</a>(str) {};
<a name="l01008"></a>01008 };
<a name="l01009"></a>01009 
<a name="l01010"></a><a class="code" href="classost_1_1_d_s_o_exception.html">01010</a> <span class="keyword">class </span><a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> <a class="code" href="classost_1_1_d_s_o_exception.html">DSOException</a> : <span class="keyword">public</span> <a class="code" href="classost_1_1_i_o_exception.html" title="A sub-hierarchy for all Common C++ I/O related classes.">IOException</a>
<a name="l01011"></a>01011 {
<a name="l01012"></a>01012 <span class="keyword">public</span>:
<a name="l01013"></a><a class="code" href="classost_1_1_d_s_o_exception.html#a1f3863f894deb251d10612a6707d3a2c">01013</a>         <a class="code" href="classost_1_1_d_s_o_exception.html#a1f3863f894deb251d10612a6707d3a2c">DSOException</a>(<span class="keyword">const</span> <a class="code" href="classost_1_1_string.html" title="This is a generic and portable string class.">String</a> &amp;str) : <a class="code" href="classost_1_1_i_o_exception.html" title="A sub-hierarchy for all Common C++ I/O related classes.">IOException</a>(str) {};
<a name="l01014"></a>01014 };
<a name="l01015"></a>01015 
<a name="l01016"></a><a class="code" href="classost_1_1_file_exception.html">01016</a> <span class="keyword">class </span><a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> <a class="code" href="classost_1_1_file_exception.html">FileException</a> : <span class="keyword">public</span> <a class="code" href="classost_1_1_i_o_exception.html" title="A sub-hierarchy for all Common C++ I/O related classes.">IOException</a>
<a name="l01017"></a>01017 {
<a name="l01018"></a>01018 <span class="keyword">public</span>:
<a name="l01019"></a><a class="code" href="classost_1_1_file_exception.html#ae93cb62438dfcf69f14e706939e83533">01019</a>         <a class="code" href="classost_1_1_file_exception.html#ae93cb62438dfcf69f14e706939e83533">FileException</a>(<span class="keyword">const</span> <a class="code" href="classost_1_1_string.html" title="This is a generic and portable string class.">String</a> &amp;str) : <a class="code" href="classost_1_1_i_o_exception.html" title="A sub-hierarchy for all Common C++ I/O related classes.">IOException</a>(str) {};
<a name="l01020"></a>01020 };
<a name="l01021"></a>01021 
<a name="l01022"></a>01022 <span class="preprocessor">#endif</span>
<a name="l01023"></a>01023 <span class="preprocessor"></span>
<a name="l01024"></a>01024 <span class="preprocessor">#ifdef  CCXX_NAMESPACES</span>
<a name="l01025"></a>01025 <span class="preprocessor"></span>}
<a name="l01026"></a>01026 <span class="preprocessor">#endif</span>
<a name="l01027"></a>01027 <span class="preprocessor"></span>
<a name="l01028"></a>01028 <span class="preprocessor">#endif</span>
<a name="l01029"></a>01029 <span class="preprocessor"></span>
</pre></div></div>
<hr class="footer"/><address style="text-align: right;"><small>Generated on Fri Nov 12 09:55:46 2010 for GNU CommonC++ by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.3 </small></address>
</body>
</html>