Sophie

Sophie

distrib > Mandriva > 2007.0 > i586 > by-pkgid > ad1ba1135a9c9eeffc2e538163e00373 > files > 279

libCommonC++2_1.4-devel-1.4.1-1mdv2007.0.i586.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>GNU CommonC++: ost::SharedFile Class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.4.6 -->
<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 id="current"><a href="classes.html"><span>Classes</span></a></li>
    <li><a href="files.html"><span>Files</span></a></li>
    <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
    <li><a href="examples.html"><span>Examples</span></a></li>
  </ul></div>
<div class="tabs">
  <ul>
    <li><a href="classes.html"><span>Alphabetical&nbsp;List</span></a></li>
    <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
    <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
    <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
  </ul></div>
<div class="nav">
<a class="el" href="namespaceost.html">ost</a>::<a class="el" href="classost_1_1_shared_file.html">SharedFile</a></div>
<h1>ost::SharedFile Class Reference</h1><!-- doxytag: class="ost::SharedFile" --><!-- doxytag: inherits="ost::RandomFile" -->This class defines a database I/O file service that can be shared by multiple processes.This class defines a database I/O file service that can be shared by multiple processes.  
<a href="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="file_8h-source.html">file.h</a>&gt;</code>
<p>
<p>Inheritance diagram for ost::SharedFile:
<p><center><img src="classost_1_1_shared_file.png" usemap="#ost::SharedFile_map" border="0" alt=""></center>
<map name="ost::SharedFile_map">
<area href="classost_1_1_random_file.html" alt="ost::RandomFile" shape="rect" coords="55,56,155,80">
<area href="classost_1_1_mutex.html" alt="ost::Mutex" shape="rect" coords="0,0,100,24">
<area href="classost_1_1_file.html" alt="ost::File" shape="rect" coords="110,0,210,24">
</map>
<a href="classost_1_1_shared_file-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classost_1_1_shared_file.html#c5b43aef08de67e5f8fd88bf7e5f6a80">SharedFile</a> (const char *path)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Open or create a new database file.  <a href="#c5b43aef08de67e5f8fd88bf7e5f6a80"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classost_1_1_shared_file.html#c13ee6d8e5fb10dcf5ce6e9e12f54ae9">SharedFile</a> (const <a class="el" href="classost_1_1_shared_file.html">SharedFile</a> &amp;file)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Create a shared file as a duplicate of an existing shared file.  <a href="#c13ee6d8e5fb10dcf5ce6e9e12f54ae9"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classost_1_1_shared_file.html#4001a868611c75292113daded7c0a585">~SharedFile</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Close and finish a database file.  <a href="#4001a868611c75292113daded7c0a585"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classost_1_1_file.html#c65e9af20a431154c8d8a811d4c58bde">Error</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classost_1_1_shared_file.html#254c43de705b9ad9f5d24536b6cff1e0">restart</a> (void)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Restart an existing database; close and re-open.  <a href="#254c43de705b9ad9f5d24536b6cff1e0"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classost_1_1_file.html#c65e9af20a431154c8d8a811d4c58bde">Error</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classost_1_1_shared_file.html#a4f875ec058a85297a62e30af397d014">fetch</a> (char *address=NULL, <a class="el" href="namespaceost.html#cedd0902cc2709bd066b9f8a2d1f44a0">ccxx_size_t</a> length=0, off_t position=-1)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Lock and Fetch a portion of the file into physical memory.  <a href="#a4f875ec058a85297a62e30af397d014"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classost_1_1_file.html#c65e9af20a431154c8d8a811d4c58bde">Error</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classost_1_1_shared_file.html#5ace5a51d0da7c56a252e3f26efeff67">update</a> (char *address=NULL, <a class="el" href="namespaceost.html#cedd0902cc2709bd066b9f8a2d1f44a0">ccxx_size_t</a> length=0, off_t position=-1)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Update a portion of a file from physical memory.  <a href="#5ace5a51d0da7c56a252e3f26efeff67"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classost_1_1_file.html#c65e9af20a431154c8d8a811d4c58bde">Error</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classost_1_1_shared_file.html#c36a90105fb7435b498dcd72fa2473dd">clear</a> (<a class="el" href="namespaceost.html#cedd0902cc2709bd066b9f8a2d1f44a0">ccxx_size_t</a> length=0, off_t pos=-1)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Clear a lock held from a previous fetch operation without updating.  <a href="#c36a90105fb7435b498dcd72fa2473dd"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classost_1_1_file.html#c65e9af20a431154c8d8a811d4c58bde">Error</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classost_1_1_shared_file.html#7169520f6cabe7de4626ab2b0c1d138f">append</a> (char *address=NULL, <a class="el" href="namespaceost.html#cedd0902cc2709bd066b9f8a2d1f44a0">ccxx_size_t</a> length=0)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Add new data to the end of the file.  <a href="#7169520f6cabe7de4626ab2b0c1d138f"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">off_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classost_1_1_shared_file.html#b7ac91d6a8ded5c7236297784353a300">getPosition</a> (void)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Fetch the current file position marker for this thread.  <a href="#b7ac91d6a8ded5c7236297784353a300"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classost_1_1_shared_file.html#a7a0de19328f2d2c2ed8d06f7e5fa884">operator++</a> (void)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classost_1_1_shared_file.html#9bab1e7719f2f608d719e99125bdc8e8">operator--</a> (void)</td></tr>

