Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
#include <mitkFileWriterRegistry.h>
Public Types | |
typedef us::ServiceReference< IFileWriter > | WriterReference |
Public Member Functions | |
FileWriterRegistry () | |
~FileWriterRegistry () | |
IFileWriter * | GetWriter (const WriterReference &ref, us::ModuleContext *context=us::GetModuleContext()) |
std::vector< IFileWriter * > | GetWriters (const BaseData *baseData, const std::string &mimeType, us::ModuleContext *context=us::GetModuleContext()) |
void | UngetWriter (IFileWriter *writer) |
void | UngetWriters (const std::vector< IFileWriter * > &writers) |
Static Public Member Functions | |
static std::vector< WriterReference > | GetReferences (const BaseData *baseData, us::ModuleContext *context=us::GetModuleContext()) |
static std::vector< WriterReference > | GetReferences (const BaseData *baseData, const std::string &mimeType, us::ModuleContext *context=us::GetModuleContext()) |
Provides convenient access to mitk::IFileWriter instances and writing files from mitk::BaseData types.
Definition at line 45 of file mitkFileWriterRegistry.h.
Definition at line 48 of file mitkFileWriterRegistry.h.
mitk::FileWriterRegistry::FileWriterRegistry | ( | ) |
Definition at line 30 of file mitkFileWriterRegistry.cpp.
mitk::FileWriterRegistry::~FileWriterRegistry | ( | ) |
Definition at line 34 of file mitkFileWriterRegistry.cpp.
|
static |
Definition at line 42 of file mitkFileWriterRegistry.cpp.
|
static |
Definition at line 48 of file mitkFileWriterRegistry.cpp.
References mitk::BaseData::GetClassHierarchy(), us::GetModuleContext(), mitkThrow, us::ServiceConstants::OBJECTCLASS(), mitk::IFileWriter::PROP_BASEDATA_TYPE(), and mitk::IFileIO::PROP_MIMETYPE().
mitk::IFileWriter * mitk::FileWriterRegistry::GetWriter | ( | const WriterReference & | ref, |
us::ModuleContext * | context = us::GetModuleContext() |
||
) |
Definition at line 80 of file mitkFileWriterRegistry.cpp.
References us::GetModuleContext(), and us::ServiceObjects< S >::GetService().
Referenced by mitkFileWriterRegistryTest().
std::vector< mitk::IFileWriter * > mitk::FileWriterRegistry::GetWriters | ( | const BaseData * | baseData, |
const std::string & | mimeType, | ||
us::ModuleContext * | context = us::GetModuleContext() |
||
) |
Definition at line 95 of file mitkFileWriterRegistry.cpp.
References us::GetModuleContext(), us::ServiceObjects< S >::GetService(), and mitkThrow.
Referenced by mitkFileWriterRegistryTest().
void mitk::FileWriterRegistry::UngetWriter | ( | mitk::IFileWriter * | writer | ) |
Definition at line 138 of file mitkFileWriterRegistry.cpp.
void mitk::FileWriterRegistry::UngetWriters | ( | const std::vector< IFileWriter * > & | writers | ) |
Definition at line 149 of file mitkFileWriterRegistry.cpp.