Medical Imaging Interaction Toolkit  2024.06.00
Medical Imaging Interaction Toolkit
mitk::FileWriterRegistry Class Reference

#include <mitkFileWriterRegistry.h>

Public Types

typedef us::ServiceReference< IFileWriterWriterReference
 

Public Member Functions

 FileWriterRegistry ()
 
 ~FileWriterRegistry ()
 
IFileWriterGetWriter (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< WriterReferenceGetReferences (const BaseData *baseData, us::ModuleContext *context=us::GetModuleContext())
 
static std::vector< WriterReferenceGetReferences (const BaseData *baseData, const std::string &mimeType, us::ModuleContext *context=us::GetModuleContext())
 

Detailed Description

Provides convenient access to mitk::IFileWriter instances and writing files from mitk::BaseData types.

Note
The life-time of all mitk::IFileWriter objects returned by an instance of this class ends with the destruction of that instance.

Definition at line 41 of file mitkFileWriterRegistry.h.

Member Typedef Documentation

◆ WriterReference

Constructor & Destructor Documentation

◆ FileWriterRegistry()

mitk::FileWriterRegistry::FileWriterRegistry ( )

◆ ~FileWriterRegistry()

mitk::FileWriterRegistry::~FileWriterRegistry ( )

Member Function Documentation

◆ GetReferences() [1/2]

static std::vector<WriterReference> mitk::FileWriterRegistry::GetReferences ( const BaseData baseData,
const std::string &  mimeType,
us::ModuleContext *  context = us::GetModuleContext() 
)
static

◆ GetReferences() [2/2]

static std::vector<WriterReference> mitk::FileWriterRegistry::GetReferences ( const BaseData baseData,
us::ModuleContext *  context = us::GetModuleContext() 
)
static

◆ GetWriter()

IFileWriter* mitk::FileWriterRegistry::GetWriter ( const WriterReference ref,
us::ModuleContext *  context = us::GetModuleContext() 
)

◆ GetWriters()

std::vector<IFileWriter *> mitk::FileWriterRegistry::GetWriters ( const BaseData baseData,
const std::string &  mimeType,
us::ModuleContext *  context = us::GetModuleContext() 
)

◆ UngetWriter()

void mitk::FileWriterRegistry::UngetWriter ( IFileWriter writer)

◆ UngetWriters()

void mitk::FileWriterRegistry::UngetWriters ( const std::vector< IFileWriter * > &  writers)

The documentation for this class was generated from the following file: