]> Creatis software - gdcm.git/blobdiff - Testing/TestAllEntryVerify.cxx
COMP: Fix warning on Big endian plateform
[gdcm.git] / Testing / TestAllEntryVerify.cxx
index 089a8ad7cced084ffbd5185de01dcbf5b8247a14..4d47772525ecf2230f661be9eac86a198369df7b 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: TestAllEntryVerify.cxx,v $
   Language:  C++
-  Date:      $Date: 2004/12/03 17:13:17 $
-  Version:   $Revision: 1.15 $
+  Date:      $Date: 2005/01/08 23:18:30 $
+  Version:   $Revision: 1.19 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -21,6 +21,7 @@
 #include <list>
 #include <fstream>
 #include <iostream>
+#include <sstream>
 
 //Generated file:
 #include "gdcmDataImages.h"
@@ -178,7 +179,7 @@ void ReferenceFileParser::Print()
 
 bool ReferenceFileParser::Check()
 {
-   int ret = true;
+   bool ret = true;
    for (MapFileValuesType::iterator i  = ProducedMap.begin();
                                     i != ProducedMap.end();
                                     ++i)
@@ -229,7 +230,7 @@ bool ReferenceFileParser::Check( MapFileValuesType::iterator &fileIt )
       uint16_t group   = axtoi( &(groupString[0]) );
       uint16_t element = axtoi( &(groupElement[0]) );
 
-      std::string testedValue = tested->GetEntryByNumber(group, element);
+      std::string testedValue = tested->GetEntry(group, element);
       if ( testedValue != j->second )
       {
          // Oops make sure this is only the \0 that differ
@@ -669,7 +670,7 @@ int TestAllEntryVerify(int argc, char* argv[])
    }
    Parser.SetDataPath(referenceDir);
    // Parser.Print();
-   std::cout << "Reference fil loaded -->\n"
+   std::cout << "Reference file loaded -->\n"
              << "Check files : \n";
 
    int ret;