1 /*=========================================================================
4 Module: $RCSfile: gdcmDicomDirImage.cxx,v $
6 Date: $Date: 2005/01/23 10:12:33 $
7 Version: $Revision: 1.20 $
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"
21 #include "gdcmGlobal.h"
25 //-----------------------------------------------------------------------------
26 // Constructor / Destructor
30 DicomDirImage::DicomDirImage(bool empty):
35 ListDicomDirImageElem const &elemList =
36 Global::GetDicomDirElements()->GetDicomDirImageElements();
42 * \brief Canonical destructor.
44 DicomDirImage::~DicomDirImage()
48 //-----------------------------------------------------------------------------
51 * \brief Prints the Object
52 * @param os ostream to write to
53 * @param indent Indentation string to be prepended during printing
56 void DicomDirImage::Print(std::ostream &os, std::string const & )
59 for(ListDocEntry::iterator i = DocEntries.begin();
63 if( (*i)->GetGroup() == 0x0004 && (*i)->GetElement() == 0x1500 )
65 os << (dynamic_cast<ValEntry *>(*i))->GetValue(); //FIXME
70 DicomDirObject::Print(os);
73 //-----------------------------------------------------------------------------
76 //-----------------------------------------------------------------------------
79 //-----------------------------------------------------------------------------
82 //-----------------------------------------------------------------------------
83 } // end namespace gdcm