#include #include "gdcm.h" #include "gdcmHeaderEntry.h" #include "gdcmDicomDir.h" #include #ifdef GDCM_NO_ANSI_STRING_STREAM # include # define ostringstream ostrstream # else # include #endif #include #include #define ostringstream ostrstream //extern "C" using namespace std; int main(int argc, char* argv[]) { gdcmDicomDir *e1; ListTag::iterator deb , fin; ListPatient::iterator itPatient; ListStudy::iterator itStudy; ListSerie::iterator itSerie; ListImage::iterator itImage; TSKey v; std::string file; if (argc > 1) file = argv[1]; else file = "../gdcmData/DICOMDIR"; e1 = new gdcmDicomDir(file.c_str()); if (argc > 2) { int level = atoi(argv[2]); e1->SetPrintLevel(level); } if(e1->GetPatients().begin() == e1->GetPatients().end() ) { std::cout<<"Empty list"<Print(); std::cout<