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

Method FindStorageByLabel

Modules/Core/src/DataManagement/mitkDataStorageService.cpp:258–269  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

256}
257
258DataStorageReference DataStorageService::FindStorageByLabel(const std::string& label) const
259{
260 // Note: caller must hold m_Mutex
261 for (const auto& info : m_Storages)
262 {
263 if (info.GetLabel() == label)
264 {
265 return info;
266 }
267 }
268 return DataStorageReference();
269}
270
271} // namespace mitk

Callers 7

GetActiveDataStorageMethod · 0.95
SetActiveDataStorageMethod · 0.95
AddDataStorageMethod · 0.95
CreateDataStorageMethod · 0.95
HasDataStorageMethod · 0.95

Calls 1

GetLabelMethod · 0.45

Tested by

no test coverage detected