DCMTK  Version 3.6.1 20131114
OFFIS DICOM Toolkit
 All Classes Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
dcmtk::log4cplus::spi::StringMatchFilter Class Reference

This is a very simple filter based on string matching. More...

+ Inheritance diagram for dcmtk::log4cplus::spi::StringMatchFilter:
+ Collaboration diagram for dcmtk::log4cplus::spi::StringMatchFilter:

Public Member Functions

 StringMatchFilter (const log4cplus::helpers::Properties &p)
 
virtual FilterResult decide (const InternalLoggingEvent &event) const
 Returns NEUTRAL is there is no string match.
 
- Public Member Functions inherited from dcmtk::log4cplus::spi::Filter
void appendFilter (FilterPtr filter)
 Appends filter to the end of this filter chain.
 
- Public Member Functions inherited from dcmtk::log4cplus::helpers::SharedObject
void addReference () const
 
void removeReference () const
 

Private Member Functions

DCMTK_LOG4CPLUS_PRIVATE void init ()
 

Private Attributes

bool acceptOnMatch
 Do we return ACCEPT when a match occurs. More...
 
log4cplus::tstring stringToMatch
 

Additional Inherited Members

- Public Attributes inherited from dcmtk::log4cplus::spi::Filter
FilterPtr next
 Points to the next filter in the filter chain.
 
- Public Attributes inherited from dcmtk::log4cplus::helpers::SharedObject
thread::Mutex access_mutex
 
- Protected Member Functions inherited from dcmtk::log4cplus::helpers::SharedObject
 SharedObject (const SharedObject &)
 
SharedObjectoperator= (const SharedObject &)
 

Detailed Description

This is a very simple filter based on string matching.

The filter admits two options StringToMatch and AcceptOnMatch. If there is a match between the value of the StringToMatch option and the message of the Logging event, then the decide method returns ACCEPT if the AcceptOnMatch option value is true, if it is false then DENY is returned. If there is no match, NEUTRAL is returned.

Member Data Documentation

bool dcmtk::log4cplus::spi::StringMatchFilter::acceptOnMatch
private

Do we return ACCEPT when a match occurs.

Default is true.


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


Generated on Tue Nov 26 2013 for DCMTK Version 3.6.1 20131114 by Doxygen 1.8.5