Mercurial > hg > orthanc-stone
comparison OrthancStone/Sources/Toolbox/OrthancDatasets/FullOrthancDataset.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 |
---|---|
100 return true; | 100 return true; |
101 } | 101 } |
102 } | 102 } |
103 | 103 |
104 | 104 |
105 const Json::Value* FullOrthancDataset::LookupPath(const DicomPath& path) const | 105 const Json::Value* FullOrthancDataset::LookupPath(const Orthanc::DicomPath& path) const |
106 { | 106 { |
107 const Json::Value* content = &root_; | 107 const Json::Value* content = &root_; |
108 | 108 |
109 for (unsigned int depth = 0; depth < path.GetPrefixLength(); depth++) | 109 for (unsigned int depth = 0; depth < path.GetPrefixLength(); depth++) |
110 { | 110 { |
169 CheckRoot(); | 169 CheckRoot(); |
170 } | 170 } |
171 | 171 |
172 | 172 |
173 bool FullOrthancDataset::GetStringValue(std::string& result, | 173 bool FullOrthancDataset::GetStringValue(std::string& result, |
174 const DicomPath& path) const | 174 const Orthanc::DicomPath& path) const |
175 { | 175 { |
176 const Json::Value* value = LookupPath(path); | 176 const Json::Value* value = LookupPath(path); |
177 | 177 |
178 if (value == NULL) | 178 if (value == NULL) |
179 { | 179 { |
185 } | 185 } |
186 } | 186 } |
187 | 187 |
188 | 188 |
189 bool FullOrthancDataset::GetSequenceSize(size_t& size, | 189 bool FullOrthancDataset::GetSequenceSize(size_t& size, |
190 const DicomPath& path) const | 190 const Orthanc::DicomPath& path) const |
191 { | 191 { |
192 const Json::Value* sequence = LookupPath(path); | 192 const Json::Value* sequence = LookupPath(path); |
193 | 193 |
194 if (sequence == NULL) | 194 if (sequence == NULL) |
195 { | 195 { |