X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmDictGroupName.cxx;h=f714280cf2b0d7ef0c62f0381543a269505ab8ca;hb=4362b8f0545aa491dcf5295ad96d910aac169462;hp=680c199d85ab1573d30bbdeddae61c94e4aaf573;hpb=3a9e9df62b3198c4f93d1768074b6be828ac7308;p=gdcm.git diff --git a/src/gdcmDictGroupName.cxx b/src/gdcmDictGroupName.cxx index 680c199d..f714280c 100644 --- a/src/gdcmDictGroupName.cxx +++ b/src/gdcmDictGroupName.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmDictGroupName.cxx,v $ Language: C++ - Date: $Date: 2005/04/05 10:56:25 $ - Version: $Revision: 1.1 $ + Date: $Date: 2005/04/06 12:49:27 $ + Version: $Revision: 1.3 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -23,6 +23,7 @@ #include #include +#include namespace gdcm { @@ -49,7 +50,7 @@ DictGroupName::DictGroupName() { char buff[1024]; uint16_t key; - GroupName value; + TagName value; while (!from.eof()) { @@ -79,7 +80,7 @@ DictGroupName::~DictGroupName() //----------------------------------------------------------------------------- // Public -const GroupName &DictGroupName::GetName(uint16_t group) +const TagName &DictGroupName::GetName(uint16_t group) { DictGroupNameHT::const_iterator it = groupName.find(group); if (it == groupName.end()) @@ -107,8 +108,8 @@ void DictGroupName::Print(std::ostream &os) for (DictGroupNameHT::iterator it = groupName.begin(); it != groupName.end(); ++it) { - s << "DictGroupName : " << std::hex << it->first << std::dec - << " = " << it->second << std::endl; + s << "DictGroupName : 0x" << std::hex << std::setw(4) << it->first + << std::dec << " = " << it->second << std::endl; } os << s.str(); }