]> Creatis software - gdcm.git/commitdiff
Remaining \n in std::cout and std::cerr replaced by std::endl
authorjpr <jpr>
Wed, 24 Sep 2003 13:00:59 +0000 (13:00 +0000)
committerjpr <jpr>
Wed, 24 Sep 2003 13:00:59 +0000 (13:00 +0000)
src/gdcmElValSet.cxx
src/gdcmFile.cxx
src/gdcmHeader.cxx
src/gdcmUtil.cxx

index 395630751727e4b2da442af95717272c77e52e74..000042a55bc34de61cbdb7b7774ff2b8e86e98b1 100644 (file)
@@ -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
index a864ff554eb74eef882b267d643042419149b33c..a3cb423c17e6efa2382f03c014a0c5c896a3df37 100644 (file)
@@ -538,7 +538,7 @@ bool gdcmFile::ReadPixelData(void* destination) {
          } 
          
       //(char *) destination += taille * nBytes;
-      //cout << "destination" << destination << "\n";
+      //cout << "destination" << destination << std::endl;
       }
                 
       return res;
index f8aaef2a6a346ad7a61661490e05f31937f8e83f..52ff002cd456d0f2f315edc2c21a15ea7aea7243 100644 (file)
@@ -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 <<std::endl;
    tokens.erase(tokens.begin(),tokens.end()); // clean any previous value
    Tokenize (LutDescriptionR, tokens, "\\");
    LutLength=atoi(tokens[0].c_str());
@@ -2167,7 +2167,7 @@ void * gdcmHeader::GetLUTRGB(void) {
       unsigned char * g = (unsigned char *)LutG;
       unsigned char * b = (unsigned char *)LutB;
       for(int i=0;i<l;i++) {
-      //cout << "lut16 " << i << " : " << *r << " " << *g << " " << *b << "\n";
+      //cout << "lut16 " << i << " : " << *r << " " << *g << " " << *b << std::endl;
       printf("lut 8 %d : %d %d %d \n",i,*r,*g,*b);
          *rgb++ = *r++;
          *rgb++ = *g++;
index d0a980633fe87cfe3186d8f74cfd6b0724af0dc3..96958337420eef588c35eb75c23d2030db570e35 100644 (file)
@@ -1,4 +1,4 @@
-// $Header: /cvs/public/gdcm/src/gdcmUtil.cxx,v 1.19 2003/09/24 11:37:10 jpr Exp $
+// $Header: /cvs/public/gdcm/src/gdcmUtil.cxx,v 1.20 2003/09/24 13:00:59 jpr Exp $
 
 //This is needed when compiling in debug mode
 #ifdef _MSC_VER
@@ -25,7 +25,7 @@ gdcmDebug::gdcmDebug(int level) {
 void gdcmDebug::Verbose(int Level, const char * Msg1, const char * Msg2) {
    if (Level > 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);
 }