📄 propertyconfiguratorimpl_8hh-source.html
字号:
<!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>log4cpp: PropertyConfiguratorImpl.hh Source File</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.4.2 --><div class="qindex"><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">Class List</a> | <a class="qindex" href="dirs.html">Directories</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">Class Members</a> | <a class="qindex" href="globals.html">File Members</a> | <a class="qindex" href="pages.html">Related Pages</a></div><div class="nav"><a class="el" href="dir_000000.html">src</a></div><h1>PropertyConfiguratorImpl.hh</h1><a href="PropertyConfiguratorImpl_8hh.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment">00001 <span class="comment">/*</span>00002 <span class="comment"> * PropertyConiguratorImpl.hh</span>00003 <span class="comment"> *</span>00004 <span class="comment"> * Copyright 2002, Log4cpp Project. All rights reserved.</span>00005 <span class="comment"> *</span>00006 <span class="comment"> * See the COPYING file for the terms of usage and distribution.</span>00007 <span class="comment"> */</span>00008 00009 <span class="preprocessor">#ifndef _LOG4CPP_PROPERTYCONFIGURATORIMPL_HH</span>00010 <span class="preprocessor"></span><span class="preprocessor">#define _LOG4CPP_PROPERTYCONFIGURATORIMPL_HH</span>00011 <span class="preprocessor"></span>00012 <span class="preprocessor">#include "<a class="code" href="PortabilityImpl_8hh.html">PortabilityImpl.hh</a>"</span>00013 <span class="preprocessor">#include <<a class="code" href="Configurator_8hh.html">log4cpp/Configurator.hh</a>></span>00014 <span class="preprocessor">#include <<a class="code" href="Appender_8hh.html">log4cpp/Appender.hh</a>></span>00015 <span class="preprocessor">#include <<a class="code" href="Category_8hh.html">log4cpp/Category.hh</a>></span>00016 <span class="preprocessor">#include <string></span>00017 <span class="preprocessor">#include <iostream></span>00018 <span class="preprocessor">#include <map></span>00019 <span class="preprocessor">#include <vector></span>00020 00021 <span class="preprocessor">#include "<a class="code" href="Properties_8hh.html">Properties.hh</a>"</span>00022 00023 <span class="keyword">namespace </span>log4cpp {00024 <a name="l00025"></a><a class="code" href="classlog4cpp_1_1PropertyConfiguratorImpl.html">00025</a> <span class="keyword">class </span><a class="code" href="classlog4cpp_1_1PropertyConfiguratorImpl.html">PropertyConfiguratorImpl</a> {00026 <span class="keyword">public</span>:<a name="l00027"></a><a class="code" href="classlog4cpp_1_1PropertyConfiguratorImpl.html#w0">00027</a> <span class="keyword">typedef</span> std::map<std::string, Appender*> <a class="code" href="classlog4cpp_1_1PropertyConfiguratorImpl.html#w0">AppenderMap</a>;00028 00029 <a class="code" href="classlog4cpp_1_1PropertyConfiguratorImpl.html#a0">PropertyConfiguratorImpl</a>();00030 <span class="keyword">virtual</span> <a class="code" href="classlog4cpp_1_1PropertyConfiguratorImpl.html#a1">~PropertyConfiguratorImpl</a>();00031 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classlog4cpp_1_1PropertyConfiguratorImpl.html#a2">doConfigure</a>(<span class="keyword">const</span> std::string& initFileName)00032 <span class="keywordflow">throw</span> (<a class="code" href="classlog4cpp_1_1ConfigureFailure.html">ConfigureFailure</a>);00033 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classlog4cpp_1_1PropertyConfiguratorImpl.html#a2">doConfigure</a>(std::istream& in)00034 <span class="keywordflow">throw</span> (<a class="code" href="classlog4cpp_1_1ConfigureFailure.html">ConfigureFailure</a>);00035 00036 <span class="keyword">protected</span>:00045 <span class="keywordtype">void</span> <a class="code" href="classlog4cpp_1_1PropertyConfiguratorImpl.html#b0">configureCategory</a>(<span class="keyword">const</span> std::string& categoryname) <span class="keywordflow">throw</span> (<a class="code" href="classlog4cpp_1_1ConfigureFailure.html">ConfigureFailure</a>);00046 00052 <span class="keywordtype">void</span> <a class="code" href="classlog4cpp_1_1PropertyConfiguratorImpl.html#b1">getCategories</a>(std::vector<std::string>& categories) <span class="keyword">const</span>;00053 00054 <span class="keywordtype">void</span> <a class="code" href="classlog4cpp_1_1PropertyConfiguratorImpl.html#b2">instantiateAllAppenders</a>() throw(<a class="code" href="classlog4cpp_1_1ConfigureFailure.html">ConfigureFailure</a>);00055 00069 <a class="code" href="classlog4cpp_1_1Appender.html">Appender</a>* <a class="code" href="classlog4cpp_1_1PropertyConfiguratorImpl.html#b3">instantiateAppender</a>(const std::string& name);00070 00077 <span class="keywordtype">void</span> <a class="code" href="classlog4cpp_1_1PropertyConfiguratorImpl.html#b4">setLayout</a>(<a class="code" href="classlog4cpp_1_1Appender.html">Appender</a>* appender, const std::string& name);00078 <a name="l00079"></a><a class="code" href="classlog4cpp_1_1PropertyConfiguratorImpl.html#p0">00079</a> <a class="code" href="classlog4cpp_1_1Properties.html">Properties</a> <a class="code" href="classlog4cpp_1_1PropertyConfiguratorImpl.html#p0">_properties</a>;<a name="l00080"></a><a class="code" href="classlog4cpp_1_1PropertyConfiguratorImpl.html#p1">00080</a> <a class="code" href="classlog4cpp_1_1PropertyConfiguratorImpl.html#w0">AppenderMap</a> <a class="code" href="classlog4cpp_1_1PropertyConfiguratorImpl.html#p1">_allAppenders</a>;00081 };00082 }00083 00084 #endif <span class="comment">// _LOG4CPP_PROPERTIES_HH</span>00085 </pre></div><hr size="1"><address style="align: right;"><small>Generated on Fri Jul 29 14:07:33 2005 for log4cpp by <a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.2 </small></address></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -