Medical Imaging Interaction Toolkit  2016.11.0
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,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #ifndef MITKLEGACYFILEREADERSERVICE_H
18 #define MITKLEGACYFILEREADERSERVICE_H
19 
20 #include <mitkAbstractFileReader.h>
21 
22 namespace mitk
23 {
24  // This class wraps mitk::FileReader instances registered as
25  // "mitkIOAdapter" via the ITK object factory system as a
26  // micro service.
28  {
29  public:
31 
32  LegacyFileReaderService(const std::vector<std::string> &extensions, const std::string &category);
33  virtual ~LegacyFileReaderService();
34 
36  virtual std::vector<itk::SmartPointer<BaseData>> Read() override;
37 
38  private:
39  LegacyFileReaderService *Clone() const override;
40 
42  };
43 
44 } // namespace mitk
45 
46 #endif /* MITKLEGACYFILEREADERSERVICE_H */
DataCollection - Class to facilitate loading/accessing structured data.
virtual std::vector< itk::SmartPointer< BaseData > > Read() override=0
Reads a path or stream and creates a list of BaseData objects.
virtual 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.