Medical Imaging Interaction Toolkit  2023.04.00
Medical Imaging Interaction Toolkit
mitkIPropertyOwner.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 mitkIPropertyOwner_h
14 #define mitkIPropertyOwner_h
15 
16 #include <MitkCoreExports.h>
17 #include <mitkIPropertyProvider.h>
18 
19 namespace mitk
20 {
23  {
24  public:
25  ~IPropertyOwner() override;
26 
39  virtual BaseProperty *GetNonConstProperty(const std::string &propertyKey,
40  const std::string &contextName = "",
41  bool fallBackOnDefaultContext = true) = 0;
42 
57  virtual void SetProperty(const std::string &propertyKey,
58  BaseProperty *property,
59  const std::string &contextName = "",
60  bool fallBackOnDefaultContext = false) = 0;
61 
75  virtual void RemoveProperty(const std::string &propertyKey,
76  const std::string &contextName = "",
77  bool fallBackOnDefaultContext = false) = 0;
78  };
79 } // namespace mitk
80 
81 #endif
mitk::BaseProperty
Abstract base class for properties.
Definition: mitkBaseProperty.h:35
mitk
DataCollection - Class to facilitate loading/accessing structured data.
Definition: RenderingTests.dox:1
MitkCoreExports.h
mitkIPropertyProvider.h
mitk::IPropertyProvider
Definition: mitkIPropertyProvider.h:24
mitk::IPropertyOwner
Definition: mitkIPropertyOwner.h:22
MITKCORE_EXPORT
#define MITKCORE_EXPORT
Definition: MitkCoreExports.h:15