From f7ef5349c59478fc7008ab3f763c25482310978a Mon Sep 17 00:00:00 2001 From: jpr Date: Tue, 23 Aug 2005 12:58:49 +0000 Subject: [PATCH] Improve 'Print' methods --- src/gdcmDocEntry.cxx | 9 +++++---- src/gdcmSeqEntry.cxx | 9 +++++---- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/src/gdcmDocEntry.cxx b/src/gdcmDocEntry.cxx index edccc2db..919913e3 100644 --- a/src/gdcmDocEntry.cxx +++ b/src/gdcmDocEntry.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmDocEntry.cxx,v $ Language: C++ - Date: $Date: 2005/07/11 18:13:16 $ - Version: $Revision: 1.61 $ + Date: $Date: 2005/08/23 12:58:49 $ + Version: $Revision: 1.62 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -231,9 +231,10 @@ void DocEntry::Print(std::ostream &os, std::string const & ) lgth = GetReadLength(); // ReadLength, as opposed to Length if (lgth == 0xffffffff) { + st = " ffff "; s.setf(std::ios::left); - s << std::setw(10-st.size()); - s << " ffff "; + s << std::setw(4); + s << " x(ffff) "; s.setf(std::ios::left); s << std::setw(8) << "-1"; } diff --git a/src/gdcmSeqEntry.cxx b/src/gdcmSeqEntry.cxx index 81503181..bf70926d 100644 --- a/src/gdcmSeqEntry.cxx +++ b/src/gdcmSeqEntry.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmSeqEntry.cxx,v $ Language: C++ - Date: $Date: 2005/02/11 15:22:18 $ - Version: $Revision: 1.55 $ + Date: $Date: 2005/08/23 12:58:49 $ + Version: $Revision: 1.56 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -229,9 +229,10 @@ void SeqEntry::Print( std::ostream &os, std::string const & ) if (DelimitorMode) { for ( int i = 0; i < SQDepthLevel; i++ ) - { os << " | " ; - } + os << " --- " << std::endl; + for ( int i = 0; i < SQDepthLevel; i++ ) + os << " | " ; if (SeqTerm != NULL) { SeqTerm->SetPrintLevel(PrintLevel); -- 2.48.1