]> Creatis software - gdcm.git/blob - src/gdcmDicomDirStudy.h
- guint16 and guint32 removed. Use ISO C uint16_t, uint32_t instead.
[gdcm.git] / src / gdcmDicomDirStudy.h
1 /*=========================================================================
2                                                                                 
3   Program:   gdcm
4   Module:    $RCSfile: gdcmDicomDirStudy.h,v $
5   Language:  C++
6   Date:      $Date: 2004/07/02 13:55:27 $
7   Version:   $Revision: 1.5 $
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.htm 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 "gdcmObject.h"
23 #include "gdcmDicomDirSerie.h"
24
25 //-----------------------------------------------------------------------------
26 typedef std::list<gdcmDicomDirSerie *> ListDicomDirSerie;
27
28 //-----------------------------------------------------------------------------
29 class GDCM_EXPORT gdcmDicomDirStudy : public gdcmObject {
30 public:
31    gdcmDicomDirStudy(gdcmSQItem *s, TagDocEntryHT *ptagHT); 
32    gdcmDicomDirStudy(TagDocEntryHT *ptagHT); 
33
34    ~gdcmDicomDirStudy(void);
35
36    virtual void Print(std::ostream &os = std::cout);
37 /**
38  * \ingroup gdcmDicomDirStudy
39  * \brief   returns the SERIE chained List for this STUDY.
40  */
41    ListDicomDirSerie &GetDicomDirSeries() 
42       {return series;};
43 /**
44  * \ingroup gdcmDicomDirStudy
45  * \brief   adds the passed SERIE to the SERIE chained List for this STUDY.
46  */ 
47     void AddDicomDirSerie(gdcmDicomDirSerie *obj) 
48        {series.push_back(obj);};
49
50 /**
51  * \ingroup gdcmDicomDirStudy
52  * \brief   TODO
53  */ 
54    gdcmDicomDirSerie* NewSerie(void);
55     
56 private:
57 /**
58 * \brief chained list of DicomDirSeries (to be exploited recursively)
59 */ 
60    ListDicomDirSerie series;
61 };
62
63 //-----------------------------------------------------------------------------
64 #endif