1 /*=========================================================================
4 Module: $RCSfile: gdcmDicomDirPatient.h,v $
6 Date: $Date: 2005/01/11 15:15:38 $
7 Version: $Revision: 1.17 $
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 =========================================================================*/
22 #include "gdcmDicomDirObject.h"
28 //-----------------------------------------------------------------------------
29 typedef std::list<DicomDirStudy*> ListDicomDirStudy;
31 //-----------------------------------------------------------------------------
33 * \ingroup DicomDirPatient
34 * \brief describes a PATIENT within a DICOMDIR (DicomDir)
37 class GDCM_EXPORT DicomDirPatient : public DicomDirObject
43 void Print(std::ostream &os = std::cout);
44 void WriteContent(std::ofstream *fp, FileType t);
46 /// Returns the STUDY chained List for this PATIENT.
47 ListDicomDirStudy const &GetDicomDirStudies() const { return Studies; };
49 /// adds the passed STUDY to the STUDY chained List for this PATIENT.
50 void AddDicomDirStudy (DicomDirStudy *obj) { Studies.push_back(obj); };
53 DicomDirStudy *NewStudy();
57 /// chained list of DicomDirStudy
58 ListDicomDirStudy Studies;
60 } // end namespace gdcm
62 //-----------------------------------------------------------------------------