Sophie

Sophie

distrib > Mandriva > 9.1 > ppc > media > contrib > by-pkgid > 263386785cefb9ae5d63b926d214d809 > files > 452

mpqc-2.1.2-4mdk.ppc.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta name="robots" content="noindex">
<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>sc::ParsedKeyVal class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body bgcolor="#ffffff">
<!-- Generated by Doxygen 1.2.5 on Mon Oct 14 14:17:19 2002 -->
<center>
<a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; <a class="qindex" href="pages.html">Related Pages</a> &nbsp; </center>
<hr><h1>sc::ParsedKeyVal  Class Reference</h1>Converts textual information into keyword/value assocations. 
<a href="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="keyval_h-source.html">keyval.h</a>&gt;</code>
<p>
Inheritance diagram for sc::ParsedKeyVal<p><center><img src="class_sc__ParsedKeyVal_inherit_graph.gif" border="0" usemap="#sc::ParsedKeyVal_inherit_map" alt="Inheritance graph"></center>
<map name="sc::ParsedKeyVal_inherit_map">
<area href="class_sc__KeyVal.html" shape="rect" coords="31,147,103,166">
<area href="class_sc__RefCount.html" shape="rect" coords="26,81,109,99">
<area href="class_sc__Identity.html" shape="rect" coords="31,14,103,33">
</map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center>Collaboration diagram for sc::ParsedKeyVal:<p><center><img src="class_sc__ParsedKeyVal_coll_graph.gif" border="0" usemap="#sc::ParsedKeyVal_coll_map" alt="Collaboration graph"></center>
<map name="sc::ParsedKeyVal_coll_map">
<area href="class_sc__KeyVal.html" shape="rect" coords="19,179,91,198">
<area href="class_sc__RefCount.html" shape="rect" coords="14,97,97,115">
<area href="class_sc__Identity.html" shape="rect" coords="19,14,91,33">
</map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="class_sc__ParsedKeyVal-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0>
<tr><td colspan=2><br><h2>Public Methods</h2></td></tr>
<tr><td nowrap align=right valign=top><a name="a0" doxytag="sc::ParsedKeyVal::ParsedKeyVal"></a>
&nbsp;</td><td valign=bottom><a class="el" href="class_sc__ParsedKeyVal.html#a0">ParsedKeyVal</a> ()</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Create an empty <a class="el" href="class_sc__ParsedKeyVal.html">ParsedKeyVal</a>.</em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a name="a1" doxytag="sc::ParsedKeyVal::ParsedKeyVal"></a>
&nbsp;</td><td valign=bottom><a class="el" href="class_sc__ParsedKeyVal.html#a1">ParsedKeyVal</a> (const char *file)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Parse the given input file.</em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a name="a2" doxytag="sc::ParsedKeyVal::ParsedKeyVal"></a>
&nbsp;</td><td valign=bottom><a class="el" href="class_sc__ParsedKeyVal.html#a2">ParsedKeyVal</a> (std::istream &amp;s)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Read input from s.</em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>&nbsp;</td><td valign=bottom><a class="el" href="class_sc__ParsedKeyVal.html#a3">ParsedKeyVal</a> (IPV2 *)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Use the given IPV2* object.</em> <a href="#a3">More...</a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>&nbsp;</td><td valign=bottom><a class="el" href="class_sc__ParsedKeyVal.html#a4">ParsedKeyVal</a> (const char *,const <a class="el" href="class_sc__Ref.html">Ref</a>&lt; <a class="el" href="class_sc__KeyVal.html">KeyVal</a> &gt; &amp;)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>This ctor is given a string which is used to form keywords that are sought in the keyval argument.</em> <a href="#a4">More...</a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a name="a5" doxytag="sc::ParsedKeyVal::~ParsedKeyVal"></a>
&nbsp;</td><td valign=bottom><a class="el" href="class_sc__ParsedKeyVal.html#a5">~ParsedKeyVal</a> ()</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Cleanup, deleting the IPV2 object.</em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a name="a6" doxytag="sc::ParsedKeyVal::read"></a>
void&nbsp;</td><td valign=bottom><a class="el" href="class_sc__ParsedKeyVal.html#a6">read</a> (const char *)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Read input data from the given filename.</em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a name="a7" doxytag="sc::ParsedKeyVal::read"></a>
void&nbsp;</td><td valign=bottom><a class="el" href="class_sc__ParsedKeyVal.html#a7">read</a> (std::istream &amp;)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Read input data from the given stream.</em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a name="a8" doxytag="sc::ParsedKeyVal::parse_string"></a>
void&nbsp;</td><td valign=bottom><a class="el" href="class_sc__ParsedKeyVal.html#a8">parse_string</a> (const char *)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Read input data from the given string.</em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a name="a9" doxytag="sc::ParsedKeyVal::stringvalue"></a>
const char*&nbsp;</td><td valign=bottom><b>stringvalue</b> (const char *)</td></tr>
<tr><td nowrap align=right valign=top><a name="a10" doxytag="sc::ParsedKeyVal::classname"></a>
const char*&nbsp;</td><td valign=bottom><b>classname</b> (const char *)</td></tr>
<tr><td nowrap align=right valign=top><a name="a11" doxytag="sc::ParsedKeyVal::truekeyword"></a>
const char*&nbsp;</td><td valign=bottom><b>truekeyword</b> (const char *)</td></tr>
<tr><td nowrap align=right valign=top><a name="a12" doxytag="sc::ParsedKeyVal::errortrace"></a>
void&nbsp;</td><td valign=bottom><b>errortrace</b> (std::ostream &amp;fp=ExEnv::err0())</td></tr>
<tr><td nowrap align=right valign=top><a name="a13" doxytag="sc::ParsedKeyVal::dump"></a>
void&nbsp;</td><td valign=bottom><b>dump</b> (std::ostream &amp;fp=ExEnv::err0())</td></tr>
<tr><td nowrap align=right valign=top><a name="a14" doxytag="sc::ParsedKeyVal::print_unseen"></a>
void&nbsp;</td><td valign=bottom><a class="el" href="class_sc__ParsedKeyVal.html#a14">print_unseen</a> (std::ostream &amp;fp=ExEnv::out0())</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Print keywords that were never looked at, if possible.</em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a name="a15" doxytag="sc::ParsedKeyVal::have_unseen"></a>
int&nbsp;</td><td valign=bottom><a class="el" href="class_sc__ParsedKeyVal.html#a15">have_unseen</a> ()</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Return 1 if there were unseen keywords, 0 if there are none, or -1 this keyval doesn't keep track of unseen keywords.</em></font><br><br></td></tr>
<tr><td colspan=2><br><h2>Static Public Methods</h2></td></tr>
<tr><td nowrap align=right valign=top><a name="d0" doxytag="sc::ParsedKeyVal::cat_files"></a>
void&nbsp;</td><td valign=bottom><a class="el" href="class_sc__ParsedKeyVal.html#d0">cat_files</a> (const char *,const <a class="el" href="class_sc__Ref.html">Ref</a>&lt; <a class="el" href="class_sc__KeyVal.html">KeyVal</a> &gt; &amp;,std::ostream &amp;o)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>This is like the <a class="el" href="class_sc__ParsedKeyVal.html#a4">ParsedKeyVal</a>(const char*,const Ref&lt;KeyVal&gt;&amp;) ctor, but writes the contents of the files to the given ostream.</em></font><br><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Converts textual information into keyword/value assocations.
<p>
The parsing is done with an IPV2 object. The <a href="keyval.html#keyval">The KeyVal Library</a> for more information on the input format. 
<p>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a name="a3" doxytag="sc::ParsedKeyVal::ParsedKeyVal"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td nowrap valign="top"><b> 
sc::ParsedKeyVal::ParsedKeyVal (
          </b></td>
          <td valign="bottom"><b>
IPV2 *&nbsp;)
          </b></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Use the given IPV2* object.
