MeVisLab Toolbox Reference
mlDicomConfigurableMessageFilterBase.h
Go to the documentation of this file.
1 // Copyright (c) Fraunhofer MEVIS, Germany. All rights reserved.
2 // **InsertLicense** code
3 //----------------------------------------------------------------------------------
6 
11 //----------------------------------------------------------------------------------
12 #pragma once
13 
15 #include <mlDicomMessageFilter.h>
17 #include <mlModuleIncludes.h>
18 
19 ML_START_NAMESPACE
20 
23 
29  public RefCountedBase,
31 {
32 public:
35 
37  void appendInfo (const std::string &stringToAppend) override;
38  void appendIssue(const std::string &stringToAppend) override;
39  void appendError(const std::string &stringToAppend) override;
41 
46 
48  typedef std::vector<DicomMessageFilter> DicomMessageFilterListType;
49 
51  const DicomMessageFilterListType &messageFilterList() const { return _messageFilterList; }
52 
54  DicomMessageFilterListType &messageFilterList() { return _messageFilterList; }
55 
56 protected:
57 
60  bool _filterMatches(const std::string &message) const override;
61 
64 
65 private:
70 
73 };
74 
75 ML_END_NAMESPACE
Project global and OS specific declarations.
#define MLDicomMessageFilter_EXPORT
DLL export macro definition.
Provides a configurable message filter for DICOM modules.
DicomMessageFilterListType & messageFilterList()
Returns the constant current list of messages added to *this.
bool _filterMatches(const std::string &message) const override
Implements a filter method replacing the match function for the getFiltered() method of the base clas...
const DicomMessageFilterListType & messageFilterList() const
Returns the constant current list of messages added to *this.
void appendIssue(const std::string &stringToAppend) override
Append an issue string; can be overwritten for replacement of the appendIssue functionality.
void appendInfo(const std::string &stringToAppend) override
Overwrite base class (Dicom)MessageCollector method to implement filters.
DicomConfigurableMessageFilterBaseRefCounted()
Constructor, no inputs, no outputs (but a Base output) as field.
MessageCollector * createClone() override
Create a duplicate from *this.
std::vector< DicomMessageFilter > DicomMessageFilterListType
Container type of the list of MessageFilter objects.
DicomMessageFilterListType _messageFilterList
List of message managed by *this.
void appendError(const std::string &stringToAppend) override
Append an error string; can be overwritten for replacement of the appendError functionality.
DicomMessageCollector * createDicomMessageCollectorClone() override
Class to collect messages and errors related to a given frame handle.
DicomMessageCollector & operator=(const DicomMessageCollector &other)=default
Class to collect messages of different types.
RefCountedBase class adds intrusive reference counting support to the Base class.
Header file of class to collect messages and errors related to a given frame handle.
Header file of a class describing a string id of a message, a set of substrings how it can be found b...
#define ML_REFCOUNTED_PTR(CLASSNAME)
Macro that defines convenience Ptr/ConstPtr typedefs to be used instead of intrusive_ptr templates.
#define ML_CLASS_HEADER(className)
Same like ML_CLASS_HEADER_EXPORTED with a non existing export symbol.