OstreamAppender.hh
Go to the documentation of this file.
1 /*
2  * OstreamAppender.hh
3  *
4  * Copyright 2000, LifeLine Networks BV (www.lifeline.nl). All rights reserved.
5  * Copyright 2000, Bastiaan Bakker. All rights reserved.
6  *
7  * See the COPYING file for the terms of usage and distribution.
8  */
9 
10 #ifndef _LOG4CPP_OSTREAMAPPENDER_HH
11 #define _LOG4CPP_OSTREAMAPPENDER_HH
12 
13 #include <log4cpp/Portability.hh>
14 #include <string>
15 #include <iostream>
17 
19 
24 public:
25  OstreamAppender(const std::string& name, std::ostream* stream);
26  virtual ~OstreamAppender();
27 
28  virtual bool reopen();
29  virtual void close();
30 
31 protected:
32  virtual void _append(const LoggingEvent& event);
33 
34  std::ostream* _stream;
35 };
37 
38 #endif // _LOG4CPP_OSTREAMAPPENDER_HH
#define LOG4CPP_NS_END
Definition: Portability.hh:50
OstreamAppender appends LoggingEvents to ostreams.
virtual bool reopen()
Reopens the output destination of this Appender, e.g.
std::ostream * _stream
The top level namespace for all &#39;Log for C++&#39; types and classes.
Definition: LoggingEvent.hh:32
virtual void _append(const LoggingEvent &event)=0
Log in Appender specific way.
LayoutAppender is a common superclass for all Appenders that require a Layout.
virtual void close()=0
Release any resources allocated within the appender such as file handles, network connections...
#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