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

Method GetDefaultPersistenceFile

Modules/Persistence/src/mitkPersistenceService.cpp:47–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45}
46
47std::string mitk::PersistenceService::GetDefaultPersistenceFile()
48{
49 this->Initialize();
50 std::string file = "PersistentData.xml";
51 us::ModuleContext *context = us::GetModuleContext();
52 std::string contextDataFile = context->GetDataFile(file);
53
54 if (!contextDataFile.empty())
55 {
56 file = contextDataFile;
57 }
58 return file;
59}
60
61mitk::PropertyList::Pointer mitk::PersistenceService::GetPropertyList(std::string &id, bool *existed)
62{

Callers 1

PersistenceTestMethod · 0.80

Calls 4

InitializeMethod · 0.95
GetModuleContextFunction · 0.85
GetDataFileMethod · 0.80
emptyMethod · 0.45

Tested by 1

PersistenceTestMethod · 0.64