Medical Imaging Interaction Toolkit
2024.12.99-0da743f6
Medical Imaging Interaction Toolkit
|
Option callback functor with a preference list/ black list option selection strategy. More...
#include <mitkPreferenceListReaderOptionsFunctor.h>
Public Types | |
using | ListType = std::vector< std::string > |
Public Member Functions | |
bool | operator() (IOUtil::LoadInfo &loadInfo) const override |
PreferenceListReaderOptionsFunctor () | |
PreferenceListReaderOptionsFunctor (const ListType &preference, const ListType &black) | |
PreferenceListReaderOptionsFunctor (const ListType &preference, const IFileReader::Options &options) | |
PreferenceListReaderOptionsFunctor (const ListType &preference, const ListType &black, const IFileReader::Options &options) | |
Protected Attributes | |
const ListType | m_PreferenceList |
const ListType | m_BlackList |
const IFileReader::Options | m_Options |
Option callback functor with a preference list/ black list option selection strategy.
This functor can be used if a option selection should be done without user interaction. Setting up the functor one can specify a preference and black lists of controller descriptions. Any controller description on the black list will be ignored and never selected. The first controller description found on the preference list will be selected. Any controller listed on the black list is always ignored. Even if it is also listed on the preference list. If no preference listed controller is available, the functor will use the pre selected reader. If no pre selected controller is available, the functor will use the first not black listed reader. If user options (non empty) are specified for the functor, the selected reader will be set with these user options.
Definition at line 44 of file mitkPreferenceListReaderOptionsFunctor.h.
using mitk::PreferenceListReaderOptionsFunctor::ListType = std::vector<std::string> |
Definition at line 46 of file mitkPreferenceListReaderOptionsFunctor.h.
mitk::PreferenceListReaderOptionsFunctor::PreferenceListReaderOptionsFunctor | ( | ) |
mitk::PreferenceListReaderOptionsFunctor::PreferenceListReaderOptionsFunctor | ( | const ListType & | preference, |
const ListType & | black | ||
) |
mitk::PreferenceListReaderOptionsFunctor::PreferenceListReaderOptionsFunctor | ( | const ListType & | preference, |
const IFileReader::Options & | options | ||
) |
mitk::PreferenceListReaderOptionsFunctor::PreferenceListReaderOptionsFunctor | ( | const ListType & | preference, |
const ListType & | black, | ||
const IFileReader::Options & | options | ||
) |
|
overridevirtual |
Implements mitk::IOUtil::ReaderOptionsFunctorBase.
|
protected |
Definition at line 57 of file mitkPreferenceListReaderOptionsFunctor.h.
|
protected |
Definition at line 58 of file mitkPreferenceListReaderOptionsFunctor.h.
|
protected |
Definition at line 56 of file mitkPreferenceListReaderOptionsFunctor.h.