Medical Imaging Interaction Toolkit  2018.4.99-bb4bf944
Medical Imaging Interaction Toolkit
mitkIModelProvider.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 __I_MODEL_FIT_PROVIDER_H
14 #define __I_MODEL_FIT_PROVIDER_H
15 
16 
17 #include <mitkServiceInterface.h>
18 
19 namespace mitk
20 {
21  class BaseData;
22 }
23 
24 namespace itk
25 {
26  template <class T>
27  class SmartPointer;
28 }
29 
30 namespace mitk
31 {
47  struct MITKCORE_EXPORT IFileReader : public IFileIO
48  {
49  virtual ~IFileReader();
50 
55  virtual void SetInput(const std::string &location) = 0;
56 
66  virtual void SetInput(const std::string &location, std::istream *is) = 0;
67 
72  virtual std::string GetInputLocation() const = 0;
73 
78  virtual std::istream *GetInputStream() const = 0;
79 
91  virtual std::vector<itk::SmartPointer<BaseData>> Read() = 0;
92 
106  virtual DataStorage::SetOfObjects::Pointer Read(mitk::DataStorage &ds) = 0;
107  };
108 
109 } // namespace mitk
110 
111 MITK_DECLARE_SERVICE_INTERFACE(mitk::IFileReader, "org.mitk.IFileReader")
112 
113 #endif /* IFileReader_H_HEADER_INCLUDED_C1E7E521 */
#define MITK_DECLARE_SERVICE_INTERFACE(IFace, IId)
Data management class that handles &#39;was created by&#39; relations.
#define MITKCORE_EXPORT
DataCollection - Class to facilitate loading/accessing structured data.
The common interface for all MITK file readers.