Medical Imaging Interaction Toolkit  2018.4.99-ae21cdc4
Medical Imaging Interaction Toolkit
mitkIPropertyPersistence.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 mitkIPropertyPersistence_h
14 #define mitkIPropertyPersistence_h
15 
17 #include <mitkServiceInterface.h>
18 
19 namespace mitk
20 {
35  {
36  public:
37  virtual ~IPropertyPersistence();
38 
39  using InfoResultType = std::list<PropertyPersistenceInfo::ConstPointer>;
41 
54  virtual bool AddInfo(const PropertyPersistenceInfo *info, bool overwrite = false) = 0;
55 
61  virtual InfoResultType GetInfo(const std::string &propertyName, bool allowNameRegEx = true) const = 0;
62 
75  virtual InfoResultType GetInfo(const std::string &propertyName,
76  const MimeTypeNameType &mime,
77  bool allowMimeWildCard = false,
78  bool allowNameRegEx = true) const = 0;
79 
86  virtual InfoResultType GetInfoByKey(const std::string &persistenceKey, bool allowKeyRegEx = true) const = 0;
87 
94  virtual bool HasInfo(const std::string &propertyName, bool allowNameRegEx = true) const = 0;
95 
98  virtual void RemoveAllInfo() = 0;
99 
104  virtual void RemoveInfo(const std::string &propertyName) = 0;
105 
111  virtual void RemoveInfo(const std::string &propertyName, const MimeTypeNameType &mime) = 0;
112  };
113 }
114 
115 MITK_DECLARE_SERVICE_INTERFACE(mitk::IPropertyPersistence, "org.mitk.IPropertyPersistence")
116 
117 #endif
#define MITK_DECLARE_SERVICE_INTERFACE(IFace, IId)
#define MITKCORE_EXPORT
DataCollection - Class to facilitate loading/accessing structured data.
Property persistence info. This class is used to specify the way the persistance of a property of Bas...
Interface of property persistence service.
std::list< PropertyPersistenceInfo::ConstPointer > InfoResultType
PropertyPersistenceInfo::MimeTypeNameType MimeTypeNameType