]> Creatis software - gdcm.git/blob - src/gdcmDicomDirSerie.h
ENH: Removed all FILE* ref and replace by ifstream/ofstream. For now I use a temp...
[gdcm.git] / src / gdcmDicomDirSerie.h
1 /*=========================================================================
2                                                                                 
3   Program:   gdcm
4   Module:    $RCSfile: gdcmDicomDirSerie.h,v $
5   Language:  C++
6   Date:      $Date: 2004/10/22 03:05:41 $
7   Version:   $Revision: 1.12 $
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 GDCMDICOMDIRSERIE_H
20 #define GDCMDICOMDIRSERIE_H
21
22 #include "gdcmDicomDirObject.h"
23 #include "gdcmDicomDirImage.h"
24 namespace gdcm 
25 {
26
27 //-----------------------------------------------------------------------------
28 typedef std::list<DicomDirImage *> ListDicomDirImage;
29
30 //-----------------------------------------------------------------------------
31 class GDCM_EXPORT DicomDirSerie : public DicomDirObject 
32 {
33 public:
34    DicomDirSerie( SQItem* s, TagDocEntryHT* ptagHT ); 
35    DicomDirSerie( TagDocEntryHT* ptagHT ); 
36
37    ~DicomDirSerie();
38
39    virtual void Print( std::ostream& os = std::cout );
40    virtual void Write( std::ofstream* fp, FileType t );
41 /**
42  * \ingroup DicomDirSerie
43  * \brief   returns the IMAGE chained List for this SERIE.
44  */
45    ListDicomDirImage& GetDicomDirImages() { return images; };
46 /**
47  * \ingroup DicomDirSerie
48  * \brief   adds the passed IMAGE to the IMAGE chained List for this SERIE.
49  */       
50    void AddDicomDirImage(DicomDirImage *obj) { images.push_back(obj); };
51
52 /**
53  * \ingroup DicomDirSerie
54  * \brief   TODO
55  */ 
56    DicomDirImage* NewImage();
57     
58 private:
59 /**
60 * \brief chained list of DicomDirImages
61 */ 
62    ListDicomDirImage images;
63 };
64 } // end namespace gdcm
65 //-----------------------------------------------------------------------------
66 #endif