Medical Imaging Interaction Toolkit  2024.06.00
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
mitk::AbstractFileReader
Base class for creating mitk::BaseData objects from files or streams.
Definition: mitkAbstractFileReader.h:42
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitk::LegacyFileReaderService::LegacyFileReaderService
LegacyFileReaderService(const LegacyFileReaderService &other)
mitkAbstractFileReader.h
mitk::LegacyFileReaderService::~LegacyFileReaderService
~LegacyFileReaderService() override
mitk::LegacyFileReaderService
Definition: mitkLegacyFileReaderService.h:23
us::ServiceRegistration< mitk::IFileReader >
mitk::AbstractFileReader::Read
std::vector< itk::SmartPointer< BaseData > > Read() override
Reads a path or stream and creates a list of BaseData objects.
mitk::LegacyFileReaderService::DoRead
std::vector< itk::SmartPointer< BaseData > > DoRead() override