X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmDicomDirPatient.cxx;h=e3235ec8e4aa45933c421e3af20c68d8b61c2cb2;hb=cfd7023dd0efe6d0cf17cdc1b31bbf17ac8a9ade;hp=9a26b4fc9ca21da230f0a377ac215131e1c0144b;hpb=e8caac199c2683cb0f118c42c61dc6aec85b1eec;p=gdcm.git diff --git a/src/gdcmDicomDirPatient.cxx b/src/gdcmDicomDirPatient.cxx index 9a26b4fc..e3235ec8 100644 --- a/src/gdcmDicomDirPatient.cxx +++ b/src/gdcmDicomDirPatient.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmDicomDirPatient.cxx,v $ Language: C++ - Date: $Date: 2005/01/16 04:50:41 $ - Version: $Revision: 1.24 $ + Date: $Date: 2005/01/17 10:59:52 $ + Version: $Revision: 1.25 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -102,6 +102,31 @@ DicomDirStudy* DicomDirPatient::NewStudy() return st; } +/** + * \brief Initialise the visit of the DicomDirPatients + */ +void DicomDirPatient::InitTraversal() +{ + ItDicomDirStudy = Studies.begin(); +} + +/** + * \brief Get the next entry while visiting the DicomDirStudies + * \return The next DicomDirStudies if found, otherwhise NULL + */ +DicomDirStudy *DicomDirPatient::GetNextEntry() +{ + if (ItDicomDirStudy != Studies.end()) + { + DicomDirStudy *tmp = *ItDicomDirStudy; + ++ItDicomDirStudy; + return tmp; + } + else + { + return NULL; + } +} //----------------------------------------------------------------------------- // Protected