Medical Imaging Interaction Toolkit
2023.12.00
Medical Imaging Interaction Toolkit
|
Implementation of the IPreferencesService interface. More...
#include <mitkPreferencesService.h>
Public Member Functions | |
PreferencesService () | |
~PreferencesService () override | |
void | InitializeStorage (const std::filesystem::path &filename) override |
Initialize the preferences backend. More... | |
void | UninitializeStorage (bool removeFile) override |
For internal use only. More... | |
IPreferences * | GetSystemPreferences () override |
Access preferences. More... | |
Public Member Functions inherited from mitk::IPreferencesService | |
virtual | ~IPreferencesService () |
If initialized, ask the preferences backend to flush preferences, i.e. write them to disk. More... | |
Implementation of the IPreferencesService interface.
Only used through the IPreferencesService interface.
Definition at line 31 of file mitkPreferencesService.h.
mitk::PreferencesService::PreferencesService | ( | ) |
|
override |
|
overridevirtual |
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.
Implements mitk::IPreferencesService.
|
overridevirtual |
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. |
Implements mitk::IPreferencesService.
|
overridevirtual |
For internal use only.
This method is only used for testing purposes. Do not use in production code.
Implements mitk::IPreferencesService.