Sophie

Sophie

distrib > Fedora > 14 > x86_64 > by-pkgid > 5fc82cd2dfd40b1b8acca39dd2860281 > files > 199

log4cpp-1.0-4.fc12.i686.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>log4cpp: log4cpp::FixedContextCategory 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="index.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="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="namespacelog4cpp.html">log4cpp</a>::<a class="el" href="classlog4cpp_1_1FixedContextCategory.html">FixedContextCategory</a>
  </div>
</div>
<div class="contents">
<h1>log4cpp::FixedContextCategory Class Reference</h1><!-- doxytag: class="log4cpp::FixedContextCategory" --><!-- doxytag: inherits="log4cpp::Category" -->This <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a> subclass replaces the <a class="el" href="classlog4cpp_1_1NDC.html" title="The NDC class implements nested diagnostic contexts as defined by Neil Harrison in...">NDC</a> field in LoggingEvents with a fixed context string.  
<a href="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="FixedContextCategory_8hh_source.html">FixedContextCategory.hh</a>&gt;</code>
<p>
<div class="dynheader">
Inheritance diagram for log4cpp::FixedContextCategory:</div>
<div class="dynsection">

<p><center><img src="classlog4cpp_1_1FixedContextCategory.png" usemap="#log4cpp::FixedContextCategory_map" border="0" alt=""></center>
<map name="log4cpp::FixedContextCategory_map">
<area href="classlog4cpp_1_1Category.html" alt="log4cpp::Category" shape="rect" coords="0,0,188,24">
</map>
</div>

