Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > f149f58f4a75af135bdb24f5dfe94165 > files > 805

libdap-doc-3.9.3-3mdv2010.0.i586.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>libdap++: libdap::HTTPCacheInterruptHandler Class Reference</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.5.9 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
      <li><a href="classes.html"><span>Class&nbsp;Index</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="navpath"><a class="el" href="namespacelibdap.html">libdap</a>::<a class="el" href="classlibdap_1_1HTTPCacheInterruptHandler.html">HTTPCacheInterruptHandler</a>
  </div>
</div>
<div class="contents">
<h1>libdap::HTTPCacheInterruptHandler Class Reference</h1><!-- doxytag: class="libdap::HTTPCacheInterruptHandler" --><!-- doxytag: inherits="libdap::EventHandler" --><code>#include &lt;<a class="el" href="HTTPCacheInterruptHandler_8h_source.html">HTTPCacheInterruptHandler.h</a>&gt;</code>
<p>
<div class="dynheader">
Inheritance diagram for libdap::HTTPCacheInterruptHandler:</div>
<div class="dynsection">
<p><center><img src="classlibdap_1_1HTTPCacheInterruptHandler__inherit__graph.png" border="0" usemap="#libdap_1_1HTTPCacheInterruptHandler__inherit__map" alt="Inheritance graph"></center>
<map name="libdap_1_1HTTPCacheInterruptHandler__inherit__map">
<area shape="rect" id="node2" href="classlibdap_1_1EventHandler.html" title="{libdap::EventHandler\n||+ handle_signal()\l+ ~EventHandler()\l}" alt="" coords="71,6,292,98"></map>
<center><font size="2">[<a target="top" href="graph_legend.html">legend</a>]</font></center></div>
<div class="dynheader">
Collaboration diagram for libdap::HTTPCacheInterruptHandler:</div>
<div class="dynsection">
<p><center><img src="classlibdap_1_1HTTPCacheInterruptHandler__coll__graph.png" border="0" usemap="#libdap_1_1HTTPCacheInterruptHandler__coll__map" alt="Collaboration graph"></center>
<map name="libdap_1_1HTTPCacheInterruptHandler__coll__map">
<area shape="rect" id="node2" href="classlibdap_1_1EventHandler.html" title="{libdap::EventHandler\n||+ handle_signal()\l+ ~EventHandler()\l}" alt="" coords="71,6,292,98"></map>
<center><font size="2">[<a target="top" href="graph_legend.html">legend</a>]</font></center></div>

<p>
<a href="classlibdap_1_1HTTPCacheInterruptHandler-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">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlibdap_1_1HTTPCacheInterruptHandler.html#61f19f17f5da4f50969494b6f24cdfc7">handle_signal</a> (int signum)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlibdap_1_1HTTPCacheInterruptHandler.html#b8c290e6df3e6ce64b1e93037ba1ee6b">HTTPCacheInterruptHandler</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlibdap_1_1HTTPCacheInterruptHandler.html#8a673024265a0c273c4aa2411b6890e2">~HTTPCacheInterruptHandler</a> ()</td></tr>

</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Handle SIGINT for <a class="el" href="classlibdap_1_1HTTPCache.html">HTTPCache</a>. When the cache is in use and the process is sent SIGINT, we must make sure that the cache is left in a consistent state. This includes removing the lock file, updating the index file and making sure no partially written data or meta data files exist.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classlibdap_1_1EventHandler.html">EventHandler</a> <p>
<a class="el" href="classlibdap_1_1SignalHandler.html">SignalHandler</a> <p>
<a class="el" href="classlibdap_1_1HTTPCache.html">HTTPCache</a> </dd></dl>
<dl class="author" compact><dt><b>Author:</b></dt><dd>James Gallagher &lt;<a href="mailto:jgallagher@opendap.org">jgallagher@opendap.org</a>&gt; </dd></dl>

<p>Definition at line <a class="el" href="HTTPCacheInterruptHandler_8h_source.html#l00057">57</a> of file <a class="el" href="HTTPCacheInterruptHandler_8h_source.html">HTTPCacheInterruptHandler.h</a>.</p>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="b8c290e6df3e6ce64b1e93037ba1ee6b"></a><!-- doxytag: member="libdap::HTTPCacheInterruptHandler::HTTPCacheInterruptHandler" ref="b8c290e6df3e6ce64b1e93037ba1ee6b" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">libdap::HTTPCacheInterruptHandler::HTTPCacheInterruptHandler           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>Definition at line <a class="el" href="HTTPCacheInterruptHandler_8h_source.html#l00063">63</a> of file <a class="el" href="HTTPCacheInterruptHandler_8h_source.html">HTTPCacheInterruptHandler.h</a>.</p>

</div>
</div><p>
<a class="anchor" name="8a673024265a0c273c4aa2411b6890e2"></a><!-- doxytag: member="libdap::HTTPCacheInterruptHandler::~HTTPCacheInterruptHandler" ref="8a673024265a0c273c4aa2411b6890e2" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual libdap::HTTPCacheInterruptHandler::~HTTPCacheInterruptHandler           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>Definition at line <a class="el" href="HTTPCacheInterruptHandler_8h_source.html#l00067">67</a> of file <a class="el" href="HTTPCacheInterruptHandler_8h_source.html">HTTPCacheInterruptHandler.h</a>.</p>

</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="61f19f17f5da4f50969494b6f24cdfc7"></a><!-- doxytag: member="libdap::HTTPCacheInterruptHandler::handle_signal" ref="61f19f17f5da4f50969494b6f24cdfc7" args="(int signum)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void libdap::HTTPCacheInterruptHandler::handle_signal           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>signum</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Handle SIGINT. This handler first deletes any files opened but not added to the cache index files and then calls HTTPCache::delete_instance().<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>signum</em>&nbsp;</td><td>We know it is SIGINT; included here as a check and only when NDEBUG is not defined. </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>Never returns. </dd></dl>

<p>Implements <a class="el" href="classlibdap_1_1EventHandler.html#9cb4e0ec28ce8562067c1a9103f93559">libdap::EventHandler</a>.</p>

<p>Definition at line <a class="el" href="HTTPCacheInterruptHandler_8h_source.html#l00077">77</a> of file <a class="el" href="HTTPCacheInterruptHandler_8h_source.html">HTTPCacheInterruptHandler.h</a>.</p>

<p>References <a class="el" href="debug_8h_source.html#l00058">DBG</a>.</p>

</div>
</div><p>
<hr>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="HTTPCacheInterruptHandler_8h_source.html">HTTPCacheInterruptHandler.h</a></ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Wed Oct 7 19:59:48 2009 for libdap++ by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.9 </small></address>
</body>
</html>