Medical Imaging Interaction Toolkit  2016.11.0
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,
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 MITKIFILEIO_H
18 #define MITKIFILEIO_H
19 
20 #include <MitkCoreExports.h>
21 #include <mitkMessage.h>
22 
23 #include <usAny.h>
24 
25 #include <map>
26 #include <string>
27 
28 namespace mitk
29 {
40  {
41  // The order of the enum values is important: it is used
42  // to rank writer implementations
43 
50  {
51  Unsupported = 0,
52  PartiallySupported = 8,
53  Supported = 16
54  };
55 
73  typedef std::map<std::string, us::Any> Options;
74 
76 
77  virtual ~IFileIO();
78 
85  virtual ConfidenceLevel GetConfidenceLevel() const = 0;
86 
92  virtual Options GetOptions() const = 0;
93 
94  virtual us::Any GetOption(const std::string &name) const = 0;
95 
96  virtual void SetOptions(const Options &options) = 0;
97 
98  virtual void SetOption(const std::string &name, const us::Any &value) = 0;
99 
100  virtual void AddProgressCallback(const ProgressCallback &callback) = 0;
101 
102  virtual void RemoveProgressCallback(const ProgressCallback &callback) = 0;
103 
111  static std::string PROP_DESCRIPTION();
112 
120  static std::string PROP_MIMETYPE();
121  };
122 }
123 
124 #endif // MITKIFILEIO_H
#define MITKCORE_EXPORT
DataCollection - Class to facilitate loading/accessing structured data.
std::map< std::string, us::Any > Options
Options for reading or writing data.
Definition: mitkIFileIO.h:73
Definition: usAny.h:163
mitk::MessageAbstractDelegate1< float > ProgressCallback
Definition: mitkIFileIO.h:75
ConfidenceLevel
A confidence level describing the confidence of the reader or writer in handling the given data...
Definition: mitkIFileIO.h:49
Common interface for all MITK file reader and writer.
Definition: mitkIFileIO.h:39