1 /*=========================================================================
4 Module: $RCSfile: gdcmDicomDirImage.cxx,v $
6 Date: $Date: 2004/10/25 03:35:19 $
7 Version: $Revision: 1.13 $
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.
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"
24 //-----------------------------------------------------------------------------
25 // Constructor / Destructor
28 * \ingroup DicomDirImage
30 * @param s SQ Item holding the elements
31 * @param ptagHT pointer to the HTable (DicomDirObject needs it
32 * to build the DocEntries)
34 DicomDirImage::DicomDirImage(SQItem *s, TagDocEntryHT *ptagHT):
35 DicomDirObject(ptagHT)
37 DocEntries = s->GetDocEntries();
41 * \ingroup DicomDirImage
43 * @param ptagHT pointer to the HTable (DicomDirObject needs it
44 * to build the DocEntries)
46 DicomDirImage::DicomDirImage(TagDocEntryHT *ptagHT):
47 DicomDirObject(ptagHT)
51 * \ingroup DicomDirImage
52 * \brief Canonical destructor.
54 DicomDirImage::~DicomDirImage()
58 //-----------------------------------------------------------------------------
61 * \ingroup DicomDirImage
62 * \brief Prints the Object
65 void DicomDirImage::Print(std::ostream &os)
68 for(ListDocEntry::iterator i = DocEntries.begin();
72 if( (*i)->GetGroup() == 0x0004 && (*i)->GetElement() == 0x1500 )
74 os << ((ValEntry *)(*i))->GetValue(); //FIXME
79 DicomDirObject::Print(os);
82 //-----------------------------------------------------------------------------
85 //-----------------------------------------------------------------------------
88 //-----------------------------------------------------------------------------
91 //-----------------------------------------------------------------------------
92 } // end namespace gdcm