1 /*=========================================================================
4 Module: $RCSfile: gdcmDicomDirStudy.h,v $
6 Date: $Date: 2005/01/25 11:11:58 $
7 Version: $Revision: 1.22 $
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 GDCMDICOMDIRSTUDY_H
20 #define GDCMDICOMDIRSTUDY_H
22 #include "gdcmDicomDirObject.h"
27 //-----------------------------------------------------------------------------
28 typedef std::list<DicomDirSerie *> ListDicomDirSerie;
30 //-----------------------------------------------------------------------------
32 * \brief describes a STUDY within a within a PATIENT
33 * (DicomDirPatient) of a given DICOMDIR (DicomDir)
35 class GDCM_EXPORT DicomDirStudy : public DicomDirObject
38 DicomDirStudy(bool empty=false);
41 void Print(std::ostream &os = std::cout, std::string const & indent = "" );
42 void WriteContent(std::ofstream *fp, FileType t);
44 // should avoid exposing internal mechanism
45 DicomDirSerie *GetFirstSerie();
46 DicomDirSerie *GetNextSerie();
47 DicomDirSerie *GetLastSerie();
49 /// adds the passed SERIE to the SERIE chained List for this STUDY.
50 void AddSerie(DicomDirSerie *obj) { Series.push_back(obj); };
51 DicomDirSerie* NewSerie();
57 /// chained list of DicomDirSeries (to be exploited recursively)
58 ListDicomDirSerie Series;
59 /// iterator on the DicomDirSeries of the current DicomDirStudy
60 ListDicomDirSerie::iterator ItSerie;
63 } // end namespace gdcm
65 //-----------------------------------------------------------------------------