|
DCMTK Version 3.6.9
OFFIS DICOM Toolkit
|
Accept or reject DcmItem objects by comparing a specific attribute to a set of values. More...
Classes | |
| struct | FilterInterface |
| all actual filter implementations must inherit this interface. More... | |
| class | IteratorBasedFilter |
| A range-based filter implementation that compares an attribute's value with a range of values defined by two iterators. More... | |
Public Member Functions | |
| template<typename Iterator > | |
| DcmAttributeFilter (const DcmTagKey &tag, const Iterator &begin, const Iterator &end) | |
| construct a DcmAttributeFilter object from two iterators defining the range of values. | |
| template<typename Container > | |
| DcmAttributeFilter (const DcmTagKey &tag, const Container &container) | |
| construct a DcmAttributeFilter object from a container containing the range of values. | |
| DcmAttributeFilter () | |
| construct a DcmAttributeFilter object that accepts any DcmItem. | |
| DcmAttributeFilter (const DcmTagKey &tag, const OFString &value) | |
| construct a DcmAttributeFilter object that compares the attribute with one specific value. | |
| DcmAttributeFilter (const DcmTagKey &tag, const char *const value) | |
| construct a DcmAttributeFilter object that compares the attribute with one specific value. | |
| ~DcmAttributeFilter () | |
| free all resources used by this object. | |
| OFBool | apply (DcmItem &item) const |
| apply the filter on a DcmItem. | |
| OFBool | operator() (DcmItem &item) const |
| convenience function to enable using DcmAttributeFilter as a functor. | |
| OFBool | apply (DcmFileFormat &dcmfile) const |
| apply the filter on a DICOM file (represented by a DcmFileFormat instance). | |
| OFBool | operator() (DcmFileFormat &dcmfile) const |
| convenience function to enable using DcmAttributeFilter as a functor. | |
Static Private Member Functions | |
| template<typename Iterator > | |
| static IteratorBasedFilter< Iterator > * | createIteratorBasedFilter (const Iterator &begin, const Iterator &end) |
| helper function to deduce the Iterator type from a container's begin() and end() method. | |
Private Attributes | |
| const DcmTagKey | m_Tag |
| a DcmTagKey object determining which attribute of a DcmItem should be compared with the value. | |
| FilterInterface *const | m_pFilter |
| a pointer to the actual filter. | |
Accept or reject DcmItem objects by comparing a specific attribute to a set of values.
DcmAttributeFilter objects can be used to compare a specific attribute with one or more values - or to accept any DcmItem if no attribute is specified. DcmAttributeFilter objects can be used like any function taking a DcmItem& or a DcmFileFormat& object as parameter and returning a boolean value.
|
inline |
construct a DcmAttributeFilter object from two iterators defining the range of values.
| Iterator | a type matching the STL's ForwardIterator concept. |
|
inline |
construct a DcmAttributeFilter object from a container containing the range of values.
| Container | a class matching the STL's Container concept. |
construct a DcmAttributeFilter object that compares the attribute with one specific value.
construct a DcmAttributeFilter object that compares the attribute with one specific value.
| OFBool DcmAttributeFilter::apply | ( | DcmFileFormat & | dcmfile | ) | const |
apply the filter on a DICOM file (represented by a DcmFileFormat instance).
| dcmfile | a DcmFileFormat object the filter should accept or reject. |
| OFBool DcmAttributeFilter::apply | ( | DcmItem & | item | ) | const |
|
inlinestaticprivate |
helper function to deduce the Iterator type from a container's begin() and end() method.
| Iterator | a type matching the STL's ForwardIterator concept. |
| begin | an iterator referring to the first element in the range of values. |
| end | an iterator referring to one past the end in the range of values. |
| OFBool DcmAttributeFilter::operator() | ( | DcmFileFormat & | dcmfile | ) | const |
convenience function to enable using DcmAttributeFilter as a functor.
| dcmfile | a DcmFileFormat object the filter should accept or reject. |
| OFBool DcmAttributeFilter::operator() | ( | DcmItem & | item | ) | const |
convenience function to enable using DcmAttributeFilter as a functor.
| item | a DcmItem the filter should accept or reject. |