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