X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmDictSet.cxx;h=2e7167d098ee9354c956952543d67900a9e39f55;hb=5d5da90b3d23814b13cfd60f77c4447cf3666556;hp=ec3301a4c573b873f3d3b15168e2dca32b3e7fe5;hpb=1d9ac5cec02b9daa18b16835882b531731b125ad;p=gdcm.git diff --git a/src/gdcmDictSet.cxx b/src/gdcmDictSet.cxx index ec3301a4..2e7167d0 100644 --- a/src/gdcmDictSet.cxx +++ b/src/gdcmDictSet.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmDictSet.cxx,v $ Language: C++ - Date: $Date: 2005/10/18 12:58:27 $ - Version: $Revision: 1.69 $ + Date: $Date: 2005/10/20 09:23:24 $ + Version: $Revision: 1.70 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -112,21 +112,11 @@ DictEntry *DictSet::NewVirtualDictEntry( uint16_t group, { DictEntry *entry; - // Let's follow 'Purify' advice - // - // const std::string tag = DictEntry::TranslateToKey(group,elem) - // + "#" + vr + "#" + vm + "#" + name; -#if FASTTAGKEY && 0 - // FIXME - TagKey tag; - tag.tab[0] = group; - tag.tab[1] = elem; -#else - char res[10]; - sprintf(res,"%04x|%04x", group, elem); - ExtendedTagKey tag = res; + // Let's follow 'Purify' advice + // const std::string tag = DictEntry::TranslateToKey(group,elem) + // + "#" + vr + "#" + vm + "#" + name; + ExtendedTagKey tag = DictEntry::TranslateToKey(group,elem).str(); tag += "#" + vr.str() + "#" + vm + "#" + name; -#endif ExtendedTagKeyHT::iterator it;