DCMTK  Version 3.6.1 20120515
OFFIS DICOM Toolkit
Public Member Functions | Private Member Functions | Private Attributes
dcmtk::log4cplus::spi::StringMatchFilter Class Reference

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

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

List of all members.

Public Member Functions

 StringMatchFilter (const helpers::Properties &p, tstring &error)
virtual FilterResult decide (const InternalLoggingEvent &event) const
 Returns NEUTRAL is there is no string match.

Private Member Functions

void init ()

Private Attributes

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

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

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 May 15 2012 for DCMTK Version 3.6.1 20120515 by Doxygen 1.7.5.1-20111027