Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkLegacyFileWriterService.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 LegacyFileWriterService_H_HEADER_INCLUDED_C1E7E521
18 #define LegacyFileWriterService_H_HEADER_INCLUDED_C1E7E521
19 
20 #include <mitkAbstractFileWriter.h>
21 #include <mitkFileWriter.h>
22 
23 namespace mitk
24 {
26  {
27  public:
28  LegacyFileWriterService(mitk::FileWriter::Pointer legacyWriter, const std::string &description);
29 
31 
33 
34  virtual void Write() override;
35 
36  virtual ConfidenceLevel GetConfidenceLevel() const override;
37 
38  private:
39  LegacyFileWriterService *Clone() const override;
40 
41  mitk::FileWriter::Pointer m_LegacyWriter;
42 
43  us::ServiceRegistration<IFileWriter> m_ServiceRegistration;
44  };
45 
46 } // namespace mitk
47 
48 #endif /* LegacyFileWriterService_H_HEADER_INCLUDED_C1E7E521 */
virtual void Write() override
Write the base data to the specified location or output stream.
LegacyFileWriterService(mitk::FileWriter::Pointer legacyWriter, const std::string &description)
virtual ConfidenceLevel GetConfidenceLevel() const override
The confidence level of the reader or writer implementation.
DataCollection - Class to facilitate loading/accessing structured data.
virtual void Write() override=0
Write the base data to the specified location or output stream.
ConfidenceLevel
A confidence level describing the confidence of the reader or writer in handling the given data...
Definition: mitkIFileIO.h:49
Base class for writing mitk::BaseData objects to files or streams.