Medical Imaging Interaction Toolkit  2018.04.99-aba3194f
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
#define MITKCORE_EXPORT
DataCollection - Class to facilitate loading/accessing structured data.
Abstract base class for properties.