X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Testing%2FTestAllEntryVerify.cxx;h=641b8f7829c384b4803d8292a7a68c91180a8445;hb=d9f8b4b69e332d38e9c883ba60f40dc858883de9;hp=2f7b86e450349eabfc75ac9afa12e1d994718199;hpb=2b7924b7a76b3ea24b1ad2b7e32d1f83b1a7ecae;p=gdcm.git diff --git a/Testing/TestAllEntryVerify.cxx b/Testing/TestAllEntryVerify.cxx index 2f7b86e4..641b8f78 100644 --- a/Testing/TestAllEntryVerify.cxx +++ b/Testing/TestAllEntryVerify.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: TestAllEntryVerify.cxx,v $ Language: C++ - Date: $Date: 2005/04/19 10:01:02 $ - Version: $Revision: 1.26 $ + Date: $Date: 2005/10/18 08:35:45 $ + Version: $Revision: 1.29 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -23,10 +23,7 @@ #include #include -//Generated file: -//#include "gdcmDataImages.h" - -typedef std::string EntryValueType; // same type as ValEntry::value +typedef std::string EntryValueType; // same type as DataEntry::value typedef std::map< gdcm::TagKey, EntryValueType > MapEntryValues; typedef MapEntryValues *MapEntryValuesPtr; typedef std::string FileNameType; @@ -229,7 +226,11 @@ bool ReferenceFileParser::Check( MapFileValuesType::iterator &fileIt ) { std::string fileName = DataPath + fileIt->first; std::cout << Indent << "FileName: " << fileName << std::endl; - gdcm::File *tested = new gdcm::File( fileName.c_str() ); + + gdcm::File *tested; + tested = new gdcm::File( ); + tested->SetFileName( fileName.c_str() ); + tested->Load( ); if( !tested->IsReadable() ) { std::cerr << Indent << "Failed\n"