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
17#include <mlModuleIncludes.h>
18
19ML_START_NAMESPACE
20
23
29 public RefCountedBase,
31{
32public:
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
56protected:
57
60 bool _filterMatches(const std::string &message) const override;
61
64
65private:
70
73};
74
75ML_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.
DicomMessageCollector * createDicomMessageCollectorClone() override
bool _filterMatches(const std::string &message) const override
Implements a filter method replacing the match function for the getFiltered() method of the base clas...
void appendIssue(const std::string &stringToAppend) override
Append an issue string; can be overwritten for replacement of the appendIssue functionality.
MessageCollector * createClone() override
Create a duplicate from *this.
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.
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.
const DicomMessageFilterListType & messageFilterList() const
Returns the constant current list of messages added to *this.
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.