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
mitkIFileReader.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 IFileReader_H_HEADER_INCLUDED_C1E7E521
18 #define IFileReader_H_HEADER_INCLUDED_C1E7E521
19 
20 #include <mitkDataStorage.h>
21 #include <mitkIFileIO.h>
22 
23 #include <mitkServiceInterface.h>
24 
25 namespace mitk
26 {
27  class BaseData;
28 }
29 
30 namespace itk
31 {
32  template <class T>
33  class SmartPointer;
34 }
35 
36 namespace mitk
37 {
65  {
66  virtual ~IFileReader();
67 
72  virtual void SetInput(const std::string &location) = 0;
73 
83  virtual void SetInput(const std::string &location, std::istream *is) = 0;
84 
89  virtual std::string GetInputLocation() const = 0;
90 
95  virtual std::istream *GetInputStream() const = 0;
96 
108  virtual std::vector<itk::SmartPointer<BaseData>> Read() = 0;
109 
124  };
125 
126 } // namespace mitk
127 
128 MITK_DECLARE_SERVICE_INTERFACE(mitk::IFileReader, "org.mitk.IFileReader")
129 
130 #endif /* IFileReader_H_HEADER_INCLUDED_C1E7E521 */
Data management class that handles 'was created by' relations.
itk::SmartPointer< Self > Pointer
#define MITKCORE_EXPORT
DataCollection - Class to facilitate loading/accessing structured data.
Common interface for all MITK file reader and writer.
Definition: mitkIFileIO.h:39
The common interface for all MITK file readers.
MITK_DECLARE_SERVICE_INTERFACE(mitk::ISimulationService,"org.mitk.ISimulationService")