From 35289a565abc4469b3cda75288f9dff18786bd55 Mon Sep 17 00:00:00 2001 From: jpr Date: Thu, 13 Jan 2005 14:56:39 +0000 Subject: [PATCH] 2005-01-13 Jean-Pierre Roux * merging of Test/PrintDicomDir and Test/TestDimoDir * removal of now redundant Test/PrintDicomDir * enhancement of Example/PrintDicomDir --- ChangeLog | 5 +++++ Example/PrintDicomDir.cxx | 21 +++++++++++++++++---- 2 files changed, 22 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 96b10e12..437e7122 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-01-13 Jean-Pierre Roux + * merging of Test/PrintDicomDir and Test/TestDimoDir + * removal of now redundant Test/PrintDicomDir + * enhancement of Example/PrintDicomDir + 2005-01-13 Benoit Regrain * Now, python test might work on systems * Add the PrintDicomDir test diff --git a/Example/PrintDicomDir.cxx b/Example/PrintDicomDir.cxx index 0fd13866..f4bbd447 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/01/13 14:20:18 $ - Version: $Revision: 1.12 $ + Date: $Date: 2005/01/13 14:56:39 $ + Version: $Revision: 1.13 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -59,11 +59,24 @@ int main(int argc, char* argv[]) else detailLevel = 3; + if( !e1->IsReadable() ) + { + std::cout<<" DicomDir '"<GetDicomDirPatients().begin() == e1->GetDicomDirPatients().end() ) { - std::cout<<"Empty list"<