Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > f37f2c0b149d5391818dc5157943cda0 > files > 274

gnome-chemistry-utils-devel-0.10.8-3mdv2010.0.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>The Gnome Chemistry Utils: gcu::parse_error 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.6.1 -->
<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 class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li><a href="dirs.html"><span>Directories</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="namespacegcu.html">gcu</a>::<a class="el" href="classgcu_1_1parse__error.html">parse_error</a>
  </div>
</div>
<div class="contents">
<h1>gcu::parse_error Class Reference</h1><!-- doxytag: class="gcu::parse_error" -->
<p><code>#include &lt;<a class="el" href="formula_8h_source.html">gcu/formula.h</a>&gt;</code></p>

<p><a href="classgcu_1_1parse__error-members.html">List of all members.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcu_1_1parse__error.html#a67d6ea5315e55a0ba5aaf0e71e8e7f89">parse_error</a> (const std::string &amp;__arg, int start, int length)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual const char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcu_1_1parse__error.html#aee39bffc5241d2976eae9c21591f2e53">what</a> () const   throw ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcu_1_1parse__error.html#ad628aabab6c5ea4624bc7c53a6b72594">what</a> (int &amp;start, int &amp;length) const   throw ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcu_1_1parse__error.html#a4639987ffe080e3b0e8d44be2b7647bd">add_offset</a> (int offset)</td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>Exception class derived from std::exception used for errors encountered when parsing a formula. </p>

<p>Definition at line <a class="el" href="formula_8h_source.html#l00065">65</a> of file <a class="el" href="formula_8h_source.html">formula.h</a>.</p>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a67d6ea5315e55a0ba5aaf0e71e8e7f89"></a><!-- doxytag: member="gcu::parse_error::parse_error" ref="a67d6ea5315e55a0ba5aaf0e71e8e7f89" args="(const std::string &amp;__arg, int start, int length)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">gcu::parse_error::parse_error </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&nbsp;</td>
          <td class="paramname"> <em>__arg</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>start</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>length</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [explicit]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Takes a character string describing the error and two integers indicating where the error occured. </p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a4639987ffe080e3b0e8d44be2b7647bd"></a><!-- doxytag: member="gcu::parse_error::add_offset" ref="a4639987ffe080e3b0e8d44be2b7647bd" args="(int offset)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void gcu::parse_error::add_offset </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>offset</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Adds an offset to the start of the error. This is used by the <a class="el" href="classgcu_1_1Formula.html">Formula</a> class when an exception occurs while parsing a substring. </p>

<p>Definition at line <a class="el" href="formula_8h_source.html#l00091">91</a> of file <a class="el" href="formula_8h_source.html">formula.h</a>.</p>

</div>
</div>
<a class="anchor" id="ad628aabab6c5ea4624bc7c53a6b72594"></a><!-- doxytag: member="gcu::parse_error::what" ref="ad628aabab6c5ea4624bc7c53a6b72594" args="(int &amp;start, int &amp;length) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const char* gcu::parse_error::what </td>
          <td>(</td>
          <td class="paramtype">int &amp;&nbsp;</td>
          <td class="paramname"> <em>start</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int &amp;&nbsp;</td>
          <td class="paramname"> <em>length</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td> const  throw ()</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Returns a C-style character string describing the general cause of the current error (the same string passed to the constructor). </p>

</div>
</div>
<a class="anchor" id="aee39bffc5241d2976eae9c21591f2e53"></a><!-- doxytag: member="gcu::parse_error::what" ref="aee39bffc5241d2976eae9c21591f2e53" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual const char* gcu::parse_error::what </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const  throw ()<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Returns a C-style character string describing the general cause of the current error (the same string passed to the constructor). </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="formula_8h_source.html">formula.h</a></li>
</ul>
</div>
<hr size="1"/><address style="text-align: right;"><small>Generated on Sun Sep 6 18:33:55 2009 for The Gnome Chemistry Utils by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address>
</body>
</html>