16 #ifndef mitkPersistenceService_h
17 #define mitkPersistenceService_h
23 #include <itkLightObject.h>
33 static std::string GetPersistencePropertyName();
35 static std::string GetPersistencePropertyListName();
37 static void LoadModule();
44 std::string GetDefaultPersistenceFile()
override;
48 bool RemovePropertyList(std::string &
id)
override;
50 std::string GetPersistenceNodePropertyName()
override;
54 bool Save(
const std::string &fileName =
"",
bool appendChanges =
false)
override;
56 bool Load(
const std::string &fileName =
"",
bool enforeReload =
true)
override;
58 void SetAutoLoadAndSave(
bool autoLoadAndSave)
override;
60 bool GetAutoLoadAndSave()
override;
66 bool RestorePropertyListsFromPersistentDataNodes(
const DataStorage *storage)
override;
75 std::map<std::string, mitk::PropertyList::Pointer> m_PropertyLists;
76 bool m_AutoLoadAndSave;
77 std::set<PropertyListReplacedObserver *> m_PropertyListReplacedObserver;
80 std::map<std::string, long int> m_FileNamesToModifiedTimes;
Data management class that handles 'was created by' relations.
itk::SmartPointer< Self > Pointer
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.