Sophie

Sophie

distrib > Mageia > 6 > x86_64 > media > core-release > by-pkgid > abaab48f26603db3a2bcf7befcb26cf3 > files > 46

lib64rlog-devel-1.4-9.mga6.x86_64.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>rlog: rlog::RLogModule Class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.0 -->
<div class="tabs">
  <ul>
    <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
    <li><a href="modules.html"><span>Modules</span></a></li>
    <li id="current"><a href="annotated.html"><span>Classes</span></a></li>
    <li><a href="files.html"><span>Files</span></a></li>
    <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
  </ul></div>
<div class="tabs">
  <ul>
    <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="nav">
<b>rlog</b>::<a class="el" href="classrlog_1_1RLogModule.html">RLogModule</a></div>
<h1>rlog::RLogModule Class Reference</h1><!-- doxytag: class="rlog::RLogModule" -->Allows registration of external modules to rlog.  
<a href="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="rloginit_8h-source.html">rlog/rloginit.h</a>&gt;</code>
<p>
<a href="classrlog_1_1RLogModule-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classrlog_1_1RLogModule.html#7b0259d172e448c93fdcabd9f370c692">init</a> (int &amp;argv, char **argc)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual const char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classrlog_1_1RLogModule.html#f205bf0beb2678e31108d54664297ca9">moduleName</a> () const=0</td></tr>

<tr><td colspan="2"><br><h2>Related Functions</h2></td></tr>
<tr><td colspan="2">(Note that these are not member functions.) <br><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classrlog_1_1RLogModule.html">RLogModule</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classrlog_1_1RLogModule.html#e59548fd01efa6bca52d41a1cd39361a">RegisterModule</a> (<a class="el" href="classrlog_1_1RLogModule.html">RLogModule</a> *module)</td></tr>

</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Allows registration of external modules to rlog. 
<p>
Currently this only allows for initialization callbacks. When RLogInit() is called, <a class="el" href="classrlog_1_1RLogModule.html#7b0259d172e448c93fdcabd9f370c692">init()</a> is called on all modules which have been registered.<p>
<dl class="author" compact><dt><b>Author:</b></dt><dd>Valient Gough </dd></dl>

<p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="7b0259d172e448c93fdcabd9f370c692"></a><!-- doxytag: member="rlog::RLogModule::init" ref="7b0259d172e448c93fdcabd9f370c692" args="(int &amp;argv, char **argc)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void RLogModule::init           </td>
          <td>(</td>
          <td class="paramtype">int &amp;&nbsp;</td>
          <td class="paramname"> <em>argv</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char **&nbsp;</td>
          <td class="paramname"> <em>argc</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Called by RLogInit() to give the modules the command-line arguments 
</div>
</div><p>
<a class="anchor" name="f205bf0beb2678e31108d54664297ca9"></a><!-- doxytag: member="rlog::RLogModule::moduleName" ref="f205bf0beb2678e31108d54664297ca9" args="() const=0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual const char* rlog::RLogModule::moduleName           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Must be implemented to return the name of the module. 
</div>
</div><p>
<hr><h2>Friends And Related Function Documentation</h2>
<a class="anchor" name="e59548fd01efa6bca52d41a1cd39361a"></a><!-- doxytag: member="rlog::RLogModule::RegisterModule" ref="e59548fd01efa6bca52d41a1cd39361a" args="(RLogModule *module)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classrlog_1_1RLogModule.html">RLogModule</a> * RegisterModule           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classrlog_1_1RLogModule.html">RLogModule</a> *&nbsp;</td>
          <td class="paramname"> <em>module</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [related]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Registers the module - which will have <a class="el" href="classrlog_1_1RLogModule.html#7b0259d172e448c93fdcabd9f370c692">init()</a> called when RLogInit is called. Returns the module so that it can be used easily as a static initializer. <div class="fragment"><pre class="fragment">      <span class="keyword">class </span>MyModule : <span class="keyword">public</span> rlog::RLogModule
      {
      <span class="keyword">public</span>:
          <span class="keyword">virtual</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="classrlog_1_1RLogModule.html#f205bf0beb2678e31108d54664297ca9">moduleName</a>()<span class="keyword"> const </span>{<span class="keywordflow">return</span> <span class="stringliteral">"MyModule"</span>;}
      };
      <span class="keyword">static</span> RLogModule * testModule = rlog::RegisterModule( <span class="keyword">new</span> MyModule() );
</pre></div> 
</div>
</div><p>
<hr>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="rloginit_8h-source.html">rloginit.h</a><li>rloginit.cpp</ul>
<hr size="1"><address style="align: right;"><small>Generated on Mon Nov 20 22:57:45 2006 for rlog by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.0 </small></address>
</body>
</html>