Program: gdcm
Module: $RCSfile: TestDicomDirElement.cxx,v $
Language: C++
- Date: $Date: 2005/07/08 13:39:57 $
- Version: $Revision: 1.5 $
+ Date: $Date: 2007/05/23 14:18:06 $
+ 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
int TestDicomDirElement(int , char *[])
{
- gdcm::DicomDirElement *ddElt = new gdcm::DicomDirElement();
+ GDCM_NAME_SPACE::DicomDirElement *ddElt = GDCM_NAME_SPACE::DicomDirElement::New();
if (ddElt == 0)
{
- std::cout << "new DicomDirElement failed" << std::endl;
- return 1;
+ std::cout << "new DicomDirElement failed" << std::endl;
+ return 1;
}
ddElt->Print( std::cout );
std::cout << " -------- DicomDirElement After modif --------" <<std::endl;
ddElt->Print( std::cout );
- delete ddElt;
+ ddElt->Delete();
return 0;
}