Sophie

Sophie

distrib > Fedora > 14 > x86_64 > by-pkgid > 5b6c31d6428e1f6ea754ea6f7b1aed6e > files > 93

soprano-apidocs-2.6.0-2.fc14.noarch.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>Soprano: Soprano::Error::ErrorCache 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.7.3 -->
<script type="text/javascript">
function hasClass(ele,cls) {
  return ele.className.match(new RegExp('(\\s|^)'+cls+'(\\s|$)'));
}

function addClass(ele,cls) {
  if (!this.hasClass(ele,cls)) ele.className += " "+cls;
}

function removeClass(ele,cls) {
  if (hasClass(ele,cls)) {
    var reg = new RegExp('(\\s|^)'+cls+'(\\s|$)');
    ele.className=ele.className.replace(reg,' ');
  }
}

function toggleVisibility(linkObj) {
 var base = linkObj.getAttribute('id');
 var summary = document.getElementById(base + '-summary');
 var content = document.getElementById(base + '-content');
 var trigger = document.getElementById(base + '-trigger');
 if ( hasClass(linkObj,'closed') ) {
   summary.style.display = 'none';
   content.style.display = 'block';
   trigger.src = 'open.png';
   removeClass(linkObj,'closed');
   addClass(linkObj,'opened');
 } else if ( hasClass(linkObj,'opened') ) {
   summary.style.display = 'block';
   content.style.display = 'none';
   trigger.src = 'closed.png';
   removeClass(linkObj,'opened');
   addClass(linkObj,'closed');
 }
 return false;
}
</script>
<div id="top">
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Soprano&#160;<span id="projectnumber">2.6.0</span></div>
  </td>
 </tr>
 </tbody>
</table>
</div>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;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 id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="namespaceSoprano.html">Soprano</a>      </li>
      <li class="navelem"><a class="el" href="namespaceSoprano_1_1Error.html">Error</a>      </li>
      <li class="navelem"><a class="el" href="classSoprano_1_1Error_1_1ErrorCache.html">ErrorCache</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-methods">Protected Member Functions</a>  </div>
  <div class="headertitle">
<h1>Soprano::Error::ErrorCache Class Reference</h1>  </div>
</div>
<div class="contents">
<!-- doxytag: class="Soprano::Error::ErrorCache" -->
<p>Core class of Soprano's exception system.  
<a href="#_details">More...</a></p>