<p>
The new <a class="el" href="class_sc__ParsedKeyVal.html">ParsedKeyVal</a> takes wnership of the passed IPV2 object.     </td>
  </tr>
</table>
<a name="a4" doxytag="sc::ParsedKeyVal::ParsedKeyVal"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td nowrap valign="top"><b> 
sc::ParsedKeyVal::ParsedKeyVal (
          </b></td>
          <td valign="bottom"><b>
const char *, 
          </b></td>
        </tr>
        <tr>
          <td></td>
          <td><b>
const <a class="el" href="class_sc__Ref.html">Ref</a>&lt; <a class="el" href="class_sc__KeyVal.html">KeyVal</a> &gt; &amp;&nbsp;)
          </b></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
This ctor is given a string which is used to form keywords that are sought in the keyval argument.
<p>
The associated values are used to construct file names that are used to initialize the <a class="el" href="class_sc__ParsedKeyVal.html">ParsedKeyVal</a>. The keywords sought are string'dir' for the directory prefix and string'files' for an array of file names.     </td>
  </tr>
</table>
<hr>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="keyval_h-source.html">keyval.h</a></ul>
<hr>
<address>
<small>

Generated at Mon Oct 14 14:17:20 2002 for <a
href="http://aros.ca.sandia.gov/~cljanss/mpqc">MPQC</a>
2.1.2 using the documentation package <a
href="http://www.stack.nl/~dimitri/doxygen/index.html">Doxygen</a>
1.2.5.

</small>
</address>
</body>
</html>