#include <mitkPersistenceService.h>
◆ PersistenceService()
mitk::PersistenceService::PersistenceService |
( |
| ) |
|
◆ ~PersistenceService()
mitk::PersistenceService::~PersistenceService |
( |
| ) |
|
|
override |
◆ AddPropertyListReplacedObserver()
◆ Clear()
void mitk::PersistenceService::Clear |
( |
| ) |
|
◆ GetAutoLoadAndSave()
bool mitk::PersistenceService::GetAutoLoadAndSave |
( |
| ) |
|
|
overridevirtual |
◆ GetDataNodes()
DataStorage::SetOfObjects::Pointer mitk::PersistenceService::GetDataNodes |
( |
DataStorage * |
ds = nullptr | ) |
|
|
overridevirtual |
◆ GetDefaultPersistenceFile()
std::string mitk::PersistenceService::GetDefaultPersistenceFile |
( |
| ) |
|
|
overridevirtual |
◆ GetModuleContext()
static us::ModuleContext* mitk::PersistenceService::GetModuleContext |
( |
| ) |
|
|
static |
◆ GetPersistenceNodePropertyName()
std::string mitk::PersistenceService::GetPersistenceNodePropertyName |
( |
| ) |
|
|
overridevirtual |
◆ GetPersistencePropertyListName()
static std::string mitk::PersistenceService::GetPersistencePropertyListName |
( |
| ) |
|
|
static |
◆ GetPersistencePropertyName()
static std::string mitk::PersistenceService::GetPersistencePropertyName |
( |
| ) |
|
|
static |
◆ GetPropertyList()
◆ Load()
bool mitk::PersistenceService::Load |
( |
const std::string & |
fileName = "" , |
|
|
bool |
enforeReload = true |
|
) |
| |
|
overridevirtual |
Load PropertyLists from fileName. If fileName is empty, a special file in the users home directory will be used. If enforeReload is false, the service will take care of modified time flags, i.e. it will not load a file that was loaded before and did not change in the meantime or that was modified by the service itself ATTENTION: If there are PropertyLists with the same id contained in the file, existing PropertyLists will be overwritten!
- See also
- AddPropertyListReplacedObserver()
- Returns
- false if an error occurred (cannot load from file), true otherwise
Implements mitk::IPersistenceService.
◆ LoadModule()
static void mitk::PersistenceService::LoadModule |
( |
| ) |
|
|
static |
◆ RemovePropertyList()
bool mitk::PersistenceService::RemovePropertyList |
( |
std::string & |
id | ) |
|
|
overridevirtual |
◆ RemovePropertyListReplacedObserver()
◆ RestorePropertyListsFromPersistentDataNodes()
bool mitk::PersistenceService::RestorePropertyListsFromPersistentDataNodes |
( |
const DataStorage * |
storage | ) |
|
|
overridevirtual |
Searches storage for persistent DataNodes, extracts and inserts the appended property lists to this service
- Returns
- true if at least one node was found from which a PropertyList could be restored
Implements mitk::IPersistenceService.
◆ Save()
bool mitk::PersistenceService::Save |
( |
const std::string & |
fileName = "" , |
|
|
bool |
appendChanges = false |
|
) |
| |
|
overridevirtual |
Save the current PropertyLists to fileName. If fileName is empty, a special file in the users home directory will be used. if appendchanges is true, the file will not replaced but first loaded, then overwritten and then replaced
- Returns
- false if an error occurred (cannot write to file), true otherwise
Implements mitk::IPersistenceService.
◆ SetAutoLoadAndSave()
void mitk::PersistenceService::SetAutoLoadAndSave |
( |
bool |
autoLoadAndSave | ) |
|
|
overridevirtual |
Using SetAutoLoadAndSave(true) will cause the service to load/save the property lists at application start/stop.
Implements mitk::IPersistenceService.
◆ Unitialize()
void mitk::PersistenceService::Unitialize |
( |
| ) |
|
The documentation for this class was generated from the following file: