Medical Imaging Interaction Toolkit  2018.4.99-f51274ea
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 (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 MITKIDATASTORAGESERVICE_H_
14 #define MITKIDATASTORAGESERVICE_H_
15 
18 
19 #include <string>
20 
21 #include <QtPlugin>
22 
23 namespace mitk
24 {
25 
30 {
31  virtual ~IDataStorageService();
32 
33  virtual IDataStorageReference::Pointer CreateDataStorage(const QString& label) = 0;
34  virtual std::vector<IDataStorageReference::Pointer> GetDataStorageReferences() const = 0;
35 
36  virtual IDataStorageReference::Pointer GetDefaultDataStorage() const = 0;
37 
38  virtual IDataStorageReference::Pointer GetDataStorage() const = 0;
39 
40  virtual IDataStorageReference::Pointer GetActiveDataStorage() const = 0;
41  virtual void SetActiveDataStorage(IDataStorageReference::Pointer dataStorageRef) = 0;
42 
43  virtual void AddDataStorageReference(IDataStorageReference::Pointer dataStorageRef) = 0;
44  virtual bool RemoveDataStorageReference(IDataStorageReference::Pointer dataStorageRef) = 0;
45 };
46 
47 }
48 
49 Q_DECLARE_INTERFACE(mitk::IDataStorageService, "org.mitk.service.IDataStorageService")
50 
51 #endif /*MITKIDATASTORAGESERVICE_H_*/
#define MITK_CORE_SERVICES_PLUGIN
DataCollection - Class to facilitate loading/accessing structured data.