From: jpr Date: Wed, 24 Sep 2003 12:52:30 +0000 (+0000) Subject: Remaining cerr replaced by std::cerr X-Git-Tag: Version0.3.1~158 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=b950a88db3b779f409f548361bbc62882094b9fb;p=gdcm.git Remaining cerr replaced by std::cerr endl replaced by std::endl --- diff --git a/src/gdcmDict.cxx b/src/gdcmDict.cxx index 783073cc..7e4f586b 100644 --- a/src/gdcmDict.cxx +++ b/src/gdcmDict.cxx @@ -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; } } diff --git a/src/gdcmElValSet.cxx b/src/gdcmElValSet.cxx index a6724537..39563075 100644 --- a/src/gdcmElValSet.cxx +++ b/src/gdcmElValSet.cxx @@ -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; } } diff --git a/src/gdcmException.cxx b/src/gdcmException.cxx index e79d3225..66bcb985 100644 --- a/src/gdcmException.cxx +++ b/src/gdcmException.cxx @@ -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&)"); diff --git a/src/gdcmFile.cxx b/src/gdcmFile.cxx index a88fe481..a864ff55 100644 --- a/src/gdcmFile.cxx +++ b/src/gdcmFile.cxx @@ -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]; diff --git a/src/gdcmRLE.cxx b/src/gdcmRLE.cxx index 358a041a..213ab4df 100644 --- a/src/gdcmRLE.cxx +++ b/src/gdcmRLE.cxx @@ -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;