Sophie

Sophie

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

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::AISDatabaseParser 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_1AISDatabaseParser.html">AISDatabaseParser</a>
  </div>
</div>
<div class="contents">
<h1>libdap::AISDatabaseParser Class Reference</h1><!-- doxytag: class="libdap::AISDatabaseParser" --><code>#include &lt;<a class="el" href="AISDatabaseParser_8h_source.html">AISDatabaseParser.h</a>&gt;</code>
<p>

<p>
<a href="classlibdap_1_1AISDatabaseParser-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Classes</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">struct &nbsp;</td><td class="memItemRight" valign="bottom"><b>AISParserState</b></td></tr>

<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlibdap_1_1AISDatabaseParser.html#bbe7487f5e9b25db0919cdf80c8ec2ce">intern</a> (const string &amp;database, <a class="el" href="classlibdap_1_1AISResources.html">AISResources</a> *ais)</td></tr>

<tr><td colspan="2"><br><h2>Static Public Member Functions</h2></td></tr>
<tr><td colspan="2"><div class="groupHeader">SAX Parser Callbacks</div></td></tr>
<tr><td colspan="2"><div class="groupText">These methods are declared static in the class header. This gives them C linkage which allows them to be used as callbacks by the SAX parser engine. <br><br></div></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlibdap_1_1AISDatabaseParser.html#cf0d559e97ccd9bf16f46d3fed5e6fba">aisEndDocument</a> (AISParserState *state)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">static void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlibdap_1_1AISDatabaseParser.html#c9906556bd78127332d12d32d9e18184">aisEndElement</a> (AISParserState *state, const char *name)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">static void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlibdap_1_1AISDatabaseParser.html#ec6c4f504d1278539045d468e35ff039">aisError</a> (AISParserState *state, const char *msg,...)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">static void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlibdap_1_1AISDatabaseParser.html#db51810ab85a2f8dbe5537e6e79e9bb4">aisFatalError</a> (AISParserState *state, const char *msg,...)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">static xmlEntityPtr&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlibdap_1_1AISDatabaseParser.html#7c8d19b0ebfb926e154a413d72165a90">aisGetEntity</a> (AISParserState *state, const xmlChar *name)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">static void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlibdap_1_1AISDatabaseParser.html#9fdcd3abdf636bcab9def08fba9895f8">aisStartDocument</a> (AISParserState *state)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">static void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlibdap_1_1AISDatabaseParser.html#2e8fe3a27faf0140897a1e037ece43d0">aisStartElement</a> (AISParserState *state, const char *name, const char **attrs)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">static void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlibdap_1_1AISDatabaseParser.html#2e896bce2dce2b89feb09f118db3bb50">aisWarning</a> (AISParserState *state, const char *msg,...)</td></tr>

</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Parse the XML database/configuration file which lists a collection of AIS resources.<p>
Static methods are used as callbacks for the SAX parser. They do not throw exceptions because exceptions from within callbacks are not reliable or portable. To signal errors, the methods record information in the AISParserState object. Once any of the error handlers (aisWarning, aisError or aisFatalError) is called, construction of an <a class="el" href="classlibdap_1_1AISResources.html" title="Manage AIS resources.">AISResources</a> object ends even though the SAX parser still calls the various callback functions. The parse method throws an <a class="el" href="classlibdap_1_1AISDatabaseReadFailed.html">AISDatabaseReadFailed</a> exception if an error was found.<p>
Note that this class uses the C++-supplied default definitions for the default and copy constructors as well as the destructor and assignment operator.<p>
This class should be extended so that the line number is added to error messages.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd>AISResource </dd></dl>

