Medical Imaging Interaction Toolkit  2021.02.99-e55a5d2f
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 
33  protected:
34  std::vector<itk::SmartPointer<BaseData>> DoRead() override;
35 
36  private:
37  LegacyFileReaderService *Clone() const override;
38 
40  };
41 
42 } // namespace mitk
43 
44 #endif /* MITKLEGACYFILEREADERSERVICE_H */
std::vector< itk::SmartPointer< BaseData > > DoRead() override
DataCollection - Class to facilitate loading/accessing structured data.
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.