1 /*=========================================================================
4 Module: $RCSfile: gdcmDicomDirPatient.h,v $
6 Date: $Date: 2004/10/25 04:08:20 $
7 Version: $Revision: 1.12 $
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"
23 #include "gdcmDicomDirStudy.h"
24 #include "gdcmSQItem.h"
29 //-----------------------------------------------------------------------------
30 typedef std::list<DicomDirStudy*> ListDicomDirStudy;
32 //-----------------------------------------------------------------------------
33 class GDCM_EXPORT DicomDirPatient : public DicomDirObject
36 DicomDirPatient(SQItem *s, TagDocEntryHT *ptagHT);
37 DicomDirPatient(TagDocEntryHT *ptagHT);
41 void Print(std::ostream &os = std::cout);
42 void Write(std::ofstream *fp, FileType t);
44 /// Returns the STUDY chained List for this PATIENT.
45 ListDicomDirStudy const & GetDicomDirStudies() const { return Studies; };
47 /// adds the passed STUDY to the STUDY chained List for this PATIENT.
48 void AddDicomDirStudy (DicomDirStudy *obj) { Studies.push_back(obj); };
51 DicomDirStudy* NewStudy();
55 /// chained list of DicomDirStudy
56 ListDicomDirStudy Studies;
58 } // end namespace gdcm
60 //-----------------------------------------------------------------------------