]> Creatis software - gdcm.git/blob - src/gdcmDicomDirPatient.h
BUG: Remove the Print indent mess. Please only one Print per class default paramater...
[gdcm.git] / src / gdcmDicomDirPatient.h
1 /*=========================================================================
2                                                                                 
3   Program:   gdcm
4   Module:    $RCSfile: gdcmDicomDirPatient.h,v $
5   Language:  C++
6   Date:      $Date: 2005/01/16 04:50:41 $
7   Version:   $Revision: 1.18 $
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
24 namespace gdcm 
25 {
26 class DicomDirStudy;
27
28 //-----------------------------------------------------------------------------
29 typedef std::list<DicomDirStudy*> ListDicomDirStudy;
30
31 //-----------------------------------------------------------------------------
32 /**
33  * \ingroup DicomDirPatient
34  * \brief   describes a PATIENT within a DICOMDIR (DicomDir)
35  */
36
37 class GDCM_EXPORT DicomDirPatient : public DicomDirObject 
38 {
39 public:
40    DicomDirPatient(); 
41    ~DicomDirPatient();
42
43    void Print(std::ostream &os = std::cout, std::string const & indent = "" );
44    void WriteContent(std::ofstream *fp, FileType t);
45
46    /// Returns the STUDY chained List for this PATIENT.
47    ListDicomDirStudy const &GetDicomDirStudies() const { return Studies; };
48
49    /// adds the passed STUDY to the STUDY chained List for this PATIENT.
50    void AddDicomDirStudy (DicomDirStudy *obj) { Studies.push_back(obj); };
51
52    ///  TODO
53    DicomDirStudy *NewStudy(); 
54          
55 private:
56
57    /// chained list of DicomDirStudy
58    ListDicomDirStudy Studies;
59 };
60 } // end namespace gdcm
61
62 //-----------------------------------------------------------------------------
63 #endif