<p>
<a href="classlog4cpp_1_1FixedContextCategory-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">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1FixedContextCategory.html#94b2f7203eedb15bf8789ab2e22c3773">FixedContextCategory</a> (const std::string &amp;name, const std::string &amp;context=&quot;&quot;)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Constructor.  <a href="#94b2f7203eedb15bf8789ab2e22c3773"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1FixedContextCategory.html#e4171b58eeadfbf42a9dec417d943362">~FixedContextCategory</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Destructor for <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a>.  <a href="#e4171b58eeadfbf42a9dec417d943362"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1FixedContextCategory.html#e2170fbeaacd8cac9250fa7f42377cb5">setContext</a> (const std::string &amp;context)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set the context string used as <a class="el" href="classlog4cpp_1_1NDC.html" title="The NDC class implements nested diagnostic contexts as defined by Neil Harrison in...">NDC</a>.  <a href="#e2170fbeaacd8cac9250fa7f42377cb5"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual std::string&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1FixedContextCategory.html#85cfaeca45b2760342ca9a18195329f6">getContext</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return the context string used as <a class="el" href="classlog4cpp_1_1NDC.html" title="The NDC class implements nested diagnostic contexts as defined by Neil Harrison in...">NDC</a>.  <a href="#85cfaeca45b2760342ca9a18195329f6"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="classlog4cpp_1_1Priority.html#19c2e47a94a531d3028f7c545671ff72">Priority::Value</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1FixedContextCategory.html#009c522a12e8b8bdc25d6e83a7ac21da">getPriority</a> () const   throw ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the assigned <a class="el" href="classlog4cpp_1_1Priority.html" title="The Priority class provides importance levels with which one can categorize log messages...">Priority</a>, if any, for this <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a>.  <a href="#009c522a12e8b8bdc25d6e83a7ac21da"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="classlog4cpp_1_1Priority.html#19c2e47a94a531d3028f7c545671ff72">Priority::Value</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1FixedContextCategory.html#3f2c200a3af93c8db3f8329ed24c223a">getChainedPriority</a> () const   throw ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Starting from this <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a>, search the category hierarchy for a set priority and return it.  <a href="#3f2c200a3af93c8db3f8329ed24c223a"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1FixedContextCategory.html#6f16b049334663624afabed150401669">addAppender</a> (<a class="el" href="classlog4cpp_1_1Appender.html">Appender</a> *appender)  throw ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">For the moment this method does nothing.  <a href="#6f16b049334663624afabed150401669"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1FixedContextCategory.html#1e58c08c075dab8bb0957b48df6b7b92">addAppender</a> (<a class="el" href="classlog4cpp_1_1Appender.html">Appender</a> &amp;appender)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">For the moment this method does nothing.  <a href="#1e58c08c075dab8bb0957b48df6b7b92"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="classlog4cpp_1_1Appender.html">Appender</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1FixedContextCategory.html#832db0eb782015ac2f125bbc79ccada5">getAppender</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the <a class="el" href="classlog4cpp_1_1Appender.html" title="Implement this interface for your own strategies for printing log statements.">Appender</a> for this <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a>, or NULL if no <a class="el" href="classlog4cpp_1_1Appender.html" title="Implement this interface for your own strategies for printing log statements.">Appender</a> has been set.  <a href="#832db0eb782015ac2f125bbc79ccada5"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="classlog4cpp_1_1Appender.html">Appender</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1FixedContextCategory.html#e176d1d2680928785c4450dff2cc1be9">getAppender</a> (const std::string &amp;name) const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the specified <a class="el" href="classlog4cpp_1_1Appender.html" title="Implement this interface for your own strategies for printing log statements.">Appender</a> for this <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a>, or NULL if the <a class="el" href="classlog4cpp_1_1Appender.html" title="Implement this interface for your own strategies for printing log statements.">Appender</a> is not attached to this <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a>.  <a href="#e176d1d2680928785c4450dff2cc1be9"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="namespacelog4cpp.html#33a2e97cb897835dadbe401c6f9d658d">AppenderSet</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1FixedContextCategory.html#1de99ebcfe01ef225c474e897ce42001">getAllAppenders</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the set of Appenders currently attached to this Catogory.  <a href="#1de99ebcfe01ef225c474e897ce42001"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1FixedContextCategory.html#e052abcf7eb04a314400b43c58c78b68">removeAllAppenders</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Removes all appenders set for this <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a>.  <a href="#e052abcf7eb04a314400b43c58c78b68"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1FixedContextCategory.html#9cdddf29802ec56265352a0e63b7a131">ownsAppender</a> () const   throw ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">FixedContextAppenders cannot own Appenders.  <a href="#9cdddf29802ec56265352a0e63b7a131"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1FixedContextCategory.html#8edf487c3081510fb51a6b45bb34e3a2">ownsAppender</a> (<a class="el" href="classlog4cpp_1_1Appender.html">Appender</a> *appender) const   throw ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">FixedContextAppenders cannot own Appenders.  <a href="#8edf487c3081510fb51a6b45bb34e3a2"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1FixedContextCategory.html#72e2e2486bcc823b4a4318dad4bea0df">callAppenders</a> (const <a class="el" href="structlog4cpp_1_1LoggingEvent.html">LoggingEvent</a> &amp;event)  throw ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Call the appenders in the hierarchy starting at <code>this</code>.  <a href="#72e2e2486bcc823b4a4318dad4bea0df"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1FixedContextCategory.html#050500a967022390512eb4bc776cb648">setAdditivity</a> (bool additivity)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set the additivity flag for this <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a> instance.  <a href="#050500a967022390512eb4bc776cb648"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1FixedContextCategory.html#b850e3c76a07845e97429c37803de623">getAdditivity</a> () const   throw ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the additivity flag for this <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a> instance.  <a href="#b850e3c76a07845e97429c37803de623"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Protected 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="classlog4cpp_1_1FixedContextCategory.html#abd251a7a6198fb8235defeeefa9d0ed">_logUnconditionally2</a> (<a class="el" href="classlog4cpp_1_1Priority.html#19c2e47a94a531d3028f7c545671ff72">Priority::Value</a> priority, const std::string &amp;message)  throw ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Unconditionally log a message with the specified priority.  <a href="#abd251a7a6198fb8235defeeefa9d0ed"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
This <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a> subclass replaces the <a class="el" href="classlog4cpp_1_1NDC.html" title="The NDC class implements nested diagnostic contexts as defined by Neil Harrison in...">NDC</a> field in LoggingEvents with a fixed context string. 
<p>
All handling of Appenders, etc. is delgated to the 'normal' <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a> with the same name. Its intended use is for object instances that serve a single client: they contruct a <a class="el" href="classlog4cpp_1_1FixedContextCategory.html" title="This Category subclass replaces the NDC field in LoggingEvents with a fixed context...">FixedContextCategory</a> with the client identifier as context. Unlike with regular <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a> instances one has to explicitly create <a class="el" href="classlog4cpp_1_1FixedContextCategory.html" title="This Category subclass replaces the NDC field in LoggingEvents with a fixed context...">FixedContextCategory</a> instances using the constructor. This also implies one has to take cake of destruction of the instance as well. <dl class="since" compact><dt><b>Since:</b></dt><dd>0.2.4 </dd></dl>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="94b2f7203eedb15bf8789ab2e22c3773"></a><!-- doxytag: member="log4cpp::FixedContextCategory::FixedContextCategory" ref="94b2f7203eedb15bf8789ab2e22c3773" args="(const std::string &amp;name, const std::string &amp;context=&quot;&quot;)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">log4cpp::FixedContextCategory::FixedContextCategory           </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">const std::string &amp;&nbsp;</td>
          <td class="paramname"> <em>context</em> = <code>&quot;&quot;</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Constructor. 
