comparison OrthancStone/Sources/Toolbox/OrthancDatasets/SimplifiedOrthancDataset.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 <OrthancException.h> 25 #include <OrthancException.h>
26 #include <DicomParsing/FromDcmtkBridge.h> 26 #include <DicomParsing/FromDcmtkBridge.h>
27 27
28 namespace OrthancStone 28 namespace OrthancStone
29 { 29 {
30 const Json::Value* SimplifiedOrthancDataset::LookupPath(const DicomPath& path) const 30 const Json::Value* SimplifiedOrthancDataset::LookupPath(const Orthanc::DicomPath& path) const
31 { 31 {
32 const Json::Value* content = &root_; 32 const Json::Value* content = &root_;
33 33
34 for (unsigned int depth = 0; depth < path.GetPrefixLength(); depth++) 34 for (unsigned int depth = 0; depth < path.GetPrefixLength(); depth++)
35 { 35 {
103 CheckRoot(); 103 CheckRoot();
104 } 104 }
105 105
106 106
107 bool SimplifiedOrthancDataset::GetStringValue(std::string& result, 107 bool SimplifiedOrthancDataset::GetStringValue(std::string& result,
108 const DicomPath& path) const 108 const Orthanc::DicomPath& path) const
109 { 109 {
110 const Json::Value* value = LookupPath(path); 110 const Json::Value* value = LookupPath(path);
111 111
112 if (value == NULL) 112 if (value == NULL)
113 { 113 {
124 } 124 }
125 } 125 }
126 126
127 127
128 bool SimplifiedOrthancDataset::GetSequenceSize(size_t& size, 128 bool SimplifiedOrthancDataset::GetSequenceSize(size_t& size,
129 const DicomPath& path) const 129 const Orthanc::DicomPath& path) const
130 { 130 {
131 const Json::Value* sequence = LookupPath(path); 131 const Json::Value* sequence = LookupPath(path);
132 132
133 if (sequence == NULL) 133 if (sequence == NULL)
134 { 134 {