| 118 | } |
| 119 | |
| 120 | void |
| 121 | mitk::DICOMFileReader |
| 122 | ::SetOutput(unsigned int index, const mitk::DICOMImageBlockDescriptor& output) |
| 123 | { |
| 124 | if (index < m_Outputs.size()) |
| 125 | { |
| 126 | m_Outputs[index] = output; |
| 127 | } |
| 128 | else |
| 129 | { |
| 130 | std::stringstream ss; |
| 131 | ss << "Index " << index << " out of range (" << m_Outputs.size() << " indices reserved)"; |
| 132 | throw std::invalid_argument( ss.str() ); |
| 133 | } |
| 134 | } |
| 135 | |
| 136 | void |
| 137 | mitk::DICOMFileReader |