Medical Imaging Interaction Toolkit  2026.06.00
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 <MitkDICOMExports.h>
20 
21 namespace mitk
22 {
33  {
34  bool isValid;
35  std::string value;
37 
44  DICOMDatasetFinding(bool valid = false, const std::string& aValue = "", const DICOMTagPath& aPath = DICOMTagPath()) : isValid(valid), value(aValue), path(aPath)
45  {};
46  };
47 
55 {
56  public:
58  typedef std::list<DICOMDatasetFinding> FindingsListType;
59 
68  virtual std::string GetFilenameIfAvailable() const = 0;
69 
78  virtual DICOMDatasetFinding GetTagValueAsString(const DICOMTag& tag) const = 0;
79 
89  virtual FindingsListType GetTagValueAsString(const DICOMTagPath& path) const = 0;
90 
91  virtual ~DICOMDatasetAccess() {};
92 };
93 
95 typedef std::vector<DICOMDatasetAccess*> DICOMDatasetList;
96 
97 }
98 
99 #endif
#define MITKDICOM_EXPORT
Interface to datasets that is presented to sorting classes such as DICOMDatasetSorter.
virtual FindingsListType GetTagValueAsString(const DICOMTagPath &path) const =0
Return a list of DICOMDatasetFindings for a tag path.
virtual DICOMDatasetFinding GetTagValueAsString(const DICOMTag &tag) const =0
Return a DICOMDatasetFinding for a single DICOM tag.
virtual std::string GetFilenameIfAvailable() const =0
Return a filename if possible.
std::list< DICOMDatasetFinding > FindingsListType
A list of DICOMDatasetFinding instances.
Class used to identify (nested) attributes in a DICOM dataset.
Representation of a DICOM tag.
Definition: mitkDICOMTag.h:33
Find image slices visible on a given plane.
std::vector< DICOMDatasetAccess * > DICOMDatasetList
A list of raw pointers to DICOMDatasetAccess instances.
Result structure for DICOMDatasetAccess::GetTagValueAsString.
DICOMTagPath path
The tag path of the found value.
DICOMDatasetFinding(bool valid=false, const std::string &aValue="", const DICOMTagPath &aPath=DICOMTagPath())
Construct a DICOMDatasetFinding.
bool isValid
Indicates if the finding is valid (tag was found).
std::string value
The found tag value as a string.