Mercurial > hg > orthanc
diff 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 |
line wrap: on
line diff
--- a/OrthancFramework/Sources/DicomFormat/DicomArray.cpp Tue Mar 15 09:09:52 2022 +0100 +++ b/OrthancFramework/Sources/DicomFormat/DicomArray.cpp Tue Mar 15 15:57:21 2022 +0100 @@ -69,6 +69,16 @@ } } + void DicomArray::GetTags(std::set<DicomTag>& tags) const + { + tags.clear(); + + for (size_t i = 0; i < elements_.size(); i++) + { + tags.insert(elements_[i]->GetTag()); + } + + } void DicomArray::Print(FILE* fp) const {