]> Creatis software - gdcm.git/blobdiff - src/gdcmDicomDirSerie.h
BUG: Remove mem leak.
[gdcm.git] / src / gdcmDicomDirSerie.h
index 992231747dea2e68f18acb63c13d3b26e475b35d..21a68c55e762eb1e6d0bbb0ef306994d84dbe415 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDicomDirSerie.h,v $
   Language:  C++
-  Date:      $Date: 2005/01/17 10:59:52 $
-  Version:   $Revision: 1.20 $
+  Date:      $Date: 2005/01/28 17:01:29 $
+  Version:   $Revision: 1.25 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -35,33 +35,28 @@ typedef std::list<DicomDirImage *> ListDicomDirImage;
 class GDCM_EXPORT DicomDirSerie : public DicomDirObject 
 {
 public:
-   DicomDirSerie(); 
+   DicomDirSerie(bool empty=false); 
    ~DicomDirSerie();
 
    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();
+   DicomDirImage *GetFirstImage();
+   DicomDirImage *GetNextImage();
         
    /// adds the passed IMAGE to the IMAGE chained List for this SERIE.    
-   void AddDicomDirImage(DicomDirImage *obj) { Images.push_back(obj); };
-
+   void AddImage(DicomDirImage *obj) { Images.push_back(obj); };
    DicomDirImage *NewImage();
 
+   void ClearImage();
+
 private:
 
    ///chained list of DicomDirImages (to be exploited recursively)
    ListDicomDirImage Images;
    /// iterator on the DicomDirImages of the current DicomDirSerie
-   ListDicomDirImage::iterator ItDicomDirImage;
+   ListDicomDirImage::iterator ItImage;
 };
 } // end namespace gdcm
 //-----------------------------------------------------------------------------