18 #include <ThirdPartyWarningsDisable.h>
21 #include <ThirdPartyWarningsRestore.h>
36 bool useCaseSensitiveFiltering=
true):
37 _filterIdString(filterIdString)
38 ,_filterSubStrings(filterSubStrings)
39 ,_useCaseSensitiveFiltering(useCaseSensitiveFiltering)
71 std::string _filterIdString;
77 bool _useCaseSensitiveFiltering =
false;
80 bool _isFiltered =
false;
Project global and OS specific declarations.
#define MLDicomMessageFilter_EXPORT
DLL export macro definition.
Class describing a string id of a message, a set of substrings how it can be found by searching them ...
bool isFiltered() const
Returns true if message shall be filtered / suppressed, otherwise false.
virtual ~DicomMessageFilter()
Virtual destructor.
DicomMessageFilter(const std::string &filterIdString, const DicomMessageListType &filterSubStrings=DicomMessageListType(), bool useCaseSensitiveFiltering=true)
Creates an empty message with no filter features.
DicomMessageListType & filterSubStrings()
Returns the modifiable list of string which must be found in a message to filter it out.
bool & useCaseSensitiveFiltering()
Returns true if message is be filtered case sensitively, otherwise false.
bool matches(std::string message) const
Returns false if none of filterSubStrings() can be found in message, otherwise true.
bool useCaseSensitiveFiltering() const
Returns true if message is be filtered case sensitively, otherwise false.
std::vector< std::string > DicomMessageListType
Container type of the list of filtered substring.
const DicomMessageListType & filterSubStrings() const
Returns the constant list of string which must be found in a message to filter it out.
bool & isFiltered()
Returns true if message shall be filtered / suppressed, otherwise false.
const std::string & filterIdString() const
Returns the constructor argument filterIdString.