X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Testing%2FTestAllVM.cxx;h=0abb80701e060e599e57c2475cba0f17a11c832f;hb=6278320cc85da00d2d56ffbf07806e84966892c3;hp=8c28b66125e1994500524979aca1e165f4aa6302;hpb=e8e92cc914e652a6bbb3bcec2e16eabf97afb0af;p=gdcm.git diff --git a/Testing/TestAllVM.cxx b/Testing/TestAllVM.cxx index 8c28b661..0abb8070 100644 --- a/Testing/TestAllVM.cxx +++ b/Testing/TestAllVM.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: TestAllVM.cxx,v $ Language: C++ - Date: $Date: 2006/03/25 17:02:11 $ - Version: $Revision: 1.12 $ + Date: $Date: 2007/06/21 14:59:06 $ + Version: $Revision: 1.15 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -24,21 +24,22 @@ int DoTheVMTest(std::string const &filename) { - gdcm::File *file = gdcm::File::New(); + GDCM_NAME_SPACE::File *file = GDCM_NAME_SPACE::File::New(); // - Do not test unknow VM in shadow groups (if element 0x0000 is present) // - Skip Sequences (if they are 'True Length'); loading will be quicker // (anyway, Sequences are skipped at processing time ...) - file->SetLoadMode( gdcm::LD_NOSHADOW | gdcm::LD_NOSEQ ); + file->SetLoadMode( GDCM_NAME_SPACE::LD_NOSHADOW | GDCM_NAME_SPACE::LD_NOSEQ ); file->SetFileName( filename ); if( !file->Load() ) //would be really bad... return 1; - gdcm::DocEntry *d = file->GetFirstEntry(); + GDCM_NAME_SPACE::DocEntry *d = file->GetFirstEntry(); std::cerr << "Testing file : " << filename << std::endl; + GDCM_NAME_SPACE::DataEntry *de; while(d) { - if ( gdcm::DataEntry *de = dynamic_cast(d) ) + if ( (de = dynamic_cast(d)) ) { if ( !(de->GetGroup() % 2) ) // Don't check shadow elements. Righ now, // Private Dictionnary are not dealt with @@ -86,9 +87,9 @@ int TestAllVM(int argc, char *argv[]) filename += gdcmDataImages[i]; if (!strcmp(gdcmDataImages[i],"00191113.dcm")) // Track bug on Darwin - gdcm::Debug::DebugOn(); + GDCM_NAME_SPACE::Debug::DebugOn(); else - gdcm::Debug::DebugOff(); + GDCM_NAME_SPACE::Debug::DebugOff(); if( DoTheVMTest( filename ) ) return 1;