X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmBinEntry.cxx;h=47af8c38888458dcebd528afb2c88285982be9e6;hb=692f863c018c259a380e664d3608a46ec0c8bb3e;hp=ef4f9652a9e15d54fb81badc6467b3c5849065e8;hpb=7815fe9dc3532b716dc478ca0f255263f99d296f;p=gdcm.git diff --git a/src/gdcmBinEntry.cxx b/src/gdcmBinEntry.cxx index ef4f9652..47af8c38 100644 --- a/src/gdcmBinEntry.cxx +++ b/src/gdcmBinEntry.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmBinEntry.cxx,v $ Language: C++ - Date: $Date: 2004/08/16 16:30:32 $ - Version: $Revision: 1.22 $ + Date: $Date: 2004/09/23 09:40:30 $ + Version: $Revision: 1.29 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -28,7 +28,7 @@ */ gdcmBinEntry::gdcmBinEntry(gdcmDictEntry* e) : gdcmValEntry(e) { - VoidArea = NULL; + VoidArea = 0; } /** @@ -42,9 +42,10 @@ gdcmBinEntry::gdcmBinEntry(gdcmDocEntry* e) : gdcmValEntry(e->GetDictEntry()) ImplicitVR = e->IsImplicitVR(); Offset = e->GetOffset(); PrintLevel = e->GetPrintLevel(); - SQDepthLevel = e->GetDepthLevel(); + //FIXME + //SQDepthLevel = e->GetDepthLevel(); - VoidArea = NULL; // let's be carefull ! + VoidArea = 0; // let's be carefull ! } /** @@ -54,8 +55,8 @@ gdcmBinEntry::~gdcmBinEntry() { if (VoidArea) { - free (VoidArea); - VoidArea = NULL; // let's be carefull ! + delete[] VoidArea; + VoidArea = 0; // let's be carefull ! } } @@ -73,8 +74,9 @@ void gdcmBinEntry::Print(std::ostream &os) void *voidArea = GetVoidArea(); if (voidArea) { - s << " [gdcm::Binary data loaded with length is " - << GetLength() << "]"; + //s << " [" << GDCM_BINLOADED + s << " [" << GetValue() + << "; length = " << GetLength() << "]"; } else { @@ -84,7 +86,8 @@ void gdcmBinEntry::Print(std::ostream &os) } else { - s << " [gdcm::Binary data NOT loaded]"; + //s << " [gdcm::Binary data NOT loaded]"; + s << " [" <