Program: gdcm
Module: $RCSfile: gdcmDicomDirPatient.cxx,v $
Language: C++
- Date: $Date: 2005/01/06 20:03:27 $
- Version: $Revision: 1.23 $
+ Date: $Date: 2005/01/18 07:53:42 $
+ Version: $Revision: 1.26 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
* \brief Prints the Object
* @param os ostream to write to
*/
-void DicomDirPatient::Print(std::ostream &os)
+void DicomDirPatient::Print(std::ostream &os, std::string const & )
{
os << "PATIENT" << std::endl;
DicomDirObject::Print(os);
return st;
}
+/**
+ * \brief Get the first entry while visiting the DicomDirStudy
+ * \return The first DicomDirStudy if found, otherwhise NULL
+ */
+DicomDirStudy *DicomDirPatient::GetFirstEntry()
+{
+ ItDicomDirStudy = Studies.begin();
+ return *ItDicomDirStudy;
+}
+
+/**
+ * \brief Get the next entry while visiting the DicomDirStudies
+ * \note : meaningfull only if GetFirstEntry already called
+ * \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