Sophie

Sophie

distrib > Fedora > 14 > x86_64 > media > updates > by-pkgid > 88959ca903fe50462ea99715ead18944 > files > 102

raul-devel-0.7.0-1.fc14.1.x86_64.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>RAUL: Raul::Configuration 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.1 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="modules.html"><span>Modules</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="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&nbsp;List</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">
    <ul>
      <li><b>Raul</b>      </li>
      <li><a class="el" href="classRaul_1_1Configuration.html">Raul::Configuration</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a>  </div>
  <div class="headertitle">
<h1>Raul::Configuration Class Reference</h1>  </div>
</div>
<div class="contents">
<!-- doxytag: class="Raul::Configuration" -->
<p>Program configuration (command line options and/or configuration file).  
<a href="#_details">More...</a></p>

<p><code>#include &lt;<a class="el" href="Configuration_8hpp_source.html">Configuration.hpp</a>&gt;</code></p>

<p><a href="classRaul_1_1Configuration-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"><a class="anchor" id="ae8b9adf140f3f0bd1b3012677cc1541f"></a><!-- doxytag: member="Raul::Configuration::Configuration" ref="ae8b9adf140f3f0bd1b3012677cc1541f" args="(const std::string &amp;shortdesc, const std::string &amp;desc)" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><b>Configuration</b> (const std::string &amp;shortdesc, const std::string &amp;desc)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classRaul_1_1Configuration.html">Configuration</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRaul_1_1Configuration.html#a9508a88d36f6a7ef2353f1a01b88942d">add</a> (const std::string &amp;name, char letter, const std::string &amp;desc, const Atom::Type type, const <a class="el" href="classRaul_1_1Atom.html">Atom</a> &amp;value)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Add a configuration option.  <a href="#a9508a88d36f6a7ef2353f1a01b88942d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af5695e9b49758af8659b97d673dca47c"></a><!-- doxytag: member="Raul::Configuration::print_usage" ref="af5695e9b49758af8659b97d673dca47c" args="(const std::string &amp;program, std::ostream &amp;os)" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><b>print_usage</b> (const std::string &amp;program, std::ostream &amp;os)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRaul_1_1Configuration.html#a1cdb37986b2255de63d782b39f368d18">parse</a> (int argc, char **argv)  throw (CommandLineError)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Parse command line arguments.  <a href="#a1cdb37986b2255de63d782b39f368d18"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad42fb4281cb703d99a0c17d7f480f667"></a><!-- doxytag: member="Raul::Configuration::print" ref="ad42fb4281cb703d99a0c17d7f480f667" args="(std::ostream &amp;os, const std::string mime_type=&quot;text/plain&quot;) const " -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><b>print</b> (std::ostream &amp;os, const std::string mime_type=&quot;text/plain&quot;) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a27901dc6cc7a91b85586577311239540"></a><!-- doxytag: member="Raul::Configuration::option" ref="a27901dc6cc7a91b85586577311239540" args="(const std::string &amp;long_name)" -->
const <a class="el" href="classRaul_1_1Atom.html">Raul::Atom</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><b>option</b> (const std::string &amp;long_name)</td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>Program configuration (command line options and/or configuration file). </p>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a9508a88d36f6a7ef2353f1a01b88942d"></a><!-- doxytag: member="Raul::Configuration::add" ref="a9508a88d36f6a7ef2353f1a01b88942d" args="(const std::string &amp;name, char letter, const std::string &amp;desc, const Atom::Type type, const Atom &amp;value)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classRaul_1_1Configuration.html">Configuration</a> &amp; Raul::Configuration::add </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&nbsp;</td>
          <td class="paramname"> <em>name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char&nbsp;</td>
          <td class="paramname"> <em>letter</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string &amp;&nbsp;</td>
          <td class="paramname"> <em>desc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const Atom::Type&nbsp;</td>
          <td class="paramname"> <em>type</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classRaul_1_1Atom.html">Atom</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>value</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Add a configuration option. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>name</em>&nbsp;</td><td>Long name (without leading "--") </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>letter</em>&nbsp;</td><td>Short name (without leading "-") </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>desc</em>&nbsp;</td><td>Description </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>type</em>&nbsp;</td><td>Type (Atom::BOOL for flags) </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>value</em>&nbsp;</td><td>Default value </td></tr>
  </table>
  </dd>
</dl>

<p>References <a class="el" href="classRaul_1_1Atom.html#a9221752e4e19d52178388d811815c33c">Raul::Atom::type()</a>.</p>

</div>
</div>
<a class="anchor" id="a1cdb37986b2255de63d782b39f368d18"></a><!-- doxytag: member="Raul::Configuration::parse" ref="a1cdb37986b2255de63d782b39f368d18" args="(int argc, char **argv)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Raul::Configuration::parse </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>argc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char **&nbsp;</td>
          <td class="paramname"> <em>argv</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td>  throw (CommandLineError)</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Parse command line arguments. </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="Configuration_8hpp_source.html">Configuration.hpp</a></li>
<li>Configuration.cpp</li>
</ul>
</div>
<hr class="footer"/><address class="footer"><small>Generated on Wed Oct 6 2010 for RAUL by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.1 </small></address>
</body>
</html>