Medical Imaging Interaction Toolkit  2018.4.99-ef453c4b
Medical Imaging Interaction Toolkit
mitkDICOMFilenameSorter.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef mitkDICOMFilenameSorter_h
14 #define mitkDICOMFilenameSorter_h
15 
16 #include "mitkDICOMDatasetSorter.h"
17 
18 namespace mitk
19 {
20 
26 {
27  public:
28 
30 
31  itkNewMacro( DICOMFilenameSorter );
32 
34 
35  void Sort() override;
36 
37  void PrintConfiguration(std::ostream& os, const std::string& indent = "") const override;
38 
39  bool operator==(const DICOMDatasetSorter& other) const override;
40 
41  protected:
42 
43  struct FilenameSort
44  {
45  bool operator() (const mitk::DICOMDatasetAccess* left, const mitk::DICOMDatasetAccess* right);
46  };
47 
49  ~DICOMFilenameSorter() override;
50 
53 };
54 
55 }
56 
57 #endif
bool operator==(const DICOMDatasetSorter &other) const override
The sorting/splitting building-block of DICOMITKSeriesGDCMReader.
std::vector< DICOMTag > DICOMTagList
Definition: mitkDICOMTag.h:59
void PrintConfiguration(std::ostream &os, const std::string &indent="") const override
Print configuration details into stream.
DataCollection - Class to facilitate loading/accessing structured data.
void Sort() override
Sort input datasets into one or multiple outputs.
Interface to datasets that is presented to sorting classes such as DICOMDatasetSorter.
mitkClassMacro(DICOMFilenameSorter, DICOMDatasetSorter)
DICOMFilenameSorter & operator=(const DICOMFilenameSorter &other)
DICOMTagList GetTagsOfInterest() override
Return the tags of interest (to facilitate scanning)
sort files based on filename (last resort).
bool operator()(const mitk::DICOMDatasetAccess *left, const mitk::DICOMDatasetAccess *right)