]> Creatis software - gdcm.git/commitdiff
Remaining cerr replaced by std::cerr
authorjpr <jpr>
Wed, 24 Sep 2003 12:52:30 +0000 (12:52 +0000)
committerjpr <jpr>
Wed, 24 Sep 2003 12:52:30 +0000 (12:52 +0000)
          endl replaced by std::endl

src/gdcmDict.cxx
src/gdcmElValSet.cxx
src/gdcmException.cxx
src/gdcmFile.cxx
src/gdcmRLE.cxx

index 783073cc57ef2174de75c9d41f0ff0b031cd575e..7e4f586b8c7ad32a8de67a00f4dd97db96e9f58f 100644 (file)
@@ -88,7 +88,7 @@ void gdcmDict::PrintByKey(std::ostream& os) {
       os << hex << tag->second->GetElement() << ") = " << dec;
       os << tag->second->GetVR() << ", ";
       os << tag->second->GetFourth() << ", ";
-      os << tag->second->GetName() << "."  << endl;
+      os << tag->second->GetName() << "."  << std::endl;
    }
 }
 
index a672453712cd52d6536a706c37142c6d6bce7657..395630751727e4b2da442af95717272c77e52e74 100644 (file)
@@ -94,7 +94,7 @@ void gdcmElValSet::Print(ostream & os) {
                os << "  ==>\t[" << ts->GetValue(v) << "]"; 
          }
       }              
-      os << endl;
+      os << std::endl;
    }
 } 
 
@@ -109,7 +109,7 @@ void gdcmElValSet::PrintByName(ostream & os) {
       os << tag->first << ": ";
       os << "[" << tag->second->GetValue() << "]";
       os << "[" << tag->second->GetKey()   << "]";
-      os << "[" << tag->second->GetVR()    << "]" << endl;
+      os << "[" << tag->second->GetVR()    << "]" << std::endl;
    }
 }
 
index e79d3225f298f7ddfad2986d3dec589273ee0aa6..66bcb985cfe01e67e7b337f67b21fb33bbff975c 100644 (file)
@@ -30,14 +30,14 @@ catch(...) {
 
 void gdcmException::fatal(const char *from) throw() {
   try {
-    cerr << "Fatal: exception received in " << from 
-        << " while handling exception." << endl;
+    std::cerr << "Fatal: exception received in " << from 
+        << " while handling exception." << std::endl;
     exit(-1);
   }
   catch(...) {
     try {
-      cerr << "Fatal: exception received in Exception::fatal while handling exception."
-          << endl;
+      std::cerr << "Fatal: exception received in Exception::fatal while handling exception."
+          << std::endl;
       exit(-1);
     }
     catch(...) {
@@ -86,7 +86,7 @@ gdcmException::operator const char *() const throw() {
 
 ostream& operator<<(ostream &os, const gdcmException &e) {
   try {  
-    os << "Exception " << e.getName() << " thrown: " << e.getError() << endl;
+    os << "Exception " << e.getName() << " thrown: " << e.getError() << std::endl;
   }
   catch(...) {
     gdcmException::fatal("operator<<(ostream &, const gdcmException&)");
index a88fe481413ee0c67206f79e97b83779f14aecb2..a864ff554eb74eef882b267d643042419149b33c 100644 (file)
@@ -151,7 +151,7 @@ bool gdcmFile::ParsePixelData(void) {
 
       // JPEG Image
 
-      cout << "JPEG image" << endl;
+      cout << "JPEG image" << std::endl;
       ftellRes=ftell(fp);
       fread(&ItemTagGr,2,1,fp);  // Reading (fffe) : Basic Offset Table Item Tag Gr
       fread(&ItemTagEl,2,1,fp);  // Reading (e000) : Basic Offset Table Item Tag El
@@ -220,7 +220,7 @@ bool gdcmFile::ParsePixelData(void) {
 
       // RLE Image
 
-      cout << "RLE image" << endl;
+      cout << "RLE image" << std::endl;
       long RleSegmentLength[15],fragmentLength;
       guint32 nbRleSegments;
       guint32 RleSegmentOffsetTable[15];
index 358a041a722b775353bab55b769db93f8c21109d..213ab4df48956cc696bb3723004c0ddf88d9ecdd 100644 (file)
@@ -37,7 +37,7 @@ static int _gdcm_read_RLE_fragment (char ** image_buffer,
 int
 gdcmFile::gdcm_read_RLE_file (void * image_buffer) {
    char * im = (char *)image_buffer;
-   cout << "RLE image" << endl;
+   cout << "RLE image" << std::endl;
 
    long RleSegmentLength[15],fragmentLength,uncompressedSegmentSize;;
    long ftellRes, ln;