]> Creatis software - gdcm.git/blobdiff - Example/PrintDicomDir.cxx
BUG: Comitting patch from JPR, to support IRAD Data Set
[gdcm.git] / Example / PrintDicomDir.cxx
index c3060c9295d2424fba4370317d7580b2d6350139..257823e89c6caed0781d69efb04b1a57e281755b 100644 (file)
@@ -1,3 +1,20 @@
+/*=========================================================================
+                                                                                
+  Program:   gdcm
+  Module:    $RCSfile: PrintDicomDir.cxx,v $
+  Language:  C++
+  Date:      $Date: 2004/11/16 04:26:17 $
+  Version:   $Revision: 1.6 $
+                                                                                
+  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 <iostream>
 #include "gdcm.h"
 #include "gdcmDocument.h"
@@ -12,10 +29,10 @@ int main(int argc, char* argv[])
 {  
    gdcm::DicomDir *e1;
    
-   gdcm::ListDicomDirPatient::iterator  itPatient;
-   gdcm::ListDicomDirStudy::iterator    itStudy;
-   gdcm::ListDicomDirSerie::iterator    itSerie;
-   gdcm::ListDicomDirImage::iterator    itImage;
+   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;