54 us::ModuleContext *context)
59 if (writerMimeType ==
nullptr || (writerMimeType->
GetName().empty() && writerMimeType->
GetExtensions().empty()))
79 const std::string &description)
96 MITK_WARN <<
"Reader and writer mime-tpyes are different, using the mime-type from IFileReader";
137 IFileReader *AbstractFileIO::ReaderClone()
const {
return this->IOClone(); }
138 IFileWriter *AbstractFileIO::WriterClone()
const {
return this->IOClone(); }
const CustomMimeType * GetMimeType() const
MimeType GetRegisteredMimeType() const
us::Any GetOption(const std::string &name) const override
void SetOption(const std::string &name, const us::Any &value) override
us::Any GetReaderOption(const std::string &name) const
ConfidenceLevel GetReaderConfidenceLevel() const override
Options GetDefaultReaderOptions() const
void SetReaderOption(const std::string &name, const us::Any &value)
void SetWriterRanking(int ranking)
const CustomMimeType * GetMimeType() const
Options GetOptions() const override
returns a list of the supported options
std::string GetName() const
Returns the unique name for the MimeType.
int GetWriterRanking() const
void SetOptions(const Options &options) override
DataCollection - Class to facilitate loading/accessing structured data.
void SetDefaultReaderOptions(const Options &defaultOptions)
std::map< std::string, us::Any > Options
Options for reading or writing data.
std::string GetDescription() const
void SetDefaultOptions(const Options &defaultOptions)
virtual ConfidenceLevel GetWriterConfidenceLevel() const
us::Any GetWriterOption(const std::string &name) const
void SetMimeType(const CustomMimeType &mimeType)
The CustomMimeType class represents a custom mime-type which may be registered as a service object...
std::vector< std::string > GetExtensions() const
Returns all extensions that this MimeType can handle.
void SetReaderRanking(int ranking)
Set the service ranking for this file reader.
void SetRanking(int ranking)
Set the service ranking for this file writer.
void SetDefaultOptions(const Options &defaultOptions)
us::ServiceRegistration< IFileReader > RegisterService(us::ModuleContext *context=us::GetModuleContext())
void SetMimeType(const CustomMimeType &mimeType)
ConfidenceLevel
A confidence level describing the confidence of the reader or writer in handling the given data...
std::pair< us::ServiceRegistration< IFileReader >, us::ServiceRegistration< IFileWriter > > RegisterService(us::ModuleContext *context=us::GetModuleContext())
std::string GetDescription() const
std::string GetReaderDescription() const
Options GetDefaultWriterOptions() const
void SetDescription(const std::string &description)
Options GetDefaultOptions() const
Options GetDefaultOptions() const
void SetReaderDescription(const std::string &description)
std::string GetWriterDescription() const
int GetReaderRanking() const
void SetWriterOption(const std::string &name, const us::Any &value)
Options GetOptions() const override
returns a list of the supported options
AbstractFileIO(const AbstractFileIO &other)
void SetRanking(int ranking)
Set the service ranking for this file reader.
void SetWriterDescription(const std::string &description)
void SetOption(const std::string &name, const us::Any &value) override
us::ServiceRegistration< IFileWriter > RegisterService(us::ModuleContext *context=us::GetModuleContext())
void SetMimeType(const CustomMimeType &mimeType)
static std::string GetName(std::string fileName, std::string suffix)
Options GetWriterOptions() const
void SetOptions(const Options &options) override
void SetWriterOptions(const Options &options)
void SetReaderOptions(const Options &options)
virtual ConfidenceLevel GetReaderConfidenceLevel() const
ConfidenceLevel GetWriterConfidenceLevel() const override
Options GetReaderOptions() 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.
void SetDescription(const std::string &description)
Sets a human readable description of this writer.
us::Any GetOption(const std::string &name) const override
const CustomMimeType * GetMimeType() const
void SetDefaultWriterOptions(const Options &defaultOptions)