<p>
<dl compact><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>the fully qualified name of this Categories delegate <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a>. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>context</em>&nbsp;</td><td>the context to fill the <a class="el" href="classlog4cpp_1_1NDC.html" title="The NDC class implements nested diagnostic contexts as defined by Neil Harrison in...">NDC</a> field of LoggingEvents with. </td></tr>
  </table>
</dl>

</div>
</div><p>
<a class="anchor" name="e4171b58eeadfbf42a9dec417d943362"></a><!-- doxytag: member="log4cpp::FixedContextCategory::~FixedContextCategory" ref="e4171b58eeadfbf42a9dec417d943362" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">log4cpp::FixedContextCategory::~FixedContextCategory           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Destructor for <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a>. 
<p>

</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="abd251a7a6198fb8235defeeefa9d0ed"></a><!-- doxytag: member="log4cpp::FixedContextCategory::_logUnconditionally2" ref="abd251a7a6198fb8235defeeefa9d0ed" args="(Priority::Value priority, const std::string &amp;message)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void log4cpp::FixedContextCategory::_logUnconditionally2           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classlog4cpp_1_1Priority.html#19c2e47a94a531d3028f7c545671ff72">Priority::Value</a>&nbsp;</td>
          <td class="paramname"> <em>priority</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string &amp;&nbsp;</td>
          <td class="paramname"> <em>message</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td>  throw ()<code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Unconditionally log a message with the specified priority. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>priority</em>&nbsp;</td><td>The priority of this log message. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>message</em>&nbsp;</td><td>string to write in the log file </td></tr>
  </table>
</dl>

<p>Reimplemented from <a class="el" href="classlog4cpp_1_1Category.html#77265549183a4f2fc9ecea8da5aec8b4">log4cpp::Category</a>.</p>

</div>
</div><p>
<a class="anchor" name="1e58c08c075dab8bb0957b48df6b7b92"></a><!-- doxytag: member="log4cpp::FixedContextCategory::addAppender" ref="1e58c08c075dab8bb0957b48df6b7b92" args="(Appender &amp;appender)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void log4cpp::FixedContextCategory::addAppender           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classlog4cpp_1_1Appender.html">Appender</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>appender</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
For the moment this method does nothing. 
<p>

<p>Reimplemented from <a class="el" href="classlog4cpp_1_1Category.html#f6e26395fb0fdcd842fa9b8d32dbaace">log4cpp::Category</a>.</p>

