Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
genicam
library
CPP
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
LOG4CPP_NS_BEGIN
17
49
class
LOG4CPP_EXPORT
Filter
{
50
public
:
51
52
typedef
enum
{
53
DENY = -1,
54
NEUTRAL = 0,
55
ACCEPT = 1
56
}
Decision
;
57
61
Filter
();
62
66
virtual
~
Filter
();
67
72
virtual
void
setChainedFilter(
Filter
* filter);
73
79
virtual
Filter
* getChainedFilter();
80
85
virtual
Filter
* getEndOfChain();
86
92
virtual
void
appendChainedFilter(
Filter
* filter);
93
101
virtual
Decision
decide(
const
LoggingEvent
& event);
102
103
protected
:
111
virtual
Decision
_decide(
const
LoggingEvent
& event) = 0;
112
113
private
:
114
Filter
*
_chainedFilter
;
115
116
};
117
118
LOG4CPP_NS_END
119
120
#endif // _LOG4CPP_FILTER_HH
LOG4CPP_NS_END
#define LOG4CPP_NS_END
Definition:
Portability.hh:50
Filter::_chainedFilter
Filter * _chainedFilter
Definition:
Filter.hh:114
LoggingEvent.hh
LoggingEvent
The top level namespace for all 'Log for C++' types and classes.
Definition:
LoggingEvent.hh:32
Filter
Users should extend this class to implement customized logging event filtering.
Definition:
Filter.hh:49
Portability.hh
Filter::Decision
Decision
Definition:
Filter.hh:52
Filter
LOG4CPP_NS_BEGIN class LOG4CPP_EXPORT Filter
Definition:
Appender.hh:27
LOG4CPP_EXPORT
#define LOG4CPP_EXPORT
Definition:
Export.hh:21
LOG4CPP_NS_BEGIN
#define LOG4CPP_NS_BEGIN
Definition:
Portability.hh:49
rc_genicam_api
Author(s): Heiko Hirschmueller
autogenerated on Thu Jun 6 2019 19:10:54