33 ,m_Outputs( other.m_Outputs )
43 m_Input = other.m_Input;
44 m_Outputs = other.m_Outputs;
67 return m_Outputs.size();
81 m_Outputs.resize(numberOfOutputs);
88 if (index < m_Outputs.size())
90 m_Outputs[index] = output;
95 ss <<
"Index " << index <<
" out of range (" << m_Outputs.size() <<
" indices reserved)";
96 throw std::invalid_argument( ss.str() );
111 if (index < m_Outputs.size())
113 return m_Outputs[index];
117 std::stringstream ss;
118 ss <<
"Index " << index <<
" out of range (" << m_Outputs.size() <<
" indices reserved)";
119 throw std::invalid_argument( ss.str() );
const DICOMDatasetList & GetInput() const
Input for sorting.
The sorting/splitting building-block of DICOMITKSeriesGDCMReader.
const DICOMDatasetList & GetOutput(unsigned int index) const
Output of the sorting process.
virtual ~DICOMDatasetSorter()
void SetNumberOfOutputs(unsigned int numberOfOutputs)
void SetInput(DICOMDatasetList filenames)
Input for sorting.
void SetOutput(unsigned int index, const DICOMDatasetList &output)
DICOMDatasetSorter & operator=(const DICOMDatasetSorter &other)
std::vector< DICOMDatasetAccess * > DICOMDatasetList
unsigned int GetNumberOfOutputs() const
Output of the sorting process.