12 #ifndef mitkPersistenceService_h
13 #define mitkPersistenceService_h
19 #include <itkLightObject.h>
42 mitk::PropertyList::Pointer
GetPropertyList(std::string &
id,
bool *existed =
nullptr)
override;
50 bool Save(
const std::string &fileName =
"",
bool appendChanges =
false)
override;
52 bool Load(
const std::string &fileName =
"",
bool enforeReload =
true)
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;
#define MITKPERSISTENCE_EXPORT
Data management class that handles 'was created by' relations.
void SetAutoLoadAndSave(bool autoLoadAndSave) override
mitk::PropertyList::Pointer GetPropertyList(std::string &id, bool *existed=nullptr) override
bool Save(const std::string &fileName="", bool appendChanges=false) override
bool RemovePropertyList(std::string &id) override
static std::string GetPersistencePropertyListName()
static std::string GetPersistencePropertyName()
std::string GetPersistenceNodePropertyName() override
void RemovePropertyListReplacedObserver(PropertyListReplacedObserver *observer) override
static us::ModuleContext * GetModuleContext()
DataStorage::SetOfObjects::Pointer GetDataNodes(DataStorage *ds=nullptr) override
bool GetAutoLoadAndSave() override
void AddPropertyListReplacedObserver(PropertyListReplacedObserver *observer) override
bool RestorePropertyListsFromPersistentDataNodes(const DataStorage *storage) override
bool Load(const std::string &fileName="", bool enforeReload=true) override
std::string GetDefaultPersistenceFile() override
~PersistenceService() override
Key-value list holding instances of BaseProperty.
Find image slices visible on a given plane.