X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Testing%2FTestAllPrint.cxx;h=31916f129d06ede71f0d902e997c465bd2eb7bfc;hb=6d07e1c5ea5f9199082dc3e6873509a189d4f0f7;hp=983c09eb909fa6959730606b8dac9e25cf353b56;hpb=e30768c5d2c9057ca9be9bdb2d12ff1eb1384539;p=gdcm.git diff --git a/Testing/TestAllPrint.cxx b/Testing/TestAllPrint.cxx index 983c09eb..31916f12 100644 --- a/Testing/TestAllPrint.cxx +++ b/Testing/TestAllPrint.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: TestAllPrint.cxx,v $ Language: C++ - Date: $Date: 2005/07/02 22:51:04 $ - Version: $Revision: 1.1 $ + Date: $Date: 2006/03/17 14:33:54 $ + Version: $Revision: 1.7 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -25,14 +25,12 @@ #include "gdcmFileHelper.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 @@ -45,13 +43,16 @@ int TestAllPrint(int, char *[]) while( gdcmDataImages[i] != 0 ) { - std::string filename = gdcmDataImages[i]; + std::string filename = GDCM_DATA_ROOT; + filename += "/"; + filename += gdcmDataImages[i]; gdcm::File file; - file.SetLoadMode( NO_SEQ ); - file.Load(filename); + //file.SetLoadMode( gdcm::LD_NOSEQ | gdcm::LD_NOSHADOWSEQ ); + file.SetFileName( filename ); + if( !file.Load() ) + return 1; //file.Print( std::cout ); //just for debug - i++; } return 0;