Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
include
log4cpp
AppendersFactory.hh
Go to the documentation of this file.
1
/*
2
* Copyright 2002, LifeLine Networks BV (www.lifeline.nl). All rights reserved.
3
* Copyright 2002, Bastiaan Bakker. All rights reserved.
4
*
5
* See the COPYING file for the terms of usage and distribution.
6
*/
7
8
9
#if !defined(h_738a42b1_1502_4483_948a_a69e7bbbee6a)
10
#define h_738a42b1_1502_4483_948a_a69e7bbbee6a
11
12
#include <string>
13
#include <map>
14
#include <memory>
15
#include "
Portability.hh
"
16
#include "
Appender.hh
"
17
#include "
FactoryParams.hh
"
18
19
namespace
log4cpp
20
{
21
class
LOG4CPP_EXPORT
AppendersFactory
22
{
23
public
:
24
typedef
FactoryParams
params_t
;
25
typedef
std::auto_ptr<Appender> (*create_function_t)(
const
params_t& params);
26
27
static
AppendersFactory
& getInstance();
28
void
registerCreator(
const
std::string& class_name, create_function_t create_function);
29
std::auto_ptr<Appender> create(
const
std::string& class_name,
const
params_t& params);
30
bool
registered(
const
std::string& class_name)
const
;
31
32
private
:
33
AppendersFactory
(){};
34
35
typedef
std::map<std::string, create_function_t>
creators_t
;
36
typedef
creators_t::const_iterator
const_iterator
;
37
38
creators_t
creators_
;
39
};
40
}
41
42
#endif // h_738a42b1_1502_4483_948a_a69e7bbbee6a
log4cpp::AppendersFactory::creators_t
std::map< std::string, create_function_t > creators_t
Definition:
AppendersFactory.hh:33
log4cpp::AppendersFactory::const_iterator
creators_t::const_iterator const_iterator
Definition:
AppendersFactory.hh:36
FactoryParams.hh
log4cpp::AppendersFactory::params_t
FactoryParams params_t
Definition:
AppendersFactory.hh:24
Appender.hh
Portability.hh
LOG4CPP_EXPORT
#define LOG4CPP_EXPORT
Definition:
Export.hh:26
log4cpp::FactoryParams
Definition:
FactoryParams.hh:61
log4cpp
Definition:
AbortAppender.hh:16
log4cpp::AppendersFactory
Definition:
AppendersFactory.hh:21
log4cpp::AppendersFactory::creators_
creators_t creators_
Definition:
AppendersFactory.hh:38
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:14:17