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

Method SetAutoLoadAndSave

Modules/Persistence/src/mitkPersistenceService.cpp:255–264  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

253}
254
255void mitk::PersistenceService::SetAutoLoadAndSave(bool autoLoadAndSave)
256{
257 this->Initialize();
258 m_AutoLoadAndSave = autoLoadAndSave;
259 // std::string id = PERSISTENCE_PROPERTYLIST_NAME; //see bug 17729
260 std::string id = GetPersistencePropertyListName();
261 mitk::PropertyList::Pointer propList = this->GetPropertyList(id);
262 propList->Set("m_AutoLoadAndSave", m_AutoLoadAndSave);
263 this->Save();
264}
265
266void mitk::PersistenceService::AddPropertyListReplacedObserver(PropertyListReplacedObserver *observer)
267{

Callers 1

InitializeMethod · 0.95

Calls 4

InitializeMethod · 0.95
GetPropertyListMethod · 0.95
SaveMethod · 0.95
SetMethod · 0.45

Tested by

no test coverage detected