~ubuntu-branches/ubuntu/warty/log4cpp-doc/warty

« back to all changes in this revision

Viewing changes to html/class_log4cpp__FixedContextCategory.html

  • Committer: Bazaar Package Importer
  • Author(s): Marcel Harkema
  • Date: 2001-10-09 13:53:14 UTC
  • Revision ID: james.westby@ubuntu.com-20011009135314-ccobyfh5112p274g
Tags: 0.2.5-2
Fix lintian error (debian-changelog-file-contains-user-emacs-settings).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
 
2
<html><head><meta name="robots" content="noindex">
 
3
<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
 
4
<title>log4cpp::FixedContextCategory class Reference</title>
 
5
<link href="doxygen.css" rel="stylesheet" type="text/css">
 
6
</head><body bgcolor="#ffffff">
 
7
<!-- Generated by Doxygen 1.2.6 -->
 
8
<center>
 
9
<a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="namespaces.html">Namespace List</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="namespacemembers.html">Namespace Members</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; <a class="qindex" href="globals.html">File Members</a> &nbsp; </center>
 
10
<hr><h1>log4cpp::FixedContextCategory  Class Reference</h1>This <a class="el" href="class_log4cpp__Category.html">Category</a> subclass replaces the <a class="el" href="class_log4cpp__NDC.html">NDC</a> field in LoggingEvents with a fixed context string. 
 
11
<a href="#_details">More...</a>
 
12
<p>
 
13
<code>#include &lt;<a class="el" href="FixedContextCategory_hh-source.html">FixedContextCategory.hh</a>&gt;</code>
 
14
<p>
 
15
Inheritance diagram for log4cpp::FixedContextCategory:<p><center><img src="class_log4cpp__FixedContextCategory_inherit_graph.gif" border="0" usemap="#log4cpp::FixedContextCategory_inherit_map" alt="Inheritance graph"></center>
 
16
<map name="log4cpp::FixedContextCategory_inherit_map">
 
17
<area href="class_log4cpp__Category.html" shape="rect" coords="36,1,148,19">
 
18
</map>
 
19
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center>Collaboration diagram for log4cpp::FixedContextCategory:<p><center><img src="class_log4cpp__FixedContextCategory_coll_graph.gif" border="0" usemap="#log4cpp::FixedContextCategory_coll_map" alt="Collaboration graph"></center>
 
20
<map name="log4cpp::FixedContextCategory_coll_map">
 
21
<area href="class_log4cpp__Category.html" shape="rect" coords="36,166,148,184">
 
22
<area href="class_log4cpp__Appender.html" shape="rect" coords="35,83,149,102">
 
23
<area href="class_log4cpp__Log4cppCleanup.html" shape="rect" coords="15,0,169,19">
 
24
</map>
 
25
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="class_log4cpp__FixedContextCategory-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0>
 
26
<tr><td colspan=2><br><h2>Public Methods</h2></td></tr>
 
27
<tr><td nowrap align=right valign=top>&nbsp;</td><td valign=bottom><a class="el" href="class_log4cpp__FixedContextCategory.html#a0">FixedContextCategory</a> (const std::string &amp;name, const std::string &amp;context)</td></tr>
 
28
<tr><td>&nbsp;</td><td><font size=-1><em>Constructor.</em> <a href="#a0">More...</a><em></em></font><br><br></td></tr>
 
29
<tr><td nowrap align=right valign=top>virtual&nbsp;</td><td valign=bottom><a class="el" href="class_log4cpp__FixedContextCategory.html#a1">~FixedContextCategory</a> ()</td></tr>
 
30
<tr><td>&nbsp;</td><td><font size=-1><em>Destructor for <a class="el" href="class_log4cpp__Category.html">Category</a>.</em></font><br><br></td></tr>
 
31
<tr><td nowrap align=right valign=top>virtual void&nbsp;</td><td valign=bottom><a class="el" href="class_log4cpp__FixedContextCategory.html#a2">setContext</a> (const std::string &amp;context)</td></tr>
 
32
<tr><td>&nbsp;</td><td><font size=-1><em>Set the context string used as <a class="el" href="class_log4cpp__NDC.html">NDC</a>.</em> <a href="#a2">More...</a><em></em></font><br><br></td></tr>
 
33
<tr><td nowrap align=right valign=top>virtual std::string&nbsp;</td><td valign=bottom><a class="el" href="class_log4cpp__FixedContextCategory.html#a3">getContext</a> () const</td></tr>
 
34
<tr><td>&nbsp;</td><td><font size=-1><em>Return the context string used as <a class="el" href="class_log4cpp__NDC.html">NDC</a>.</em> <a href="#a3">More...</a><em></em></font><br><br></td></tr>
 
