1 /*=========================================================================
4 Module: $RCSfile: gdcmDicomDirImage.cxx,v $
6 Date: $Date: 2004/06/20 18:08:47 $
7 Version: $Revision: 1.7 $
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.
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.
17 =========================================================================*/
19 #include "gdcmDicomDirImage.h"
20 #include "gdcmValEntry.h"
21 //-----------------------------------------------------------------------------
22 // Constructor / Destructor
25 * \ingroup gdcmDicomDirImage
27 * @param s SQ Item holdoing the elements
28 * @param ptagHT pointer to the HTable (gdcmObject needs it
29 * to build the gdcmDocEntries)
31 gdcmDicomDirImage::gdcmDicomDirImage(gdcmSQItem *s, TagDocEntryHT *ptagHT):
34 docEntries = s->GetDocEntries();
37 gdcmDicomDirImage::gdcmDicomDirImage(TagDocEntryHT *ptagHT):
42 * \ingroup gdcmDicomDirImage
43 * \brief Canonical destructor.
45 gdcmDicomDirImage::~gdcmDicomDirImage()
49 //-----------------------------------------------------------------------------
52 * \ingroup gdcmDicomDirImage
53 * \brief Prints the Object
56 void gdcmDicomDirImage::Print(std::ostream &os)
59 for(ListDocEntry::iterator i=docEntries.begin();i!=docEntries.end();++i)
61 if( ((*i)->GetGroup()==0x0004) && ((*i)->GetElement()==0x1500) )
62 os<<((gdcmValEntry *)(*i))->GetValue();
66 gdcmObject::Print(os);
69 //-----------------------------------------------------------------------------
72 //-----------------------------------------------------------------------------
75 //-----------------------------------------------------------------------------
78 //-----------------------------------------------------------------------------