From 672fdd02ec4d8f1fa7b15f438c96cbf3f52b64e6 Mon Sep 17 00:00:00 2001 From: jpr Date: Fri, 23 Mar 2007 15:03:00 +0000 Subject: [PATCH] Fix some comments --- Testing/TestBug.cxx | 9 +++++---- Testing/TestDicomDir.cxx | 13 ++++++++----- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/Testing/TestBug.cxx b/Testing/TestBug.cxx index db95841a..8f810d18 100644 --- a/Testing/TestBug.cxx +++ b/Testing/TestBug.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: TestBug.cxx,v $ Language: C++ - Date: $Date: 2006/04/07 10:58:51 $ - Version: $Revision: 1.22 $ + Date: $Date: 2007/03/23 15:03:00 $ + Version: $Revision: 1.23 $ 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 @@ int TestBug(int argc, char *argv[]) { +std::cout << "==========test" <SetFileName( filename.c_str() ); } f->Load( ); - f->Print(); + // f->Print(); std::cout << "-------------End of Print file ------------" << std::cout; - f->GetPubDict()->Print(); + //f->GetPubDict()->Print(); std::cout << "-------------End of Print Dict ------------" << std::cout; f->Delete(); diff --git a/Testing/TestDicomDir.cxx b/Testing/TestDicomDir.cxx index 9d999637..478ed758 100644 --- a/Testing/TestDicomDir.cxx +++ b/Testing/TestDicomDir.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: TestDicomDir.cxx,v $ Language: C++ - Date: $Date: 2006/05/31 16:51:41 $ - Version: $Revision: 1.43 $ + Date: $Date: 2007/03/23 15:03:01 $ + Version: $Revision: 1.44 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -69,6 +69,9 @@ int CompareSQItem(gdcm::SQItem *pa1, gdcm::SQItem *pa2 ) ((gdcm::DataEntry *)e2)->GetString() ) { + /// \todo : check the value *written on disc*, not the value converted as a std::string + /// (this comparison doesn't make the difference between Ox(ff) and "255" ...) + // serious trouble : values differ in source and destination file std::cout << "for gdcm DicomDir element (" << std::hex << e2->GetGroup() << "," <GetElement() @@ -111,7 +114,7 @@ int TestDicomDir(int argc, char *argv[]) dicomdir->SetPrintLevel(level); } - // Test if the DicomDir is readable + // Test if the DICOMDIR file is readable if( !dicomdir->IsReadable() ) { std::cout<<" DicomDir '"<GetFirstPatient() ) { std::cout<<" DicomDir '"<GetFirstPatient(); while ( pa1 ) - { // we process all the PATIENT of this DICOMDIR + { // we process all the PATIENT of this gdcm::DicomDir std::cout << pa1->GetEntryString(0x0010, 0x0010) << std::endl; // Patient's Name st1 = pa1->GetFirstStudy(); -- 2.45.1