29 ,m_Outputs( other.m_Outputs )
39 m_Input = other.m_Input;
40 m_Outputs = other.m_Outputs;
63 return m_Outputs.size();
77 m_Outputs.resize(numberOfOutputs);
84 if (index < m_Outputs.size())
86 m_Outputs[index] = output;
91 ss <<
"Index " << index <<
" out of range (" << m_Outputs.size() <<
" indices reserved)";
92 throw std::invalid_argument( ss.str() );
107 if (index < m_Outputs.size())
109 return m_Outputs[index];
113 std::stringstream ss;
114 ss <<
"Index " << index <<
" out of range (" << m_Outputs.size() <<
" indices reserved)";
115 throw std::invalid_argument( ss.str() );
~DICOMDatasetSorter() override
unsigned int GetNumberOfOutputs() const
Output of the sorting process.
The sorting/splitting building-block of DICOMITKSeriesGDCMReader.
void SetNumberOfOutputs(unsigned int numberOfOutputs)
const DICOMDatasetList & GetInput() const
Input for sorting.
const DICOMDatasetList & GetOutput(unsigned int index) const
Output of the sorting process.
void SetInput(DICOMDatasetList filenames)
Input for sorting.
void SetOutput(unsigned int index, const DICOMDatasetList &output)
DICOMDatasetSorter & operator=(const DICOMDatasetSorter &other)
std::vector< DICOMDatasetAccess * > DICOMDatasetList