Medical Imaging Interaction Toolkit
2024.12.99-0da743f6
Medical Imaging Interaction Toolkit
|
#include <mitkFileReaderRegistry.h>
Public Types | |
typedef us::ServiceReference< IFileReader > | ReaderReference |
Public Member Functions | |
FileReaderRegistry () | |
~FileReaderRegistry () | |
mitk::IFileReader * | GetReader (const ReaderReference &ref, us::ModuleContext *context=us::GetModuleContext()) |
std::vector< mitk::IFileReader * > | GetReaders (const MimeType &mimeType, us::ModuleContext *context=us::GetModuleContext()) |
void | UngetReader (mitk::IFileReader *reader) |
void | UngetReaders (const std::vector< mitk::IFileReader * > &readers) |
Static Public Member Functions | |
static MimeType | GetMimeTypeForFile (const std::string &path, us::ModuleContext *context=us::GetModuleContext()) |
Get the highest ranked mime-type for the given file name. More... | |
static std::vector< ReaderReference > | GetReferences (const MimeType &mimeType, us::ModuleContext *context=us::GetModuleContext()) |
Provides convenient access to mitk::IFileReader instances and reading files into mitk::BaseData types.
Definition at line 39 of file mitkFileReaderRegistry.h.
Definition at line 42 of file mitkFileReaderRegistry.h.
mitk::FileReaderRegistry::FileReaderRegistry | ( | ) |
mitk::FileReaderRegistry::~FileReaderRegistry | ( | ) |
|
static |
Get the highest ranked mime-type for the given file name.
path | |
context |
extension
in its extension list. mitk::IFileReader* mitk::FileReaderRegistry::GetReader | ( | const ReaderReference & | ref, |
us::ModuleContext * | context = us::GetModuleContext() |
||
) |
std::vector<mitk::IFileReader *> mitk::FileReaderRegistry::GetReaders | ( | const MimeType & | mimeType, |
us::ModuleContext * | context = us::GetModuleContext() |
||
) |
|
static |
void mitk::FileReaderRegistry::UngetReader | ( | mitk::IFileReader * | reader | ) |
void mitk::FileReaderRegistry::UngetReaders | ( | const std::vector< mitk::IFileReader * > & | readers | ) |