35
<tr><td nowrap align=right valign=top>virtual <a class="el" href="class_log4cpp__Priority.html#s0">Priority::Value</a>&nbsp;</td><td valign=bottom><a class="el" href="class_log4cpp__FixedContextCategory.html#a4">getPriority</a> () const  throw ()</td></tr>
 
36
<tr><td>&nbsp;</td><td><font size=-1><em>Returns the assigned <a class="el" href="class_log4cpp__Priority.html">Priority</a>, if any, for this <a class="el" href="class_log4cpp__Category.html">Category</a>.</em> <a href="#a4">More...</a><em></em></font><br><br></td></tr>
 
37
<tr><td nowrap align=right valign=top>virtual <a class="el" href="class_log4cpp__Priority.html#s0">Priority::Value</a>&nbsp;</td><td valign=bottom><a class="el" href="class_log4cpp__FixedContextCategory.html#a5">getChainedPriority</a> () const  throw ()</td></tr>
 
38
<tr><td>&nbsp;</td><td><font size=-1><em>Starting from this <a class="el" href="class_log4cpp__Category.html">Category</a>, search the category hierarchy for a set priority and return it.</em> <a href="#a5">More...</a><em></em></font><br><br></td></tr>
 
39
<tr><td nowrap align=right valign=top>virtual void&nbsp;</td><td valign=bottom><a class="el" href="class_log4cpp__FixedContextCategory.html#a6">setAppender</a> (<a class="el" href="class_log4cpp__Appender.html">Appender</a> *appender)</td></tr>
 
40
<tr><td>&nbsp;</td><td><font size=-1><em>Sets an <a class="el" href="class_log4cpp__Appender.html">Appender</a> for this <a class="el" href="class_log4cpp__Category.html">Category</a>.</em> <a href="#a6">More...</a><em></em></font><br><br></td></tr>
 
41
<tr><td nowrap align=right valign=top>virtual void&nbsp;</td><td valign=bottom><a class="el" href="class_log4cpp__FixedContextCategory.html#a7">setAppender</a> (<a class="el" href="class_log4cpp__Appender.html">Appender</a> &amp;appender)</td></tr>
 
42
<tr><td>&nbsp;</td><td><font size=-1><em>Sets an <a class="el" href="class_log4cpp__Appender.html">Appender</a> for this <a class="el" href="class_log4cpp__Category.html">Category</a>.</em> <a href="#a7">More...</a><em></em></font><br><br></td></tr>
 
43
<tr><td nowrap align=right valign=top>virtual <a class="el" href="class_log4cpp__Appender.html">Appender</a>*&nbsp;</td><td valign=bottom><a class="el" href="class_log4cpp__FixedContextCategory.html#a8">getAppender</a> () const</td></tr>
 
44
<tr><td>&nbsp;</td><td><font size=-1><em>Returns the <a class="el" href="class_log4cpp__Appender.html">Appender</a> for this <a class="el" href="class_log4cpp__Category.html">Category</a>, or NULL if no <a class="el" href="class_log4cpp__Appender.html">Appender</a> has been set.</em> <a href="#a8">More...</a><em></em></font><br><br></td></tr>
 
45
<tr><td nowrap align=right valign=top>virtual void&nbsp;</td><td valign=bottom><a class="el" href="class_log4cpp__FixedContextCategory.html#a9">removeAllAppenders</a> ()</td></tr>
 
46
<tr><td>&nbsp;</td><td><font size=-1><em>Removes all appenders set for this <a class="el" href="class_log4cpp__Category.html">Category</a>.</em> <a href="#a9">More...</a><em></em></font><br><br></td></tr>
 
47
<tr><td nowrap align=right valign=top>virtual bool&nbsp;</td><td valign=bottom><a class="el" href="class_log4cpp__FixedContextCategory.html#a10">ownsAppender</a> () const  throw ()</td></tr>
 
48
<tr><td>&nbsp;</td><td><font size=-1><em>Returns true if the <a class="el" href="class_log4cpp__Category.html">Category</a> owns the <a class="el" href="class_log4cpp__Appender.html">Appender</a>.</em> <a href="#a10">More...</a><em></em></font><br><br></td></tr>
 
49
<tr><td nowrap align=right valign=top>virtual void&nbsp;</td><td valign=bottom><a class="el" href="class_log4cpp__FixedContextCategory.html#a11">callAppenders</a> (const <a class="el" href="struct_log4cpp__LoggingEvent.html">LoggingEvent</a> &amp;event)  throw ()</td></tr>
 
50
<tr><td>&nbsp;</td><td><font size=-1><em>Call the appenders in the hierarchy starting at <code>this</code>.</em> <a href="#a11">More...</a><em></em></font><br><br></td></tr>
 
