- virtual void Print(std::ostream &os = std::cout);
- virtual void Write(FILE *fp, FileType t);
-/**
- * \ingroup gdcmDicomDirStudy
- * \brief returns the SERIE chained List for this STUDY.
- */
- ListDicomDirSerie &GetDicomDirSeries() { return series; };
-/**
- * \ingroup gdcmDicomDirStudy
- * \brief adds the passed SERIE to the SERIE chained List for this STUDY.
- */
- void AddDicomDirSerie(gdcmDicomDirSerie *obj) { series.push_back(obj); };
+ // 'Serie' methods
+ DicomDirSerie *NewSerie();
+ /// Adds a gdcm::DicomDirSerie to a gdcm::DicomDirStudy
+ void AddSerie(DicomDirSerie *obj) { Series.push_back(obj); }
+ void ClearSerie();
+ DicomDirSerie *GetFirstSerie();
+ DicomDirSerie *GetNextSerie();
+ DicomDirSerie *GetLastSerie();
+ /// returns the number of Series currently held in the gdcm::DicomDirStudy
+ int GetNumberOfSeries() { return Series.size();}
+
+ // 'Visit' methods
+ DicomDirVisit *NewVisit();
+ /// Adds a gdcm::DicomDirVisit to a gdcm::DicomDirStudy
+ void AddVisit(DicomDirVisit *obj) { Visits.push_back(obj); }
+ void ClearVisit();
+ DicomDirVisit *GetFirstVisit();
+ DicomDirVisit *GetNextVisit();
+ DicomDirVisit *GetLastVisit();
+ /// returns the number of Visit currently held in the gdcm::DicomDirStudy
+ int GetNumberOfVisits() { return Visits.size();}
+
+ // for future use (Full DICOMDIR)
+/*
+ DicomDirResult *GetFirstResult();
+ DicomDirResult *GetNextResult();
+ DicomDirResult *GetLastResult();
+
+ DicomDirStudyComponent *GetFirstStudyComponent();
+ DicomDirStudyComponent *GetNextStudyComponent();
+ DicomDirStudyComponent *GetLastStudyComponent();
+*/
+
+ virtual void Copy(DocEntrySet *set);
+
+protected:
+ DicomDirStudy(bool empty=false);
+ ~DicomDirStudy();