X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmDict.cxx;h=37180fd96f4bafb79ffcda85cf88ec82ae863fff;hb=abd6bfcc2b10b5f7447d1758938d7c15c31240af;hp=d45b0b26ae313da8efac544b4f80e79006c54326;hpb=1fecdc6dcc36f951de19246bd14ef282b3dec13a;p=gdcm.git diff --git a/src/gdcmDict.cxx b/src/gdcmDict.cxx index d45b0b26..37180fd9 100644 --- a/src/gdcmDict.cxx +++ b/src/gdcmDict.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmDict.cxx,v $ Language: C++ - Date: $Date: 2005/01/07 12:29:17 $ - Version: $Revision: 1.56 $ + Date: $Date: 2005/01/07 19:20:38 $ + Version: $Revision: 1.59 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -44,7 +44,7 @@ Dict::Dict(std::string const &filename) std::ifstream from( filename.c_str() ); if( !from ) { - dbg.Verbose(2,"Dict::Dict: can't open dictionary", filename.c_str()); + gdcmVerboseMacro("Dict::Dict: can't open dictionary" << filename.c_str()); // Using default embeded one: FillDefaultDataDict( this ); } @@ -128,7 +128,7 @@ bool Dict::AddNewEntry(DictEntry const &newEntry) if(KeyHt.count(key) == 1) { - dbg.Verbose(1, "Dict::AddNewEntry already present", key.c_str()); + gdcmVerboseMacro("Dict::AddNewEntry already present" << key.c_str()); return false; } else @@ -166,14 +166,13 @@ bool Dict::RemoveEntry (TagKey const &key) TagKeyHT::const_iterator it = KeyHt.find(key); if(it != KeyHt.end()) { - const DictEntry& entryToDelete = it->second; KeyHt.erase(key); return true; } else { - dbg.Verbose(1, "Dict::RemoveEntry unfound entry", key.c_str()); + gdcmVerboseMacro("Dict::RemoveEntry unfound entry" << key.c_str()); return false; } }