MCPcopy Create free account
hub / github.com/MITK/MITK / AddConfigFromResource

Method AddConfigFromResource

Modules/DICOM/src/mitkDICOMFileReaderSelector.cpp:71–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69}
70
71void
72mitk::DICOMFileReaderSelector
73::AddConfigFromResource(us::ModuleResource& resource)
74{
75 if (resource.IsValid())
76 {
77 us::ModuleResourceStream stream(resource);
78
79 // read all into string s
80 std::string s;
81
82 stream.seekg(0, std::ios::end);
83 s.reserve(stream.tellg());
84 stream.seekg(0, std::ios::beg);
85
86 s.assign((std::istreambuf_iterator<char>(stream)),
87 std::istreambuf_iterator<char>());
88
89 this->AddConfig(s);
90 }
91}
92
93void
94mitk::DICOMFileReaderSelector

Callers 3

LoadBuiltIn3DConfigsMethod · 0.95
GetReaderMethod · 0.80
GetReaderMethod · 0.80

Calls 5

AddConfigMethod · 0.95
GetModuleContextFunction · 0.85
GetResourceMethod · 0.80
IsValidMethod · 0.45
GetModuleMethod · 0.45

Tested by

no test coverage detected