]> Creatis software - gdcm.git/blob - src/gdcmDicomDirPatient.h
87c039bdea25d90e023a722c2c3bd0e4e6216742
[gdcm.git] / src / gdcmDicomDirPatient.h
1 // gdcmDicomDirPatient.h
2 //-----------------------------------------------------------------------------
3 #ifndef GDCMPATIENT_H
4 #define GDCMPATIENT_H
5
6 #include "gdcmObject.h"
7 #include "gdcmDicomDirStudy.h"
8 #include "gdcmSQItem.h"
9 //-----------------------------------------------------------------------------
10 typedef std::list<gdcmDicomDirStudy *> ListDicomDirStudy;
11
12 //-----------------------------------------------------------------------------
13 class GDCM_EXPORT gdcmDicomDirPatient : public gdcmObject 
14 {
15 public:
16    gdcmDicomDirPatient(gdcmSQItem *s, TagDocEntryHT *ptagHT); 
17    gdcmDicomDirPatient(TagDocEntryHT *ptagHT); 
18
19    ~gdcmDicomDirPatient(void);
20
21    virtual void Print(std::ostream &os = std::cout);
22 /**
23  * \ingroup gdcmDicomDirPatient
24  * \brief   returns the STUDY chained List for this PATIENT.
25  */
26    inline ListDicomDirStudy &GetDicomDirStudies() 
27       {return studies;};
28 /**
29  * \ingroup gdcmDicomDirPatient
30  * \brief   adds the passed STUDY to the STUDY chained List for this PATIENT.
31  */      
32    inline void AddDicomDirStudy(gdcmDicomDirStudy *obj) 
33       {studies.push_back(obj);};
34 /**
35  * \ingroup gdcmDicomDirPatient
36  * \brief   TODO
37  */ 
38    gdcmDicomDirStudy* NewStudy(void); 
39          
40 private:
41
42 /**
43 * \brief chained list of DicomDirStudy
44 */ 
45    ListDicomDirStudy studies;
46 };
47
48 //-----------------------------------------------------------------------------
49 #endif