51
<tr><td nowrap align=right valign=top>virtual void&nbsp;</td><td valign=bottom><a class="el" href="class_log4cpp__FixedContextCategory.html#a12">setAdditivity</a> (bool additivity)</td></tr>
 
52
<tr><td>&nbsp;</td><td><font size=-1><em>Set the additivity flag for this <a class="el" href="class_log4cpp__Category.html">Category</a> instance.</em></font><br><br></td></tr>
 
53
<tr><td nowrap align=right valign=top>virtual bool&nbsp;</td><td valign=bottom><a class="el" href="class_log4cpp__FixedContextCategory.html#a13">getAdditivity</a> () const  throw ()</td></tr>
 
54
<tr><td>&nbsp;</td><td><font size=-1><em>Returns the additivity flag for this <a class="el" href="class_log4cpp__Category.html">Category</a> instance.</em></font><br><br></td></tr>
 
55
<tr><td colspan=2><br><h2>Protected Methods</h2></td></tr>
 
56
<tr><td nowrap align=right valign=top>virtual void&nbsp;</td><td valign=bottom><a class="el" href="class_log4cpp__FixedContextCategory.html#b0">_logUnconditionally2</a> (<a class="el" href="class_log4cpp__Priority.html#s0">Priority::Value</a> priority, const std::string &amp;message)  throw ()</td></tr>
 
57
<tr><td>&nbsp;</td><td><font size=-1><em>Unconditionally log a message with the specified priority.</em> <a href="#b0">More...</a><em></em></font><br><br></td></tr>
 
58
</table>
 
59
<hr><a name="_details"></a><h2>Detailed Description</h2>
 
60
This <a class="el" href="class_log4cpp__Category.html">Category</a> subclass replaces the <a class="el" href="class_log4cpp__NDC.html">NDC</a> field in LoggingEvents with a fixed context string.
 
61
<p>
 
62
All handling of Appenders, etc. is delgated to the 'normal' <a class="el" href="class_log4cpp__Category.html">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="class_log4cpp__FixedContextCategory.html">FixedContextCategory</a> with the client identifier as context.  Unlike with regular <a class="el" href="class_log4cpp__Category.html">Category</a> instances one has to explicitly create <a class="el" href="class_log4cpp__FixedContextCategory.html">FixedContextCategory</a> instances using the constructor. This also  implies one has to take cake of destruction of the instance as well. <dl compact><dt>
 
63
<b>Since: </b><dd>
 
64
0.2.4 </dl>
 
65
<p>
 
66
<hr><h2>Constructor &amp; Destructor Documentation</h2>
 
67
<a name="a0" doxytag="log4cpp::FixedContextCategory::FixedContextCategory"></a><p>
 
68
<table width="100%" cellpadding="2" cellspacing="0" border="0">
 
69
  <tr>
 
70
    <td class="md">
 
71
      <table cellpadding="0" cellspacing="0" border="0">
 
72
        <tr>
 
73
          <td nowrap valign="top"><b> 
 
74
log4cpp::FixedContextCategory::FixedContextCategory (
 
75
          </b></td>
 
76
          <td valign="bottom"><b>
 
77
const std::string &amp; <em>name</em>, 
 
78
          </b></td>
 
79
        </tr>
 
80
        <tr>
 
81
          <td></td>
 
82
          <td><b>
 
83
const std::string &amp; <em>context</em>&nbsp;)
 
84
          </b></td>
 
85
        </tr>
 
86
 
 
87
      </table>
 
88
    </td>
 
89
  </tr>
 
90
</table>
 
91
<table cellspacing=5 cellpadding=0 border=0>
 
92
  <tr>
 
93
    <td>
 
94
      &nbsp;
 
95
    </td>
 
96
    <td>
 
97
 
 
98
<p>
 
99
Constructor.
 
100
<p>
 
101
<dl compact><dt>
 
102
<b>Parameters: </b><dd>
 
103
<table border=0 cellspacing=2 cellpadding=0>
 
104
<tr><td valign=top><em>name</em>
 
105
&nbsp;</td><td>
 
106
the fully qualified name of this Categories delegate <a class="el" href="class_log4cpp__Category.html">Category</a>. </td></tr>
 
107
<tr><td valign=top><em>context</em>
 
108
&nbsp;</td><td>
 
109
the context to fill the <a class="el" href="class_log4cpp__NDC.html">NDC</a> field of LoggingEvents with. </td></tr>
 
110
<tr><td valign=top><em>priority</em>
 
111
&nbsp;</td><td>
 
112
the priority for this <a class="el" href="class_log4cpp__Category.html">Category</a>. Defaults to <a class="el" href="class_log4cpp__Priority.html#s11s10">Priority::NOTSET</a> </td></tr>
 