</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
This class defines a database I/O file service that can be shared by multiple processes.This class defines a database I/O file service that can be shared by multiple processes. 
<p>
Each thread should access a dup of the database object, and mutex locks can be used to preserve transaction integrety if multiple threads are used.<p>
<a class="el" href="classost_1_1_shared_file.html">SharedFile</a> is used when a database may be shared between multiple processes. <a class="el" href="classost_1_1_shared_file.html">SharedFile</a> automatically applies low level byte-range "file locks", and provides an interface to fetch and release byte-range locked portions of a file.<p>
<dl compact><dt><b>Author:</b></dt><dd>David Sugar &lt;<a href="mailto:dyfet@ostel.com">dyfet@ostel.com</a>&gt; </dd></dl>

<p>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="c5b43aef08de67e5f8fd88bf7e5f6a80"></a><!-- doxytag: member="ost::SharedFile::SharedFile" ref="c5b43aef08de67e5f8fd88bf7e5f6a80" args="(const char *path)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">ost::SharedFile::SharedFile           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const char *&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>path</em>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Open or create a new database file. 
<p>
You should also use Initial.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>path</em>&nbsp;</td><td>pathname of database to open. </td></tr>
  </table>
</dl>
    </td>
  </tr>
</table>
<a class="anchor" name="c13ee6d8e5fb10dcf5ce6e9e12f54ae9"></a><!-- doxytag: member="ost::SharedFile::SharedFile" ref="c13ee6d8e5fb10dcf5ce6e9e12f54ae9" args="(const SharedFile &amp;file)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">ost::SharedFile::SharedFile           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const <a class="el" href="classost_1_1_shared_file.html">SharedFile</a> &amp;&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>file</em>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Create a shared file as a duplicate of an existing shared file. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>file</em>&nbsp;</td><td>original file. </td></tr>
  </table>
</dl>
    </td>
  </tr>
</table>
<a class="anchor" name="4001a868611c75292113daded7c0a585"></a><!-- doxytag: member="ost::SharedFile::~SharedFile" ref="4001a868611c75292113daded7c0a585" args="()" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">virtual ost::SharedFile::~SharedFile           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap><code> [virtual]</code></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Close and finish a database file. 
<p>
    </td>
  </tr>
</table>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="7169520f6cabe7de4626ab2b0c1d138f"></a><!-- doxytag: member="ost::SharedFile::append" ref="7169520f6cabe7de4626ab2b0c1d138f" args="(char *address=NULL, ccxx_size_t length=0)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"><a class="el" href="classost_1_1_file.html#c65e9af20a431154c8d8a811d4c58bde">Error</a> ost::SharedFile::append           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">char *&nbsp;</td>
          <td class="mdname" nowrap> <em>address</em> = <code>NULL</code>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td class="md"></td>
          <td class="md" nowrap><a class="el" href="namespaceost.html#cedd0902cc2709bd066b9f8a2d1f44a0">ccxx_size_t</a>&nbsp;</td>
          <td class="mdname" nowrap> <em>length</em> = <code>0</code></td>
        </tr>
        <tr>
          <td class="md"></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Add new data to the end of the file. 
<p>
Locks file during append.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>address</em>&nbsp;</td><td>address to use, or NULL if same as last I/O. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>length</em>&nbsp;</td><td>length to use, or 0 if same as last I/O. </td></tr>
  </table>
</dl>
    </td>
  </tr>
</table>
<a class="anchor" name="c36a90105fb7435b498dcd72fa2473dd"></a><!-- doxytag: member="ost::SharedFile::clear" ref="c36a90105fb7435b498dcd72fa2473dd" args="(ccxx_size_t length=0, off_t pos=-1)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"><a class="el" href="classost_1_1_file.html#c65e9af20a431154c8d8a811d4c58bde">Error</a> ost::SharedFile::clear           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="namespaceost.html#cedd0902cc2709bd066b9f8a2d1f44a0">ccxx_size_t</a>&nbsp;</td>
          <td class="mdname" nowrap> <em>length</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td class="md"></td>
          <td class="md" nowrap>off_t&nbsp;</td>
          <td class="mdname" nowrap> <em>pos</em> = <code>-1</code></td>
        </tr>
        <tr>
          <td class="md"></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Clear a lock held from a previous fetch operation without updating. 
<p>
<dl compact><dt><b>Returns:</b></dt><dd>errSuccess on success. </dd></dl>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>length</em>&nbsp;</td><td>length to use, or 0 if same as last I/O. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>pos</em>&nbsp;</td><td>file position to use or -1 if same as last I/O. </td></tr>
  </table>
</dl>
    </td>
  </tr>
