From b1ebe82627c2a83cc9dd1239b148779d9a7c32ce Mon Sep 17 00:00:00 2001 From: malaterre Date: Sat, 5 Feb 2005 01:31:36 +0000 Subject: [PATCH] STYLE: Please stop using cout, you have a much more enhance version: gdcmDebug/Verbose/ErrorMacro --- src/gdcmFile.cxx | 18 ++++++------------ src/gdcmJpeg2000.cxx | 13 ++++++------- src/gdcmJpegLS.cxx | 13 ++++++------- 3 files changed, 18 insertions(+), 26 deletions(-) diff --git a/src/gdcmFile.cxx b/src/gdcmFile.cxx index f36f89e2..ac3b4707 100644 --- a/src/gdcmFile.cxx +++ b/src/gdcmFile.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmFile.cxx,v $ Language: C++ - Date: $Date: 2005/02/04 13:15:41 $ - Version: $Revision: 1.210 $ + Date: $Date: 2005/02/05 01:31:36 $ + Version: $Revision: 1.211 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -1102,11 +1102,8 @@ size_t File::GetPixelOffset() } else { -#ifdef GDCM_DEBUG - std::cout << "Big trouble : Pixel Element (" - << std::hex << GrPixel<<","<< NumPixel<< ") NOT found" - << std::endl; -#endif //GDCM_DEBUG + gdcmDebugMacro( "Big trouble : Pixel Element (" + << std::hex << GrPixel<<","<< NumPixel<< ") NOT found" ); return 0; } } @@ -1127,11 +1124,8 @@ size_t File::GetPixelAreaLength() } else { -#ifdef GDCM_DEBUG - std::cout << "Big trouble : Pixel Element (" - << std::hex << GrPixel<<","<< NumPixel<< ") NOT found" - << std::endl; -#endif //GDCM_DEBUG + gdcmDebugMacro( "Big trouble : Pixel Element (" + << std::hex << GrPixel<<","<< NumPixel<< ") NOT found" ); return 0; } } diff --git a/src/gdcmJpeg2000.cxx b/src/gdcmJpeg2000.cxx index 4ab11d6e..9c28c17c 100644 --- a/src/gdcmJpeg2000.cxx +++ b/src/gdcmJpeg2000.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmJpeg2000.cxx,v $ Language: C++ - Date: $Date: 2005/02/01 10:29:55 $ - Version: $Revision: 1.17 $ + Date: $Date: 2005/02/05 01:31:36 $ + Version: $Revision: 1.18 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -15,8 +15,8 @@ PURPOSE. See the above copyright notices for more information. =========================================================================*/ -//----------------------------------------------------------------------------- #include "gdcmFileHelper.h" +#include "gdcmDebug.h" #include #include @@ -33,10 +33,9 @@ namespace gdcm * @warning : not yet made */ -bool gdcm_read_JPEG2000_file (std::ifstream* fp,void* image_buffer) { - (void)fp; //FIXME - (void)image_buffer; //FIXME - std::cout << "Sorry JPEG 2000 File not yet taken into account" << std::endl; +bool gdcm_read_JPEG2000_file (std::ifstream* , void* ) +{ + gdcmVerboseMacro( "Sorry JPEG 2000 File not yet taken into account" ); return false; } diff --git a/src/gdcmJpegLS.cxx b/src/gdcmJpegLS.cxx index e0094b2a..e8726d5e 100644 --- a/src/gdcmJpegLS.cxx +++ b/src/gdcmJpegLS.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmJpegLS.cxx,v $ Language: C++ - Date: $Date: 2005/01/24 16:03:58 $ - Version: $Revision: 1.1 $ + Date: $Date: 2005/02/05 01:31:36 $ + Version: $Revision: 1.2 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -15,8 +15,8 @@ PURPOSE. See the above copyright notices for more information. =========================================================================*/ -//----------------------------------------------------------------------------- #include "gdcmFileHelper.h" +#include "gdcmDebug.h" #include #include @@ -34,10 +34,9 @@ namespace gdcm * @warning : not yet made */ -bool gdcm_read_JPEGLS_file (std::ifstream* fp,void* image_buffer) { - (void)fp; //FIXME - (void)image_buffer; //FIXME - std::cout << "Sorry JPEG-LS File not yet taken into account" << std::endl; +bool gdcm_read_JPEGLS_file (std::ifstream* , void* ) +{ + gdcmVerboseMacro( "Sorry JPEG-LS File not yet taken into account" ); return false; } } // end namespace gdcm -- 2.45.1