13 #ifndef mitkFileReaderSelector_h
14 #define mitkFileReaderSelector_h
176 std::vector<Item>
Get()
const;
Represents a single candidate file reader with associated metadata.
IFileReader * GetReader() const
Get the IFileReader instance for this item.
Item & operator=(const Item &other)
Copy assignment operator.
us::ServiceReference< IFileReader > GetReference() const
Get the service reference for this reader.
MimeType GetMimeType() const
Get the mime-type associated with this reader item.
bool operator<(const Item &other) const
Compare two items for sorting.
Item(const Item &other)
Copy constructor.
std::string GetDescription() const
Get the human-readable description of this reader.
long GetServiceId() const
Get the service id for this reader.
IFileReader::ConfidenceLevel GetConfidenceLevel() const
Get the confidence level of this reader for the given file.
Selects the most suitable IFileReader for a given file path.
void Swap(FileReaderSelector &fws)
Swap the contents of this selector with another.
bool Select(const Item &item)
Select a reader by Item.
std::vector< Item > Get() const
Get a sorted list of all file reader items.
std::vector< MimeType > GetMimeTypes() const
Get all mime-types that matched the file path.
Item GetDefault() const
Get the best-matching (highest-ranked) reader item.
long GetDefaultId() const
Get the service id of the best-matching reader.
bool IsEmpty() const
Check whether any suitable readers were found.
long GetSelectedId() const
Get the service id of the currently selected reader.
FileReaderSelector(const std::string &path)
Construct a selector for the given file path.
FileReaderSelector & operator=(const FileReaderSelector &other)
Copy assignment operator.
Item GetSelected() const
Get the currently selected reader item.
Item Get(long id) const
Get a reader item by its service id.
bool Select(long id)
Select a reader by its service id.
FileReaderSelector(const FileReaderSelector &other)
Copy constructor.
Immutable, value-type wrapper for a registered mime-type.
Find image slices visible on a given plane.
void swap(CustomMimeType &l, CustomMimeType &r)
Swap two CustomMimeType objects.
ConfidenceLevel
A confidence level describing the reader's or writer's ability to handle the given data or file forma...
The common interface for all MITK file readers.