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 
17 
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:
115 
116 };
117 
119 
120 #endif // _LOG4CPP_FILTER_HH
#define LOG4CPP_NS_END
Definition: Portability.hh:50
Filter * _chainedFilter
Definition: Filter.hh:114
The top level namespace for all &#39;Log for C++&#39; types and classes.
Definition: LoggingEvent.hh:32
Users should extend this class to implement customized logging event filtering.
Definition: Filter.hh:49
Decision
Definition: Filter.hh:52
LOG4CPP_NS_BEGIN class LOG4CPP_EXPORT Filter
Definition: Appender.hh:27
#define LOG4CPP_EXPORT
Definition: Export.hh:21
#define LOG4CPP_NS_BEGIN
Definition: Portability.hh:49


rc_genicam_api
Author(s): Heiko Hirschmueller
autogenerated on Thu Jun 6 2019 19:10:54