From: jpr Date: Wed, 24 Sep 2003 13:00:59 +0000 (+0000) Subject: Remaining \n in std::cout and std::cerr replaced by std::endl X-Git-Tag: Version0.3.1~157 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=52364c14a6ae132d7cedcfca51f49a6f411316a3;hp=b950a88db3b779f409f548361bbc62882094b9fb;p=gdcm.git Remaining \n in std::cout and std::cerr replaced by std::endl --- diff --git a/src/gdcmElValSet.cxx b/src/gdcmElValSet.cxx index 39563075..000042a5 100644 --- a/src/gdcmElValSet.cxx +++ b/src/gdcmElValSet.cxx @@ -405,7 +405,7 @@ void gdcmElValSet::WriteElements(FileType type, FILE * _fp) { val = tag2->second->GetValue().c_str(); vr = tag2->second->GetVR(); - // cout << "Tag "<< hex << gr << " " << el << "\n"; + // cout << "Tag "<< hex << gr << " " << el << std::endl; if ( type == ACR ) { if (gr < 0x0008) continue; // ignore pure DICOM V3 groups diff --git a/src/gdcmFile.cxx b/src/gdcmFile.cxx index a864ff55..a3cb423c 100644 --- a/src/gdcmFile.cxx +++ b/src/gdcmFile.cxx @@ -538,7 +538,7 @@ bool gdcmFile::ReadPixelData(void* destination) { } //(char *) destination += taille * nBytes; - //cout << "destination" << destination << "\n"; + //cout << "destination" << destination << std::endl; } return res; diff --git a/src/gdcmHeader.cxx b/src/gdcmHeader.cxx index f8aaef2a..52ff002c 100644 --- a/src/gdcmHeader.cxx +++ b/src/gdcmHeader.cxx @@ -1,4 +1,4 @@ -// $Header: /cvs/public/gdcm/src/Attic/gdcmHeader.cxx,v 1.85 2003/09/24 11:37:10 jpr Exp $ +// $Header: /cvs/public/gdcm/src/Attic/gdcmHeader.cxx,v 1.86 2003/09/24 13:00:59 jpr Exp $ //This is needed when compiling in debug mode #ifdef _MSC_VER @@ -1764,7 +1764,7 @@ void * gdcmHeader::LoadElementVoidArea(guint16 Group, guint16 Elem) { void * a = malloc(l); if(!a) { cout << "Big Broblem (LoadElementVoidArea, malloc) " - << hex << Group << " " << Elem << "\n"; + << hex << Group << " " << Elem << std::endl; return NULL; } int res = PubElValSet.SetVoidAreaByNumber(a, Group, Elem); @@ -1772,7 +1772,7 @@ void * gdcmHeader::LoadElementVoidArea(guint16 Group, guint16 Elem) { size_t l2 = fread(a, 1, l ,fp); if(l != l2) { cout << "Big Broblem (LoadElementVoidArea, fread) " - << hex << Group << " " << Elem << "\n"; + << hex << Group << " " << Elem << std::endl; free(a); return NULL; } @@ -2030,7 +2030,7 @@ int gdcmHeader::GetLUTLength(void) { dbg.Verbose(0, "gdcmHeader::GetLUTLength: The CLUT R,G,B are not equal"); return 0; } - cout << "Lut Description " << LutDescriptionR <<"\n"; + cout << "Lut Description " << LutDescriptionR < DebugLevel) return ; - std::cerr << Msg1 << ' ' << Msg2 << '\n'; + std::cerr << Msg1 << ' ' << Msg2 << std::endl; } void gdcmDebug::Assert(int Level, bool Test, @@ -33,19 +33,19 @@ void gdcmDebug::Assert(int Level, bool Test, if (Level > DebugLevel) return ; if (!Test) - std::cerr << Msg1 << ' ' << Msg2 << '\n'; + std::cerr << Msg1 << ' ' << Msg2 << std::endl; } void gdcmDebug::Error( bool Test, const char * Msg1, const char * Msg2) { if (!Test) return; - std::cerr << Msg1 << ' ' << Msg2 << '\n'; + std::cerr << Msg1 << ' ' << Msg2 << std::endl; Exit(1); } void gdcmDebug::Error(const char* Msg1, const char* Msg2, const char* Msg3) { - std::cerr << Msg1 << ' ' << Msg2 << ' ' << Msg3 << '\n'; + std::cerr << Msg1 << ' ' << Msg2 << ' ' << Msg3 << std::endl; Exit(1); }