X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Example%2FPrintDicomDir.cxx;h=7025c18d1b050e9a59c62a40465f464184a70b89;hb=3bfc348942b85891d4f2a36782e0726df4e4b4c3;hp=8c82604976e2470565159addc2f0545c4cca7fb4;hpb=e42c6e53f5a9afe7486dd2e3ef32eb874ae54902;p=gdcm.git diff --git a/Example/PrintDicomDir.cxx b/Example/PrintDicomDir.cxx index 8c826049..7025c18d 100644 --- a/Example/PrintDicomDir.cxx +++ b/Example/PrintDicomDir.cxx @@ -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();