</div>
</div><p>
<a class="anchor" name="6f16b049334663624afabed150401669"></a><!-- doxytag: member="log4cpp::FixedContextCategory::addAppender" ref="6f16b049334663624afabed150401669" args="(Appender *appender)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void log4cpp::FixedContextCategory::addAppender           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classlog4cpp_1_1Appender.html">Appender</a> *&nbsp;</td>
          <td class="paramname"> <em>appender</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td>  throw ()<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
For the moment this method does nothing. 
<p>

<p>Reimplemented from <a class="el" href="classlog4cpp_1_1Category.html#fe22130ca03516ea3f9331446e2b0d5d">log4cpp::Category</a>.</p>

</div>
</div><p>
<a class="anchor" name="72e2e2486bcc823b4a4318dad4bea0df"></a><!-- doxytag: member="log4cpp::FixedContextCategory::callAppenders" ref="72e2e2486bcc823b4a4318dad4bea0df" args="(const LoggingEvent &amp;event)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void log4cpp::FixedContextCategory::callAppenders           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structlog4cpp_1_1LoggingEvent.html">LoggingEvent</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>event</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td>  throw ()<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Call the appenders in the hierarchy starting at <code>this</code>. 
<p>
If no appenders could be found, emit a warning.<p>
This method always calls all the appenders inherited form the hierracy circumventing any evaluation of whether to log or not to log the particular log request.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>event</em>&nbsp;</td><td>The <a class="el" href="structlog4cpp_1_1LoggingEvent.html" title="The internal representation of logging events.">LoggingEvent</a> to log. </td></tr>
  </table>
</dl>

<p>Reimplemented from <a class="el" href="classlog4cpp_1_1Category.html#c07af8f9e1f8342dce0a437c6ad9764f">log4cpp::Category</a>.</p>

</div>
</div><p>
<a class="anchor" name="b850e3c76a07845e97429c37803de623"></a><!-- doxytag: member="log4cpp::FixedContextCategory::getAdditivity" ref="b850e3c76a07845e97429c37803de623" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool log4cpp::FixedContextCategory::getAdditivity           </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 the additivity flag for this <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a> instance. 
<p>

<p>Reimplemented from <a class="el" href="classlog4cpp_1_1Category.html#8f3194a44eec707cff9282590d4bf537">log4cpp::Category</a>.</p>

</div>
</div><p>
<a class="anchor" name="1de99ebcfe01ef225c474e897ce42001"></a><!-- doxytag: member="log4cpp::FixedContextCategory::getAllAppenders" ref="1de99ebcfe01ef225c474e897ce42001" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespacelog4cpp.html#33a2e97cb897835dadbe401c6f9d658d">AppenderSet</a> log4cpp::FixedContextCategory::getAllAppenders           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the set of Appenders currently attached to this Catogory. 
<p>
<dl class="since" compact><dt><b>Since:</b></dt><dd>0.3.1 </dd></dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The set of attached Appenders. </dd></dl>

<p>Reimplemented from <a class="el" href="classlog4cpp_1_1Category.html#9b1949eec3c2344a0a24f3cc16961af6">log4cpp::Category</a>.</p>

</div>
</div><p>
<a class="anchor" name="e176d1d2680928785c4450dff2cc1be9"></a><!-- doxytag: member="log4cpp::FixedContextCategory::getAppender" ref="e176d1d2680928785c4450dff2cc1be9" args="(const std::string &amp;name) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classlog4cpp_1_1Appender.html">Appender</a> * log4cpp::FixedContextCategory::getAppender           </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&nbsp;</td>
          <td class="paramname"> <em>name</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the specified <a class="el" href="classlog4cpp_1_1Appender.html" title="Implement this interface for your own strategies for printing log statements.">Appender</a> for this <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a>, or NULL if the <a class="el" href="classlog4cpp_1_1Appender.html" title="Implement this interface for your own strategies for printing log statements.">Appender</a> is not attached to this <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a>. 
