67 os << indent <<
"Sort alphabetically based on filenames" << std::endl;
83 std::sort( output.begin(), output.end(),
FilenameSort() );
85 this->SetNumberOfOutputs(1);
86 this->SetOutput(0, output);
virtual bool operator==(const DICOMDatasetSorter &other) const override
The sorting/splitting building-block of DICOMITKSeriesGDCMReader.
std::vector< DICOMTag > DICOMTagList
virtual ~DICOMFilenameSorter()
virtual void PrintConfiguration(std::ostream &os, const std::string &indent="") const override
Print configuration details into stream.
virtual void Sort() override
Sort input datasets into one or multiple outputs.
Interface to datasets that is presented to sorting classes such as DICOMDatasetSorter.
DICOMFilenameSorter & operator=(const DICOMFilenameSorter &other)
virtual DICOMTagList GetTagsOfInterest() override
sort files based on filename (last resort).
bool operator()(const mitk::DICOMDatasetAccess *left, const mitk::DICOMDatasetAccess *right)
virtual std::string GetFilenameIfAvailable() const =0
Return a filename if possible. If DICOM is not read from file but from somewhere else (network...
DICOMDatasetSorter & operator=(const DICOMDatasetSorter &other)
std::vector< DICOMDatasetAccess * > DICOMDatasetList