Medical Imaging Interaction Toolkit  2018.4.99-b5518f0d
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 
48  bool operator()(IOUtil::LoadInfo &loadInfo) const override;
49 
51  PreferenceListReaderOptionsFunctor(const ListType& preference, const ListType& black);
52  PreferenceListReaderOptionsFunctor(const ListType& preference, const IFileReader::Options& options);
53  PreferenceListReaderOptionsFunctor(const ListType& preference, const ListType& black, const IFileReader::Options& options);
54 
55  protected:
59  };
60 }
61 
62 #endif // MITKWHITELISTREADEROPTIONSFUNCTOR_H
Option callback functor with a preference list/ black list option selection strategy.
#define MITKCORE_EXPORT
DataCollection - Class to facilitate loading/accessing structured data.
std::map< std::string, us::Any > Options
Options for reading or writing data.
Definition: mitkIFileIO.h:69