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

Method GetResource

Modules/CppMicroServices/src/usModule.cpp:266–275  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

264}
265
266ModuleResource Module::GetResource(const std::string& path) const
267{
268 if (!d->resourceContainer.IsValid())
269 {
270 return ModuleResource();
271 }
272 ModuleResource result(path, d->resourceContainer);
273 if (result) return result;
274 return ModuleResource();
275}
276
277std::vector<ModuleResource> Module::FindResources(const std::string& path, const std::string& filePattern,
278 bool recurse) const

Callers 15

GetReaderMethod · 0.80
AddConfigFromResourceMethod · 0.80
GetReaderMethod · 0.80
GetReaderMethod · 0.80
testTextResourceFunction · 0.80
testTextResourceAsBinaryFunction · 0.80
testInvalidResourceFunction · 0.80

Calls 2

ModuleResourceClass · 0.70
IsValidMethod · 0.45

Tested by 14

testTextResourceFunction · 0.64
testTextResourceAsBinaryFunction · 0.64
testInvalidResourceFunction · 0.64
testSpecialCharactersFunction · 0.64
testBinaryResourceFunction · 0.64
testCompressedResourceFunction · 0.64
testResourceTreeFunction · 0.64
testResourceOperatorsFunction · 0.64