Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkIDataStorageService.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 MITKIDATASTORAGESERVICE_H_
18 #define MITKIDATASTORAGESERVICE_H_
19 
22 
23 #include <string>
24 
25 #include <QtPlugin>
26 
27 namespace mitk
28 {
29 
34 {
35  virtual ~IDataStorageService();
36 
37  virtual IDataStorageReference::Pointer CreateDataStorage(const QString& label) = 0;
38  virtual std::vector<IDataStorageReference::Pointer> GetDataStorageReferences() const = 0;
39 
40  virtual IDataStorageReference::Pointer GetDefaultDataStorage() const = 0;
41 
43 
44  virtual IDataStorageReference::Pointer GetActiveDataStorage() const = 0;
45  virtual void SetActiveDataStorage(IDataStorageReference::Pointer dataStorageRef) = 0;
46 
47  virtual void AddDataStorageReference(IDataStorageReference::Pointer dataStorageRef) = 0;
48  virtual bool RemoveDataStorageReference(IDataStorageReference::Pointer dataStorageRef) = 0;
49 };
50 
51 }
52 
53 Q_DECLARE_INTERFACE(mitk::IDataStorageService, "org.mitk.service.IDataStorageService")
54 
55 #endif /*MITKIDATASTORAGESERVICE_H_*/
#define MITK_CORE_SERVICES_PLUGIN
DataCollection - Class to facilitate loading/accessing structured data.
static mitk::DataStorage::Pointer GetDataStorage()