Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkIFileWriter.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 IFileWriter_H_HEADER_INCLUDED_C1E7E521
18 #define IFileWriter_H_HEADER_INCLUDED_C1E7E521
19 
20 #include <mitkIFileIO.h>
21 
22 #include <mitkServiceInterface.h>
23 
24 namespace mitk
25 {
26  class BaseData;
27 }
28 
29 namespace mitk
30 {
61  {
62  virtual ~IFileWriter();
63 
68  virtual void SetInput(const BaseData *data) = 0;
69 
74  virtual const BaseData *GetInput() const = 0;
75 
84  virtual void SetOutputLocation(const std::string &location) = 0;
85 
93  virtual std::string GetOutputLocation() const = 0;
94 
104  virtual void SetOutputStream(const std::string &location, std::ostream *os) = 0;
105 
110  virtual std::ostream *GetOutputStream() const = 0;
111 
122  virtual void Write() = 0;
123 
131  static std::string PROP_BASEDATA_TYPE();
132  };
133 
134 } // namespace mitk
135 
136 MITK_DECLARE_SERVICE_INTERFACE(mitk::IFileWriter, "org.mitk.IFileWriter")
137 
138 #endif /* IFileWriter_H_HEADER_INCLUDED_C1E7E521 */
#define MITKCORE_EXPORT
Base of all data objects.
Definition: mitkBaseData.h:39
DataCollection - Class to facilitate loading/accessing structured data.
Common interface for all MITK file reader and writer.
Definition: mitkIFileIO.h:39
The common interface of all MITK file writers.
MITK_DECLARE_SERVICE_INTERFACE(mitk::ISimulationService,"org.mitk.ISimulationService")