Program: gdcm
Module: $RCSfile: TestValidate.cxx,v $
Language: C++
- Date: $Date: 2005/11/18 10:31:22 $
- Version: $Revision: 1.8 $
+ 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
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)
}
<< " 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 : *no* error
while( gdcmDataImages[i] != 0 )