diff Core/DicomFormat/DicomMap.cpp @ 1360:0649c5aef34a

DicomFindQuery
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 15 May 2015 15:34:32 +0200
parents 61ce8147f30d
children 111e23bb4904
line wrap: on
line diff
--- a/Core/DicomFormat/DicomMap.cpp	Fri May 15 13:17:37 2015 +0200
+++ b/Core/DicomFormat/DicomMap.cpp	Fri May 15 15:34:32 2015 +0200
@@ -406,4 +406,16 @@
     DicomArray a(*this);
     a.Print(fp);
   }
+
+
+  void DicomMap::GetTags(std::set<DicomTag>& tags) const
+  {
+    tags.clear();
+
+    for (Map::const_iterator it = map_.begin();
+         it != map_.end(); ++it)
+    {
+      tags.insert(it->first);
+    }
+  }
 }