Medical Imaging Interaction Toolkit  2018.4.99-389bf124
Medical Imaging Interaction Toolkit
mitkLegacyFileReaderService.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 MITKLEGACYFILEREADERSERVICE_H
14 #define MITKLEGACYFILEREADERSERVICE_H
15 
16 #include <mitkAbstractFileReader.h>
17 
18 namespace mitk
19 {
20  // This class wraps mitk::FileReader instances registered as
21  // "mitkIOAdapter" via the ITK object factory system as a
22  // micro service.
24  {
25  public:
27 
28  LegacyFileReaderService(const std::vector<std::string> &extensions, const std::string &category);
29  ~LegacyFileReaderService() override;
30 
32  std::vector<itk::SmartPointer<BaseData>> Read() override;
33 
34  private:
35  LegacyFileReaderService *Clone() const override;
36 
38  };
39 
40 } // namespace mitk
41 
42 #endif /* MITKLEGACYFILEREADERSERVICE_H */
DataCollection - Class to facilitate loading/accessing structured data.
std::vector< itk::SmartPointer< BaseData > > Read() override=0
Reads a path or stream and creates a list of BaseData objects.
std::vector< itk::SmartPointer< BaseData > > Read() override
Reads a path or stream and creates a list of BaseData objects.
LegacyFileReaderService(const LegacyFileReaderService &other)
Base class for creating mitk::BaseData objects from files or streams.