<p><code>#include &lt;<a class="el" href="error_8h_source.html">Soprano/Error/ErrorCache</a>&gt;</code></p>
<div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-0-trigger" src="closed.png"/> Inheritance diagram for Soprano::Error::ErrorCache:</div>
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
<div class="center"><img src="classSoprano_1_1Error_1_1ErrorCache__inherit__graph.png" border="0" usemap="#Soprano_1_1Error_1_1ErrorCache_inherit__map" alt="Inheritance graph"/></div>
<map name="Soprano_1_1Error_1_1ErrorCache_inherit__map" id="Soprano_1_1Error_1_1ErrorCache_inherit__map">
<area shape="rect" id="node3" href="classSoprano_1_1Iterator.html" title="Soprano::Iterator\&lt; BindingSet \&gt;" alt="" coords="637,18,843,48"/><area shape="rect" id="node9" href="classSoprano_1_1Iterator.html" title="Soprano::Iterator\&lt; Node \&gt;" alt="" coords="653,229,827,258"/><area shape="rect" id="node17" href="classSoprano_1_1Iterator.html" title="Soprano::Iterator\&lt; Statement \&gt;" alt="" coords="639,80,841,109"/><area shape="rect" id="node25" href="classSoprano_1_1IteratorBackend.html" title="Soprano::IteratorBackend\&lt; BindingSet \&gt;" alt="" coords="612,284,868,313"/><area shape="rect" id="node29" href="classSoprano_1_1Backend.html" title="Soprano::Backend defines the interface for a Soprano backend plugin." alt="" coords="292,388,420,417"/><area shape="rect" id="node31" href="classSoprano_1_1Client_1_1DBusClient.html" title="Core class to handle a connection to a Soprano server through the DBus interface." alt="" coords="263,441,449,470"/><area shape="rect" id="node33" href="classSoprano_1_1Client_1_1LocalSocketClient.html" title="Creates a connection to the Soprano server through a local socket interface." alt="" coords="243,494,469,524"/><area shape="rect" id="node35" href="classSoprano_1_1Client_1_1TcpClient.html" title="Creates a connection to the Soprano server through a TCP connection." alt="" coords="268,548,444,577"/><area shape="rect" id="node37" href="classSoprano_1_1Index_1_1CLuceneIndex.html" title="The CLuceneIndex provides a wrapper around a CLucene index which stores RDF statements." alt="" coords="255,601,457,630"/><area shape="rect" id="node39" href="classSoprano_1_1Iterator.html" title="The basic Soprano iterator class." alt="" coords="281,154,431,184"/><area shape="rect" id="node44" href="classSoprano_1_1IteratorBackend.html" title="The actual work in a Iterator instance is done by an IteratorBackend." alt="" coords="255,284,457,313"/><area shape="rect" id="node47" href="classSoprano_1_1Model.html" title="A Model is the central class in Soprano. It is a queryable collection of RDF quadruples, i.e statements." alt="" coords="300,654,412,684"/><area shape="rect" id="node77" href="classSoprano_1_1N3NodeParser.html" title="Parser which converts N3 string representation of nodes into Node objects." alt="" coords="275,708,437,737"/><area shape="rect" id="node79" href="classSoprano_1_1Parser.html" title="Soprano::Parser defines the interface for a Soprano RDF parser plugin." alt="" coords="299,761,413,790"/><area shape="rect" id="node81" href="classSoprano_1_1Serializer.html" title="Soprano::Serializer defines the interface for a Soprano RDF serializer plugin." alt="" coords="291,814,421,844"/><area shape="rect" id="node83" href="classSoprano_1_1Server_1_1DBusExportIterator.html" title="Exports a Soprano Iterator via D&#45;Bus." alt="" coords="239,868,473,897"/><area shape="rect" id="node85" href="classSoprano_1_1Server_1_1ServerCore.html" title="Central Soprano server class." alt="" coords="261,921,451,950"/><area shape="rect" id="node87" href="classSoprano_1_1Util_1_1AsyncQuery.html" title="A wrapper around Soprano::Model which executes a query in a separate thread and allows to iterate the..." alt="" coords="267,974,445,1004"/><area shape="rect" id="node89" href="classSoprano_1_1Util_1_1AsyncResult.html" title="A delayed result as returned by AsyncModel." alt="" coords="265,1028,447,1057"/><area shape="rect" id="node5" href="classSoprano_1_1QueryResultIterator.html" title="An iterator for query results." alt="" coords="945,18,1137,48"/><area shape="rect" id="node7" href="classSoprano_1_1Client_1_1DBusQueryResultIterator.html" title="Interface to a DBus server query result iterator." alt="" coords="1213,18,1480,48"/><area shape="rect" id="node11" href="classSoprano_1_1NodeIterator.html" title="An iterator that provides a stream of Nodes." alt="" coords="967,229,1116,258"/><area shape="rect" id="node13" href="classSoprano_1_1Client_1_1DBusNodeIterator.html" title="Interface to a DBus server node iterator." alt="" coords="1235,268,1459,297"/><area shape="rect" id="node15" href="classSoprano_1_1Util_1_1SimpleNodeIterator.html" title="The most simple version of a NodeIterator simply iterates over a list of Nodes." alt="" coords="1237,214,1456,244"/><area shape="rect" id="node19" href="classSoprano_1_1StatementIterator.html" title="An iterator that provides a stream of Statements." alt="" coords="952,80,1131,109"/><area shape="rect" id="node21" href="classSoprano_1_1Client_1_1DBusStatementIterator.html" title="Interface to a DBus server statement iterator." alt="" coords="1220,129,1473,158"/><area shape="rect" id="node23" href="classSoprano_1_1Util_1_1SimpleStatementIterator.html" title="The most simple version of a StatementIterator simply iterates over a list of Statements." alt="" coords="1224,76,1469,105"/><area shape="rect" id="node27" href="classSoprano_1_1QueryResultIteratorBackend.html" title="QueryResultIteratorBackend is the actual working horse behind QueryResultIterator." alt="" coords="920,282,1163,312"/><area shape="rect" id="node49" href="classSoprano_1_1Client_1_1SparqlModel.html" title="Remote client Model for Http SPARQL end points." alt="" coords="644,762,836,792"/><area shape="rect" id="node51" href="classSoprano_1_1FilterModel.html" title="A FilterModel is a virtual model that wraps another Model." alt="" coords="669,549,811,578"/><area shape="rect" id="node69" href="classSoprano_1_1StorageModel.html" title="Base class for all Model implementations that store data (as compared to FilterModel)." alt="" coords="661,602,819,632"/><area shape="rect" id="node73" href="classSoprano_1_1Util_1_1DummyModel.html" title="A dummy model. All its methods do nothing and always fail with a default error." alt="" coords="647,656,833,685"/><area shape="rect" id="node75" href="classSoprano_1_1Util_1_1ReadOnlyModel.html" title="Simple filter model preventing any write operations." alt="" coords="641,709,839,738"/><area shape="rect" id="node53" href="classSoprano_1_1Index_1_1IndexFilterModel.html" title="The IndexFilterModel provides a full text index around any Soprano Model." alt="" coords="935,656,1148,685"/><area shape="rect" id="node55" href="classSoprano_1_1Inference_1_1InferenceModel.html" title="The Soprano Inference Model provides a simple forward chaining inference engine which uses the underl..." alt="" coords="927,709,1156,738"/><area shape="rect" id="node57" href="classSoprano_1_1NRLModel.html" title="Model filter that makes working with NRL data simpler." alt="" coords="972,336,1111,365"/><area shape="rect" id="node59" href="classSoprano_1_1RdfSchemaModel.html" title="Provides convenience methods to handle RDFS data." alt="" coords="951,389,1132,418"/><area shape="rect" id="node61" href="classSoprano_1_1Server_1_1DBusExportModel.html" title="Exports a Soprano Model via D&#45;Bus." alt="" coords="927,442,1156,472"/><area shape="rect" id="node63" href="classSoprano_1_1Util_1_1AsyncModel.html" title="Filter model that allows to perform operations asyncroneously." alt="" coords="952,496,1131,525"/><area shape="rect" id="node65" href="classSoprano_1_1Util_1_1MutexModel.html" title="Protect a Model for multiple calls in multi&#45;threaded applications." alt="" coords="953,549,1129,578"/><area shape="rect" id="node67" href="classSoprano_1_1Util_1_1SignalCacheModel.html" title="Caches multiple signals into one to avoid slowdown when adding or removing many statements." alt="" coords="935,602,1148,632"/><area shape="rect" id="node71" href="classSoprano_1_1Client_1_1DBusModel.html" title="Interface to a DBus server model." alt="" coords="948,762,1135,792"/></map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>

