13 #ifndef MITKABSTRACTFILEIO_H 14 #define MITKABSTRACTFILEIO_H 41 IFileReader *Clone()
const override {
return ReaderClone(); }
52 const std::string &description)
59 IFileWriter *Clone()
const override {
return WriterClone(); }
62 #endif // DOXYGEN_SKIP 72 Options GetReaderOptions()
const;
73 us::Any GetReaderOption(
const std::string &name)
const;
75 void SetReaderOptions(
const Options &options);
76 void SetReaderOption(
const std::string &name,
const us::Any &value);
78 Options GetWriterOptions()
const;
79 us::Any GetWriterOption(
const std::string &name)
const;
81 void SetWriterOptions(
const Options &options);
82 void SetWriterOption(
const std::string &name,
const us::Any &value);
111 const std::string &description);
120 void SetReaderDescription(
const std::string &description);
121 std::string GetReaderDescription()
const;
123 void SetWriterDescription(
const std::string &description);
124 std::string GetWriterDescription()
const;
126 void SetDefaultReaderOptions(
const Options &defaultOptions);
127 Options GetDefaultReaderOptions()
const;
129 void SetDefaultWriterOptions(
const Options &defaultOptions);
130 Options GetDefaultWriterOptions()
const;
142 void SetReaderRanking(
int ranking);
143 int GetReaderRanking()
const;
145 void SetWriterRanking(
int ranking);
146 int GetWriterRanking()
const;
158 #endif // MITKABSTRACTFILEIO_H const CustomMimeType * GetMimeType() const
ConfidenceLevel GetConfidenceLevel() const override
The confidence level of the reader or writer implementation.
DataCollection - Class to facilitate loading/accessing structured data.
std::map< std::string, us::Any > Options
Options for reading or writing data.
ConfidenceLevel GetConfidenceLevel() const override
The confidence level of the reader or writer implementation.
virtual ConfidenceLevel GetWriterConfidenceLevel() const
void SetMimeType(const CustomMimeType &mimeType)
The CustomMimeType class represents a custom mime-type which may be registered as a service object...
AbstractFileIOWriter(const std::string &baseDataType)
AbstractFileIOReader(const CustomMimeType &mimeType, const std::string &description)
us::ServiceRegistration< IFileReader > RegisterService(us::ModuleContext *context=us::GetModuleContext())
ConfidenceLevel
A confidence level describing the confidence of the reader or writer in handling the given data...
ConfidenceLevel GetConfidenceLevel() const override
The confidence level of the reader or writer implementation.
ConfidenceLevel GetConfidenceLevel() const override
The confidence level of the reader or writer implementation.
Base class for creating mitk::BaseData objects from files or streams.
virtual ConfidenceLevel GetReaderConfidenceLevel() const
The common interface for all MITK file readers.
The common interface of all MITK file writers.
Abstract class for implementing a reader and writer.
Base class for writing mitk::BaseData objects to files or streams.
static ModuleContext * GetModuleContext()
Returns the module context of the calling module.
AbstractFileIOWriter(const std::string &baseDataType, const CustomMimeType &mimeType, const std::string &description)