]> Creatis software - gdcm.git/commitdiff
Improve 'Print' methods
authorjpr <jpr>
Tue, 23 Aug 2005 12:58:49 +0000 (12:58 +0000)
committerjpr <jpr>
Tue, 23 Aug 2005 12:58:49 +0000 (12:58 +0000)
src/gdcmDocEntry.cxx
src/gdcmSeqEntry.cxx

index edccc2db446bf9d5552f0437c27baf2951c0905f..919913e3ae2fc97d763807273a22f509e9b10964 100644 (file)
@@ -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"; 
       }
index 815031811b443b9c86dc3c2ad1d7ac1cfb3fc919..bf70926df894b97788c2d15ac8bfa0c9fb921061 100644 (file)
@@ -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);