Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
OstreamAppender Class Reference

OstreamAppender appends LoggingEvents to ostreams. More...

#include <OstreamAppender.hh>

Inheritance diagram for OstreamAppender:
Inheritance graph
[legend]

Public Member Functions

virtual void close ()
 Release any resources allocated within the appender such as file handles, network connections, etc. More...
 
 OstreamAppender (const std::string &name, std::ostream *stream)
 
virtual bool reopen ()
 Reopens the output destination of this Appender, e.g. More...
 
virtual ~OstreamAppender ()
 
- Public Member Functions inherited from LayoutAppender
 LayoutAppender (const std::string &name)
 
virtual bool requiresLayout () const
 Check if the appender requires a layout. More...
 
virtual void setLayout (Layout *layout=NULL)
 Set the Layout for this appender. More...
 
virtual ~LayoutAppender ()
 
- Public Member Functions inherited from AppenderSkeleton
virtual void doAppend (const LoggingEvent &event)
 Log in Appender specific way. More...
 
virtual FiltergetFilter ()
 Get the Filter for this appender. More...
 
virtual Priority::Value getThreshold ()
 Get the threshold priority of this Appender. More...
 
virtual void setFilter (Filter *filter)
 Set a Filter for this appender. More...
 
virtual void setThreshold (Priority::Value priority)
 Set the threshold priority of this Appender. More...
 
virtual ~AppenderSkeleton ()
 Destructor for AppenderSkeleton. More...
 
- Public Member Functions inherited from Appender
const std::string & getName () const
 Get the name of this appender. More...
 
virtual ~Appender ()
 Destructor for Appender. More...
 

Protected Member Functions

virtual void _append (const LoggingEvent &event)
 Log in Appender specific way. More...
 
- Protected Member Functions inherited from LayoutAppender
Layout_getLayout ()
 Return the layout of the appender. More...
 
- Protected Member Functions inherited from AppenderSkeleton
 AppenderSkeleton (const std::string &name)
 Constructor for AppenderSkeleton. More...
 
- Protected Member Functions inherited from Appender
 Appender (const std::string &name)
 Constructor for Appender. More...
 

Protected Attributes

std::ostream * _stream
 

Additional Inherited Members

- Public Types inherited from LayoutAppender
typedef BasicLayout DefaultLayoutType
 
- Static Public Member Functions inherited from Appender
static void closeAll ()
 Call reopen() on all existing Appenders. More...
 
static AppendergetAppender (const std::string &name)
 Get a pointer to an existing Appender. More...
 
static bool reopenAll ()
 Call reopen() on all existing Appenders. More...
 

Detailed Description

OstreamAppender appends LoggingEvents to ostreams.

Definition at line 23 of file OstreamAppender.hh.

Constructor & Destructor Documentation

OstreamAppender::OstreamAppender ( const std::string &  name,
std::ostream *  stream 
)
virtual OstreamAppender::~OstreamAppender ( )
virtual

Member Function Documentation

virtual void OstreamAppender::_append ( const LoggingEvent event)
protectedvirtual

Log in Appender specific way.

Subclasses of Appender should implement this method to perform actual logging.

Parameters
eventThe LoggingEvent to log.

Implements AppenderSkeleton.

virtual void OstreamAppender::close ( )
virtual

Release any resources allocated within the appender such as file handles, network connections, etc.

Implements AppenderSkeleton.

virtual bool OstreamAppender::reopen ( )
virtual

Reopens the output destination of this Appender, e.g.

the logfile or TCP socket.

Returns
false if an error occured during reopening, true otherwise.

Reimplemented from AppenderSkeleton.

Member Data Documentation

std::ostream* OstreamAppender::_stream
protected

Definition at line 34 of file OstreamAppender.hh.


The documentation for this class was generated from the following file:


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