comparison OrthancStone/Sources/Toolbox/ParsedDicomDataset.cpp @ 1834:126522623e20

replaced OrthancStone::DicomPath by new class Orthanc::DicomPath from orthanc framework
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 10 Jun 2021 12:07:04 +0200
parents 9ac2a65d4172
children 3889ae96d2e9
comparison
equal deleted inserted replaced
1833:3c0996f028a1 1834:126522623e20
25 #include <dcmtk/dcmdata/dcfilefo.h> 25 #include <dcmtk/dcmdata/dcfilefo.h>
26 26
27 namespace OrthancStone 27 namespace OrthancStone
28 { 28 {
29 static DcmItem* LookupPath(Orthanc::ParsedDicomFile& dicom, 29 static DcmItem* LookupPath(Orthanc::ParsedDicomFile& dicom,
30 const DicomPath& path) 30 const Orthanc::DicomPath& path)
31 { 31 {
32 DcmItem* node = dicom.GetDcmtkObject().getDataset(); 32 DcmItem* node = dicom.GetDcmtkObject().getDataset();
33 33
34 for (size_t i = 0; i < path.GetPrefixLength(); i++) 34 for (size_t i = 0; i < path.GetPrefixLength(); i++)
35 { 35 {
59 return node; 59 return node;
60 } 60 }
61 61
62 62
63 bool ParsedDicomDataset::GetStringValue(std::string& result, 63 bool ParsedDicomDataset::GetStringValue(std::string& result,
64 const DicomPath& path) const 64 const Orthanc::DicomPath& path) const
65 { 65 {
66 DcmItem* node = LookupPath(dicom_, path); 66 DcmItem* node = LookupPath(dicom_, path);
67 67
68 if (node != NULL) 68 if (node != NULL)
69 { 69 {
81 return false; 81 return false;
82 } 82 }
83 83
84 84
85 bool ParsedDicomDataset::GetSequenceSize(size_t& size, 85 bool ParsedDicomDataset::GetSequenceSize(size_t& size,
86 const DicomPath& path) const 86 const Orthanc::DicomPath& path) const
87 { 87 {
88 DcmItem* node = LookupPath(dicom_, path); 88 DcmItem* node = LookupPath(dicom_, path);
89 89
90 if (node != NULL) 90 if (node != NULL)
91 { 91 {