+ * \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, bool , bool )
+{
+ DicomDirObject::WriteContent(fp, t, false, true);
+
+ for(ListDicomDirImage::iterator cc = Images.begin();
+ cc!= Images.end();
+ ++cc )
+ {
+ (*cc)->WriteContent( fp, t, false, true );
+ }
+ for(ListDicomDirPrivate::iterator cc2 = Privates.begin();
+ cc2!= Privates.end();
+ ++cc2 )
+ {
+ (*cc2)->WriteContent( fp, t, false, true);
+ }
+}
+
+/**
+ * \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 adds a new Private (with the basic elements) to a partially created
+ * DICOMDIR
+ */
+
+DicomDirPrivate *DicomDirSerie::NewPrivate()
+{
+ DicomDirPrivate *dd = DicomDirPrivate::New();
+ Privates.push_back(dd);
+ return dd;
+}
+
+/**
+ * \brief Remove all 'Privates' in the serie