Medical Imaging Interaction Toolkit  2018.4.99-6ca56567
Medical Imaging Interaction Toolkit
mitkDICOMDatasetAccess.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 mitkDICOMDatasetAccess_h
14 #define mitkDICOMDatasetAccess_h
15 
16 #include "mitkDICOMTag.h"
17 #include "mitkDICOMTagPath.h"
18 
19 #include "MitkDICOMReaderExports.h"
20 
21 namespace mitk
22 {
27  {
29  bool isValid;
31  std::string value;
34 
35  DICOMDatasetFinding(bool valid = false, const std::string& aValue = "", const DICOMTagPath& aPath = DICOMTagPath()) : isValid(valid), value(aValue), path(aPath)
36  {};
37  };
38 
46 {
47  public:
48  typedef std::list<DICOMDatasetFinding> FindingsListType;
49 
52  virtual std::string GetFilenameIfAvailable() const = 0;
53 
58  virtual DICOMDatasetFinding GetTagValueAsString(const DICOMTag& tag) const = 0;
59 
64  virtual FindingsListType GetTagValueAsString(const DICOMTagPath& path) const = 0;
65 
66  virtual ~DICOMDatasetAccess() {};
67 };
68 
69 
70 typedef std::vector<DICOMDatasetAccess*> DICOMDatasetList;
71 
72 }
73 
74 #endif
Class is used to identify (nested) attributes in a DICOM dataset. In contrast to the class DICOMTag...
Representation of a DICOM tag.
Definition: mitkDICOMTag.h:32
#define MITKDICOMREADER_EXPORT
DataCollection - Class to facilitate loading/accessing structured data.
DICOMDatasetFinding(bool valid=false, const std::string &aValue="", const DICOMTagPath &aPath=DICOMTagPath())
Interface to datasets that is presented to sorting classes such as DICOMDatasetSorter.
std::list< DICOMDatasetFinding > FindingsListType
std::vector< DICOMDatasetAccess * > DICOMDatasetList