Medical Imaging Interaction Toolkit  2025.12.02
Medical Imaging Interaction Toolkit
mitkIFileIO.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 mitkIFileIO_h
14 #define mitkIFileIO_h
15 
16 #include <MitkCoreExports.h>
17 #include <mitkMessage.h>
18 
19 #include <usAny.h>
20 
21 #include <map>
22 #include <string>
23 
24 namespace mitk
25 {
36  {
37  // The order of the enum values is important: it is used
38  // to rank writer implementations
39 
46  {
47  Unsupported = 0,
48  PartiallySupported = 8,
49  Supported = 16
50  };
51 
69  typedef std::map<std::string, us::Any> Options;
70 
72 
73  virtual ~IFileIO();
74 
81  virtual ConfidenceLevel GetConfidenceLevel() const = 0;
82 
88  virtual Options GetOptions() const = 0;
89 
90  virtual us::Any GetOption(const std::string &name) const = 0;
91 
92  virtual void SetOptions(const Options &options) = 0;
93 
94  virtual void SetOption(const std::string &name, const us::Any &value) = 0;
95 
96  virtual void AddProgressCallback(const ProgressCallback &callback) = 0;
97 
98  virtual void RemoveProgressCallback(const ProgressCallback &callback) = 0;
99 
107  static std::string PROP_DESCRIPTION();
108 
116  static std::string PROP_MIMETYPE();
117  };
118 }
119 
120 #endif
#define MITKCORE_EXPORT
Definition: usAny.h:164
Find image slices visible on a given plane.
Common interface for all MITK file reader and writer.
Definition: mitkIFileIO.h:36
static std::string PROP_MIMETYPE()
Service property name for the mime-type associated with this file writer.
ConfidenceLevel
A confidence level describing the confidence of the reader or writer in handling the given data.
Definition: mitkIFileIO.h:46
std::map< std::string, us::Any > Options
Options for reading or writing data.
Definition: mitkIFileIO.h:69
virtual ConfidenceLevel GetConfidenceLevel() const =0
The confidence level of the reader or writer implementation.
virtual us::Any GetOption(const std::string &name) const =0
virtual void AddProgressCallback(const ProgressCallback &callback)=0
virtual ~IFileIO()
static std::string PROP_DESCRIPTION()
Service property name for a description.
mitk::MessageAbstractDelegate1< float > ProgressCallback
Definition: mitkIFileIO.h:71
virtual void RemoveProgressCallback(const ProgressCallback &callback)=0
virtual void SetOption(const std::string &name, const us::Any &value)=0
virtual Options GetOptions() const =0
returns a list of the supported options
virtual void SetOptions(const Options &options)=0