- virtual void Print(std::ostream &os = std::cout);
-/**
- * \ingroup gdcmDicomDirSerie
- * \brief returns the IMAGE chained List for this SERIE.
- */
- inline ListDicomDirImage &GetDicomDirImages()
- {return images;};
-/**
- * \ingroup gdcmDicomDirSerie
- * \brief adds the passed IMAGE to the IMAGE chained List for this SERIE.
- */
- inline void AddDicomDirImage(gdcmDicomDirImage *obj)
- {images.push_back(obj);};
+ void Print( std::ostream &os = std::cout, std::string const & indent = "" );
+ void WriteContent( std::ofstream *fp, FileType t );
+
+ // TODO Remove GetDicomDirImages
+ // use InitTraversal + GetNextEntry instead.
+
+ /// Returns the IMAGE chained List for this SERIE.
+ ListDicomDirImage const &GetDicomDirImages() const { return Images; };
+
+ // should avoid exposing internal mechanism
+ void InitTraversal();
+ DicomDirImage *GetNextEntry();
+
+ /// adds the passed IMAGE to the IMAGE chained List for this SERIE.
+ void AddDicomDirImage(DicomDirImage *obj) { Images.push_back(obj); };
+
+ DicomDirImage *NewImage();