BufferingAppender.hh
Go to the documentation of this file.
1 #if !defined(h_ebd0ee89_622d_4af1_9a9d_d0e057debe86)
2 #define h_ebd0ee89_622d_4af1_9a9d_d0e057debe86
3 
6 #include <list>
7 #include <memory>
8 
11 {
12 public:
13  BufferingAppender(const std::string name, unsigned long max_size, std::auto_ptr<Appender> sink,
14  std::auto_ptr<TriggeringEventEvaluator> evaluator);
15 
16  virtual void close() { sink_->close(); }
17 
18  bool getLossy() const { return lossy_; }
19  void setLossy(bool lossy) { lossy_ = lossy; }
20 
21 protected:
22  virtual void _append(const LoggingEvent& event);
23 
24 private:
25  typedef std::list<LoggingEvent> queue_t;
26 
27  queue_t queue_;
28  unsigned long max_size_;
29  std::auto_ptr<Appender> sink_;
30  std::auto_ptr<TriggeringEventEvaluator> evaluator_;
31  bool lossy_;
32 
33  void dump();
34 };
36 
37 #endif // h_ebd0ee89_622d_4af1_9a9d_d0e057debe86
#define LOG4CPP_NS_END
Definition: Portability.hh:50
unsigned long max_size_
std::auto_ptr< TriggeringEventEvaluator > evaluator_
The top level namespace for all &#39;Log for C++&#39; types and classes.
Definition: LoggingEvent.hh:32
std::auto_ptr< Appender > sink_
virtual void _append(const LoggingEvent &event)=0
Log in Appender specific way.
bool getLossy() const
LayoutAppender is a common superclass for all Appenders that require a Layout.
virtual void close()
Release any resources allocated within the appender such as file handles, network connections...
#define LOG4CPP_EXPORT
Definition: Export.hh:21
std::list< LoggingEvent > queue_t
void setLossy(bool lossy)
#define LOG4CPP_NS_BEGIN
Definition: Portability.hh:49


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