1 /*=========================================================================
4 Module: $RCSfile: gdcmDicomDirImage.cxx,v $
6 Date: $Date: 2004/12/03 17:13:18 $
7 Version: $Revision: 1.14 $
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
27 * \ingroup DicomDirImage
29 * @param ptagHT pointer to the HTable (DicomDirObject needs it
30 * to build the DocEntries)
32 DicomDirImage::DicomDirImage():
37 * \ingroup DicomDirImage
38 * \brief Canonical destructor.
40 DicomDirImage::~DicomDirImage()
44 //-----------------------------------------------------------------------------
47 * \ingroup DicomDirImage
48 * \brief Prints the Object
51 void DicomDirImage::Print(std::ostream &os)
54 for(ListDocEntry::iterator i = DocEntries.begin();
58 if( (*i)->GetGroup() == 0x0004 && (*i)->GetElement() == 0x1500 )
60 os << ((ValEntry *)(*i))->GetValue(); //FIXME
65 DicomDirObject::Print(os);
68 //-----------------------------------------------------------------------------
71 //-----------------------------------------------------------------------------
74 //-----------------------------------------------------------------------------
77 //-----------------------------------------------------------------------------
78 } // end namespace gdcm