+ * \brief Writes the Object
+ * @param fp ofstream to write to
+ * @param t Type of the File (explicit VR, implicitVR, ...)
+ * @return
+ */
+void DicomDirStudy::WriteContent(std::ofstream *fp, FileType t)
+{
+ DicomDirObject::WriteContent(fp, t);
+
+ for(ListDicomDirSerie::iterator cc = Series.begin();
+ cc!= Series.end();
+ ++cc )
+ {
+ (*cc)->WriteContent( fp, t );
+ }
+
+ for(ListDicomDirVisit::iterator icc = Visits.begin();
+ icc!= Visits.end();
+ ++icc )
+ {
+ (*icc)->WriteContent( fp, t );
+ }
+}
+
+/**
+ * \brief adds a new Serie at the beginning of the SerieList
+ * of a partially created DICOMDIR
+ */
+DicomDirSerie *DicomDirStudy::NewSerie()
+{
+ DicomDirSerie *st = new DicomDirSerie();
+ Series.push_back(st);
+ return st;
+}
+
+/**
+ * \brief Remove all series in the study