]> Creatis software - gdcm.git/commitdiff
STYLE: print address in hex, for hexedit
authormalaterre <malaterre>
Tue, 11 Jan 2005 22:05:22 +0000 (22:05 +0000)
committermalaterre <malaterre>
Tue, 11 Jan 2005 22:05:22 +0000 (22:05 +0000)
src/gdcmDocument.cxx

index f5320ec6ea2e7ad67910de14dc43195c61f38ae6..4c85abc879cc503245e81a49c2f55aeb2f42701e 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDocument.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/01/11 19:03:01 $
-  Version:   $Revision: 1.176 $
+  Date:      $Date: 2005/01/11 22:05:22 $
+  Version:   $Revision: 1.177 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -2534,10 +2534,7 @@ bool Document::ReadTag(uint16_t testGroup, uint16_t testElement)
        << std::hex << testGroup << "," << testElement << ")" << std::endl
        << "   but instead we encountered tag ("
        << std::hex << itemTagGroup << "," << itemTagElement << ")"
-       << std::dec
-       << "  at address: " << (unsigned int)currentPosition 
-       << std::hex 
-       << "  0x(" << (unsigned int)currentPosition  << ")" 
+       << "  at address: " << "  0x(" << (unsigned int)currentPosition  << ")" 
        ) ;
       Fp->seekg(positionOnEntry, std::ios::beg);
 
@@ -2576,7 +2573,7 @@ uint32_t Document::ReadTagLength(uint16_t testGroup, uint16_t testElement)
    {
       gdcmVerboseMacro( "Basic Item Length is: "
         << itemLength << std::endl
-        << "  at address: " << (unsigned int)currentPosition);
+        << "  at address: " << std::hex << (unsigned int)currentPosition);
    }
    return itemLength;
 }