From ef2310f21de240bd96e0b1451ccd4a8695768b05 Mon Sep 17 00:00:00 2001 From: regrain Date: Wed, 2 Feb 2005 17:47:56 +0000 Subject: [PATCH] * Test of an older code -- BeNours --- src/gdcmBinEntry.cxx | 10 +++++----- src/gdcmFile.cxx | 12 ++++++------ 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/gdcmBinEntry.cxx b/src/gdcmBinEntry.cxx index 678f6fb1..5707b614 100644 --- a/src/gdcmBinEntry.cxx +++ b/src/gdcmBinEntry.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmBinEntry.cxx,v $ Language: C++ - Date: $Date: 2005/02/02 17:20:34 $ - Version: $Revision: 1.62 $ + Date: $Date: 2005/02/02 17:47:56 $ + Version: $Revision: 1.63 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -85,7 +85,7 @@ void BinEntry::WriteContent(std::ofstream *fp, FileType filetype) // to write image with Big Endian Transfert Syntax, // and we are working on Little Endian Processor -#ifdef GDCM_WORDS_BIGENDIAN +/*#ifdef GDCM_WORDS_BIGENDIAN // TODO FIXME Right now, we only care of Pixels element // 8 Bits Pixels *are* OB, 16 Bits Pixels *are* OW @@ -123,9 +123,9 @@ void BinEntry::WriteContent(std::ofstream *fp, FileType filetype) // For any other VR, BinEntry is re-written as-is fp->write ( (char*)binArea, lgr ); } -#else +#else*/ fp->write ( (char*)binArea, lgr ); // Elem value -#endif //GDCM_WORDS_BIGENDIAN +//#endif //GDCM_WORDS_BIGENDIAN } else diff --git a/src/gdcmFile.cxx b/src/gdcmFile.cxx index cc5ff672..95addb4f 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/02 16:18:48 $ - Version: $Revision: 1.208 $ + Date: $Date: 2005/02/02 17:47:56 $ + Version: $Revision: 1.209 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -1301,7 +1301,7 @@ bool File::Write(std::string fileName, FileType filetype) } } -/* + #ifdef GDCM_WORDS_BIGENDIAN // Super Super hack that will make gdcm a BOMB ! but should // Fix temporarily the dashboard @@ -1316,11 +1316,11 @@ bool File::Write(std::string fileName, FileType filetype) } } #endif //GDCM_WORDS_BIGENDIAN -*/ + Document::WriteContent(fp, filetype); -/* + #ifdef GDCM_WORDS_BIGENDIAN // Flip back the pixel ... I told you this is a hack if ( GetPixelSize() == 16 ) @@ -1333,7 +1333,7 @@ bool File::Write(std::string fileName, FileType filetype) } } #endif //GDCM_WORDS_BIGENDIAN -*/ + fp->close(); delete fp; -- 2.48.1