X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=src%2FgdcmDocEntry.cxx;h=9f1ec6182df0096be86ebda516a1694268b38849;hb=c13d10dfc093f4e1c112cfe1f5742e76d34ba3b8;hp=795782781a1cfe01aa565011a9ba01a4d7d160c9;hpb=293b091c68447d30c8bda413cff1d6d76d9326a4;p=gdcm.git diff --git a/src/gdcmDocEntry.cxx b/src/gdcmDocEntry.cxx index 79578278..9f1ec618 100644 --- a/src/gdcmDocEntry.cxx +++ b/src/gdcmDocEntry.cxx @@ -3,12 +3,12 @@ Program: gdcm Module: $RCSfile: gdcmDocEntry.cxx,v $ Language: C++ - Date: $Date: 2004/09/24 11:34:21 $ - Version: $Revision: 1.21 $ + Date: $Date: 2004/09/27 08:39:06 $ + Version: $Revision: 1.23 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or - http://www.creatis.insa-lyon.fr/Public/Gdcm/License.htm for details. + http://www.creatis.insa-lyon.fr/Public/Gdcm/License.html for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR @@ -54,7 +54,7 @@ void gdcmDocEntry::Print(std::ostream& os) size_t o; unsigned short int g, e; - char st[20],st2[10]; + char st[20]; TSKey v; std::string d2, vr; std::ostringstream s; @@ -65,8 +65,8 @@ void gdcmDocEntry::Print(std::ostream& os) o = GetOffset(); vr = GetVR(); - sprintf(st2,"%04x|%04x", GetGroup(),GetElement()); - s << st2; + s << gdcmDictEntry::TranslateToKey(GetGroup(),GetElement()); + if (PrintLevel >= 2) { s << " lg : "; @@ -78,13 +78,13 @@ void gdcmDocEntry::Print(std::ostream& os) s << std::setw(10-strlen(st)) << " "; s << st << " "; s.setf(std::ios::left); - s << std::setw(8) << "-1"; + s << std::setw(8) << "-1"; } else { sprintf(st,"x(%x)",lgth); s.setf(std::ios::left); - s << std::setw(10-strlen(st)) << " "; + s << std::setw(10-strlen(st)) << " "; s << st << " "; s.setf(std::ios::left); s << std::setw(8) << lgth;