113
</table>
 
114
</dl>    </td>
 
115
  </tr>
 
116
</table>
 
117
<a name="a1" doxytag="log4cpp::FixedContextCategory::~FixedContextCategory"></a><p>
 
118
<table width="100%" cellpadding="2" cellspacing="0" border="0">
 
119
  <tr>
 
120
    <td class="md">
 
121
      <table cellpadding="0" cellspacing="0" border="0">
 
122
        <tr>
 
123
          <td nowrap valign="top"><b> 
 
124
log4cpp::FixedContextCategory::~FixedContextCategory (
 
125
          </b></td>
 
126
          <td valign="bottom"><b>
 
127
)<code> [virtual]</code>
 
128
          </b></td>
 
129
        </tr>
 
130
 
 
131
      </table>
 
132
    </td>
 
133
  </tr>
 
134
</table>
 
135
<table cellspacing=5 cellpadding=0 border=0>
 
136
  <tr>
 
137
    <td>
 
138
      &nbsp;
 
139
    </td>
 
140
    <td>
 
141
 
 
142
<p>
 
143
Destructor for <a class="el" href="class_log4cpp__Category.html">Category</a>.
 
144
<p>
 
145
    </td>
 
146
  </tr>
 
147
</table>
 
148
<hr><h2>Member Function Documentation</h2>
 
149
<a name="b0" doxytag="log4cpp::FixedContextCategory::_logUnconditionally2"></a><p>
 
150
<table width="100%" cellpadding="2" cellspacing="0" border="0">
 
151
  <tr>
 
152
    <td class="md">
 
153
      <table cellpadding="0" cellspacing="0" border="0">
 
154
        <tr>
 
155
          <td nowrap valign="top"><b> 
 
156
void log4cpp::FixedContextCategory::_logUnconditionally2 (
 
157
          </b></td>
 
158
          <td valign="bottom"><b>
 
159
<a class="el" href="class_log4cpp__Priority.html#s0">Priority::Value</a> <em>priority</em>, 
 
160
          </b></td>
 
161
        </tr>
 
162
        <tr>
 
163
          <td></td>
 
164
          <td><b>
 
165
const std::string &amp; <em>message</em>&nbsp;)  throw ()<code> [protected, virtual]</code>
 
166
          </b></td>
 
167
        </tr>
 
168
 
 
169
      </table>
 
170
    </td>
 
171
  </tr>
 
172
</table>
 
173
<table cellspacing=5 cellpadding=0 border=0>
 
174
  <tr>
 
175
    <td>
 
176
      &nbsp;
 
177
    </td>
 
178
    <td>
 
179
 
 
180
<p>
 
181
Unconditionally log a message with the specified priority.
 
182
<p>
 
183
<dl compact><dt>
 
184
<b>Parameters: </b><dd>
 
185
<table border=0 cellspacing=2 cellpadding=0>
 
186
<tr><td valign=top><em>priority</em>
 
187
&nbsp;</td><td>
 
188
The priority of this log message. </td></tr>
 
189
<tr><td valign=top><em>message</em>
 
190
&nbsp;</td><td>
 
191
string to write in the log file </td></tr>
 
192
</table>
 
193
</dl>
 
194
<p>
 
195
Reimplemented from <a class="el" href="class_log4cpp__Category.html#b2">log4cpp::Category</a>.    </td>
 
196
  </tr>
 
197
</table>
 
198
<a name="a11" doxytag="log4cpp::FixedContextCategory::callAppenders"></a><p>
 
199
<table width="100%" cellpadding="2" cellspacing="0" border="0">
 
200
  <tr>
 
201
    <td class="md">
 
202
      <table cellpadding="0" cellspacing="0" border="0">
 
203
        <tr>
 
204
          <td nowrap valign="top"><b> 
 
205
void log4cpp::FixedContextCategory::callAppenders (
 
206
          </b></td>
 
207
          <td valign="bottom"><b>
 
208
const <a class="el" href="struct_log4cpp__LoggingEvent.html">LoggingEvent</a> &amp; <em>event</em>&nbsp;)  throw ()<code> [virtual]</code>
 
209
          </b></td>
 
210
        </tr>
 
211
 
 
212
      </table>
 
213
    </td>
 
214
  </tr>
 
215
</table>
 
216
<table cellspacing=5 cellpadding=0 border=0>
 
217
  <tr>
 
218
    <td>
 
219
      &nbsp;
 
220
    </td>
 
221
    <td>
 
222
 
 
223
<p>
 
224
Call the appenders in the hierarchy starting at <code>this</code>.
 
225
<p>
 
226
If no appenders could be found, emit a warning.
 
