X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmDocEntryArchive.cxx;h=0e9b2d5366c51b29dcfb816edc2581f824ed8bb3;hb=9f28ad122dd01f096e4e5ca18d46aa7a8a0a07fc;hp=913c31008f6a3ebfc85e1155165ef78a2e80cf63;hpb=9ca0e4bb2208be93bebf21d0c5d75c8018e7605a;p=gdcm.git diff --git a/src/gdcmDocEntryArchive.cxx b/src/gdcmDocEntryArchive.cxx index 913c3100..0e9b2d53 100644 --- a/src/gdcmDocEntryArchive.cxx +++ b/src/gdcmDocEntryArchive.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmDocEntryArchive.cxx,v $ Language: C++ - Date: $Date: 2005/06/24 10:55:59 $ - Version: $Revision: 1.15 $ + Date: $Date: 2005/07/11 14:40:40 $ + Version: $Revision: 1.16 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -58,9 +58,9 @@ bool DocEntryArchive::Push(DocEntry *newEntry) uint16_t group = newEntry->GetDictEntry()->GetGroup(); uint16_t elem = newEntry->GetDictEntry()->GetElement(); - std::string key = DictEntry::TranslateToKey(group,elem); + TagKey key = DictEntry::TranslateToKey(group,elem); - if ( Archive.find(key)==Archive.end() ) + if ( Archive.find(key) == Archive.end() ) { // Save the old DocEntry if any DocEntry *old = ArchFile->GetDocEntry(group, elem); @@ -86,7 +86,7 @@ bool DocEntryArchive::Push(DocEntry *newEntry) */ bool DocEntryArchive::Push(uint16_t group, uint16_t elem) { - std::string key = DictEntry::TranslateToKey(group, elem); + TagKey key = DictEntry::TranslateToKey(group, elem); if ( Archive.find(key)==Archive.end() ) { @@ -111,7 +111,7 @@ bool DocEntryArchive::Push(uint16_t group, uint16_t elem) */ bool DocEntryArchive::Restore(uint16_t group, uint16_t elem) { - std::string key=DictEntry::TranslateToKey(group, elem); + TagKey key=DictEntry::TranslateToKey(group, elem); TagDocEntryHT::iterator restoreIt=Archive.find(key); if ( restoreIt!=Archive.end() )