Medical Imaging Interaction Toolkit
2023.04.00
Medical Imaging Interaction Toolkit
|
A service for persistent application preferences. More...
#include <mitkIPreferencesService.h>
Public Member Functions | |
virtual | ~IPreferencesService () |
If initialized, ask the preferences backend to flush preferences, i.e. write them to disk. More... | |
virtual void | InitializeStorage (const std::filesystem::path &filename)=0 |
Initialize the preferences backend. More... | |
virtual void | UninitializeStorage (bool removeFile=true)=0 |
For internal use only. More... | |
virtual IPreferences * | GetSystemPreferences ()=0 |
Access preferences. More... | |
A service for persistent application preferences.
Definition at line 33 of file mitkIPreferencesService.h.
|
virtual |
If initialized, ask the preferences backend to flush preferences, i.e. write them to disk.
|
pure virtual |
Access preferences.
The system preferences should be considered as resource and as such their lifetime is coupled to this service. It is recommended to access the preferences always through this method as needed instead of keeping a pointer permanently.
Implemented in mitk::PreferencesService.
|
pure virtual |
Initialize the preferences backend.
Load preferences from the specified file. If the file does not yet exist, create an empty preferences storage.
This method must be called once at the start of an application before accessing any preferences via GetSystemPreferences().
Exception | The method is called more than once. |
Implemented in mitk::PreferencesService.
|
pure virtual |
For internal use only.
This method is only used for testing purposes. Do not use in production code.
Implemented in mitk::PreferencesService.