Medical Imaging Interaction Toolkit  2024.06.00
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
usAny.h
mitk::IFileIO::ProgressCallback
mitk::MessageAbstractDelegate1< float > ProgressCallback
Definition: mitkIFileIO.h:71
mitk::IFileIO::Options
std::map< std::string, us::Any > Options
Options for reading or writing data.
Definition: mitkIFileIO.h:69
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
us::Any
Definition: usAny.h:163
MitkCoreExports.h
mitkMessage.h
mitk::MessageAbstractDelegate1
Definition: mitkMessage.h:93
mitk::IFileIO
Common interface for all MITK file reader and writer.
Definition: mitkIFileIO.h:35
mitk::IFileIO::ConfidenceLevel
ConfidenceLevel
A confidence level describing the confidence of the reader or writer in handling the given data.
Definition: mitkIFileIO.h:45
MITKCORE_EXPORT
#define MITKCORE_EXPORT
Definition: MitkCoreExports.h:15