X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmDebug.cxx;h=31afc8e785eed1022428a0137242178cc17013fd;hb=359ebc818c100156bd8f7a3a8783f2c538474990;hp=ee5f72b545fb69c44ca30eaaa5031a09b8cd2c6c;hpb=46afb30d2d016a9b1581c7ee4ca96d614a35203c;p=gdcm.git diff --git a/src/gdcmDebug.cxx b/src/gdcmDebug.cxx index ee5f72b5..31afc8e7 100644 --- a/src/gdcmDebug.cxx +++ b/src/gdcmDebug.cxx @@ -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;