/*========================================================================= Program: gdcm Module: $RCSfile: MakeDicomDir.cxx,v $ Language: C++ Date: $Date: 2005/02/02 14:26:30 $ Version: $Revision: 1.1 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or http://www.creatis.insa-lyon.fr/Public/Gdcm/License.html for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the above copyright notices for more information. =========================================================================*/ #include "gdcmDocEntry.h" #include "gdcmDicomDir.h" #include "gdcmDicomDirPatient.h" #include "gdcmDirList.h" #include // --- void StartMethod(void *toto) { (void)toto; std::cout<<"Start parsing"< 1) dirName = argv[1]; else dirName = GDCM_DATA_ROOT; dcmdir = new gdcm::DicomDir(dirName, true); // we ask for Directory parsing dcmdir->SetStartMethod(StartMethod, (void *) NULL); dcmdir->SetEndMethod(EndMethod); if ( !dcmdir->GetFirstEntry() ) { std::cout << "makeDicomDir: no patient list present. Exiting." << std::endl; return 1; } dcmdir->WriteDicomDir("NewDICOMDIR"); std::cout<