</table>
<a class="anchor" name="a4f875ec058a85297a62e30af397d014"></a><!-- doxytag: member="ost::SharedFile::fetch" ref="a4f875ec058a85297a62e30af397d014" args="(char *address=NULL, ccxx_size_t length=0, off_t position=-1)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"><a class="el" href="classost_1_1_file.html#c65e9af20a431154c8d8a811d4c58bde">Error</a> ost::SharedFile::fetch           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">char *&nbsp;</td>
          <td class="mdname" nowrap> <em>address</em> = <code>NULL</code>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td class="md"></td>
          <td class="md" nowrap><a class="el" href="namespaceost.html#cedd0902cc2709bd066b9f8a2d1f44a0">ccxx_size_t</a>&nbsp;</td>
          <td class="mdname" nowrap> <em>length</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td class="md"></td>
          <td class="md" nowrap>off_t&nbsp;</td>
          <td class="mdname" nowrap> <em>position</em> = <code>-1</code></td>
        </tr>
        <tr>
          <td class="md"></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Lock and Fetch a portion of the file into physical memory. 
<p>
This can use state information to fetch the current record multiple times.<p>
<dl compact><dt><b>Returns:</b></dt><dd>errSuccess on success. </dd></dl>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>address</em>&nbsp;</td><td>address to use, or NULL if same as last I/O. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>length</em>&nbsp;</td><td>length to use, or 0 if same as last I/O. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>position</em>&nbsp;</td><td>file position to use -1 if same as last I/O. </td></tr>
  </table>
</dl>
    </td>
  </tr>
</table>
<a class="anchor" name="b7ac91d6a8ded5c7236297784353a300"></a><!-- doxytag: member="ost::SharedFile::getPosition" ref="b7ac91d6a8ded5c7236297784353a300" args="(void)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">off_t ost::SharedFile::getPosition           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">void&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Fetch the current file position marker for this thread. 
<p>
<dl compact><dt><b>Returns:</b></dt><dd>file position offset. </dd></dl>
    </td>
  </tr>
</table>
<a class="anchor" name="a7a0de19328f2d2c2ed8d06f7e5fa884"></a><!-- doxytag: member="ost::SharedFile::operator++" ref="a7a0de19328f2d2c2ed8d06f7e5fa884" args="(void)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">bool ost::SharedFile::operator++           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">void&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
    </td>
  </tr>
</table>
<a class="anchor" name="9bab1e7719f2f608d719e99125bdc8e8"></a><!-- doxytag: member="ost::SharedFile::operator--" ref="9bab1e7719f2f608d719e99125bdc8e8" args="(void)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">bool ost::SharedFile::operator--           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">void&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
    </td>
  </tr>
</table>
<a class="anchor" name="254c43de705b9ad9f5d24536b6cff1e0"></a><!-- doxytag: member="ost::SharedFile::restart" ref="254c43de705b9ad9f5d24536b6cff1e0" args="(void)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"><a class="el" href="classost_1_1_file.html#c65e9af20a431154c8d8a811d4c58bde">Error</a> ost::SharedFile::restart           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">void&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap><code> [inline, virtual]</code></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Restart an existing database; close and re-open. 
<p>
<dl compact><dt><b>Returns:</b></dt><dd>errSuccess if successful. </dd></dl>

<p>
Reimplemented from <a class="el" href="classost_1_1_random_file.html#e78c71b1e3fab5861bc9fdae595829a7">ost::RandomFile</a>.    </td>
  </tr>
</table>
<a class="anchor" name="5ace5a51d0da7c56a252e3f26efeff67"></a><!-- doxytag: member="ost::SharedFile::update" ref="5ace5a51d0da7c56a252e3f26efeff67" args="(char *address=NULL, ccxx_size_t length=0, off_t position=-1)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"><a class="el" href="classost_1_1_file.html#c65e9af20a431154c8d8a811d4c58bde">Error</a> ost::SharedFile::update           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">char *&nbsp;</td>
          <td class="mdname" nowrap> <em>address</em> = <code>NULL</code>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td class="md"></td>
          <td class="md" nowrap><a class="el" href="namespaceost.html#cedd0902cc2709bd066b9f8a2d1f44a0">ccxx_size_t</a>&nbsp;</td>
          <td class="mdname" nowrap> <em>length</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td class="md"></td>
          <td class="md" nowrap>off_t&nbsp;</td>
          <td class="mdname" nowrap> <em>position</em> = <code>-1</code></td>
        </tr>
        <tr>
          <td class="md"></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Update a portion of a file from physical memory. 
<p>
This can use state information to commit the last read record. The current lock is also cleared.<p>
<dl compact><dt><b>Returns:</b></dt><dd>errSuccess on success. </dd></dl>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>address</em>&nbsp;</td><td>address to use, or NULL if same as last I/O. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>length</em>&nbsp;</td><td>length to use, or 0 if same as last I/O. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>position</em>&nbsp;</td><td>file position to use or -1 if same as last I/O. </td></tr>
  </table>
</dl>
    </td>
  </tr>
</table>
<hr>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="file_8h-source.html">file.h</a></ul>
<hr size="1"><address style="align: right;"><small>Generated on Mon Jun 19 10:50:56 2006 for GNU CommonC++ by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6 </small></address>
</body>
</html>