]> Creatis software - gdcm.git/blob - src/gdcmDicomDirStudy.h
Add some commented out lines to prepare future version of 'Full DICOMDIR' stuff
[gdcm.git] / src / gdcmDicomDirStudy.h
1 /*=========================================================================
2                                                                                 
3   Program:   gdcm
4   Module:    $RCSfile: gdcmDicomDirStudy.h,v $
5   Language:  C++
6   Date:      $Date: 2005/02/07 14:48:34 $
7   Version:   $Revision: 1.26 $
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 GDCMDICOMDIRSTUDY_H
20 #define GDCMDICOMDIRSTUDY_H
21
22 #include "gdcmDicomDirObject.h"
23
24 namespace gdcm 
25 {
26 class DicomDirSerie;
27 //-----------------------------------------------------------------------------
28 typedef std::list<DicomDirSerie *> ListDicomDirSerie;
29
30 /*
31 // For future use (Full DICOMDIR)
32 typedef std::list<DicomDirVisit *> ListDicomDirVisit;
33 typedef std::list<DicomDirResult *> ListDicomDirResult;
34 typedef std::list<DicomDirStudyComponent *> ListDicomDirStudyComponent;
35
36 */
37 //-----------------------------------------------------------------------------
38 /**
39  * \brief   describes a STUDY within a within a PATIENT
40  * (DicomDirPatient) of a given DICOMDIR (DicomDir)
41  */
42 class GDCM_EXPORT DicomDirStudy : public DicomDirObject
43 {
44 public:
45    DicomDirStudy(bool empty=false); 
46    ~DicomDirStudy();
47
48    void Print(std::ostream &os = std::cout, std::string const &indent = "" );
49    void WriteContent(std::ofstream *fp, FileType t);
50
51    // Serie methods
52    DicomDirSerie *NewSerie();
53    /// Adds a gdcm::DicomDirSerie to a Study
54    void AddSerie(DicomDirSerie *obj) { Series.push_back(obj); };
55    void ClearSerie();
56
57    DicomDirSerie *GetFirstSerie();
58    DicomDirSerie *GetNextSerie();
59    DicomDirSerie *GetLastSerie();
60
61 /*
62    // for future use (Full DICOMDIR)
63
64    DicomDirVisit *GetFirstVisit();
65    DicomDirVisit *GetNextVisit();
66
67    DicomDirResult *GetFirstResult();
68    DicomDirResult *GetNextResult();
69
70    DicomDirStudyComponent *GetFirstStudyComponent();
71    DicomDirStudyComponent *GetNextStudyComponent();
72
73 */
74     
75 private:
76
77    /// chained list of DicomDirSeries (to be exploited hierarchicaly)
78    ListDicomDirSerie Series;
79    /// iterator on the DicomDirSeries of the current DicomDirStudy
80    ListDicomDirSerie::iterator ItSerie;
81
82 /*
83    // for future use (Full DICOMDIR)
84
85    /// chained list of DicomDirVisits(single level)
86    ListDicomDirVisit Visits;
87    /// iterator on the DicomDirVisits of the current DicomDirStudy
88    ListDicomDirVisit::iterator ItVisit;
89
90    /// chained list of DicomDirResults(single level)
91    ListDicomDirResult Results;
92    /// iterator on the DicomDirResults of the current DicomDirStudy
93    ListDicomDirResult::iterator ItResult;
94
95    /// chained list of DicomDirStudyComponents(single level)
96    ListDicomDirStudyComponent StudyComponents;
97    /// iterator on the DicomDirStudyComponents of the current DicomDirStudy
98    ListDicomDirStudyComponent::iterator ItStudyComponents;
99 */
100 };
101 } // end namespace gdcm
102
103 //-----------------------------------------------------------------------------
104 #endif