1 // gdcmDicomDirImage.cxx
2 //-----------------------------------------------------------------------------
3 #include "gdcmDicomDirImage.h"
4 #include "gdcmValEntry.h"
5 //-----------------------------------------------------------------------------
6 // Constructor / Destructor
9 * \ingroup gdcmDicomDirImage
11 * @param s SQ Item holdoing the elements
12 * @param ptagHT pointer to the HTable (gdcmObject needs it
13 * to build the gdcmDocEntries)
15 gdcmDicomDirImage::gdcmDicomDirImage(gdcmSQItem *s, TagDocEntryHT *ptagHT):
18 docEntries = s->GetDocEntries();
21 gdcmDicomDirImage::gdcmDicomDirImage(TagDocEntryHT *ptagHT):
26 * \ingroup gdcmDicomDirImage
27 * \brief Canonical destructor.
29 gdcmDicomDirImage::~gdcmDicomDirImage()
33 //-----------------------------------------------------------------------------
36 * \ingroup gdcmDicomDirImage
37 * \brief Prints the Object
40 void gdcmDicomDirImage::Print(std::ostream &os)
43 for(ListDocEntry::iterator i=docEntries.begin();i!=docEntries.end();++i)
45 if( ((*i)->GetGroup()==0x0004) && ((*i)->GetElement()==0x1500) )
46 os<<((gdcmValEntry *)(*i))->GetValue();
50 gdcmObject::Print(os);
53 //-----------------------------------------------------------------------------
56 //-----------------------------------------------------------------------------
59 //-----------------------------------------------------------------------------
62 //-----------------------------------------------------------------------------