]> Creatis software - gdcm.git/blob - src/gdcmDicomDirPatient.h
* src/*.cxx *.h Reference to License.htm fixed to License.html.
[gdcm.git] / src / gdcmDicomDirPatient.h
1 /*=========================================================================
2                                                                                 
3   Program:   gdcm
4   Module:    $RCSfile: gdcmDicomDirPatient.h,v $
5   Language:  C++
6   Date:      $Date: 2004/09/27 08:39:06 $
7   Version:   $Revision: 1.9 $
8                                                                                 
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.
12                                                                                 
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.
16                                                                                 
17 =========================================================================*/
18
19 #ifndef GDCMPATIENT_H
20 #define GDCMPATIENT_H
21
22 #include "gdcmDicomDirObject.h"
23 #include "gdcmDicomDirStudy.h"
24 #include "gdcmSQItem.h"
25 //-----------------------------------------------------------------------------
26 typedef std::list<gdcmDicomDirStudy*> ListDicomDirStudy;
27
28 //-----------------------------------------------------------------------------
29 class GDCM_EXPORT gdcmDicomDirPatient : public gdcmDicomDirObject 
30 {
31 public:
32    gdcmDicomDirPatient(gdcmSQItem *s, TagDocEntryHT *ptagHT); 
33    gdcmDicomDirPatient(TagDocEntryHT *ptagHT); 
34
35    ~gdcmDicomDirPatient();
36
37    virtual void Print(std::ostream &os = std::cout);
38    virtual void Write(FILE *fp, FileType t);
39    /// Returns the STUDY chained List for this PATIENT.
40    ListDicomDirStudy &GetDicomDirStudies() { return studies; };
41
42    /// adds the passed STUDY to the STUDY chained List for this PATIENT.
43    void AddDicomDirStudy(gdcmDicomDirStudy *obj) { studies.push_back(obj); };
44
45    ///  TODO
46    gdcmDicomDirStudy* NewStudy(); 
47          
48 private:
49
50    /// chained list of DicomDirStudy
51    ListDicomDirStudy studies;
52 };
53
54 //-----------------------------------------------------------------------------
55 #endif