44 stream.seekg(0, std::ios::end);
45 descr.reserve(stream.tellg());
46 stream.seekg(0, std::ios::beg);
48 descr.assign((std::istreambuf_iterator<char>(stream)),
49 std::istreambuf_iterator<char>());
53 DICOMFileReader::Pointer reader = configurator->CreateFromUTF8ConfigString(descr);
55 return reader.GetPointer();
mitk::DICOMFileReader::Pointer GetReader(const mitk::StringList &relevantFiles) const override
static Module * GetModule(long id)
DataCollection - Class to facilitate loading/accessing structured data.
us::ServiceRegistration< IFileReader > RegisterService(us::ModuleContext *context=us::GetModuleContext())
ModuleResource GetResource(const std::string &path) const
std::vector< std::string > StringList
SimpleVolumeDICOMSeriesReaderService()