Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
BufferingAppender Class Reference

#include <BufferingAppender.hh>

Inheritance diagram for BufferingAppender:
Inheritance graph
[legend]

Public Member Functions

 BufferingAppender (const std::string name, unsigned long max_size, std::auto_ptr< Appender > sink, std::auto_ptr< TriggeringEventEvaluator > evaluator)
 
virtual void close ()
 Release any resources allocated within the appender such as file handles, network connections, etc. More...
 
bool getLossy () const
 
void setLossy (bool lossy)
 
- 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 bool reopen ()
 Reopens the output destination of this Appender, e.g. 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...
 

Private Types

typedef std::list< LoggingEventqueue_t
 

Private Member Functions

void dump ()
 

Private Attributes

std::auto_ptr< TriggeringEventEvaluatorevaluator_
 
bool lossy_
 
unsigned long max_size_
 
queue_t queue_
 
std::auto_ptr< Appendersink_
 

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

Definition at line 10 of file BufferingAppender.hh.

Member Typedef Documentation

typedef std::list<LoggingEvent> BufferingAppender::queue_t
private

Definition at line 25 of file BufferingAppender.hh.

Constructor & Destructor Documentation

BufferingAppender::BufferingAppender ( const std::string  name,
unsigned long  max_size,
std::auto_ptr< Appender sink,
std::auto_ptr< TriggeringEventEvaluator evaluator 
)

Member Function Documentation

virtual void BufferingAppender::_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 BufferingAppender::close ( )
inlinevirtual

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

Implements AppenderSkeleton.

Definition at line 16 of file BufferingAppender.hh.

void BufferingAppender::dump ( )
private
bool BufferingAppender::getLossy ( ) const
inline

Definition at line 18 of file BufferingAppender.hh.

void BufferingAppender::setLossy ( bool  lossy)
inline

Definition at line 19 of file BufferingAppender.hh.

Member Data Documentation

std::auto_ptr<TriggeringEventEvaluator> BufferingAppender::evaluator_
private

Definition at line 30 of file BufferingAppender.hh.

bool BufferingAppender::lossy_
private

Definition at line 31 of file BufferingAppender.hh.

unsigned long BufferingAppender::max_size_
private

Definition at line 28 of file BufferingAppender.hh.

queue_t BufferingAppender::queue_
private

Definition at line 27 of file BufferingAppender.hh.

std::auto_ptr<Appender> BufferingAppender::sink_
private

Definition at line 29 of file BufferingAppender.hh.


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


rc_genicam_api
Author(s): Heiko Hirschmueller
autogenerated on Wed Mar 17 2021 02:48:41