1 /*=========================================================================
4 Module: $RCSfile: gdcmDicomDirSerie.h,v $
6 Date: $Date: 2005/02/02 14:52:26 $
7 Version: $Revision: 1.26 $
9 Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
10 l'Image). All rights reserved. See Doc/License.txt or
11 http://www.creatis.insa-lyon.fr/Public/Gdcm/License.html for details.
13 This software is distributed WITHOUT ANY WARRANTY; without even
14 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 PURPOSE. See the above copyright notices for more information.
17 =========================================================================*/
19 #ifndef GDCMDICOMDIRSERIE_H
20 #define GDCMDICOMDIRSERIE_H
22 #include "gdcmDicomDirObject.h"
27 //-----------------------------------------------------------------------------
28 typedef std::list<DicomDirImage *> ListDicomDirImage;
30 //-----------------------------------------------------------------------------
32 * \brief describes a SERIE within a within a STUDY
33 * (DicomDirStudy) of a given DICOMDIR (DicomDir)
35 class GDCM_EXPORT DicomDirSerie : public DicomDirObject
38 DicomDirSerie(bool empty=false);
41 void Print( std::ostream &os = std::cout, std::string const & indent = "" );
42 void WriteContent( std::ofstream *fp, FileType t );
45 DicomDirImage *NewImage();
46 void AddImage(DicomDirImage *obj) { Images.push_back(obj); };
49 DicomDirImage *GetFirstImage();
50 DicomDirImage *GetNextImage();
54 ///chained list of DicomDirImages (to be exploited recursively)
55 ListDicomDirImage Images;
56 /// iterator on the DicomDirImages of the current DicomDirSerie
57 ListDicomDirImage::iterator ItImage;
59 } // end namespace gdcm
60 //-----------------------------------------------------------------------------