Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
include
log4cpp
TriggeringEventEvaluatorFactory.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
#if !defined(h_dd233b8b_5c59_4956_9393_6581c95f9779)
9
#define h_dd233b8b_5c59_4956_9393_6581c95f9779
10
11
#include <string>
12
#include <map>
13
#include <memory>
14
#include "
Portability.hh
"
15
#include "
TriggeringEventEvaluator.hh
"
16
#include "
FactoryParams.hh
"
17
18
namespace
log4cpp
19
{
20
class
LOG4CPP_EXPORT
TriggeringEventEvaluatorFactory
21
{
22
public
:
23
typedef
FactoryParams
params_t
;
24
typedef
std::auto_ptr<TriggeringEventEvaluator> (*create_function_t)(
const
params_t& params);
25
26
static
TriggeringEventEvaluatorFactory
& getInstance();
27
void
registerCreator(
const
std::string& class_name, create_function_t create_function);
28
std::auto_ptr<TriggeringEventEvaluator> create(
const
std::string& class_name,
const
params_t& params);
29
bool
registered(
const
std::string& class_name)
const
;
30
31
private
:
32
TriggeringEventEvaluatorFactory
(){};
33
34
typedef
std::map<std::string, create_function_t>
creators_t
;
35
typedef
creators_t::const_iterator
const_iterator
;
36
37
creators_t
creators_
;
38
};
39
}
40
41
#endif // h_dd233b8b_5c59_4956_9393_6581c95f9779
FactoryParams.hh
log4cpp::TriggeringEventEvaluatorFactory::params_t
FactoryParams params_t
Definition:
TriggeringEventEvaluatorFactory.hh:23
log4cpp::TriggeringEventEvaluatorFactory::TriggeringEventEvaluatorFactory
TriggeringEventEvaluatorFactory()
Definition:
TriggeringEventEvaluatorFactory.hh:32
log4cpp::TriggeringEventEvaluatorFactory::creators_
creators_t creators_
Definition:
TriggeringEventEvaluatorFactory.hh:37
log4cpp::TriggeringEventEvaluatorFactory
Definition:
TriggeringEventEvaluatorFactory.hh:20
Portability.hh
LOG4CPP_EXPORT
#define LOG4CPP_EXPORT
Definition:
Export.hh:26
log4cpp::FactoryParams
Definition:
FactoryParams.hh:61
log4cpp
Definition:
AbortAppender.hh:16
TriggeringEventEvaluator.hh
log4cpp::TriggeringEventEvaluatorFactory::creators_t
std::map< std::string, create_function_t > creators_t
Definition:
TriggeringEventEvaluatorFactory.hh:32
log4cpp::TriggeringEventEvaluatorFactory::const_iterator
creators_t::const_iterator const_iterator
Definition:
TriggeringEventEvaluatorFactory.hh:35
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