227
<p>
 
228
 
 
229
<p>
 
230
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.<dl compact><dt>
 
231
<b>Parameters: </b><dd>
 
232
<table border=0 cellspacing=2 cellpadding=0>
 
233
<tr><td valign=top><em>LoggingEvent</em>
 
234
&nbsp;</td><td>
 
235
the event to log. </td></tr>
 
236
</table>
 
237
</dl>
 
238
<p>
 
239
Reimplemented from <a class="el" href="class_log4cpp__Category.html#a11">log4cpp::Category</a>.    </td>
 
240
  </tr>
 
241
</table>
 
242
<a name="a13" doxytag="log4cpp::FixedContextCategory::getAdditivity"></a><p>
 
243
<table width="100%" cellpadding="2" cellspacing="0" border="0">
 
244
  <tr>
 
245
    <td class="md">
 
246
      <table cellpadding="0" cellspacing="0" border="0">
 
247
        <tr>
 
248
          <td nowrap valign="top"><b> 
 
249
bool log4cpp::FixedContextCategory::getAdditivity (
 
250
          </b></td>
 
251
          <td valign="bottom"><b>
 
252
) const  throw ()<code> [virtual]</code>
 
253
          </b></td>
 
254
        </tr>
 
255
 
 
256
      </table>
 
257
    </td>
 
258
  </tr>
 
259
</table>
 
260
<table cellspacing=5 cellpadding=0 border=0>
 
261
  <tr>
 
262
    <td>
 
263
      &nbsp;
 
264
    </td>
 
265
    <td>
 
266
 
 
267
<p>
 
268
Returns the additivity flag for this <a class="el" href="class_log4cpp__Category.html">Category</a> instance.
 
269
<p>
 
270
 
 
271
<p>
 
272
Reimplemented from <a class="el" href="class_log4cpp__Category.html#a13">log4cpp::Category</a>.    </td>
 
273
  </tr>
 
274
</table>
 
275
<a name="a8" doxytag="log4cpp::FixedContextCategory::getAppender"></a><p>
 
276
<table width="100%" cellpadding="2" cellspacing="0" border="0">
 
277
  <tr>
 
278
    <td class="md">
 
279
      <table cellpadding="0" cellspacing="0" border="0">
 
280
        <tr>
 
281
          <td nowrap valign="top"><b> 
 
282
<a class="el" href="class_log4cpp__Appender.html">Appender</a> * log4cpp::FixedContextCategory::getAppender (
 
283
          </b></td>
 
284
          <td valign="bottom"><b>
 
285
) const<code> [virtual]</code>
 
286
          </b></td>
 
287
        </tr>
 
288
 
 
289
      </table>
 
290
    </td>
 
291
  </tr>
 
292
</table>
 
293
<table cellspacing=5 cellpadding=0 border=0>
 
294
  <tr>
 
295
    <td>
 
296
      &nbsp;
 
297
    </td>
 
298
    <td>
 
299
 
 
300
<p>
 
301
Returns the <a class="el" href="class_log4cpp__Appender.html">Appender</a> for this <a class="el" href="class_log4cpp__Category.html">Category</a>, or NULL if no <a class="el" href="class_log4cpp__Appender.html">Appender</a> has been set.
 
302
<p>
 
303
<dl compact><dt>
 
304
<b>Returns: </b><dd>
 
305
The <a class="el" href="class_log4cpp__Appender.html">Appender</a>. </dl>
 
306
<p>
 
307
Reimplemented from <a class="el" href="class_log4cpp__Category.html#a8">log4cpp::Category</a>.    </td>
 
308
  </tr>
 
309
</table>
 
310
<a name="a5" doxytag="log4cpp::FixedContextCategory::getChainedPriority"></a><p>
 
311
<table width="100%" cellpadding="2" cellspacing="0" border="0">
 
312
  <tr>
 
313
    <td class="md">
 
314
      <table cellpadding="0" cellspacing="0" border="0">
 
315
        <tr>
 
316
          <td nowrap valign="top"><b> 
 
317
<a class="el" href="class_log4cpp__Priority.html#s0">Priority::Value</a> log4cpp::FixedContextCategory::getChainedPriority (
 
318
          </b></td>
 
319
          <td valign="bottom"><b>
 
320
) const  throw ()<code> [virtual]</code>
 
321
          </b></td>
 
322
        </tr>
 
323
 
 
324
      </table>
 
325
    </td>
 
326
  </tr>
 
327
</table>
 
328
<table cellspacing=5 cellpadding=0 border=0>
 
329
  <tr>
 
330
    <td>
 
331
      &nbsp;
 
332
    </td>
 
333
    <td>
 
334
 
 
335
<p>
 
