The backend for persistent preferences.
More...
#include <mitkIPreferencesStorage.h>
The backend for persistent preferences.
This interface and its implementation is internally used by the IPreferencesService to hold the preferences root node and to store and restore the preferences from disk.
Definition at line 31 of file mitkIPreferencesStorage.h.
◆ IPreferencesStorage()
mitk::IPreferencesStorage::IPreferencesStorage |
( |
const std::filesystem::path & |
filename | ) |
|
|
explicit |
Constructor. Load preferences from the specified file.
If the file does not yet exist, create an empty preferences storage.
◆ ~IPreferencesStorage()
virtual mitk::IPreferencesStorage::~IPreferencesStorage |
( |
| ) |
|
|
virtual |
Destructor. Write preferences to disk for the last time.
◆ Flush()
virtual void mitk::IPreferencesStorage::Flush |
( |
| ) |
|
|
pure virtual |
◆ GetFilename()
virtual std::filesystem::path mitk::IPreferencesStorage::GetFilename |
( |
| ) |
const |
|
virtual |
Get the filename of the preferences storage.
◆ GetRoot() [1/2]
virtual IPreferences* mitk::IPreferencesStorage::GetRoot |
( |
| ) |
|
|
virtual |
Get the preferences root node.
The preferences root node is owned by the preferences storage.
◆ GetRoot() [2/2]
virtual const IPreferences* mitk::IPreferencesStorage::GetRoot |
( |
| ) |
const |
|
virtual |
◆ m_Filename
std::filesystem::path mitk::IPreferencesStorage::m_Filename |
|
protected |
◆ m_Root
std::unique_ptr<IPreferences> mitk::IPreferencesStorage::m_Root |
|
protected |
The documentation for this class was generated from the following file: