]> Creatis software - gdcm.git/blobdiff - gdcmPython/demo/PrintFile.py.in
* Testing/TestSequence.cxx : add test for sequences of images... test that
[gdcm.git] / gdcmPython / demo / PrintFile.py.in
index a0539c7f322e2499cc575362d27432810e709565..77b1058c973ad20b40e4fd7b1a69f28b7c50dc13 100644 (file)
@@ -39,3 +39,15 @@ while(val):
    val=file.GetNextEntry()
 val=None
 
+print "##############################################################"
+val=file.GetFirstEntry()
+while(val):
+   if(isinstance(val,gdcm.ValEntryPtr)):
+      print "Val %04d|%04d [%s] : %s" % (val.GetGroup(),val.GetElement(),
+                                         val.GetName(),val.GetValue())
+   else:
+      print "Bin %04d|%04d [%s] : %s" % (val.GetGroup(),val.GetElement(),
+                                         val.GetName(),val.GetValue())
+   val=file.GetNextEntry()
+val=None
+