]> Creatis software - gdcm.git/blob - src/gdcmDicomDirImage.cxx
passed some std::string as 'reference'
[gdcm.git] / src / gdcmDicomDirImage.cxx
1 // gdcmDicomDirImage.cxx
2 //-----------------------------------------------------------------------------
3 #include "gdcmDicomDirImage.h"
4
5 //-----------------------------------------------------------------------------
6 // Constructor / Destructor
7
8 /**
9  * \ingroup gdcmDicomDirImage
10  * \brief  Constructor 
11  * @param  begin  iterator (inside the gdcmParser chained list)
12  *                on the first Header Entry (i.e Dicom Element)
13  *                related to this "IMAGE" part
14  * @param  end  iterator  (inside the gdcmParser chained list)
15  *              on the last Header Entry (i.e Dicom Element) 
16  *              related to this 'IMAGE' part
17  * @param ptagHT pointer to the HTable (gdcmObject needs it 
18  *               to build the gdcmHeaderEntries)
19  * @param plistEntries pointer to the chained List (gdcmObject needs it 
20  *               to build the gdcmHeaderEntries)
21  */
22 gdcmDicomDirImage::gdcmDicomDirImage(ListTag::iterator begin,
23                                      ListTag::iterator end,
24                                      TagHeaderEntryHT *ptagHT, 
25                                      ListTag *plistEntries):
26    gdcmObject(begin,end,ptagHT,plistEntries)
27 {
28 }
29
30 /**
31  * \ingroup gdcmDicomDirImage
32  * \brief   Canonical destructor.
33  */
34 gdcmDicomDirImage::~gdcmDicomDirImage() 
35 {
36 }
37
38 //-----------------------------------------------------------------------------
39 // Print
40 /**
41  * \ingroup gdcmDicomDirImage
42  * \brief   Prints the Object
43  * @return
44  */ 
45 void gdcmDicomDirImage::Print(std::ostream &os)
46 {
47    os<<"IMAGE : ";
48    for(ListTag::iterator i=beginObj;i!=endObj;++i)
49    {
50       if( ((*i)->GetGroup()==0x0004) && ((*i)->GetElement()==0x1500) )
51          os<<(*i)->GetValue();
52    }
53    os<<std::endl;
54
55    gdcmObject::Print(os);
56 }
57
58 //-----------------------------------------------------------------------------
59 // Public
60
61 //-----------------------------------------------------------------------------
62 // Protected
63
64 //-----------------------------------------------------------------------------
65 // Private
66
67 //-----------------------------------------------------------------------------