336
Starting from this <a class="el" href="class_log4cpp__Category.html">Category</a>, search the category hierarchy for a set priority and return it.
 
337
<p>
 
338
Otherwise, return the priority  of the root category.
 
339
<p>
 
340
 
 
341
<p>
 
342
The <a class="el" href="class_log4cpp__Category.html">Category</a> class is designed so that this method executes as quickly as possible. 
 
343
<p>
 
344
Reimplemented from <a class="el" href="class_log4cpp__Category.html#a4">log4cpp::Category</a>.    </td>
 
345
  </tr>
 
346
</table>
 
347
<a name="a3" doxytag="log4cpp::FixedContextCategory::getContext"></a><p>
 
348
<table width="100%" cellpadding="2" cellspacing="0" border="0">
 
349
  <tr>
 
350
    <td class="md">
 
351
      <table cellpadding="0" cellspacing="0" border="0">
 
352
        <tr>
 
353
          <td nowrap valign="top"><b> 
 
354
std::string log4cpp::FixedContextCategory::getContext (
 
355
          </b></td>
 
356
          <td valign="bottom"><b>
 
357
) const<code> [virtual]</code>
 
358
          </b></td>
 
359
        </tr>
 
360
 
 
361
      </table>
 
362
    </td>
 
363
  </tr>
 
364
</table>
 
365
<table cellspacing=5 cellpadding=0 border=0>
 
366
  <tr>
 
367
    <td>
 
368
      &nbsp;
 
369
    </td>
 
370
    <td>
 
371
 
 
372
<p>
 
373
Return the context string used as <a class="el" href="class_log4cpp__NDC.html">NDC</a>.
 
374
<p>
 
375
<dl compact><dt>
 
376
<b>Returns: </b><dd>
 
377
the context string. </dl>    </td>
 
378
  </tr>
 
379
</table>
 
380
<a name="a4" doxytag="log4cpp::FixedContextCategory::getPriority"></a><p>
 
381
<table width="100%" cellpadding="2" cellspacing="0" border="0">
 
382
  <tr>
 
383
    <td class="md">
 
384
      <table cellpadding="0" cellspacing="0" border="0">
 
385
        <tr>
 
386
          <td nowrap valign="top"><b> 
 
387
<a class="el" href="class_log4cpp__Priority.html#s0">Priority::Value</a> log4cpp::FixedContextCategory::getPriority (
 
388
          </b></td>
 
389
          <td valign="bottom"><b>
 
390
) const  throw ()<code> [virtual]</code>
 
391
          </b></td>
 
392
        </tr>
 
393
 
 
394
      </table>
 
395
    </td>
 
396
  </tr>
 
397
</table>
 
398
<table cellspacing=5 cellpadding=0 border=0>
 
399
  <tr>
 
400
    <td>
 
401
      &nbsp;
 
402
    </td>
 
403
    <td>
 
404
 
 
405
<p>
 
406
Returns the assigned <a class="el" href="class_log4cpp__Priority.html">Priority</a>, if any, for this <a class="el" href="class_log4cpp__Category.html">Category</a>.
 
407
<p>
 
408
<dl compact><dt>
 
409
<b>Returns: </b><dd>
 
410
<a class="el" href="class_log4cpp__Priority.html">Priority</a> - the assigned <a class="el" href="class_log4cpp__Priority.html">Priority</a>, can be <a class="el" href="class_log4cpp__Priority.html#s11s10">Priority::NOTSET</a> </dl>
 
411
<p>
 
412
Reimplemented from <a class="el" href="class_log4cpp__Category.html#a3">log4cpp::Category</a>.    </td>
 
413
  </tr>
 
414
</table>
 
415
<a name="a10" doxytag="log4cpp::FixedContextCategory::ownsAppender"></a><p>
 
416
<table width="100%" cellpadding="2" cellspacing="0" border="0">
 
417
  <tr>
 
418
    <td class="md">
 
419
      <table cellpadding="0" cellspacing="0" border="0">
 
420
        <tr>
 
421
          <td nowrap valign="top"><b> 
 
422
bool log4cpp::FixedContextCategory::ownsAppender (
 
423
          </b></td>
 
424
          <td valign="bottom"><b>
 
425
) const  throw ()<code> [virtual]</code>
 
426
          </b></td>
 
427
        </tr>
 
428
 
 
429
      </table>
 
430
    </td>
 
431
  </tr>
 
432
</table>
 
433
<table cellspacing=5 cellpadding=0 border=0>
 
434
  <tr>
 
435
    <td>
 
436
      &nbsp;
 
437
    </td>
 
438
    <td>
 
439
 
 
440
<p>
 
