DCMTK Version 3.6.8
OFFIS DICOM Toolkit
Public Member Functions | Protected Attributes | List of all members
dcmtk::log4cplus::helpers::AppenderAttachableImpl Class Reference

This Interface is for attaching Appenders to objects. More...

+ Inheritance diagram for dcmtk::log4cplus::helpers::AppenderAttachableImpl:

Public Member Functions

virtual void addAppender (SharedAppenderPtr newAppender)
 Add an appender. More...
 
virtual SharedAppenderPtrList getAllAppenders ()
 Get all previously added appenders as an vectory.
 
virtual SharedAppenderPtr getAppender (const log4cplus::tstring &name)
 Look for an attached appender named as name. More...
 
virtual void removeAllAppenders ()
 Remove all previously added appenders.
 
virtual void removeAppender (SharedAppenderPtr appender)
 Remove the appender passed as parameter from the list of appenders.
 
virtual void removeAppender (const log4cplus::tstring &name)
 Remove the appender with the name passed as parameter from the list of appenders. More...
 
int appendLoopOnAppenders (const spi::InternalLoggingEvent &event) const
 Call the doAppend method on all attached appenders. More...
 
virtual void addAppender (SharedAppenderPtr newAppender)=0
 Add an appender.
 
virtual SharedAppenderPtrList getAllAppenders ()=0
 Get all previously added appenders as an Enumeration. More...
 
virtual SharedAppenderPtr getAppender (const log4cplus::tstring &name)=0
 Get an appender by name.
 
virtual void removeAllAppenders ()=0
 Remove all previously added appenders.
 
virtual void removeAppender (SharedAppenderPtr appender)=0
 Remove the appender passed as parameter from the list of appenders.
 
virtual void removeAppender (const log4cplus::tstring &name)=0
 Remove the appender with the name passed as parameter from the list of appenders. More...
 

Protected Attributes

ListType appenderList
 Array of appenders.
 

Detailed Description

This Interface is for attaching Appenders to objects.

Member Function Documentation

◆ addAppender()

virtual void dcmtk::log4cplus::helpers::AppenderAttachableImpl::addAppender ( SharedAppenderPtr  newAppender)
virtual

Add an appender.

If the appender is already in the list in won't be added again.

Implements dcmtk::log4cplus::spi::AppenderAttachable.

◆ appendLoopOnAppenders()

int dcmtk::log4cplus::helpers::AppenderAttachableImpl::appendLoopOnAppenders ( const spi::InternalLoggingEvent event) const

Call the doAppend method on all attached appenders.


◆ getAppender()

virtual SharedAppenderPtr dcmtk::log4cplus::helpers::AppenderAttachableImpl::getAppender ( const log4cplus::tstring name)
virtual

Look for an attached appender named as name.

Return the appender with that name if in the list. Return null otherwise.

Implements dcmtk::log4cplus::spi::AppenderAttachable.

◆ removeAppender()

virtual void dcmtk::log4cplus::helpers::AppenderAttachableImpl::removeAppender ( const log4cplus::tstring name)
virtual

Remove the appender with the name passed as parameter from the list of appenders.


Implements dcmtk::log4cplus::spi::AppenderAttachable.


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


Generated on Tue Dec 19 2023 for DCMTK Version 3.6.8 by Doxygen 1.9.4