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

Method HasDataStorage

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

Source from the content-addressed store, hash-verified

199}
200
201bool DataStorageService::HasDataStorage(const std::string& label) const
202{
203 std::lock_guard<std::mutex> lock(m_Mutex);
204
205 if (label == DEFAULT_LABEL || m_DefaultStorage.GetLabel() == label)
206 {
207 return true;
208 }
209
210 return this->FindStorageByLabel(label).IsValid();
211}
212
213bool DataStorageService::RemoveDataStorage(const std::string& label)
214{

Calls 3

FindStorageByLabelMethod · 0.95
GetLabelMethod · 0.45
IsValidMethod · 0.45