]> Creatis software - gdcm.git/blob - src/gdcmDicomDirImage.cxx
Doxygenation
[gdcm.git] / src / gdcmDicomDirImage.cxx
1 /*=========================================================================
2                                                                                 
3   Program:   gdcm
4   Module:    $RCSfile: gdcmDicomDirImage.cxx,v $
5   Language:  C++
6   Date:      $Date: 2005/01/06 15:43:18 $
7   Version:   $Revision: 1.15 $
8                                                                                 
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.
12                                                                                 
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.
16                                                                                 
17 =========================================================================*/
18
19 #include "gdcmDicomDirImage.h"
20 #include "gdcmValEntry.h"
21
22 namespace gdcm 
23 {
24 //-----------------------------------------------------------------------------
25 // Constructor / Destructor
26 /**
27  * \ingroup DicomDirImage
28  * \brief  Constructor 
29  */
30 DicomDirImage::DicomDirImage():
31    DicomDirObject()
32 {
33 }
34 /**
35  * \ingroup DicomDirImage
36  * \brief   Canonical destructor.
37  */
38 DicomDirImage::~DicomDirImage() 
39 {
40 }
41
42 //-----------------------------------------------------------------------------
43 // Print
44 /**
45  * \ingroup DicomDirImage
46  * \brief   Prints the Object
47  * @return
48  */ 
49 void DicomDirImage::Print(std::ostream &os)
50 {
51    os << "IMAGE : ";
52    for(ListDocEntry::iterator i = DocEntries.begin();
53                               i!= DocEntries.end();
54                               ++i)
55    {
56       if( (*i)->GetGroup() == 0x0004 && (*i)->GetElement() == 0x1500 )
57       {
58          os << ((ValEntry *)(*i))->GetValue(); //FIXME
59       }
60    }
61    os << std::endl;
62
63    DicomDirObject::Print(os);
64 }
65
66 //-----------------------------------------------------------------------------
67 // Public
68
69 //-----------------------------------------------------------------------------
70 // Protected
71
72 //-----------------------------------------------------------------------------
73 // Private
74
75 //-----------------------------------------------------------------------------
76 } // end namespace gdcm
77