]> Creatis software - gdcm.git/blobdiff - Example/PrintDicomDir.cxx
ENH: Solve problem with Theralys images
[gdcm.git] / Example / PrintDicomDir.cxx
index 89ba25c00246e9f7a436814162d2065f83864979..6a21a08a9666bd3e502d1f45af27ae1884ef31f7 100644 (file)
@@ -10,13 +10,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 +26,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]);   
@@ -129,12 +129,12 @@ 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;