Program: gdcm
Module: $RCSfile: gdcmDicomDirStudy.cxx,v $
Language: C++
- Date: $Date: 2005/01/23 10:12:33 $
- Version: $Revision: 1.30 $
+ Date: $Date: 2005/01/25 11:11:58 $
+ Version: $Revision: 1.31 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
*/
DicomDirStudy::~DicomDirStudy()
{
- for(ListDicomDirSerie::iterator cc = Series.begin();
- cc != Series.end();
- ++cc )
- {
- delete *cc;
- }
+ ClearSerie();
}
//-----------------------------------------------------------------------------
return st;
}
+/**
+ * \brief Remove all series in the study
+ */
+void DicomDirStudy::ClearSerie()
+{
+ for(ListDicomDirSerie::iterator cc = Series.begin();
+ cc != Series.end();
+ ++cc )
+ {
+ delete *cc;
+ }
+ Series.clear();
+}
+
/**
* \brief Get the first entry while visiting the DicomDirSeries
* \return The first DicomDirSerie if found, otherwhise NULL