<p>Definition at line <a class="el" href="AISDatabaseParser_8h_source.html#l00069">69</a> of file <a class="el" href="AISDatabaseParser_8h_source.html">AISDatabaseParser.h</a>.</p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="cf0d559e97ccd9bf16f46d3fed5e6fba"></a><!-- doxytag: member="libdap::AISDatabaseParser::aisEndDocument" ref="cf0d559e97ccd9bf16f46d3fed5e6fba" args="(AISParserState *state)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void libdap::AISDatabaseParser::aisEndDocument           </td>
          <td>(</td>
          <td class="paramtype">AISParserState *&nbsp;</td>
          <td class="paramname"> <em>state</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Clean up after finishing a parse. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>state</em>&nbsp;</td><td>The SAX parser state. </td></tr>
  </table>
</dl>

<p>Definition at line <a class="el" href="AISDatabaseParser_8cc_source.html#l00082">82</a> of file <a class="el" href="AISDatabaseParser_8cc_source.html">AISDatabaseParser.cc</a>.</p>

<p>References <a class="el" href="AISDatabaseParser_8cc_source.html#l00324">aisFatalError()</a>, <a class="el" href="debug_8h_source.html#l00058">DBG</a>, and <a class="el" href="debug_8h_source.html#l00073">DBG2</a>.</p>

<p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dynsection">
<p><center><img src="classlibdap_1_1AISDatabaseParser_cf0d559e97ccd9bf16f46d3fed5e6fba_cgraph.png" border="0" usemap="#classlibdap_1_1AISDatabaseParser_cf0d559e97ccd9bf16f46d3fed5e6fba_cgraph_map" alt=""></center>
<map name="classlibdap_1_1AISDatabaseParser_cf0d559e97ccd9bf16f46d3fed5e6fba_cgraph_map">
<area shape="rect" id="node3" href="classlibdap_1_1AISDatabaseParser.html#db51810ab85a2f8dbe5537e6e79e9bb4" title="libdap::AISDatabaseParser::aisFatalError" alt="" coords="485,5,907,32"><area shape="rect" id="node5" href="namespacelibdap.html#317edea830aab50d2137a5bd313cc86a" title="libdap::long_to_string" alt="" coords="956,5,1196,32"><area shape="rect" id="node7" href="namespacelibdap.html#576580781bca7dcd4b5a84cc06892aff" title="libdap::append_long_to_string" alt="" coords="1245,5,1557,32"></map>
</div>

</div>
</div><p>
<a class="anchor" name="c9906556bd78127332d12d32d9e18184"></a><!-- doxytag: member="libdap::AISDatabaseParser::aisEndElement" ref="c9906556bd78127332d12d32d9e18184" args="(AISParserState *state, const char *name)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void libdap::AISDatabaseParser::aisEndElement           </td>
          <td>(</td>
          <td class="paramtype">AISParserState *&nbsp;</td>
          <td class="paramname"> <em>state</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>name</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Process an end element tag. This is where values are added to the <a class="el" href="classlibdap_1_1AISResources.html" title="Manage AIS resources.">AISResources</a> object that's held by <code>state</code>. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>state</em>&nbsp;</td><td>The SAX parser state. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>name</em>&nbsp;</td><td>The name of the element; used only for code instrumentation. </td></tr>
  </table>
</dl>

<p>Definition at line <a class="el" href="AISDatabaseParser_8cc_source.html#l00211">211</a> of file <a class="el" href="AISDatabaseParser_8cc_source.html">AISDatabaseParser.cc</a>.</p>

<p>References <a class="el" href="debug_8h_source.html#l00073">DBG2</a>.</p>

</div>
</div><p>
<a class="anchor" name="ec6c4f504d1278539045d468e35ff039"></a><!-- doxytag: member="libdap::AISDatabaseParser::aisError" ref="ec6c4f504d1278539045d468e35ff039" args="(AISParserState *state, const char *msg,...)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void libdap::AISDatabaseParser::aisError           </td>
          <td>(</td>
          <td class="paramtype">AISParserState *&nbsp;</td>
          <td class="paramname"> <em>state</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>msg</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&nbsp;</td>
          <td class="paramname"> <em>...</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Process an XML error. This is treated as a fatal error since there's no easy way for libdap++ to signal a warning to users. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>state</em>&nbsp;</td><td>The SAX parser state. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>msg</em>&nbsp;</td><td>A printf-style format string. </td></tr>
  </table>
</dl>

<p>Definition at line <a class="el" href="AISDatabaseParser_8cc_source.html#l00299">299</a> of file <a class="el" href="AISDatabaseParser_8cc_source.html">AISDatabaseParser.cc</a>.</p>

<p>References <a class="el" href="util_8cc_source.html#l00448">libdap::long_to_string()</a>.</p>

<p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dynsection">
<p><center><img src="classlibdap_1_1AISDatabaseParser_ec6c4f504d1278539045d468e35ff039_cgraph.png" border="0" usemap="#classlibdap_1_1AISDatabaseParser_ec6c4f504d1278539045d468e35ff039_cgraph_map" alt=""></center>
<map name="classlibdap_1_1AISDatabaseParser_ec6c4f504d1278539045d468e35ff039_cgraph_map">
<area shape="rect" id="node3" href="namespacelibdap.html#317edea830aab50d2137a5bd313cc86a" title="libdap::long_to_string" alt="" coords="428,5,668,32"><area shape="rect" id="node5" href="namespacelibdap.html#576580781bca7dcd4b5a84cc06892aff" title="libdap::append_long_to_string" alt="" coords="717,5,1029,32"></map>
</div>

</div>
</div><p>
<a class="anchor" name="db51810ab85a2f8dbe5537e6e79e9bb4"></a><!-- doxytag: member="libdap::AISDatabaseParser::aisFatalError" ref="db51810ab85a2f8dbe5537e6e79e9bb4" args="(AISParserState *state, const char *msg,...)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void libdap::AISDatabaseParser::aisFatalError           </td>
          <td>(</td>
          <td class="paramtype">AISParserState *&nbsp;</td>
          <td class="paramname"> <em>state</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>msg</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&nbsp;</td>
          <td class="paramname"> <em>...</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Process an XML fatal error. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>state</em>&nbsp;</td><td>The SAX parser state. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>msg</em>&nbsp;</td><td>A printf-style format string. </td></tr>
  </table>
</dl>

<p>Definition at line <a class="el" href="AISDatabaseParser_8cc_source.html#l00324">324</a> of file <a class="el" href="AISDatabaseParser_8cc_source.html">AISDatabaseParser.cc</a>.</p>

<p>References <a class="el" href="util_8cc_source.html#l00448">libdap::long_to_string()</a>.</p>

<p>Referenced by <a class="el" href="AISDatabaseParser_8cc_source.html#l00082">aisEndDocument()</a>, and <a class="el" href="AISDatabaseParser_8cc_source.html#l00103">aisStartElement()</a>.</p>

<p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dynsection">
<p><center><img src="classlibdap_1_1AISDatabaseParser_db51810ab85a2f8dbe5537e6e79e9bb4_cgraph.png" border="0" usemap="#classlibdap_1_1AISDatabaseParser_db51810ab85a2f8dbe5537e6e79e9bb4_cgraph_map" alt=""></center>
<map name="classlibdap_1_1AISDatabaseParser_db51810ab85a2f8dbe5537e6e79e9bb4_cgraph_map">
<area shape="rect" id="node3" href="namespacelibdap.html#317edea830aab50d2137a5bd313cc86a" title="libdap::long_to_string" alt="" coords="476,5,716,32"><area shape="rect" id="node5" href="namespacelibdap.html#576580781bca7dcd4b5a84cc06892aff" title="libdap::append_long_to_string" alt="" coords="765,5,1077,32"></map>
</div>

</div>
</div><p>
<a class="anchor" name="7c8d19b0ebfb926e154a413d72165a90"></a><!-- doxytag: member="libdap::AISDatabaseParser::aisGetEntity" ref="7c8d19b0ebfb926e154a413d72165a90" args="(AISParserState *state, const xmlChar *name)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">xmlEntityPtr libdap::AISDatabaseParser::aisGetEntity           </td>
          <td>(</td>
          <td class="paramtype">AISParserState *&nbsp;</td>
          <td class="paramname"> <em>state</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const xmlChar *&nbsp;</td>
          <td class="paramname"> <em>name</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Handle the standard XML entities. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>state</em>&nbsp;</td><td>The SAX parser state. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>name</em>&nbsp;</td><td>The XML entity. </td></tr>
  </table>
</dl>

<p>Definition at line <a class="el" href="AISDatabaseParser_8cc_source.html#l00263">263</a> of file <a class="el" href="AISDatabaseParser_8cc_source.html">AISDatabaseParser.cc</a>.</p>

</div>
</div><p>
<a class="anchor" name="9fdcd3abdf636bcab9def08fba9895f8"></a><!-- doxytag: member="libdap::AISDatabaseParser::aisStartDocument" ref="9fdcd3abdf636bcab9def08fba9895f8" args="(AISParserState *state)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void libdap::AISDatabaseParser::aisStartDocument           </td>
          <td>(</td>
          <td class="paramtype">AISParserState *&nbsp;</td>
          <td class="paramname"> <em>state</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Initialize the SAX parser state object. This object is passed to each callback as a void pointer. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>state</em>&nbsp;</td><td>The SAX parser state. </td></tr>
  </table>
</dl>

<p>Definition at line <a class="el" href="AISDatabaseParser_8cc_source.html#l00069">69</a> of file <a class="el" href="AISDatabaseParser_8cc_source.html">AISDatabaseParser.cc</a>.</p>

<p>References <a class="el" href="debug_8h_source.html#l00073">DBG2</a>.</p>

</div>
</div><p>
<a class="anchor" name="2e8fe3a27faf0140897a1e037ece43d0"></a><!-- doxytag: member="libdap::AISDatabaseParser::aisStartElement" ref="2e8fe3a27faf0140897a1e037ece43d0" args="(AISParserState *state, const char *name, const char **attrs)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void libdap::AISDatabaseParser::aisStartElement           </td>
          <td>(</td>
          <td class="paramtype">AISParserState *&nbsp;</td>
          <td class="paramname"> <em>state</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char **&nbsp;</td>
          <td class="paramname"> <em>attrs</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Process a start element tag. Because the AIS DTD uses attributes and because libxml2 does not validate those, we do attribute validation here. Values pulled from the attributes are recorded in <code>state</code> for later use in aisEndElement. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>state</em>&nbsp;</td><td>The SAX parser state. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>name</em>&nbsp;</td><td>The name of the element. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>attrs</em>&nbsp;</td><td>The element's attributes; 0, 2, 4, ... are the attribute names, 1, 3, 5, ... are the values. </td></tr>
  </table>
</dl>

<p>Definition at line <a class="el" href="AISDatabaseParser_8cc_source.html#l00103">103</a> of file <a class="el" href="AISDatabaseParser_8cc_source.html">AISDatabaseParser.cc</a>.</p>

<p>References <a class="el" href="AISDatabaseParser_8cc_source.html#l00324">aisFatalError()</a>, <a class="el" href="debug_8h_source.html#l00058">DBG</a>, and <a class="el" href="debug_8h_source.html#l00073">DBG2</a>.</p>

<p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dynsection">
<p><center><img src="classlibdap_1_1AISDatabaseParser_2e8fe3a27faf0140897a1e037ece43d0_cgraph.png" border="0" usemap="#classlibdap_1_1AISDatabaseParser_2e8fe3a27faf0140897a1e037ece43d0_cgraph_map" alt=""></center>
<map name="classlibdap_1_1AISDatabaseParser_2e8fe3a27faf0140897a1e037ece43d0_cgraph_map">
<area shape="rect" id="node3" href="classlibdap_1_1AISDatabaseParser.html#db51810ab85a2f8dbe5537e6e79e9bb4" title="libdap::AISDatabaseParser::aisFatalError" alt="" coords="496,5,917,32"><area shape="rect" id="node5" href="namespacelibdap.html#317edea830aab50d2137a5bd313cc86a" title="libdap::long_to_string" alt="" coords="967,5,1207,32"><area shape="rect" id="node7" href="namespacelibdap.html#576580781bca7dcd4b5a84cc06892aff" title="libdap::append_long_to_string" alt="" coords="1256,5,1568,32"></map>
</div>

</div>
</div><p>
<a class="anchor" name="2e896bce2dce2b89feb09f118db3bb50"></a><!-- doxytag: member="libdap::AISDatabaseParser::aisWarning" ref="2e896bce2dce2b89feb09f118db3bb50" args="(AISParserState *state, const char *msg,...)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void libdap::AISDatabaseParser::aisWarning           </td>
          <td>(</td>
          <td class="paramtype">AISParserState *&nbsp;</td>
          <td class="paramname"> <em>state</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>msg</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&nbsp;</td>
          <td class="paramname"> <em>...</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Process an XML warning. This is treated as a fatal error since there's no easy way for libdap++ to signal a warning to users. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>state</em>&nbsp;</td><td>The SAX parser state. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>msg</em>&nbsp;</td><td>A printf-style format string. </td></tr>
  </table>
</dl>

<p>Definition at line <a class="el" href="AISDatabaseParser_8cc_source.html#l00273">273</a> of file <a class="el" href="AISDatabaseParser_8cc_source.html">AISDatabaseParser.cc</a>.</p>

<p>References <a class="el" href="util_8cc_source.html#l00448">libdap::long_to_string()</a>.</p>

<p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dynsection">
<p><center><img src="classlibdap_1_1AISDatabaseParser_2e896bce2dce2b89feb09f118db3bb50_cgraph.png" border="0" usemap="#classlibdap_1_1AISDatabaseParser_2e896bce2dce2b89feb09f118db3bb50_cgraph_map" alt=""></center>
<map name="classlibdap_1_1AISDatabaseParser_2e896bce2dce2b89feb09f118db3bb50_cgraph_map">
<area shape="rect" id="node3" href="namespacelibdap.html#317edea830aab50d2137a5bd313cc86a" title="libdap::long_to_string" alt="" coords="447,5,687,32"><area shape="rect" id="node5" href="namespacelibdap.html#576580781bca7dcd4b5a84cc06892aff" title="libdap::append_long_to_string" alt="" coords="736,5,1048,32"></map>
</div>

</div>
</div><p>
<a class="anchor" name="bbe7487f5e9b25db0919cdf80c8ec2ce"></a><!-- doxytag: member="libdap::AISDatabaseParser::intern" ref="bbe7487f5e9b25db0919cdf80c8ec2ce" args="(const string &amp;database, AISResources *ais)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void libdap::AISDatabaseParser::intern           </td>
          <td>(</td>
          <td class="paramtype">const string &amp;&nbsp;</td>
          <td class="paramname"> <em>database</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classlibdap_1_1AISResources.html">AISResources</a> *&nbsp;</td>
          <td class="paramname"> <em>ais</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Parse an AIS database encoded in XML. The information in the XML document is loaded into an instance of <a class="el" href="classlibdap_1_1AISResources.html" title="Manage AIS resources.">AISResources</a>. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>database</em>&nbsp;</td><td>Read from this XML file. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>ais</em>&nbsp;</td><td>Load information into this instance of <a class="el" href="classlibdap_1_1AISResources.html" title="Manage AIS resources.">AISResources</a>. </td></tr>
  </table>
</dl>
<dl compact><dt><b>Exceptions:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em><a class="el" href="classlibdap_1_1AISDatabaseReadFailed.html">AISDatabaseReadFailed</a></em>&nbsp;</td><td>Thrown if the XML document could not be read or parsed. </td></tr>
  </table>
</dl>

<p>Definition at line <a class="el" href="AISDatabaseParser_8cc_source.html#l00396">396</a> of file <a class="el" href="AISDatabaseParser_8cc_source.html">AISDatabaseParser.cc</a>.</p>

<p>Referenced by <a class="el" href="AISResources_8cc_source.html#l00242">libdap::AISResources::read_database()</a>.</p>

</div>
</div><p>
<hr>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="AISDatabaseParser_8h_source.html">AISDatabaseParser.h</a><li><a class="el" href="AISDatabaseParser_8cc_source.html">AISDatabaseParser.cc</a></ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Wed Oct 7 19:58:39 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>