]> Creatis software - gdcm.git/blob - src/gdcmDicomDirStudy.h
ENH: Adding 'gdcm' namespace. Be nice with me this was a ~13000 lines patch. Also...
[gdcm.git] / src / gdcmDicomDirStudy.h
1 /*=========================================================================
2                                                                                 
3   Program:   gdcm
4   Module:    $RCSfile: gdcmDicomDirStudy.h,v $
5   Language:  C++
6   Date:      $Date: 2004/10/12 04:35:45 $
7   Version:   $Revision: 1.10 $
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 #include "gdcmDicomDirSerie.h"
24 namespace gdcm 
25 {
26
27 //-----------------------------------------------------------------------------
28 typedef std::list<DicomDirSerie *> ListDicomDirSerie;
29
30 //-----------------------------------------------------------------------------
31 class GDCM_EXPORT DicomDirStudy : public DicomDirObject
32 {
33 public:
34    DicomDirStudy(SQItem *s, TagDocEntryHT *ptagHT); 
35    DicomDirStudy(TagDocEntryHT *ptagHT); 
36
37    ~DicomDirStudy();
38
39    virtual void Print(std::ostream &os = std::cout);
40    virtual void Write(FILE *fp, FileType t);
41 /**
42  * \ingroup DicomDirStudy
43  * \brief   returns the SERIE chained List for this STUDY.
44  */
45    ListDicomDirSerie &GetDicomDirSeries() { return series; };
46 /**
47  * \ingroup DicomDirStudy
48  * \brief   adds the passed SERIE to the SERIE chained List for this STUDY.
49  */ 
50    void AddDicomDirSerie(DicomDirSerie *obj) { series.push_back(obj); };
51
52 /**
53  * \ingroup DicomDirStudy
54  * \brief   TODO
55  */ 
56    DicomDirSerie* NewSerie();
57     
58 private:
59 /**
60 * \brief chained list of DicomDirSeries (to be exploited recursively)
61 */ 
62    ListDicomDirSerie series;
63 };
64 } // end namespace gdcm
65
66 //-----------------------------------------------------------------------------
67 #endif