X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Testing%2FTestDicomDir.cxx;h=1bd8fd227ad93a80c9ebb554a789051108cc97e1;hb=51e53b78f995e2dde4f75570a8bf3b0dac5209c2;hp=de6219b03d4115964b91102527cce0030ee9aba9;hpb=d4d5ec2ca5d62d9b6a64519e93f2ac4b2168df40;p=gdcm.git diff --git a/Testing/TestDicomDir.cxx b/Testing/TestDicomDir.cxx index de6219b0..1bd8fd22 100644 --- a/Testing/TestDicomDir.cxx +++ b/Testing/TestDicomDir.cxx @@ -1,19 +1,40 @@ -#include "gdcm.h" +/*========================================================================= + + Program: gdcm + Module: $RCSfile: TestDicomDir.cxx,v $ + Language: C++ + Date: $Date: 2004/12/07 09:08:45 $ + Version: $Revision: 1.23 $ + + 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 "gdcmDicomDirStudy.h" +#include "gdcmDicomDirSerie.h" +#include "gdcmDicomDirImage.h" +#include "gdcmTS.h" #include #include int TestDicomDir(int argc, char* argv[]) { - gdcmDicomDir *e1; + gdcm::DicomDir *e1; - ListDicomDirPatient::iterator itPatient; - ListDicomDirStudy::iterator itStudy; - ListDicomDirSerie::iterator itSerie; - ListDicomDirImage::iterator itImage; - TSKey v; + gdcm::ListDicomDirPatient::const_iterator itPatient; + gdcm::ListDicomDirStudy::const_iterator itStudy; + gdcm::ListDicomDirSerie::const_iterator itSerie; + //gdcm::ListDicomDirImage::const_iterator itImage; + gdcm::TSKey v; std::string file; if (argc > 1) @@ -23,7 +44,7 @@ int TestDicomDir(int argc, char* argv[]) file += "/DICOMDIR"; } - e1 = new gdcmDicomDir(file); + e1 = new gdcm::DicomDir(file); if (argc > 2) { int level = atoi(argv[2]); e1->SetPrintLevel(level);