| 45 | } |
| 46 | |
| 47 | std::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 | |
| 61 | mitk::PropertyList::Pointer mitk::PersistenceService::GetPropertyList(std::string &id, bool *existed) |
| 62 | { |