1 /*=========================================================================
4 Module: $RCSfile: gdcmDicomDirImage.cxx,v $
6 Date: $Date: 2005/01/18 07:53:42 $
7 Version: $Revision: 1.17 $
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
47 void DicomDirImage::Print(std::ostream &os, std::string const & )
50 for(ListDocEntry::iterator i = DocEntries.begin();
54 if( (*i)->GetGroup() == 0x0004 && (*i)->GetElement() == 0x1500 )
56 os << ((ValEntry *)(*i))->GetValue(); //FIXME
61 DicomDirObject::Print(os);
64 //-----------------------------------------------------------------------------
67 //-----------------------------------------------------------------------------
70 //-----------------------------------------------------------------------------
73 //-----------------------------------------------------------------------------
74 } // end namespace gdcm