- gdcmAssertMacro (ItDicomDirImage != Images.end());
- {
- ++ItDicomDirImage;
- if (ItDicomDirImage != Images.end())
- return *ItDicomDirImage;
- }
+ gdcmAssertMacro (ItImage != Images.end());
+
+ ++ItImage;
+ if (ItImage != Images.end())
+ return *ItImage;
+ return NULL;
+}
+
+/**
+ * \brief Get the first entry while visiting the DicomDirPrivate
+ * \return The first DicomDirPrivate if DicomDirserie not empty, otherwhise NULL
+ */
+DicomDirPrivate *DicomDirSerie::GetFirstPrivate()
+{
+ ItPrivate = Privates.begin();
+ if (ItPrivate != Privates.end())
+ return *ItPrivate;
+ return NULL;
+}
+
+/**
+ * \brief Get the next entry while visiting the DicomDirPrivates
+ * \note : meaningfull only if GetFirstPrivate already called
+ * \return The next DicomDirPrivates if found, otherwhise NULL
+ */
+DicomDirPrivate *DicomDirSerie::GetNextPrivate()
+{
+ gdcmAssertMacro (ItPrivate != Privates.end());
+
+ ++ItPrivate;
+ if (ItPrivate != Privates.end())
+ return *ItPrivate;