]> Creatis software - gdcm.git/blobdiff - src/gdcmDicomDirSerie.h
ENH: Adding jpeg error handling. As quoted we could be more fancy and throw an except...
[gdcm.git] / src / gdcmDicomDirSerie.h
index 4449d20d0008d84de66b3476fa72611eeb5d0ae3..81e92bdda88a36b9a09618a9cff2483702337b9e 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDicomDirSerie.h,v $
   Language:  C++
-  Date:      $Date: 2005/01/18 07:53:42 $
-  Version:   $Revision: 1.21 $
+  Date:      $Date: 2005/02/04 16:51:36 $
+  Version:   $Revision: 1.27 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -35,30 +35,27 @@ 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 Print( std::ostream &os = std::cout, std::string const &indent = "" );
    void WriteContent( std::ofstream *fp, FileType t );
-   /// Returns the IMAGE chained List for this SERIE.
-   ListDicomDirImage const &GetDicomDirImages() const { return Images; };
-
-   // should avoid exposing internal mechanism
-   DicomDirImage *GetFirstEntry();
-   DicomDirImage *GetNextEntry();
-        
-   /// adds the passed IMAGE to the IMAGE chained List for this SERIE.    
-   void AddDicomDirImage(DicomDirImage *obj) { Images.push_back(obj); };
 
+   // Image methods
    DicomDirImage *NewImage();
+   /// Add a new gdcm::DicomDirImage to the Serie
+   void AddImage(DicomDirImage *obj) { Images.push_back(obj); };
+   void ClearImage();
+
+   DicomDirImage *GetFirstImage();
+   DicomDirImage *GetNextImage();
 
 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
 //-----------------------------------------------------------------------------