From: jpr Date: Thu, 25 Aug 2005 13:45:40 +0000 (+0000) Subject: According to Mathieu's suggestion, Print now display FL BinEntries in a human X-Git-Tag: Version1.2.bp~200 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=14922bc6265c1a1e183e1643f70fa57c413b5d99;p=gdcm.git According to Mathieu's suggestion, Print now display FL BinEntries in a human readable form --- diff --git a/src/gdcmBinEntry.cxx b/src/gdcmBinEntry.cxx index 25748140..3f2325e3 100644 --- a/src/gdcmBinEntry.cxx +++ b/src/gdcmBinEntry.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmBinEntry.cxx,v $ Language: C++ - Date: $Date: 2005/03/02 17:15:52 $ - Version: $Revision: 1.72 $ + Date: $Date: 2005/08/25 13:45:40 $ + Version: $Revision: 1.73 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -143,8 +143,24 @@ void BinEntry::Print(std::ostream &os, std::string const & ) void* binArea = GetBinArea(); if (binArea) { - s << " [" << GetValue() - << "; length = " << GetLength() << "]"; + if ( GetVR() == "FL" ) + { + int l = GetReadLength()/4 - 1; + float *beg = (float *)GetBinArea(); + s << " [" << *beg; + if ( l!= 0) + for (int i=0;i