<p>
<dl class="since" compact><dt><b>Since:</b></dt><dd>0.2.7 </dd></dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The <a class="el" href="classlog4cpp_1_1Appender.html" title="Implement this interface for your own strategies for printing log statements.">Appender</a>. </dd></dl>

<p>Reimplemented from <a class="el" href="classlog4cpp_1_1Category.html#badce100c630726cfb16d2c27f2581f4">log4cpp::Category</a>.</p>

</div>
</div><p>
<a class="anchor" name="832db0eb782015ac2f125bbc79ccada5"></a><!-- doxytag: member="log4cpp::FixedContextCategory::getAppender" ref="832db0eb782015ac2f125bbc79ccada5" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classlog4cpp_1_1Appender.html">Appender</a> * log4cpp::FixedContextCategory::getAppender           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the <a class="el" href="classlog4cpp_1_1Appender.html" title="Implement this interface for your own strategies for printing log statements.">Appender</a> for this <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a>, or NULL if no <a class="el" href="classlog4cpp_1_1Appender.html" title="Implement this interface for your own strategies for printing log statements.">Appender</a> has been set. 
<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The <a class="el" href="classlog4cpp_1_1Appender.html" title="Implement this interface for your own strategies for printing log statements.">Appender</a>. </dd></dl>

<p>Reimplemented from <a class="el" href="classlog4cpp_1_1Category.html#8d544f5f1aaf502802a6c5bb7912cfd2">log4cpp::Category</a>.</p>

</div>
</div><p>
<a class="anchor" name="3f2c200a3af93c8db3f8329ed24c223a"></a><!-- doxytag: member="log4cpp::FixedContextCategory::getChainedPriority" ref="3f2c200a3af93c8db3f8329ed24c223a" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classlog4cpp_1_1Priority.html#19c2e47a94a531d3028f7c545671ff72">Priority::Value</a> log4cpp::FixedContextCategory::getChainedPriority           </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>
Starting from this <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a>, search the category hierarchy for a set priority and return it. 
<p>
Otherwise, return the priority of the root category.<p>
The <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a> class is designed so that this method executes as quickly as possible. 
<p>Reimplemented from <a class="el" href="classlog4cpp_1_1Category.html#8cdbbc14ee2a24d0815d5f8558ee9da9">log4cpp::Category</a>.</p>

</div>
</div><p>
<a class="anchor" name="85cfaeca45b2760342ca9a18195329f6"></a><!-- doxytag: member="log4cpp::FixedContextCategory::getContext" ref="85cfaeca45b2760342ca9a18195329f6" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::string log4cpp::FixedContextCategory::getContext           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Return the context string used as <a class="el" href="classlog4cpp_1_1NDC.html" title="The NDC class implements nested diagnostic contexts as defined by Neil Harrison in...">NDC</a>. 
<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>the context string. </dd></dl>

</div>
</div><p>
<a class="anchor" name="009c522a12e8b8bdc25d6e83a7ac21da"></a><!-- doxytag: member="log4cpp::FixedContextCategory::getPriority" ref="009c522a12e8b8bdc25d6e83a7ac21da" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classlog4cpp_1_1Priority.html#19c2e47a94a531d3028f7c545671ff72">Priority::Value</a> log4cpp::FixedContextCategory::getPriority           </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 the assigned <a class="el" href="classlog4cpp_1_1Priority.html" title="The Priority class provides importance levels with which one can categorize log messages...">Priority</a>, if any, for this <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a>. 
<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd><a class="el" href="classlog4cpp_1_1Priority.html" title="The Priority class provides importance levels with which one can categorize log messages...">Priority</a> - the assigned <a class="el" href="classlog4cpp_1_1Priority.html" title="The Priority class provides importance levels with which one can categorize log messages...">Priority</a>, can be <a class="el" href="classlog4cpp_1_1Priority.html#e1b1901a7b2bea8190b286684eecc1afebdf006bbefb65f1d654594992ac4e4f">Priority::NOTSET</a> </dd></dl>

