Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
src
PropertyConfiguratorImpl.hh
Go to the documentation of this file.
1
/*
2
* PropertyConiguratorImpl.hh
3
*
4
* Copyright 2002, Log4cpp Project. All rights reserved.
5
*
6
* See the COPYING file for the terms of usage and distribution.
7
*/
8
9
#ifndef _LOG4CPP_PROPERTYCONFIGURATORIMPL_HH
10
#define _LOG4CPP_PROPERTYCONFIGURATORIMPL_HH
11
12
#include "
PortabilityImpl.hh
"
13
#include <
log4cpp/Configurator.hh
>
14
#include <
log4cpp/Appender.hh
>
15
#include <
log4cpp/Category.hh
>
16
#include <string>
17
#include <iostream>
18
#include <map>
19
#include <vector>
20
21
#include "
Properties.hh
"
22
23
namespace
log4cpp
{
24
25
class
PropertyConfiguratorImpl
{
26
public
:
27
typedef
std::map<std::string, Appender*>
AppenderMap
;
28
29
PropertyConfiguratorImpl
();
30
virtual
~PropertyConfiguratorImpl
();
31
virtual
void
doConfigure
(
const
std::string& initFileName)
32
throw
(
ConfigureFailure
);
33
virtual
void
doConfigure
(std::istream& in)
34
throw
(
ConfigureFailure
);
35
36
protected
:
45
void
configureCategory
(
const
std::string& categoryname)
throw
(
ConfigureFailure
);
46
52
void
getCategories
(std::vector<std::string>& categories)
const
;
53
54
void
instantiateAllAppenders
() throw(
ConfigureFailure
);
55
69
Appender
*
instantiateAppender
(const
std
::
string
& name);
70
77
void
setLayout
(
Appender
* appender, const
std
::
string
& name);
78
79
Properties
_properties
;
80
AppenderMap
_allAppenders
;
81
};
82
}
83
84
#endif // _LOG4CPP_PROPERTIES_HH
85
log4cpp::PropertyConfiguratorImpl::setLayout
void setLayout(Appender *appender, const std::string &name)
Definition:
PropertyConfiguratorImpl.cpp:296
log4cpp::PropertyConfiguratorImpl::getCategories
void getCategories(std::vector< std::string > &categories) const
Definition:
PropertyConfiguratorImpl.cpp:346
Configurator.hh
log4cpp::PropertyConfiguratorImpl::~PropertyConfiguratorImpl
virtual ~PropertyConfiguratorImpl()
Definition:
PropertyConfiguratorImpl.cpp:66
PortabilityImpl.hh
log4cpp::PropertyConfiguratorImpl::PropertyConfiguratorImpl
PropertyConfiguratorImpl()
Definition:
PropertyConfiguratorImpl.cpp:63
log4cpp::PropertyConfiguratorImpl::instantiateAppender
Appender * instantiateAppender(const std::string &name)
Definition:
PropertyConfiguratorImpl.cpp:191
std
Definition:
Portability.hh:44
Appender.hh
log4cpp::ConfigureFailure
Definition:
Configurator.hh:21
log4cpp::PropertyConfiguratorImpl::doConfigure
virtual void doConfigure(const std::string &initFileName)
Definition:
PropertyConfiguratorImpl.cpp:69
log4cpp::PropertyConfiguratorImpl::_allAppenders
AppenderMap _allAppenders
Definition:
PropertyConfiguratorImpl.hh:80
Properties.hh
log4cpp
Definition:
AbortAppender.hh:16
log4cpp::PropertyConfiguratorImpl::AppenderMap
std::map< std::string, Appender * > AppenderMap
Definition:
PropertyConfiguratorImpl.hh:27
log4cpp::Properties
Definition:
Properties.hh:19
Category.hh
log4cpp::Appender
Definition:
Appender.hh:33
log4cpp::PropertyConfiguratorImpl
Definition:
PropertyConfiguratorImpl.hh:25
log4cpp::PropertyConfiguratorImpl::instantiateAllAppenders
void instantiateAllAppenders()
Definition:
PropertyConfiguratorImpl.cpp:96
log4cpp::PropertyConfiguratorImpl::_properties
Properties _properties
Definition:
PropertyConfiguratorImpl.hh:79
log4cpp::PropertyConfiguratorImpl::configureCategory
void configureCategory(const std::string &categoryname)
Definition:
PropertyConfiguratorImpl.cpp:135
log4cpp
Author(s): Stephen Roderick, Bastiaan Bakker, Cedric Le Goater, Steve Ostlind, Marcel Harkema, Walter Stroebel, Glenn Scott and Tony Cheung
autogenerated on Sun Jun 23 2019 19:10:00