Program: gdcm
Module: $RCSfile: gdcmDicomDirPatient.cxx,v $
Language: C++
- Date: $Date: 2005/02/02 10:02:16 $
- Version: $Revision: 1.37 $
+ Date: $Date: 2005/10/25 14:52:33 $
+ Version: $Revision: 1.39 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
DicomDirPatient::DicomDirPatient(bool empty)
:DicomDirObject()
{
- if( !empty )
+ if ( !empty )
{
ListDicomDirStudyElem const &elemList =
Global::GetDicomDirElements()->GetDicomDirPatientElements();
*/
DicomDirStudy* DicomDirPatient::NewStudy()
{
- DicomDirStudy *st = new DicomDirStudy();
- Studies.push_back(st);
- return st;
+ DicomDirStudy *dd = DicomDirStudy::New();
+ Studies.push_back(dd);
+ return dd;
}
/**
cc != Studies.end();
++cc )
{
- delete *cc;
+ (*cc)->Delete();
}
Studies.clear();
}