+/**
+ * \brief Writes the Object
+ * @param fp ofstream to write to
+ * @param t Type of the File (explicit VR, implicitVR, ...)
+ */
+void DicomDirSerie::WriteContent(std::ofstream* fp, FileType t)
+{
+ DicomDirObject::WriteContent(fp, t);
+
+ for(ListDicomDirImage::iterator cc = Images.begin();
+ cc!= Images.end();
+ ++cc )
+ {
+ (*cc)->WriteContent( fp, t );
+ }
+}
+
+/**
+ * \brief adds a new Image (with the basic elements) to a partially created DICOMDIR
+ */
+DicomDirImage* DicomDirSerie::NewImage()
+{
+ ListDicomDirImageElem const & elemList =
+ Global::GetDicomDirElements()->GetDicomDirImageElements();
+
+ DicomDirImage* st = new DicomDirImage();
+ FillObject(elemList);
+ Images.push_front(st);
+
+ return st;
+}