<p><a href="classSoprano_1_1Error_1_1ErrorCache-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Error_1_1ErrorCache.html#a221c4f14e558a840eafef24969f9257b">~ErrorCache</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classSoprano_1_1Error_1_1Error.html">Error</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Error_1_1ErrorCache.html#a3251b8052cdf932d59a523ca215d21c9">lastError</a> () const </td></tr>
<tr><td colspan="2"><h2><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Error_1_1ErrorCache.html#aecfcbdbb2c85b37bf6f401d0a2003273">ErrorCache</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Error_1_1ErrorCache.html#a65f952db676de0a6a186ea872fca18b8">clearError</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Error_1_1ErrorCache.html#afd1a1eccaa2af733601eab1f019a8553">setError</a> (const <a class="el" href="classSoprano_1_1Error_1_1Error.html">Error</a> &amp;) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSoprano_1_1Error_1_1ErrorCache.html#a131a337c9dbfa3a734f48cb589c4b761">setError</a> (const <a class="elRef" href="qstring.html">QString</a> &amp;errorMessage, int code=ErrorUnknown) const </td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>Core class of Soprano's exception system. </p>
<p>The <a class="el" href="classSoprano_1_1Error_1_1ErrorCache.html" title="Core class of Soprano&#39;s exception system.">ErrorCache</a> caches <a class="el" href="classSoprano_1_1Error_1_1Error.html" title="Represents an error in Soprano.">Error</a> instances for different threads. Each thread has its own last error. This mechanism tries to replace the missing exceptions for methods that do not return an error code or another value that can state the success of the method's operation.</p>
<dl class="author"><dt><b>Author:</b></dt><dd>Sebastian Trueg &lt;<a href="mailto:trueg@kde.org">trueg@kde.org</a>&gt;</dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="soprano_error_handling.html">Error handling in Soprano</a> </dd></dl>

