diff Core/DicomFormat/DicomMap.cpp @ 3695:898903022836 storage-commitment

integration mainline->storage-commitment
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 26 Feb 2020 10:39:55 +0100
parents 9dac85e807c2 a9ce35d67c3c
children 56f2397f027a
line wrap: on
line diff
--- a/Core/DicomFormat/DicomMap.cpp	Thu Feb 20 20:36:47 2020 +0100
+++ b/Core/DicomFormat/DicomMap.cpp	Wed Feb 26 10:39:55 2020 +0100
@@ -984,6 +984,21 @@
     }
   }
 
+  bool DicomMap::ParseFirstFloat(float& result,
+                                 const DicomTag& tag) const
+  {
+    const DicomValue* value = TestAndGetValue(tag);
+
+    if (value == NULL)
+    {
+      return false;
+    }
+    else
+    {
+      return value->ParseFirstFloat(result);
+    }
+  }
+
   bool DicomMap::ParseDouble(double& result,
                              const DicomTag& tag) const
   {