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