X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Testing%2FTestValidate.cxx;h=ebe4a32e109092c9211cf0688a03d6ae396bfbb1;hb=4552d4ee18f3234af4e037e77abf0622c2702004;hp=01c300ba76dec37aceaad8c0417348a5e038ba7f;hpb=c64b728232bfd4b8455a578f9efb50bd61f88c87;p=gdcm.git diff --git a/Testing/TestValidate.cxx b/Testing/TestValidate.cxx index 01c300ba..ebe4a32e 100644 --- a/Testing/TestValidate.cxx +++ b/Testing/TestValidate.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: TestValidate.cxx,v $ Language: C++ - Date: $Date: 2005/11/09 08:32:50 $ - Version: $Revision: 1.6 $ + Date: $Date: 2007/06/21 14:59:06 $ + Version: $Revision: 1.11 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -28,11 +28,13 @@ int Validate(std::string const &filename); int Validate(std::string const &filename) { - gdcm::File *input = gdcm::File::New( ); + GDCM_NAME_SPACE::File *input = GDCM_NAME_SPACE::File::New( ); input->SetFileName(filename); input->Load(); - gdcm::Validator *v = new gdcm::Validator(); + GDCM_NAME_SPACE::Validator *v = GDCM_NAME_SPACE::Validator::New(); v->SetInput( input ); + input->Delete(); + v->Delete(); return 1; // allways true (we don't want to break the test suite) } @@ -54,11 +56,9 @@ int TestValidate(int argc, char *argv[]) << " filename.dcm " << std::endl; return 1; } - // Try to track the "FIXME" problem for VM - gdcm::Global::GetDicts()->GetDefaultPubDict()->Print(); - + int i =0; - int retVal = 0; //by default this is an error + int retVal = 0; //by default : *no* error while( gdcmDataImages[i] != 0 ) { std::string filename = GDCM_DATA_ROOT;