]> Creatis software - gdcm.git/blobdiff - Example/PrintDicomDir.cxx
update my tasks
[gdcm.git] / Example / PrintDicomDir.cxx
index 00adffc0e00ebd07350a3ff23705440379d83d12..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"
@@ -10,13 +27,13 @@ using namespace std;
 
 int main(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) 
@@ -26,7 +43,7 @@ int main(int argc, char* argv[])
       file += "/DICOMDIR";
    }
 
-   e1 = new gdcmDicomDir( file );
+   e1 = new gdcm::DicomDir( file );
 
    if (argc > 2) {
       int level = atoi(argv[2]);   
@@ -130,11 +147,11 @@ int main(int argc, char* argv[])
  */  
 
 
-   cout << std::endl << std::endl  
-        << " = DICOMDIR full content ==========================================" 
-        << std::endl<< std::endl;
-   e1->Print();
-  
+//   cout << std::endl << std::endl  
+//        << " = DICOMDIR full content ==========================================" 
+//        << std::endl<< std::endl;
+//   e1->Print();
+
    std::cout<<std::flush;
    delete e1;