Mercurial > hg > orthanc-stone
comparison OrthancStone/Sources/Loaders/LoadedDicomResources.cpp @ 2094:7c3d65166c26
partial integration dicom-sr->mainline
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 08 Nov 2023 14:54:15 +0100 |
parents | 07964689cb0b |
children | c23eef785569 |
comparison
equal
deleted
inserted
replaced
2087:51c8b21b81e4 | 2094:7c3d65166c26 |
---|---|
274 { | 274 { |
275 target = best->first; | 275 target = best->first; |
276 return true; | 276 return true; |
277 } | 277 } |
278 } | 278 } |
279 | |
280 | |
281 bool LoadedDicomResources::LookupResource(Orthanc::DicomMap& target, | |
282 const std::string& id) const | |
283 { | |
284 Resources::const_iterator it = resources_.find(id); | |
285 | |
286 if (it == resources_.end()) | |
287 { | |
288 return false; | |
289 } | |
290 else | |
291 { | |
292 assert(it->second != NULL); | |
293 target.Assign(it->second->GetDicom()); | |
294 return true; | |
295 } | |
296 } | |
279 } | 297 } |