]> Creatis software - gdcm.git/blobdiff - src/gdcmDict.cxx
ENH: update gdcmDebug after Benoit comments
[gdcm.git] / src / gdcmDict.cxx
index d45b0b26ae313da8efac544b4f80e79006c54326..37180fd96f4bafb79ffcda85cf88ec82ae863fff 100644 (file)
@@ -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;
   }
 }