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(); }
112 const std::string &description);
virtual ConfidenceLevel GetReaderConfidenceLevel() const
ConfidenceLevel GetConfidenceLevel() const override
The confidence level of the reader or writer implementation.
AbstractFileIOReader(const CustomMimeType &mimeType, const std::string &description)
Abstract class for implementing a reader and writer.
AbstractFileIO(const std::string &baseDataType)
ConfidenceLevel GetReaderConfidenceLevel() const override
std::pair< us::ServiceRegistration< IFileReader >, us::ServiceRegistration< IFileWriter > > RegisterService(us::ModuleContext *context=us::GetModuleContext())
void SetReaderDescription(const std::string &description)
void SetWriterDescription(const std::string &description)
std::string GetWriterDescription() const
Options GetDefaultReaderOptions() const
std::string GetReaderDescription() const
void SetWriterRanking(int ranking)
void SetWriterOption(const std::string &name, const us::Any &value)
int GetWriterRanking() const
Options GetReaderOptions() const
AbstractFileIO(const AbstractFileIO &other)
int GetReaderRanking() const
AbstractFileIO(const std::string &baseDataType, const CustomMimeType &mimeType, const std::string &description)
void SetReaderOption(const std::string &name, const us::Any &value)
void SetReaderOptions(const Options &options)
void SetWriterOptions(const Options &options)
Options GetDefaultWriterOptions() const
void SetDefaultWriterOptions(const Options &defaultOptions)
us::Any GetWriterOption(const std::string &name) const
void SetMimeType(const CustomMimeType &mimeType)
ConfidenceLevel GetWriterConfidenceLevel() const override
us::Any GetReaderOption(const std::string &name) const
void SetDefaultReaderOptions(const Options &defaultOptions)
Options GetWriterOptions() const
void SetReaderRanking(int ranking)
Set the service ranking for this file reader.
const CustomMimeType * GetMimeType() const
Base class for creating mitk::BaseData objects from files or streams.
ConfidenceLevel GetConfidenceLevel() const override
The confidence level of the reader or writer implementation.
Base class for writing mitk::BaseData objects to files or streams.
ConfidenceLevel GetConfidenceLevel() const override
The confidence level of the reader or writer implementation.
The CustomMimeType class represents a custom mime-type which may be registered as a service object....
static ModuleContext * GetModuleContext()
Returns the module context of the calling module.
Find image slices visible on a given plane.
virtual ConfidenceLevel GetWriterConfidenceLevel() const
AbstractFileIOWriter(const std::string &baseDataType, const CustomMimeType &mimeType, const std::string &description)
ConfidenceLevel GetConfidenceLevel() const override
The confidence level of the reader or writer implementation.
AbstractFileIOWriter(const std::string &baseDataType)
ConfidenceLevel
A confidence level describing the confidence of the reader or writer in handling the given data.
std::map< std::string, us::Any > Options
Options for reading or writing data.
The common interface for all MITK file readers.
The common interface of all MITK file writers.