]> Creatis software - gdcm.git/blobdiff - src/gdcmDebug.cxx
make output more readable
[gdcm.git] / src / gdcmDebug.cxx
index ee5f72b545fb69c44ca30eaaa5031a09b8cd2c6c..31afc8e785eed1022428a0137242178cc17013fd 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDebug.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/11/28 15:20:32 $
-  Version:   $Revision: 1.27 $
+  Date:      $Date: 2005/11/28 16:50:32 $
+  Version:   $Revision: 1.29 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -118,11 +118,11 @@ std::ostream &Debug::GetOutput ()
       return StandardStream;
 }
 
-void Debug::SendToOutput(unsigned int type,std::string const &msg,const CommandManager *mgr)
+void Debug::SendToOutput(unsigned int type,std::string const &msg,const Base *object)
 {
    bool executed=false;
-   if(mgr)
-      executed=mgr->ConstExecuteCommand(type,msg);
+   if( type != CMD_DEBUG && type != CMD_ASSERT )
+      executed=CommandManager::ExecuteCommandConst(object,type,msg);
 
    if(!executed)
       GetOutput() << Command::GetCommandAsString(type) << ": " << msg;