Medical Imaging Interaction Toolkit  2025.12.02
Medical Imaging Interaction Toolkit
mitkPreferencesService.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 mitkPreferencesService_h
14 #define mitkPreferencesService_h
15 
17 
18 #include <memory>
19 
20 namespace mitk
21 {
22  class IPreferencesStorage;
23 
32  {
33  public:
35  ~PreferencesService() override;
36 
37  void InitializeStorage(const fs::path& filename) override;
38  void UninitializeStorage(bool removeFile) override;
40 
41  private:
42  std::unique_ptr<IPreferencesStorage> m_Storage;
43  };
44 }
45 
46 #endif
A service for persistent application preferences.
Interface to application preferences.
Implementation of the IPreferencesService interface.
void InitializeStorage(const fs::path &filename) override
Initialize the preferences backend.
~PreferencesService() override
void UninitializeStorage(bool removeFile) override
For internal use only.
IPreferences * GetSystemPreferences() override
Access preferences.
Find image slices visible on a given plane.