]> Creatis software - gdcm.git/commitdiff
Fix some comments
authorjpr <jpr>
Fri, 23 Mar 2007 15:03:00 +0000 (15:03 +0000)
committerjpr <jpr>
Fri, 23 Mar 2007 15:03:00 +0000 (15:03 +0000)
Testing/TestBug.cxx
Testing/TestDicomDir.cxx

index db95841aaf5f597b12410f955b615814ac511289..8f810d18d872e07ef247d93937fcb65b24e492ca 100644 (file)
@@ -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" <<std::endl;
   gdcm::File *f;
   f = gdcm::File::New();
   
@@ -34,9 +35,9 @@ int TestBug(int argc, char *argv[])
       f->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();
 
index 9d99963730695ba518b87656f2e5b80af9da201e..478ed7588db1d80a1b55f38dc37076b977127e03 100644 (file)
@@ -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() << "," <<e2->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 '"<<file
@@ -127,7 +130,7 @@ int TestDicomDir(int argc, char *argv[])
                <<"' is readable"<<std::endl;
    }
 
-   // Test if the DicomDir contains any patient
+   // Test if the gdcm::DicomDir contains any patient
    if( !dicomdir->GetFirstPatient() )
    {
       std::cout<<"          DicomDir '"<<file
@@ -145,7 +148,7 @@ int TestDicomDir(int argc, char *argv[])
 
    pa1 = 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();