]> Creatis software - gdcm.git/blob - src/gdcmDicomDirPatient.h
Coding Style + Doxygenation
[gdcm.git] / src / gdcmDicomDirPatient.h
1 /*=========================================================================
2                                                                                 
3   Program:   gdcm
4   Module:    $RCSfile: gdcmDicomDirPatient.h,v $
5   Language:  C++
6   Date:      $Date: 2005/01/06 20:03:27 $
7   Version:   $Revision: 1.16 $
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 typedef std::list<DicomDirStudy*> ListDicomDirStudy;
29
30 //-----------------------------------------------------------------------------
31 class GDCM_EXPORT DicomDirPatient : public DicomDirObject 
32 {
33 public:
34    DicomDirPatient(); 
35    ~DicomDirPatient();
36
37    void Print(std::ostream &os = std::cout);
38    void WriteContent(std::ofstream *fp, FileType t);
39
40    /// Returns the STUDY chained List for this PATIENT.
41    ListDicomDirStudy const &GetDicomDirStudies() const { return Studies; };
42
43    /// adds the passed STUDY to the STUDY chained List for this PATIENT.
44    void AddDicomDirStudy (DicomDirStudy *obj) { Studies.push_back(obj); };
45
46    ///  TODO
47    DicomDirStudy *NewStudy(); 
48          
49 private:
50
51    /// chained list of DicomDirStudy
52    ListDicomDirStudy Studies;
53 };
54 } // end namespace gdcm
55
56 //-----------------------------------------------------------------------------
57 #endif