Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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,
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 mitkDICOMDatasetAccess_h
18 #define mitkDICOMDatasetAccess_h
19 
20 #include "mitkDICOMTag.h"
21 #include "mitkDICOMTagPath.h"
22 
23 #include "MitkDICOMReaderExports.h"
24 
25 namespace mitk
26 {
31  {
33  bool isValid;
35  std::string value;
38 
39  DICOMDatasetFinding(bool valid = false, const std::string& aValue = "", const DICOMTagPath& aPath = DICOMTagPath()) : isValid(valid), value(aValue), path(aPath)
40  {};
41  };
42 
50 {
51  public:
52  typedef std::list<DICOMDatasetFinding> FindingsListType;
53 
56  virtual std::string GetFilenameIfAvailable() const = 0;
57 
62  virtual DICOMDatasetFinding GetTagValueAsString(const DICOMTag& tag) const = 0;
63 
68  virtual FindingsListType GetTagValueAsString(const DICOMTagPath& path) const = 0;
69 
70  virtual ~DICOMDatasetAccess() {};
71 };
72 
73 
74 typedef std::vector<DICOMDatasetAccess*> DICOMDatasetList;
75 
76 }
77 
78 #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:37
#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