]> Creatis software - gdcm.git/blobdiff - src/gdcmDataEntry.cxx
ENH: Try to sync gdcm CVS and gdcm 1.2. ~2000 lines of changes, please be gentle...
[gdcm.git] / src / gdcmDataEntry.cxx
index 1d8706f9596dce302f114a80b08d54af89ce1631..d183d93675735ef05adea15b231abb002d25b2a0 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDataEntry.cxx,v $
   Language:  C++
-  Date:      $Date: 2006/01/27 10:01:33 $
-  Version:   $Revision: 1.29 $
+  Date:      $Date: 2006/02/07 12:37:19 $
+  Version:   $Revision: 1.31 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -575,13 +575,13 @@ void DataEntry::WriteContent(std::ofstream *fp, FileType filetype)
       //  --> user is *not* informed !      
          gdcmDebugMacro ("Nothing was loaded, but we need to skip space on disc. "
                       << "Length =" << l << " for " << GetKey() );   
-         fp->seekp(l, std::ios::cur);
+         fp->seekp(l, std::ios::cur); // At Write time, for unloaded elems
       }
    }
    // to avoid gdcm to propagate oddities
    // (length was already modified)  
    if (l%2)
-      fp->seekp(1, std::ios::cur);  
+      fp->seekp(1, std::ios::cur);  // At Write time, for non even length elems
 }
 
 /**
@@ -642,13 +642,8 @@ void DataEntry::Print(std::ostream &os, std::string const & )
       v = GetString();
       const VRKey &vr = GetVR();
 
-      if( vr == "US" || vr == "SS" )
-         s << " [" << GetString() << "]";
-      else if( vr == "UL" || vr == "SL" )
-         s << " [" << GetString() << "]";
-      else if ( vr == "FL" )
-         s << " [" << GetString() << "]";
-      else if ( vr == "FD" )
+      if( vr == "US" || vr == "SS" || vr == "UL" || vr == "SL" 
+       || vr == "FL" || vr == "FD")
          s << " [" << GetString() << "]";
       else
       {