Medical Imaging Interaction Toolkit  2018.4.99-b7f3afaa
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 // 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:69
ConfidenceLevel
A confidence level describing the confidence of the reader or writer in handling the given data...
Definition: mitkIFileIO.h:45
Definition: usAny.h:163
mitk::MessageAbstractDelegate1< float > ProgressCallback
Definition: mitkIFileIO.h:71
Common interface for all MITK file reader and writer.
Definition: mitkIFileIO.h:35