LevelEvaluator.hh
Go to the documentation of this file.
00001 #if !defined(h_3491ecd0_3891_4902_b3ba_15b15d98ae49)
00002 #define h_3491ecd0_3891_4902_b3ba_15b15d98ae49
00003 
00004 #include <log4cpp/TriggeringEventEvaluator.hh>
00005 
00006 LOG4CPP_NS_BEGIN
00007 class LOG4CPP_EXPORT LevelEvaluator : public TriggeringEventEvaluator
00008 {
00009 public:
00010     LevelEvaluator(Priority::Value level) : level_(level) {}
00011     virtual bool eval(const LoggingEvent& event) const { return event.priority <= level_; }
00012 
00013 private:
00014     Priority::Value level_;
00015 };
00016 LOG4CPP_NS_END
00017 
00018 #endif // h_3491ecd0_3891_4902_b3ba_15b15d98ae49


rc_genicam_api
Author(s): Heiko Hirschmueller
autogenerated on Thu Jun 6 2019 18:42:47