Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
include
log4cpp
Filter.hh
Go to the documentation of this file.
1
/*
2
* Filter.hh
3
*
4
* Copyright 2001, LifeLine Networks BV (www.lifeline.nl). All rights reserved.
5
* Copyright 2001, Bastiaan Bakker. All rights reserved.
6
*
7
* See the COPYING file for the terms of usage and distribution.
8
*/
9
10
#ifndef _LOG4CPP_FILTER_HH
11
#define _LOG4CPP_FILTER_HH
12
13
#include <
log4cpp/Portability.hh
>
14
#include <
log4cpp/LoggingEvent.hh
>
15
16
namespace
log4cpp
{
17
49
class
LOG4CPP_EXPORT
Filter
{
50
public
:
51
52
typedef
enum
{ DENY = -1,
53
NEUTRAL = 0,
54
ACCEPT = 1
55
}
Decision
;
56
60
Filter
();
61
65
virtual
~
Filter
();
66
71
virtual
void
setChainedFilter(
Filter
* filter);
72
78
virtual
Filter
* getChainedFilter();
79
84
virtual
Filter
* getEndOfChain();
85
91
virtual
void
appendChainedFilter(
Filter
* filter);
92
100
virtual
Decision
decide(
const
LoggingEvent
& event);
101
102
protected
:
110
virtual
Decision
_decide(
const
LoggingEvent
& event) = 0;
111
112
private
:
113
Filter
*
_chainedFilter
;
114
115
};
116
117
}
118
119
#endif // _LOG4CPP_FILTER_HH
LoggingEvent.hh
log4cpp::Filter
Definition:
Filter.hh:49
log4cpp::Filter::Decision
Decision
Definition:
Filter.hh:52
Portability.hh
log4cpp::Filter
class LOG4CPP_EXPORT Filter
Definition:
Appender.hh:27
LOG4CPP_EXPORT
#define LOG4CPP_EXPORT
Definition:
Export.hh:26
log4cpp
Definition:
AbortAppender.hh:16
log4cpp::LoggingEvent
Definition:
LoggingEvent.hh:32
log4cpp::Filter::_chainedFilter
Filter * _chainedFilter
Definition:
Filter.hh:113
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