Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitkPreferenceListReaderOptionsFunctor.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef mitkPreferenceListReaderOptionsFunctor_h
14 #define mitkPreferenceListReaderOptionsFunctor_h
15 
16 #include <MitkCoreExports.h>
17 #include <mitkIOUtil.h>
18 
19 #include <vector>
20 #include <string>
21 
22 
23 namespace mitk
24 {
45  {
46  using ListType = std::vector<std::string>;
47 
53  bool operator()(IOUtil::LoadInfo &loadInfo) const override;
54 
57 
63  PreferenceListReaderOptionsFunctor(const ListType& preference, const ListType& black);
64 
71 
78  PreferenceListReaderOptionsFunctor(const ListType& preference, const ListType& black, const IFileReader::Options& options);
79 
80  protected:
84  };
85 }
86 
87 #endif
#define MITKCORE_EXPORT
Find image slices visible on a given plane.
std::map< std::string, us::Any > Options
Options for reading or writing data.
Definition: mitkIFileIO.h:80
Contains information about the current loading process.
Definition: mitkIOUtil.h:60
Base class for option callbacks used in load operations.
Definition: mitkIOUtil.h:85
Option callback functor with a preference list/ black list option selection strategy.
PreferenceListReaderOptionsFunctor(const ListType &preference, const IFileReader::Options &options)
Constructor with preference list and reader options.
PreferenceListReaderOptionsFunctor()
Default constructor with empty preference and black lists.
PreferenceListReaderOptionsFunctor(const ListType &preference, const ListType &black, const IFileReader::Options &options)
Constructor with preference list, black list, and reader options.
bool operator()(IOUtil::LoadInfo &loadInfo) const override
Applies the preference/black list strategy to select and configure a reader.
PreferenceListReaderOptionsFunctor(const ListType &preference, const ListType &black)
Constructor with preference and black lists.