Provides convenient access to mitk::IFileWriter instances and writing files from mitk::BaseData types.
More...
#include <mitkFileWriterRegistry.h>
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.
- See also
- IFileWriter
Definition at line 43 of file mitkFileWriterRegistry.h.
◆ WriterReference
◆ FileWriterRegistry()
| mitk::FileWriterRegistry::FileWriterRegistry |
( |
| ) |
|
◆ ~FileWriterRegistry()
| mitk::FileWriterRegistry::~FileWriterRegistry |
( |
| ) |
|
Destructor. Releases all acquired service objects.
◆ GetReferences() [1/2]
Get service references for writers that can handle the given BaseData and MIME type.
- Parameters
-
| baseData | The data object for which to find compatible writers. |
| mimeType | The MIME type to filter by. |
| context | The module context to use for service lookup. |
- Returns
- A vector of matching writer service references.
◆ GetReferences() [2/2]
Get service references for writers that can handle the given BaseData.
- Parameters
-
| baseData | The data object for which to find compatible writers. |
| context | The module context to use for service lookup. |
- Returns
- A vector of matching writer service references.
◆ GetWriter()
Get a writer instance from a service reference.
- Parameters
-
| ref | The writer service reference. |
| context | The module context to use for service lookup. |
- Returns
- A pointer to the writer instance, or nullptr if the reference is invalid.
◆ GetWriters()
Get all writer instances for the given BaseData and MIME type.
- Parameters
-
| baseData | The data object for which to find compatible writers. |
| mimeType | The MIME type to filter by. |
| context | The module context to use for service lookup. |
- Returns
- A vector of writer pointers sorted by service ranking.
◆ UngetWriter()
| void mitk::FileWriterRegistry::UngetWriter |
( |
IFileWriter * |
writer | ) |
|
Release a previously acquired writer instance.
- Parameters
-
| writer | The writer to release. |
◆ UngetWriters()
| void mitk::FileWriterRegistry::UngetWriters |
( |
const std::vector< IFileWriter * > & |
writers | ) |
|
Release multiple previously acquired writer instances.
- Parameters
-
| writers | The vector of writers to release. |
The documentation for this class was generated from the following file: