-//-----------------------------------------------------------------------------
-// Public
-/*
- * \ingroup gdcmDicomSerie
- * \brief adds a new Image to a partially created DICOMDIR
+/**
+ * \brief adds a new Image (with the basic elements) to a partially created
+ * DICOMDIR
+ */
+DicomDirImage *DicomDirSerie::NewImage()
+{
+ DicomDirImage *dd = DicomDirImage::New();
+ Images.push_back(dd);
+ return dd;
+}
+
+/**
+ * \brief Remove all images in the serie
+ */
+void DicomDirSerie::ClearImage()
+{
+ for(ListDicomDirImage::iterator cc = Images.begin();
+ cc != Images.end();
+ ++cc)
+ {
+ (*cc)->Delete();
+ }
+ Images.clear();
+}
+
+/**
+ * \brief Get the first entry while visiting the DicomDirImage
+ * \return The first DicomDirImage if DicomDirserie not empty, otherwhise NULL
+ */
+DicomDirImage *DicomDirSerie::GetFirstImage()
+{
+ ItImage = Images.begin();
+ if (ItImage != Images.end())
+ return *ItImage;
+ return NULL;
+}
+
+/**
+ * \brief Get the next entry while visiting the DicomDirImages
+ * \note : meaningfull only if GetFirstEntry already called
+ * \return The next DicomDirImages if found, otherwhise NULL