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

Method GetActiveDataStorage

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

Source from the content-addressed store, hash-verified

37}
38
39DataStorage::Pointer DataStorageService::GetActiveDataStorage() const
40{
41 std::lock_guard<std::mutex> lock(m_Mutex);
42
43 if (!m_ActiveLabel.empty())
44 {
45 auto info = this->FindStorageByLabel(m_ActiveLabel);
46 if (info.IsValid())
47 {
48 return info.GetStorage();
49 }
50 }
51 return m_DefaultStorage.GetStorage();
52}
53
54DataStorageReference DataStorageService::GetActiveDataStorageReference() const
55{

Callers 8

ConnectDataStorageMethod · 0.80
InternalOpenFilesMethod · 0.80
RunMethod · 0.80
GetDataStorageFunction · 0.80
GetDataStorageFunction · 0.80
GetDataStorageMethod · 0.80

Calls 4

FindStorageByLabelMethod · 0.95
emptyMethod · 0.45
IsValidMethod · 0.45
GetStorageMethod · 0.45