]> Creatis software - gdcm.git/blobdiff - Example/PrintDicomDir.cxx
ENH: Adding the ex to the list
[gdcm.git] / Example / PrintDicomDir.cxx
index 8c82604976e2470565159addc2f0545c4cca7fb4..7025c18d1b050e9a59c62a40465f464184a70b89 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: PrintDicomDir.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/07/11 10:13:17 $
-  Version:   $Revision: 1.26 $
+  Date:      $Date: 2005/07/21 04:55:50 $
+  Version:   $Revision: 1.28 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -46,7 +46,7 @@ int main(int argc, char* argv[])
    // Initialize Arguments Manager   
    gdcm::ArgMgr *am= new gdcm::ArgMgr(argc, argv);
   
-   if (argc == 1
+   if (argc == 1 || am->ArgMgrDefined("usage") )
    {
       am->ArgMgrUsage(usage); // Display 'usage'
       delete am;
@@ -145,6 +145,7 @@ int main(int argc, char* argv[])
          while ( st ) { // on degouline les STUDY de ce patient
             std::cout << "--- Stud.descr:["    << st->GetEntryValue(0x0008, 0x1030) << "]"; // Study Description 
             std::cout << " Stud.ID:["          << st->GetEntryValue(0x0020, 0x0010) << "]"; // Study ID
+            std::cout << std::endl; 
             st = pa->GetNextStudy();
          }
          pa = f->GetNextPatient();