]> Creatis software - gdcm.git/commitdiff
Update some comments
authorjpr <jpr>
Tue, 25 Jan 2005 15:29:33 +0000 (15:29 +0000)
committerjpr <jpr>
Tue, 25 Jan 2005 15:29:33 +0000 (15:29 +0000)
Testing/TestAllEntryVerify.cxx
Testing/TestChangeHeader.cxx
Testing/TestWriteSimple.cxx

index 7eb124e7410ee7c99163308060c5c4f07e6252f4..089b4c1b1ed61570203d00112ff5379eb6e149e4 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: TestAllEntryVerify.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/01/24 16:10:50 $
-  Version:   $Revision: 1.21 $
+  Date:      $Date: 2005/01/25 15:29:33 $
+  Version:   $Revision: 1.22 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -68,12 +68,12 @@ private:
 
    bool Check( MapFileValuesType::iterator &fileIt );
    std::string ExtractValue(std::string& toSplit)  throw ( ParserException );
-   void ParseRegularLine( std::string& line ) throw ( ParserException );
-   void FirstPassReferenceFile()         throw ( ParserException );
-   bool SecondPassReferenceFile()        throw ( ParserException );
-   void HandleFileName( std::string& line )   throw ( ParserException );
-   void HandleKey( std::string& line )        throw ( ParserException );
-   bool HandleValue( std::string& line )      throw ( ParserException );
+   void ParseRegularLine( std::string& line )      throw ( ParserException );
+   void FirstPassReferenceFile()                   throw ( ParserException );
+   bool SecondPassReferenceFile()                  throw ( ParserException );
+   void HandleFileName( std::string& line )        throw ( ParserException );
+   void HandleKey( std::string& line )             throw ( ParserException );
+   bool HandleValue( std::string& line )           throw ( ParserException );
    static uint16_t axtoi( char* );
 private:
    /// The directory containing the images to check:
@@ -115,12 +115,12 @@ uint16_t ReferenceFileParser::axtoi(char *hexStg) {
   while (n < 4) {
      if (hexStg[n]=='\0')
         break;
-     if (hexStg[n] > 0x29 && hexStg[n] < 0x40 ) //if 0 to 9
-        digit[n] = hexStg[n] & 0x0f;            //convert to int
+     if (hexStg[n] > 0x29 && hexStg[n] < 0x40 )    //if 0 to 9
+        digit[n] = hexStg[n] & 0x0f;               //convert to int
      else if (hexStg[n] >='a' && hexStg[n] <= 'f') //if a to f
-        digit[n] = (hexStg[n] & 0x0f) + 9;      //convert to int
+        digit[n] = (hexStg[n] & 0x0f) + 9;         //convert to int
      else if (hexStg[n] >='A' && hexStg[n] <= 'F') //if A to F
-        digit[n] = (hexStg[n] & 0x0f) + 9;      //convert to int
+        digit[n] = (hexStg[n] & 0x0f) + 9;         //convert to int
      else break;
     n++;
   }
index 40893a3faaa8e5814a287a8c84440752974b166b..7d7723f2548b9e25bde95632c5f5f914987eb1da 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: TestChangeHeader.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/01/24 16:44:53 $
-  Version:   $Revision: 1.31 $
+  Date:      $Date: 2005/01/25 15:29:33 $
+  Version:   $Revision: 1.32 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -31,15 +31,15 @@ int TestChangeHeader(int argc, char* argv[])
       return 1;
    }
 
-   std::string premier = argv[1];
-   gdcmFile  *f1 = new gdcmFile(premier);
+   std::string firstArgument = argv[1];
+   gdcmFile  *f1 = new gdcmFile(firstArgument);
 
-   std::string deuxieme = argv[2];
-   gdcmFile  *f2 = new gdcmFile(deuxieme);
+   std::string secondArgument = argv[2];
+   gdcmFile  *f2 = new gdcmFile(secondArgument);
 
    //f1->PrintPubElVal();
 
-   // We suppose the DICOM Entries of the second file *do* exist !
+   // We suppose the DICOM Entries of the second file *does* exist !
 
    std::string nbFrames = f2->GetHeader()->GetEntryValue(0x0028, 0x0008);
    if(nbFrames != "gdcm::Unfound")
index edd8ba0df2fd33590234cb414171f14a169be2fb..23076f16af32452a70e5fe805eac59eaf6284747 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: TestWriteSimple.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/01/24 16:44:54 $
-  Version:   $Revision: 1.14 $
+  Date:      $Date: 2005/01/25 15:29:33 $
+  Version:   $Revision: 1.15 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -24,6 +24,7 @@
  */
 #include "gdcmFile.h"
 #include "gdcmFileHelper.h"
+#include "gdcmDebug.h"
 
 #include <iostream>
 #include <sstream>