<p>Definition at line <a class="el" href="error_8h_source.html#l00233">233</a> of file <a class="el" href="error_8h_source.html">error.h</a>.</p>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a221c4f14e558a840eafef24969f9257b"></a><!-- doxytag: member="Soprano::Error::ErrorCache::~ErrorCache" ref="a221c4f14e558a840eafef24969f9257b" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual Soprano::Error::ErrorCache::~ErrorCache </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="aecfcbdbb2c85b37bf6f401d0a2003273"></a><!-- doxytag: member="Soprano::Error::ErrorCache::ErrorCache" ref="aecfcbdbb2c85b37bf6f401d0a2003273" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Soprano::Error::ErrorCache::ErrorCache </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a3251b8052cdf932d59a523ca215d21c9"></a><!-- doxytag: member="Soprano::Error::ErrorCache::lastError" ref="a3251b8052cdf932d59a523ca215d21c9" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="classSoprano_1_1Error_1_1Error.html">Error</a> Soprano::Error::ErrorCache::lastError </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Get the last error that occured in the current thread. </p>

</div>
</div>
<a class="anchor" id="a65f952db676de0a6a186ea872fca18b8"></a><!-- doxytag: member="Soprano::Error::ErrorCache::clearError" ref="a65f952db676de0a6a186ea872fca18b8" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Soprano::Error::ErrorCache::clearError </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Reset the error for the current thread to no error. </p>

</div>
</div>
<a class="anchor" id="afd1a1eccaa2af733601eab1f019a8553"></a><!-- doxytag: member="Soprano::Error::ErrorCache::setError" ref="afd1a1eccaa2af733601eab1f019a8553" args="(const Error &amp;) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Soprano::Error::ErrorCache::setError </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classSoprano_1_1Error_1_1Error.html">Error</a> &amp;&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Set the last occured error. This method is const to allow setting of errors in all types of methods. The last error is as such a mutable property. </p>

</div>
</div>
<a class="anchor" id="a131a337c9dbfa3a734f48cb589c4b761"></a><!-- doxytag: member="Soprano::Error::ErrorCache::setError" ref="a131a337c9dbfa3a734f48cb589c4b761" args="(const QString &amp;errorMessage, int code=ErrorUnknown) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Soprano::Error::ErrorCache::setError </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>errorMessage</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>code</em> = <code>ErrorUnknown</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const<code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Convenience method to set simple string error messages with a default error code ErrorUnknown. </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>/builddir/build/BUILD/soprano-2.6.0/soprano/<a class="el" href="error_8h_source.html">error.h</a></li>
</ul>
</div>
<hr class="footer"/><address class="footer"><small>Generated on Fri Mar 11 2011 for Soprano by&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.3 </small></address>
</body>
</html>