1 /*=========================================================================
4 Module: $RCSfile: gdcmDicomDirImage.cxx,v $
6 Date: $Date: 2004/08/31 15:39:48 $
7 Version: $Revision: 1.9 $
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 holding 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();
38 * \ingroup gdcmDicomDirImage
40 * @param ptagHT pointer to the HTable (gdcmObject needs it
41 * to build the gdcmDocEntries)
43 gdcmDicomDirImage::gdcmDicomDirImage(TagDocEntryHT *ptagHT):
48 * \ingroup gdcmDicomDirImage
49 * \brief Canonical destructor.
51 gdcmDicomDirImage::~gdcmDicomDirImage()
55 //-----------------------------------------------------------------------------
58 * \ingroup gdcmDicomDirImage
59 * \brief Prints the Object
62 void gdcmDicomDirImage::Print(std::ostream &os)
65 for(ListDocEntry::iterator i=docEntries.begin();i!=docEntries.end();++i)
67 if( (*i)->GetGroup() == 0x0004 && (*i)->GetElement() == 0x1500 )
69 os << ((gdcmValEntry *)(*i))->GetValue(); //FIXME
74 gdcmObject::Print(os);
77 //-----------------------------------------------------------------------------
80 //-----------------------------------------------------------------------------
83 //-----------------------------------------------------------------------------
86 //-----------------------------------------------------------------------------