Medical Imaging Interaction Toolkit
2023.04.00
Medical Imaging Interaction Toolkit
mitkIPreferencesStorage.h
Go to the documentation of this file.
1
/*============================================================================
2
3
The Medical Imaging Interaction Toolkit (MITK)
4
5
Copyright (c) German Cancer Research Center (DKFZ)
6
All rights reserved.
7
8
Use of this source code is governed by a 3-clause BSD license that can be
9
found in the LICENSE file.
10
11
============================================================================*/
12
13
#ifndef mitkIPreferencesStorage_h
14
#define mitkIPreferencesStorage_h
15
16
#include <
mitkIPreferences.h
>
17
18
#include <
MitkCoreExports.h
>
19
20
#include <filesystem>
21
#include <memory>
22
23
namespace
mitk
24
{
31
class
MITKCORE_EXPORT
IPreferencesStorage
32
{
33
public
:
39
explicit
IPreferencesStorage
(
const
std::filesystem::path& filename);
40
44
virtual
~
IPreferencesStorage
();
45
51
virtual
IPreferences
* GetRoot();
52
56
virtual
const
IPreferences
* GetRoot()
const
;
57
61
virtual
std::filesystem::path GetFilename()
const
;
62
68
virtual
void
Flush() = 0;
69
70
protected
:
71
std::filesystem::path
m_Filename
;
72
std::unique_ptr<IPreferences>
m_Root
;
73
};
74
}
75
76
#endif
mitk::IPreferencesStorage::m_Filename
std::filesystem::path m_Filename
Definition:
mitkIPreferencesStorage.h:71
mitk::IPreferencesStorage
The backend for persistent preferences.
Definition:
mitkIPreferencesStorage.h:31
mitk
DataCollection - Class to facilitate loading/accessing structured data.
Definition:
RenderingTests.dox:1
mitk::IPreferencesStorage::m_Root
std::unique_ptr< IPreferences > m_Root
Definition:
mitkIPreferencesStorage.h:72
MitkCoreExports.h
mitkIPreferences.h
mitk::IPreferences
Interface to application preferences.
Definition:
mitkIPreferences.h:50
MITKCORE_EXPORT
#define MITKCORE_EXPORT
Definition:
MitkCoreExports.h:15
src
MITK
Modules
Core
include
mitkIPreferencesStorage.h
Generated on Wed May 17 2023 16:26:08 for Medical Imaging Interaction Toolkit by
1.8.17