X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Testing%2FTestLoadAllDocumentsNoPrivNoSeq.cxx;h=8fa5711b2d31ae50cef027f300ce0fd67a5da023;hb=74d5a880df013e2a52126578a4b6c6b77dad4e4b;hp=b10a018a2b4222be6bbca816819fd05e830237f8;hpb=ead1ddd3fcdebedc60b1f24c59a1892a7a2da2df;p=gdcm.git diff --git a/Testing/TestLoadAllDocumentsNoPrivNoSeq.cxx b/Testing/TestLoadAllDocumentsNoPrivNoSeq.cxx index b10a018a..8fa5711b 100644 --- a/Testing/TestLoadAllDocumentsNoPrivNoSeq.cxx +++ b/Testing/TestLoadAllDocumentsNoPrivNoSeq.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: TestLoadAllDocumentsNoPrivNoSeq.cxx,v $ Language: C++ - Date: $Date: 2005/09/22 14:42:37 $ - Version: $Revision: 1.2 $ + Date: $Date: 2007/06/21 14:59:06 $ + Version: $Revision: 1.5 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -24,15 +24,14 @@ #include "gdcmFile.h" #include "gdcmUtil.h" #include "gdcmCommon.h" -#include "gdcmBinEntry.h" #include "gdcmDocEntry.h" #include "gdcmDocEntrySet.h" #include "gdcmDocument.h" #include "gdcmElementSet.h" #include "gdcmSeqEntry.h" #include "gdcmSQItem.h" -#include "gdcmValEntry.h" #include "gdcmOrientation.h" + #include #include #include // for std::ios::left, ... @@ -55,10 +54,10 @@ int TestLoadAllDocumentsNoPrivNoSeq(int, char *[]) filename += "/"; //doh! filename += gdcmDataImages[i]; - gdcm::File *f= new gdcm::File( ); + GDCM_NAME_SPACE::File *f= GDCM_NAME_SPACE::File::New( ); f->SetFileName( filename ); // just to improve coverage - f->SetLoadMode (gdcm::LD_NOSEQ|gdcm::LD_NOSHADOW); + f->SetLoadMode (GDCM_NAME_SPACE::LD_NOSEQ|GDCM_NAME_SPACE::LD_NOSHADOW); f->Load(); /* @@ -121,11 +120,11 @@ int TestLoadAllDocumentsNoPrivNoSeq(int, char *[]) { std::cout << filename << " is NOT Readable" << std::endl << std::endl; - delete f; + f->Delete(); return 1; } */ - delete f; + f->Delete(); i++; } return 0;