441
Returns true if the <a class="el" href="class_log4cpp__Category.html">Category</a> owns the <a class="el" href="class_log4cpp__Appender.html">Appender</a>.
 
442
<p>
 
443
In that case the <a class="el" href="class_log4cpp__Category.html">Category</a> destructor will delete the <a class="el" href="class_log4cpp__Appender.html">Appender</a>. 
 
444
<p>
 
445
Reimplemented from <a class="el" href="class_log4cpp__Category.html#a10">log4cpp::Category</a>.    </td>
 
446
  </tr>
 
447
</table>
 
448
<a name="a9" doxytag="log4cpp::FixedContextCategory::removeAllAppenders"></a><p>
 
449
<table width="100%" cellpadding="2" cellspacing="0" border="0">
 
450
  <tr>
 
451
    <td class="md">
 
452
      <table cellpadding="0" cellspacing="0" border="0">
 
453
        <tr>
 
454
          <td nowrap valign="top"><b> 
 
455
void log4cpp::FixedContextCategory::removeAllAppenders (
 
456
          </b></td>
 
457
          <td valign="bottom"><b>
 
458
)<code> [virtual]</code>
 
459
          </b></td>
 
460
        </tr>
 
461
 
 
462
      </table>
 
463
    </td>
 
464
  </tr>
 
465
</table>
 
466
<table cellspacing=5 cellpadding=0 border=0>
 
467
  <tr>
 
468
    <td>
 
469
      &nbsp;
 
470
    </td>
 
471
    <td>
 
472
 
 
473
<p>
 
474
Removes all appenders set for this <a class="el" href="class_log4cpp__Category.html">Category</a>.
 
475
<p>
 
476
Currently a <a class="el" href="class_log4cpp__Category.html">Category</a> can have only one appender, but this may change in the future. 
 
477
<p>
 
478
Reimplemented from <a class="el" href="class_log4cpp__Category.html#a9">log4cpp::Category</a>.    </td>
 
479
  </tr>
 
480
</table>
 
481
<a name="a12" doxytag="log4cpp::FixedContextCategory::setAdditivity"></a><p>
 
482
<table width="100%" cellpadding="2" cellspacing="0" border="0">
 
483
  <tr>
 
484
    <td class="md">
 
485
      <table cellpadding="0" cellspacing="0" border="0">
 
486
        <tr>
 
487
          <td nowrap valign="top"><b> 
 
488
void log4cpp::FixedContextCategory::setAdditivity (
 
489
          </b></td>
 
490
          <td valign="bottom"><b>
 
491
bool <em>additivity</em>&nbsp;)<code> [virtual]</code>
 
492
          </b></td>
 
493
        </tr>
 
494
 
 
495
      </table>
 
496
    </td>
 
497
  </tr>
 
498
</table>
 
499
<table cellspacing=5 cellpadding=0 border=0>
 
500
  <tr>
 
501
    <td>
 
502
      &nbsp;
 
503
    </td>
 
504
    <td>
 
505
 
 
506
<p>
 
507
Set the additivity flag for this <a class="el" href="class_log4cpp__Category.html">Category</a> instance.
 
508
<p>
 
509
 
 
510
<p>
 
511
Reimplemented from <a class="el" href="class_log4cpp__Category.html#a12">log4cpp::Category</a>.    </td>
 
512
  </tr>
 
513
</table>
 
514
<a name="a7" doxytag="log4cpp::FixedContextCategory::setAppender"></a><p>
 
515
<table width="100%" cellpadding="2" cellspacing="0" border="0">
 
516
  <tr>
 
517
    <td class="md">
 
518
      <table cellpadding="0" cellspacing="0" border="0">
 
519
        <tr>
 
520
          <td nowrap valign="top"><b> 
 
521
void log4cpp::FixedContextCategory::setAppender (
 
522
          </b></td>
 
523
          <td valign="bottom"><b>
 
524
<a class="el" href="class_log4cpp__Appender.html">Appender</a> &amp; <em>appender</em>&nbsp;)<code> [virtual]</code>
 
525
          </b></td>
 
526
        </tr>
 
527
 
 
528
      </table>
 
529
    </td>
 
530
  </tr>
 
531
</table>
 
532
<table cellspacing=5 cellpadding=0 border=0>
 
533
  <tr>
 
534
    <td>
 
535
      &nbsp;
 
536
    </td>
 
537
    <td>
 
538
 
 
539
<p>
 
540
Sets an <a class="el" href="class_log4cpp__Appender.html">Appender</a> for this <a class="el" href="class_log4cpp__Category.html">Category</a>.
 
541
<p>
 
542
This method does not pass ownership from the caller to the <a class="el" href="class_log4cpp__Category.html">Category</a>. <dl compact><dt>
 
