1 /*=========================================================================
4 Module: $RCSfile: gdcmDicomDirImage.cxx,v $
6 Date: $Date: 2005/01/18 14:28:32 $
7 Version: $Revision: 1.18 $
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
29 DicomDirImage::DicomDirImage():
34 * \brief Canonical destructor.
36 DicomDirImage::~DicomDirImage()
40 //-----------------------------------------------------------------------------
43 * \brief Prints the Object
44 * @param os ostream to write to
45 * @param indent indent
48 void DicomDirImage::Print(std::ostream &os, std::string const & )
51 for(ListDocEntry::iterator i = DocEntries.begin();
55 if( (*i)->GetGroup() == 0x0004 && (*i)->GetElement() == 0x1500 )
57 os << ((ValEntry *)(*i))->GetValue(); //FIXME
62 DicomDirObject::Print(os);
65 //-----------------------------------------------------------------------------
68 //-----------------------------------------------------------------------------
71 //-----------------------------------------------------------------------------
74 //-----------------------------------------------------------------------------
75 } // end namespace gdcm