📄 classlog4cpp_1_1propertyconfiguratorimpl.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: log4cpp::PropertyConfiguratorImpl Class Reference</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="namespacelog4cpp.html">log4cpp</a>::<a class="el" href="classlog4cpp_1_1PropertyConfiguratorImpl.html">PropertyConfiguratorImpl</a></div><h1>log4cpp::PropertyConfiguratorImpl Class Reference</h1><code>#include <<a class="el" href="PropertyConfiguratorImpl_8hh-source.html">PropertyConfiguratorImpl.hh</a>></code><p>Collaboration diagram for log4cpp::PropertyConfiguratorImpl:<p><center><img src="classlog4cpp_1_1PropertyConfiguratorImpl__coll__graph.png" border="0" usemap="#log4cpp_1_1PropertyConfiguratorImpl__coll__map" alt="Collaboration graph"></center><map name="log4cpp_1_1PropertyConfiguratorImpl__coll__map"><area href="classlog4cpp_1_1Properties.html" shape="rect" coords="53,9,189,33" alt=""></map><center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="classlog4cpp_1_1PropertyConfiguratorImpl-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 Types</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">typedef std::map< std::string,<br> <a class="el" href="classlog4cpp_1_1Appender.html">Appender</a> * > </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1PropertyConfiguratorImpl.html#w0">AppenderMap</a></td></tr><tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1PropertyConfiguratorImpl.html#a0">PropertyConfiguratorImpl</a> ()</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1PropertyConfiguratorImpl.html#a1">~PropertyConfiguratorImpl</a> ()</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1PropertyConfiguratorImpl.html#a2">doConfigure</a> (const std::string &initFileName) throw (ConfigureFailure)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1PropertyConfiguratorImpl.html#a3">doConfigure</a> (std::istream &in) throw (ConfigureFailure)</td></tr><tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1PropertyConfiguratorImpl.html#b0">configureCategory</a> (const std::string &categoryname) throw (ConfigureFailure)</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">configure the given category. <a href="#b0"></a><br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1PropertyConfiguratorImpl.html#b1">getCategories</a> (std::vector< std::string > &categories) const </td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Get the categories contained within the map of properties. <a href="#b1"></a><br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1PropertyConfiguratorImpl.html#b2">instantiateAllAppenders</a> () throw (ConfigureFailure)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classlog4cpp_1_1Appender.html">Appender</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1PropertyConfiguratorImpl.html#b3">instantiateAppender</a> (const std::string &name)</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Intantiate and configure the appender referred to by the given name. <a href="#b3"></a><br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1PropertyConfiguratorImpl.html#b4">setLayout</a> (<a class="el" href="classlog4cpp_1_1Appender.html">Appender</a> *appender, const std::string &name)</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Method for instantiating and configuring the layouts associated with each appender. <a href="#b4"></a><br></td></tr><tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classlog4cpp_1_1Properties.html">Properties</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1PropertyConfiguratorImpl.html#p0">_properties</a></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classlog4cpp_1_1PropertyConfiguratorImpl.html#w0">AppenderMap</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1PropertyConfiguratorImpl.html#p1">_allAppenders</a></td></tr></table><hr><h2>Member Typedef Documentation</h2><a class="anchor" name="w0" doxytag="log4cpp::PropertyConfiguratorImpl::AppenderMap"></a><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">typedef std::map<std::string, <a class="el" href="classlog4cpp_1_1Appender.html">Appender</a>*> <a class="el" href="classlog4cpp_1_1PropertyConfiguratorImpl.html#w0">log4cpp::PropertyConfiguratorImpl::AppenderMap</a> </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p> </td> </tr></table><hr><h2>Constructor & Destructor Documentation</h2><a class="anchor" name="a0" doxytag="log4cpp::PropertyConfiguratorImpl::PropertyConfiguratorImpl"></a><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">log4cpp::PropertyConfiguratorImpl::PropertyConfiguratorImpl </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p> </td> </tr></table><a class="anchor" name="a1" doxytag="log4cpp::PropertyConfiguratorImpl::~PropertyConfiguratorImpl"></a><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">log4cpp::PropertyConfiguratorImpl::~PropertyConfiguratorImpl </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p> </td> </tr></table><hr><h2>Member Function Documentation</h2><a class="anchor" name="b0" doxytag="log4cpp::PropertyConfiguratorImpl::configureCategory"></a><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">void log4cpp::PropertyConfiguratorImpl::configureCategory </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const std::string & </td> <td class="mdname1" valign="top" nowrap> <em>categoryname</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> throw (<a class="el" href="classlog4cpp_1_1ConfigureFailure.html">ConfigureFailure</a>)<code> [protected]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>configure the given category. <p>This includes setting its <a class="el" href="classlog4cpp_1_1Priority.html">Priority</a> and adding any Appenders. <dl compact><dt><b><a class="el" href="todo.html#_todo000001">Todo:</a></b></dt><dd>setting other properties like 'additivity'.</dd></dl><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>categoryname</em> </td><td>Name of the category to configure. The name 'rootCategory' refers to the root <a class="el" href="classlog4cpp_1_1Category.html">Category</a>. throw <a class="el" href="classlog4cpp_1_1ConfigureFailure.html">ConfigureFailure</a> </td></tr> </table></dl> </td> </tr></table><a class="anchor" name="a3" doxytag="log4cpp::PropertyConfiguratorImpl::doConfigure"></a><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">void log4cpp::PropertyConfiguratorImpl::doConfigure </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">std::istream & </td> <td class="mdname1" valign="top" nowrap> <em>in</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> throw (<a class="el" href="classlog4cpp_1_1ConfigureFailure.html">ConfigureFailure</a>)<code> [virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p> </td> </tr></table><a class="anchor" name="a2" doxytag="log4cpp::PropertyConfiguratorImpl::doConfigure"></a><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">void log4cpp::PropertyConfiguratorImpl::doConfigure </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const std::string & </td> <td class="mdname1" valign="top" nowrap> <em>initFileName</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> throw (<a class="el" href="classlog4cpp_1_1ConfigureFailure.html">ConfigureFailure</a>)<code> [virtual]</code></td> </tr> </table> </td>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -