From: jpr Date: Thu, 25 Aug 2005 14:59:49 +0000 (+0000) Subject: Now Print displays the BinEntry Content (if it's printable, and loaded) X-Git-Tag: Version1.2.bp~198 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=203521dab07f8ff3325b78969f6994b4a1c4375e;p=gdcm.git Now Print displays the BinEntry Content (if it's printable, and loaded) Usefull for a lot od Implicit VR 'Bin'Entry (if we knew there VR, they wouldn't be Bin ...) Appreciate the difference having a look at PrintFile result for gdcmData/SIEMENS_MAGNETOM-12-MONO2-FileSeq0.dcm. --- diff --git a/src/gdcmBinEntry.cxx b/src/gdcmBinEntry.cxx index 3f2325e3..fdbda3f1 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/08/25 13:45:40 $ - Version: $Revision: 1.73 $ + Date: $Date: 2005/08/25 14:59:49 $ + Version: $Revision: 1.74 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -156,10 +156,33 @@ void BinEntry::Print(std::ostream &os, std::string const & ) } s << "]"; } + else if ( GetVR() == "FD" ) + { + int l = GetReadLength()/8 - 1; + double *beg = (double *)GetBinArea(); + s << " [" << *beg; + if ( l!= 0) + for (int i=0;i