<p>Reimplemented from <a class="el" href="classlog4cpp_1_1Category.html#fa37d2741567cc909ddd0a2378e8576f">log4cpp::Category</a>.</p>

</div>
</div><p>
<a class="anchor" name="8edf487c3081510fb51a6b45bb34e3a2"></a><!-- doxytag: member="log4cpp::FixedContextCategory::ownsAppender" ref="8edf487c3081510fb51a6b45bb34e3a2" args="(Appender *appender) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool log4cpp::FixedContextCategory::ownsAppender           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classlog4cpp_1_1Appender.html">Appender</a> *&nbsp;</td>
          <td class="paramname"> <em>appender</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td> const  throw ()<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
FixedContextAppenders cannot own Appenders. 
<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>false </dd></dl>

<p>Reimplemented from <a class="el" href="classlog4cpp_1_1Category.html#2ff9f28b04dafc13fd08316fd5a27f19">log4cpp::Category</a>.</p>

</div>
</div><p>
<a class="anchor" name="9cdddf29802ec56265352a0e63b7a131"></a><!-- doxytag: member="log4cpp::FixedContextCategory::ownsAppender" ref="9cdddf29802ec56265352a0e63b7a131" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool log4cpp::FixedContextCategory::ownsAppender           </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>
FixedContextAppenders cannot own Appenders. 
<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>false </dd></dl>

<p>Reimplemented from <a class="el" href="classlog4cpp_1_1Category.html#322ca57d9dfd5291f7be3fb9f1d9076a">log4cpp::Category</a>.</p>

</div>
</div><p>
<a class="anchor" name="e052abcf7eb04a314400b43c58c78b68"></a><!-- doxytag: member="log4cpp::FixedContextCategory::removeAllAppenders" ref="e052abcf7eb04a314400b43c58c78b68" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void log4cpp::FixedContextCategory::removeAllAppenders           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Removes all appenders set for this <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a>. 
<p>
Currently a <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a> can have only one appender, but this may change in the future. 
<p>Reimplemented from <a class="el" href="classlog4cpp_1_1Category.html#aa875c937496cbae47305505658cc13d">log4cpp::Category</a>.</p>

</div>
</div><p>
<a class="anchor" name="050500a967022390512eb4bc776cb648"></a><!-- doxytag: member="log4cpp::FixedContextCategory::setAdditivity" ref="050500a967022390512eb4bc776cb648" args="(bool additivity)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void log4cpp::FixedContextCategory::setAdditivity           </td>
          <td>(</td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> <em>additivity</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Set the additivity flag for this <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a> instance. 
<p>

<p>Reimplemented from <a class="el" href="classlog4cpp_1_1Category.html#604ed38018f864308c329d043847c5b3">log4cpp::Category</a>.</p>

</div>
</div><p>
<a class="anchor" name="e2170fbeaacd8cac9250fa7f42377cb5"></a><!-- doxytag: member="log4cpp::FixedContextCategory::setContext" ref="e2170fbeaacd8cac9250fa7f42377cb5" args="(const std::string &amp;context)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void log4cpp::FixedContextCategory::setContext           </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&nbsp;</td>
          <td class="paramname"> <em>context</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Set the context string used as <a class="el" href="classlog4cpp_1_1NDC.html" title="The NDC class implements nested diagnostic contexts as defined by Neil Harrison in...">NDC</a>. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>context</em>&nbsp;</td><td>the context string </td></tr>
  </table>
</dl>

</div>
</div><p>
<hr>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="FixedContextCategory_8hh_source.html">FixedContextCategory.hh</a><li><a class="el" href="FixedContextCategory_8cpp.html">FixedContextCategory.cpp</a></ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Jul 26 19:34:50 2009 for log4cpp 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>