comparison OrthancFramework/Sources/DicomFormat/DicomArray.cpp @ 4940:304514ce84ee more-tags

tools/find + C-Find + list-resources now all using the same code (ExpandResource) to build 'computed tags'
author Alain Mazy <am@osimis.io>
date Tue, 15 Mar 2022 15:57:21 +0100
parents 43e613a7756b
children 0ea402b4d901
comparison
equal deleted inserted replaced
4939:e8a2e145c80e 4940:304514ce84ee
67 { 67 {
68 return *elements_[i]; 68 return *elements_[i];
69 } 69 }
70 } 70 }
71 71
72 void DicomArray::GetTags(std::set<DicomTag>& tags) const
73 {
74 tags.clear();
75
76 for (size_t i = 0; i < elements_.size(); i++)
77 {
78 tags.insert(elements_[i]->GetTag());
79 }
80
81 }
72 82
73 void DicomArray::Print(FILE* fp) const 83 void DicomArray::Print(FILE* fp) const
74 { 84 {
75 for (size_t i = 0; i < elements_.size(); i++) 85 for (size_t i = 0; i < elements_.size(); i++)
76 { 86 {