LevelEvaluator.hh
Go to the documentation of this file.
1
#if !defined(h_3491ecd0_3891_4902_b3ba_15b15d98ae49)
2
#define h_3491ecd0_3891_4902_b3ba_15b15d98ae49
3
4
#include <
log4cpp/TriggeringEventEvaluator.hh
>
5
6
LOG4CPP_NS_BEGIN
7
class
LOG4CPP_EXPORT
LevelEvaluator
:
public
TriggeringEventEvaluator
8
{
9
public
:
10
LevelEvaluator
(
Priority::Value
level) : level_(level) {}
11
virtual
bool
eval
(
const
LoggingEvent
& event)
const
{
return
event
.priority <= level_; }
12
13
private
:
14
Priority::Value
level_
;
15
};
16
LOG4CPP_NS_END
17
18
#endif // h_3491ecd0_3891_4902_b3ba_15b15d98ae49
LoggingEvent
The top level namespace for all 'Log for C++' types and classes.
Definition:
LoggingEvent.hh:32
TriggeringEventEvaluator.hh
LevelEvaluator::eval
virtual bool eval(const LoggingEvent &event) const
Definition:
LevelEvaluator.hh:11
Priority::Value
int Value
The type of Priority Values.
Definition:
Priority.hh:87
LevelEvaluator::LevelEvaluator
LevelEvaluator(Priority::Value level)
Definition:
LevelEvaluator.hh:10
LOG4CPP_NS_BEGIN
#define LOG4CPP_NS_BEGIN
Definition:
Portability.hh:49
LOG4CPP_NS_END
#define LOG4CPP_NS_END
Definition:
Portability.hh:50
LevelEvaluator
Definition:
LevelEvaluator.hh:7
LOG4CPP_EXPORT
#define LOG4CPP_EXPORT
Definition:
Export.hh:21
TriggeringEventEvaluator
Definition:
TriggeringEventEvaluator.hh:7
LevelEvaluator::level_
Priority::Value level_
Definition:
LevelEvaluator.hh:14
rc_genicam_api
Author(s): Heiko Hirschmueller
autogenerated on Wed Dec 4 2024 03:10:11