Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitk::FileWriterSelector::Item Class Reference

Represents a single candidate file writer with associated metadata. More...

#include <mitkFileWriterSelector.h>

Public Member Functions

 Item (const Item &other)
 Copy constructor. More...
 
 ~Item ()
 
Item & operator= (const Item &other)
 Copy assignment operator. More...
 
IFileWriter * GetWriter () const
 Get the IFileWriter instance for this item. More...
 
std::string GetDescription () const
 Get the human-readable description of this writer. More...
 
IFileWriter::ConfidenceLevel GetConfidenceLevel () const
 Get the confidence level of this writer for the given data. More...
 
MimeType GetMimeType () const
 Get the mime-type associated with this writer item. More...
 
std::string GetBaseDataType () const
 Get the BaseData type name this writer supports. More...
 
us::ServiceReference< IFileWriter > GetReference () const
 Get the service reference for this writer. More...
 
long GetServiceId () const
 Get the service id for this writer. More...
 
bool operator< (const Item &other) const
 Compare two items for sorting. More...
 

Detailed Description

Represents a single candidate file writer with associated metadata.

Items are comparable and sorted by confidence level, BaseData type specificity, and service ranking. The best-matching item sorts last (highest).

Definition at line 55 of file mitkFileWriterSelector.h.

Constructor & Destructor Documentation

◆ Item()

mitk::FileWriterSelector::Item::Item ( const Item &  other)

Copy constructor.

Parameters
[in]otherThe Item to copy.

◆ ~Item()

mitk::FileWriterSelector::Item::~Item ( )

Member Function Documentation

◆ GetBaseDataType()

std::string mitk::FileWriterSelector::Item::GetBaseDataType ( ) const

Get the BaseData type name this writer supports.

Returns
The class name of the supported BaseData sub-class.

◆ GetConfidenceLevel()

IFileWriter::ConfidenceLevel mitk::FileWriterSelector::Item::GetConfidenceLevel ( ) const

Get the confidence level of this writer for the given data.

Returns
The confidence level.

◆ GetDescription()

std::string mitk::FileWriterSelector::Item::GetDescription ( ) const

Get the human-readable description of this writer.

Returns
The description string, or an empty string if not set.

◆ GetMimeType()

MimeType mitk::FileWriterSelector::Item::GetMimeType ( ) const

Get the mime-type associated with this writer item.

Returns
The MimeType for this writer.

◆ GetReference()

us::ServiceReference<IFileWriter> mitk::FileWriterSelector::Item::GetReference ( ) const

Get the service reference for this writer.

Returns
The CppMicroServices service reference.

◆ GetServiceId()

long mitk::FileWriterSelector::Item::GetServiceId ( ) const

Get the service id for this writer.

Returns
The unique service id.

◆ GetWriter()

IFileWriter* mitk::FileWriterSelector::Item::GetWriter ( ) const

Get the IFileWriter instance for this item.

Returns
Pointer to the writer, or nullptr if unavailable.

◆ operator<()

bool mitk::FileWriterSelector::Item::operator< ( const Item &  other) const

Compare two items for sorting.

Parameters
[in]otherThe Item to compare with.
Returns
true if this item ranks lower than other.

Sorting order (ascending): confidence level, then BaseData class hierarchy specificity, then service ranking. The best match sorts last.

◆ operator=()

Item& mitk::FileWriterSelector::Item::operator= ( const Item &  other)

Copy assignment operator.

Parameters
[in]otherThe Item to assign from.
Returns
Reference to this Item.

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