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>HierarchyMaintainer.hh Source File</title>
5
<link href="doxygen.css" rel="stylesheet" type="text/css">
6
</head><body bgcolor="#ffffff">
7
<!-- Generated by Doxygen 1.2.6 -->
9
<a class="qindex" href="index.html">Main Page</a> <a class="qindex" href="namespaces.html">Namespace List</a> <a class="qindex" href="hierarchy.html">Class Hierarchy</a> <a class="qindex" href="annotated.html">Compound List</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="namespacemembers.html">Namespace Members</a> <a class="qindex" href="functions.html">Compound Members</a> <a class="qindex" href="globals.html">File Members</a> </center>
10
<hr><h1>HierarchyMaintainer.hh</h1><a href="HierarchyMaintainer_hh.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <font class="comment">/*</font>
11
00002 <font class="comment"> * HierarchyMaintainer.hh</font>
12
00003 <font class="comment"> *</font>
13
00004 <font class="comment"> * Copyright 2000, LifeLine Networks BV (www.lifeline.nl). All rights reserved.</font>
14
00005 <font class="comment"> * Copyright 2000, Bastiaan Bakker. All rights reserved.</font>
15
00006 <font class="comment"> *</font>
16
00007 <font class="comment"> * See the COPYING file for the terms of usage and distribution.</font>
17
00008 <font class="comment"> */</font>
19
00010 <font class="preprocessor">#ifndef _LOG4CPP_HIERARCHYMAINTAINER_HH</font>
20
00011 <font class="preprocessor"></font><font class="preprocessor">#define _LOG4CPP_HIERARCHYMAINTAINER_HH</font>
21
00012 <font class="preprocessor"></font>
22
00013 <font class="preprocessor">#include <string></font>
23
00014 <font class="preprocessor">#include "<a class="code" href="Category_hh.html">log4cpp/Category.hh</a>"</font>
24
00015 <font class="preprocessor">#include "<a class="code" href="Log4cppCleanup_hh.html">log4cpp/Log4cppCleanup.hh</a>"</font>
26
00017 <font class="keyword">namespace </font>log4cpp {
28
<a name="l00024"></a><a class="code" href="class_log4cpp__HierarchyMaintainer.html">00024</a> <font class="keyword">class </font>HierarchyMaintainer {
29
<a name="l00025"></a><a class="code" href="class_log4cpp__HierarchyMaintainer.html#l0">00025</a> <font class="keyword">friend</font> <font class="keyword">class </font>Log4cppCleanup;
31
00027 <font class="keyword">public</font>:
32
<a name="l00028"></a><a class="code" href="class_log4cpp__HierarchyMaintainer.html#s0">00028</a> <font class="keyword">typedef</font> std::map<std::string, Category*> CategoryMap;
34
00030 <font class="keyword">static</font> HierarchyMaintainer& <a class="code" href="class_log4cpp__HierarchyMaintainer.html#d0">getDefaultMaintainer</a>();
36
00032 <a class="code" href="class_log4cpp__HierarchyMaintainer.html#a0">HierarchyMaintainer</a>();
37
00033 <font class="keyword">virtual</font> <a class="code" href="class_log4cpp__HierarchyMaintainer.html#a1">~HierarchyMaintainer</a>();
38
00034 <font class="keyword">virtual</font> Category& <a class="code" href="class_log4cpp__HierarchyMaintainer.html#a2">getInstance</a>(<font class="keyword">const</font> std::string& name);
39
00035 <font class="keyword">virtual</font> std::set<Category*>* <a class="code" href="class_log4cpp__HierarchyMaintainer.html#a3">getCurrentCategories</a>() <font class="keyword">const</font>;
40
00036 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="class_log4cpp__HierarchyMaintainer.html#a4">shutdown</a>();
41
00037 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="class_log4cpp__HierarchyMaintainer.html#a5">deleteAllCategories</a>();
43
00039 <font class="keyword">protected</font>:
44
<a name="l00040"></a><a class="code" href="class_log4cpp__HierarchyMaintainer.html#n0">00040</a> CategoryMap _categoryMap;
46
00042 <font class="keyword">private</font>:
47
00043 <font class="keyword">static</font> HierarchyMaintainer* _defaultMaintainer;
48
00044 <font class="keyword">static</font> Log4cppCleanup& _fuckinDummy;
52
00048 <font class="preprocessor">#endif // _LOG4CPP_HIERARCHYMAINTAINER_HH</font>
53
</font></pre></div><hr><address><small>Generated at Mon Jun 11 01:25:09 2001 for log4cpp by
54
<a href="http://www.doxygen.org/index.html">
55
<img src="doxygen.gif" alt="doxygen" align="middle" border=0
56
width=110 height=53></a>1.2.6 written by <a href="mailto:dimitri@stack.nl">Dimitri van Heesch</a>,
57
© 1997-2001</small></address>