1 /*=========================================================================
4 Module: $RCSfile: gdcmDicomDirImage.cxx,v $
6 Date: $Date: 2004/10/12 04:35:44 $
7 Version: $Revision: 1.12 $
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"
25 //-----------------------------------------------------------------------------
26 // Constructor / Destructor
29 * \ingroup DicomDirImage
31 * @param s SQ Item holding the elements
32 * @param ptagHT pointer to the HTable (DicomDirObject needs it
33 * to build the DocEntries)
35 DicomDirImage::DicomDirImage(SQItem *s, TagDocEntryHT *ptagHT):
36 DicomDirObject(ptagHT)
38 docEntries = s->GetDocEntries();
42 * \ingroup DicomDirImage
44 * @param ptagHT pointer to the HTable (DicomDirObject needs it
45 * to build the DocEntries)
47 DicomDirImage::DicomDirImage(TagDocEntryHT *ptagHT):
48 DicomDirObject(ptagHT)
52 * \ingroup DicomDirImage
53 * \brief Canonical destructor.
55 DicomDirImage::~DicomDirImage()
59 //-----------------------------------------------------------------------------
62 * \ingroup DicomDirImage
63 * \brief Prints the Object
66 void DicomDirImage::Print(std::ostream &os)
69 for(ListDocEntry::iterator i=docEntries.begin();i!=docEntries.end();++i)
71 if( (*i)->GetGroup() == 0x0004 && (*i)->GetElement() == 0x1500 )
73 os << ((ValEntry *)(*i))->GetValue(); //FIXME
78 DicomDirObject::Print(os);
81 //-----------------------------------------------------------------------------
84 //-----------------------------------------------------------------------------
87 //-----------------------------------------------------------------------------
90 //-----------------------------------------------------------------------------
91 } // end namespace gdcm