]> Creatis software - gdcm.git/blobdiff - src/gdcmDataEntry.cxx
* Fix the unix installation for the python part
[gdcm.git] / src / gdcmDataEntry.cxx
index a35ef4e7f22007b7a9d9535f88ede76df0536af0..6c7a11b813f1900a2b16857dfbc783e9bdaa9eb4 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDataEntry.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/10/18 08:35:51 $
-  Version:   $Revision: 1.1 $
+  Date:      $Date: 2005/10/20 07:23:50 $
+  Version:   $Revision: 1.4 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -196,7 +196,7 @@ double DataEntry::GetValue(const uint32_t &id) const
                {
                   if( count == 0 )
                   {
-                     tmp[i] = NULL;
+                     tmp[i] = 0;
                      break;
                   }
                   else
@@ -327,7 +327,7 @@ std::string const &DataEntry::GetString() const
    {
       uint16_t *data=(uint16_t *)BinArea;
 
-      for (int i=0; i < GetValueCount(); i++)
+      for (unsigned int i=0; i < GetValueCount(); i++)
       {
          if( i!=0 )
             s << '\\';
@@ -340,7 +340,7 @@ std::string const &DataEntry::GetString() const
    {
       uint32_t *data=(uint32_t *)BinArea;
 
-      for (int i=0; i < GetValueCount(); i++)
+      for (unsigned int i=0; i < GetValueCount(); i++)
       {
          if( i!=0 )
             s << '\\';
@@ -352,7 +352,7 @@ std::string const &DataEntry::GetString() const
    {
       float *data=(float *)BinArea;
 
-      for (int i=0; i < GetValueCount(); i++)
+      for (unsigned int i=0; i < GetValueCount(); i++)
       {
          if( i!=0 )
             s << '\\';
@@ -364,7 +364,7 @@ std::string const &DataEntry::GetString() const
    {
       double *data=(double *)BinArea;
 
-      for (int i=0; i < GetValueCount(); i++)
+      for (unsigned int i=0; i < GetValueCount(); i++)
       {
          if( i!=0 )
             s << '\\';
@@ -501,6 +501,12 @@ void DataEntry::Print(std::ostream &os, std::string const & )
    os << "D ";
    DocEntry::Print(os);
 
+   uint16_t g = GetGroup();
+   if (g == 0xfffe) // delimiters have NO value
+   {          
+      return; // just to avoid identing all the remaining code 
+   }
+
    std::ostringstream s;
    TSAtr v;