1 /*=========================================================================
4 Module: $RCSfile: TestAllVM.cxx,v $
6 Date: $Date: 2005/10/21 14:51:36 $
7 Version: $Revision: 1.2 $
9 Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
10 l'Image). All rights reserved. See Doc/License.txt or
11 http://www.creatis.insa-lyon.fr/Public/Gdcm/License.html for details.
13 This software is distributed WITHOUT ANY WARRANTY; without even
14 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 PURPOSE. See the above copyright notices for more information.
17 =========================================================================*/
20 #include "gdcmDataEntry.h"
23 #include "gdcmDataImages.h"
25 int TestAllVM(int, char *[])
29 while( gdcmDataImages[i] != 0 )
31 std::string filename = GDCM_DATA_ROOT;
33 filename += gdcmDataImages[i];
36 file.SetLoadMode( gdcm::LD_ALL );
37 file.SetFileName( filename );
38 if( !file.Load() ) //would be really bad...
41 gdcm::DocEntry *d = file.GetFirstEntry();
44 if ( gdcm::DataEntry *de = dynamic_cast<gdcm::DataEntry *>(d) )
46 if(! de->IsValueCountValid() )
47 std::cerr << "Filename:" << filename << std::endl;
51 // We skip pb of SQ recursive exploration
54 d = file.GetNextEntry();