X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmDocEntry.cxx;h=e54f0c987178fd52aa5ab66949aa38102c15ad04;hb=46640df1364cc8916e252b7a45087fed816c9f57;hp=2c250b5a1e1c89741037059864fe37ae5bf8f7f9;hpb=9aa702d6397e3e490263a0791dd6c8ed2f3d1e83;p=gdcm.git diff --git a/src/gdcmDocEntry.cxx b/src/gdcmDocEntry.cxx index 2c250b5a..e54f0c98 100644 --- a/src/gdcmDocEntry.cxx +++ b/src/gdcmDocEntry.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmDocEntry.cxx,v $ Language: C++ - Date: $Date: 2005/10/19 13:17:04 $ - Version: $Revision: 1.73 $ + Date: $Date: 2005/10/20 15:24:09 $ + Version: $Revision: 1.75 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -44,6 +44,19 @@ DocEntry::DocEntry(DictEntry *in) // init some variables ReadLength = 0; Length = 0; + + gdcmAssertMacro(DicomDict); + DicomDict->Register(); +} + +/** + * \brief Destructor from a given DictEntry + */ +DocEntry::~DocEntry() +{ + gdcmAssertMacro(DicomDict); + + DicomDict->Unregister(); } //----------------------------------------------------------------------------- @@ -238,7 +251,7 @@ void DocEntry::Print(std::ostream &os, std::string const & ) o = GetOffset(); vr = GetVR(); if ( vr == GDCM_VRUNKNOWN ) - vr=" "; + vr = " "; s << DictEntry::TranslateToKey(GetGroup(),GetElement());