X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmDicomDirStudy.cxx;h=849cc78cd874182dbd6bb1c7984c40207c07d87c;hb=53d8646509a5a15166422a0d41533be61670c6aa;hp=5ac40f93fdddfaf6da441cf0803692bf2d0550c4;hpb=e8caac199c2683cb0f118c42c61dc6aec85b1eec;p=gdcm.git diff --git a/src/gdcmDicomDirStudy.cxx b/src/gdcmDicomDirStudy.cxx index 5ac40f93..849cc78c 100644 --- a/src/gdcmDicomDirStudy.cxx +++ b/src/gdcmDicomDirStudy.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmDicomDirStudy.cxx,v $ Language: C++ - Date: $Date: 2005/01/16 04:50:41 $ - Version: $Revision: 1.23 $ + Date: $Date: 2005/01/17 10:59:52 $ + Version: $Revision: 1.24 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -102,7 +102,33 @@ DicomDirSerie *DicomDirStudy::NewSerie() Series.push_front(st); return st; -} +} + +/** + * \brief Initialise the visit of the Series + */ +void DicomDirStudy::InitTraversal() +{ + ItDicomDirSerie = Series.begin(); +} + +/** + * \brief Get the next entry while visiting the DicomDirSeries + * \return The next DicomDirSeries if found, otherwhise NULL + */ +DicomDirSerie *DicomDirStudy::GetNextEntry() +{ + if (ItDicomDirSerie != Series.end()) + { + DicomDirSerie *tmp = *ItDicomDirSerie; + ++ItDicomDirSerie; + return tmp; + } + else + { + return NULL; + } +} //----------------------------------------------------------------------------- // Protected