]> Creatis software - gdcm.git/blob - src/gdcmImage.cxx
* gdcmDirList : to parse a hard drive directory in recursive (or not)
[gdcm.git] / src / gdcmImage.cxx
1 // gdcmImage.cxx
2 //-----------------------------------------------------------------------------
3 #include "gdcmImage.h"
4
5 //-----------------------------------------------------------------------------
6 // Constructor / Destructor
7 gdcmImage::gdcmImage(ListTag::iterator begin,ListTag::iterator end):
8    gdcmObject(begin,end)
9 {
10 }
11
12 gdcmImage::~gdcmImage() 
13 {
14 }
15
16 //-----------------------------------------------------------------------------
17 // Print
18 void gdcmImage::Print(std::ostream &os)
19 {
20    os<<"IMAGE : ";
21    for(ListTag::iterator i=beginObj;i!=endObj;++i)
22    {
23       if( ((*i)->GetGroup()==0x0004) && ((*i)->GetElement()==0x1500) )
24          os<<(*i)->GetValue();
25    }
26    os<<std::endl;
27
28    gdcmObject::Print(os);
29 }
30
31 //-----------------------------------------------------------------------------
32 // Public
33
34 //-----------------------------------------------------------------------------
35 // Protected
36
37 //-----------------------------------------------------------------------------
38 // Private
39
40 //-----------------------------------------------------------------------------