X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmDocEntry.cxx;h=f954dfc242c22c3701d42509c78d03f44e2f0fe9;hb=0bbf3772212391cff69ed451c0a089279ee0c27c;hp=fcd2db28b0edb4480db26844cacab23a6f81effd;hpb=ba78e6c6d47d6db1528e8e88e5ebde7296a26692;p=gdcm.git diff --git a/src/gdcmDocEntry.cxx b/src/gdcmDocEntry.cxx index fcd2db28..f954dfc2 100644 --- a/src/gdcmDocEntry.cxx +++ b/src/gdcmDocEntry.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmDocEntry.cxx,v $ Language: C++ - Date: $Date: 2004/12/03 20:16:57 $ - Version: $Revision: 1.34 $ + Date: $Date: 2005/01/06 13:35:38 $ + Version: $Revision: 1.37 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -48,7 +48,6 @@ DocEntry::DocEntry(DictEntry* in) // init some variables ReadLength = 0; UsableLength = 0; - PrintLevel = 0; } //----------------------------------------------------------------------------- @@ -60,8 +59,6 @@ DocEntry::DocEntry(DictEntry* in) */ void DocEntry::Print(std::ostream& os) { - PrintLevel = 2; // FIXME - size_t o; std::string st; TSKey v; @@ -71,6 +68,8 @@ void DocEntry::Print(std::ostream& os) o = GetOffset(); vr = GetVR(); + if(vr==GDCM_UNKNOWN) + vr=" "; s << DictEntry::TranslateToKey(GetGroup(),GetElement()); @@ -166,7 +165,7 @@ void DocEntry::WriteContent(std::ofstream* fp, FileType filetype) uint16_t z = 0; uint16_t shortLgr = lgr; - if (vr == "unkn") + if (vr == GDCM_UNKNOWN) { // Unknown was 'written' // deal with Little Endian @@ -252,7 +251,6 @@ void DocEntry::Copy (DocEntry* e) ReadLength = e->ReadLength; ImplicitVR = e->ImplicitVR; Offset = e->Offset; - PrintLevel = e->PrintLevel; // TODO : remove DocEntry SQDepth }