X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Testing%2FTestAllReadCompareDicom.cxx;h=d31b1f40cd04fb68f23589a2de8533f90fbff107;hb=6ee5f1d767d15c71d283389adc85948ec6c5edfc;hp=48e2f00bb93eddf5933fcf569803fb0f264c7e32;hpb=ba78e6c6d47d6db1528e8e88e5ebde7296a26692;p=gdcm.git diff --git a/Testing/TestAllReadCompareDicom.cxx b/Testing/TestAllReadCompareDicom.cxx index 48e2f00b..d31b1f40 100644 --- a/Testing/TestAllReadCompareDicom.cxx +++ b/Testing/TestAllReadCompareDicom.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: TestAllReadCompareDicom.cxx,v $ Language: C++ - Date: $Date: 2004/12/03 20:16:56 $ - Version: $Revision: 1.21 $ + Date: $Date: 2004/12/03 20:43:36 $ + Version: $Revision: 1.22 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -17,7 +17,9 @@ =========================================================================*/ #include "gdcmHeader.h" #include "gdcmFile.h" + #include +#include //Generated file: #include "gdcmDataImages.h" @@ -43,7 +45,8 @@ int InternalTest(std::string const & filename, ////// Check for existence of reference baseline dicom file: std::cout << "2..."; - FILE* testFILE = fopen( referenceFileName.c_str(), "r" ); + //FILE* testFILE = fopen( referenceFileName.c_str(), "r" ); + std::ifstream testFILE( referenceFileName.c_str() ); if (! testFILE ) { uint8_t* testedImageData = tested->GetImageData(); // Kludge @@ -54,8 +57,9 @@ int InternalTest(std::string const & filename, } else { - fclose( testFILE ); + //fclose( testFILE ); } + testFILE.close(); ////// Step 3a: ////// When reference file is not gdcm readable test is failed: