]> Creatis software - gdcm.git/blobdiff - Example/PrintDicomDir.cxx
2005-01-11 Jean-Pierre Roux <jpr@creatis.univ-lyon1.fr>
[gdcm.git] / Example / PrintDicomDir.cxx
index b8c948df29dc5fc070fd1e39d452d4931c51addc..58000a16bedb76a306216177375aeb200da4289b 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: PrintDicomDir.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/01/08 15:03:57 $
-  Version:   $Revision: 1.9 $
+  Date:      $Date: 2005/01/11 11:37:12 $
+  Version:   $Revision: 1.10 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -23,6 +23,7 @@
 #include "gdcmDicomDirSerie.h"
 #include "gdcmDicomDirImage.h"
 #include "gdcmTS.h"
+#include "gdcmDebug.h"
 
 #include <fstream>
 #include <iostream>
@@ -45,6 +46,9 @@ int main(int argc, char* argv[])
       file += "/DICOMDIR";
    }
 
+   if (argc > 3)
+      gdcm::Debug::SetDebugOn();
+
    e1 = new gdcm::DicomDir( file );
 
    if (argc > 2) {