Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #ifndef mitkIPropertyPersistence_h
18 #define mitkIPropertyPersistence_h
19 
21 #include <mitkServiceInterface.h>
22 
23 namespace mitk
24 {
39  {
40  public:
41  virtual ~IPropertyPersistence();
42 
43  using InfoResultType = std::list<PropertyPersistenceInfo::ConstPointer>;
45 
58  virtual bool AddInfo(const PropertyPersistenceInfo *info, bool overwrite = false) = 0;
59 
65  virtual InfoResultType GetInfo(const std::string &propertyName, bool allowNameRegEx = true) const = 0;
66 
79  virtual InfoResultType GetInfo(const std::string &propertyName,
80  const MimeTypeNameType &mime,
81  bool allowMimeWildCard = false,
82  bool allowNameRegEx = true) const = 0;
83 
90  virtual InfoResultType GetInfoByKey(const std::string &persistenceKey, bool allowKeyRegEx = true) const = 0;
91 
98  virtual bool HasInfo(const std::string &propertyName, bool allowNameRegEx = true) const = 0;
99 
102  virtual void RemoveAllInfo() = 0;
103 
108  virtual void RemoveInfo(const std::string &propertyName) = 0;
109 
115  virtual void RemoveInfo(const std::string &propertyName, const MimeTypeNameType &mime) = 0;
116  };
117 }
118 
119 MITK_DECLARE_SERVICE_INTERFACE(mitk::IPropertyPersistence, "org.mitk.IPropertyPersistence")
120 
121 #endif
#define MITKCORE_EXPORT
DataCollection - Class to facilitate loading/accessing structured data.
static void info(const char *fmt,...)
Definition: svm.cpp:100
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
MITK_DECLARE_SERVICE_INTERFACE(mitk::ISimulationService,"org.mitk.ISimulationService")
PropertyPersistenceInfo::MimeTypeNameType MimeTypeNameType