12 #ifndef mitkPersistenceService_h 13 #define mitkPersistenceService_h 19 #include <itkLightObject.h> 29 static std::string GetPersistencePropertyName();
31 static std::string GetPersistencePropertyListName();
33 static void LoadModule();
40 std::string GetDefaultPersistenceFile()
override;
44 bool RemovePropertyList(std::string &
id)
override;
46 std::string GetPersistenceNodePropertyName()
override;
48 DataStorage::SetOfObjects::Pointer GetDataNodes(
DataStorage *ds =
nullptr)
override;
50 bool Save(
const std::string &fileName =
"",
bool appendChanges =
false)
override;
52 bool Load(
const std::string &fileName =
"",
bool enforeReload =
true)
override;
54 void SetAutoLoadAndSave(
bool autoLoadAndSave)
override;
56 bool GetAutoLoadAndSave()
override;
62 bool RestorePropertyListsFromPersistentDataNodes(
const DataStorage *storage)
override;
71 std::map<std::string, mitk::PropertyList::Pointer> m_PropertyLists;
72 bool m_AutoLoadAndSave;
73 std::set<PropertyListReplacedObserver *> m_PropertyListReplacedObserver;
74 SceneIO::Pointer m_SceneIO;
75 PropertyListsXmlFileReaderAndWriter::Pointer m_PropertyListsXmlFileReaderAndWriter;
76 std::map<std::string, long int> m_FileNamesToModifiedTimes;
Data management class that handles 'was created by' relations.
DataCollection - Class to facilitate loading/accessing structured data.
Key-value list holding instances of BaseProperty.
#define MITKPERSISTENCE_EXPORT
static ModuleContext * GetModuleContext()
Returns the module context of the calling module.