543
<b>Parameters: </b><dd>
 
544
<table border=0 cellspacing=2 cellpadding=0>
 
545
<tr><td valign=top><em>appender</em>
 
546
&nbsp;</td><td>
 
547
The <a class="el" href="class_log4cpp__Appender.html">Appender</a> this category has to log to. </td></tr>
 
548
</table>
 
549
</dl>
 
550
<p>
 
551
Reimplemented from <a class="el" href="class_log4cpp__Category.html#a7">log4cpp::Category</a>.    </td>
 
552
  </tr>
 
553
</table>
 
554
<a name="a6" doxytag="log4cpp::FixedContextCategory::setAppender"></a><p>
 
555
<table width="100%" cellpadding="2" cellspacing="0" border="0">
 
556
  <tr>
 
557
    <td class="md">
 
558
      <table cellpadding="0" cellspacing="0" border="0">
 
559
        <tr>
 
560
          <td nowrap valign="top"><b> 
 
561
void log4cpp::FixedContextCategory::setAppender (
 
562
          </b></td>
 
563
          <td valign="bottom"><b>
 
564
<a class="el" href="class_log4cpp__Appender.html">Appender</a> * <em>appender</em>&nbsp;)<code> [virtual]</code>
 
565
          </b></td>
 
566
        </tr>
 
567
 
 
568
      </table>
 
569
    </td>
 
570
  </tr>
 
571
</table>
 
572
<table cellspacing=5 cellpadding=0 border=0>
 
573
  <tr>
 
574
    <td>
 
575
      &nbsp;
 
576
    </td>
 
577
    <td>
 
578
 
 
579
<p>
 
580
Sets an <a class="el" href="class_log4cpp__Appender.html">Appender</a> for this <a class="el" href="class_log4cpp__Category.html">Category</a>.
 
581
<p>
 
582
This method passes ownership from the caller to the <a class="el" href="class_log4cpp__Category.html">Category</a>. <dl compact><dt>
 
583
<b>Parameters: </b><dd>
 
584
<table border=0 cellspacing=2 cellpadding=0>
 
585
<tr><td valign=top><em>appender</em>
 
586
&nbsp;</td><td>
 
587
The <a class="el" href="class_log4cpp__Appender.html">Appender</a> this category has to log to. </td></tr>
 
588
</table>
 
589
</dl>
 
590
<p>
 
591
Reimplemented from <a class="el" href="class_log4cpp__Category.html#a6">log4cpp::Category</a>.    </td>
 
592
  </tr>
 
593
</table>
 
594
<a name="a2" doxytag="log4cpp::FixedContextCategory::setContext"></a><p>
 
595
<table width="100%" cellpadding="2" cellspacing="0" border="0">
 
596
  <tr>
 
597
    <td class="md">
 
598
      <table cellpadding="0" cellspacing="0" border="0">
 
599
        <tr>
 
600
          <td nowrap valign="top"><b> 
 
601
void log4cpp::FixedContextCategory::setContext (
 
602
          </b></td>
 
603
          <td valign="bottom"><b>
 
604
const std::string &amp; <em>context</em>&nbsp;)<code> [virtual]</code>
 
605
          </b></td>
 
606
        </tr>
 
607
 
 
608
      </table>
 
609
    </td>
 
610
  </tr>
 
611
</table>
 
612
<table cellspacing=5 cellpadding=0 border=0>
 
613
  <tr>
 
614
    <td>
 
615
      &nbsp;
 
616
    </td>
 
617
    <td>
 
618
 
 
619
<p>
 
620
Set the context string used as <a class="el" href="class_log4cpp__NDC.html">NDC</a>.
 
621
<p>
 
622
<dl compact><dt>
 
623
<b>Parameters: </b><dd>
 
624
<table border=0 cellspacing=2 cellpadding=0>
 
625
<tr><td valign=top><em>context</em>
 
626
&nbsp;</td><td>
 
627
the context string </td></tr>
 
628
</table>
 
629
</dl>    </td>
 
630
  </tr>
 
631
</table>
 
632
<hr>The documentation for this class was generated from the following file:<ul>
 
633
<li><a class="el" href="FixedContextCategory_hh-source.html">FixedContextCategory.hh</a></ul>
 
634
<hr><address><small>Generated at Mon Jun 11 01:25:23 2001 for log4cpp by
 
635
<a href="http://www.doxygen.org/index.html">
 
636
<img src="doxygen.gif" alt="doxygen" align="middle" border=0 
 
637
width=110 height=53></a>1.2.6 written by <a href="mailto:dimitri@stack.nl">Dimitri van Heesch</a>,
 
638
 &copy;&nbsp;1997-2001</small></address>
 
639
</body>
 
640
</html>