Medical Imaging Interaction Toolkit  2018.4.99-12ad79a3
Medical Imaging Interaction Toolkit
mitkBaseDICOMReaderService.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 MITKBASEDICOMREADERSERVICE_H
14 #define MITKBASEDICOMREADERSERVICE_H
15 
16 #include <mitkAbstractFileReader.h>
17 #include <mitkDICOMFileReader.h>
18 
19 #include "MitkDICOMReaderExports.h"
20 
21 namespace mitk {
22 
28 {
29 public:
30  BaseDICOMReaderService(const std::string& description);
31  BaseDICOMReaderService(const mitk::CustomMimeType& customType, const std::string& description);
32 
34 
37  std::vector<itk::SmartPointer<BaseData> > Read() override;
38 
39  IFileReader::ConfidenceLevel GetConfidenceLevel() const override;
40 
41 protected:
44  mitk::StringList GetRelevantFiles() const;
45 
48  virtual mitk::DICOMFileReader::Pointer GetReader(const mitk::StringList& relevantFiles) const = 0;
49 };
50 
51 
52 class IPropertyProvider;
53 
57 
58 }
59 
60 #endif // MITKBASEDICOMREADERSERVICE_H
#define MITKDICOMREADER_EXPORT
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.
The CustomMimeType class represents a custom mime-type which may be registered as a service object...
ConfidenceLevel
A confidence level describing the confidence of the reader or writer in handling the given data...
Definition: mitkIFileIO.h:45
std::string MITKDICOMREADER_EXPORT GenerateNameFromDICOMProperties(const mitk::IPropertyProvider *provider)
std::vector< std::string > StringList
Base class for creating mitk::BaseData objects from files or streams.