3 #include "gdcmHeaderEntry.h"
4 #include "gdcmDicomDir.h"
7 #ifdef GDCM_NO_ANSI_STRING_STREAM
9 # define ostringstream ostrstream
16 #define ostringstream ostrstream
21 int main(int argc, char* argv[])
24 ListTag::iterator deb , fin;
25 ListPatient::iterator itPatient;
26 ListStudy::iterator itStudy;
27 ListSerie::iterator itSerie;
28 ListImage::iterator itImage;
35 file = "../gdcmData/DICOMDIR";
37 e1 = new gdcmDicomDir(file.c_str());
39 int level = atoi(argv[2]);
40 e1->SetPrintLevel(level);
43 if(e1->GetPatients().begin() == e1->GetPatients().end() )
45 std::cout<<"Empty list"<<std::endl;
50 cout << std::endl << std::endl
51 << " = Contenu Complet du DICOMDIR =========================================="
52 << std::endl<< std::endl;
55 std::cout<<std::flush;