]> Creatis software - gdcm.git/blobdiff - Testing/TestAllEntryVerify.cxx
ENH: do not run dash
[gdcm.git] / Testing / TestAllEntryVerify.cxx
index 2f7b86e450349eabfc75ac9afa12e1d994718199..641b8f7829c384b4803d8292a7a68c91180a8445 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: TestAllEntryVerify.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/04/19 10:01:02 $
-  Version:   $Revision: 1.26 $
+  Date:      $Date: 2005/10/18 08:35:45 $
+  Version:   $Revision: 1.29 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
 #include <iostream>
 #include <sstream>
 
-//Generated file:
-//#include "gdcmDataImages.h"
-
-typedef std::string EntryValueType;   // same type as ValEntry::value
+typedef std::string EntryValueType;   // same type as DataEntry::value
 typedef std::map< gdcm::TagKey, EntryValueType > MapEntryValues;
 typedef MapEntryValues *MapEntryValuesPtr;
 typedef std::string FileNameType;
@@ -229,7 +226,11 @@ bool ReferenceFileParser::Check( MapFileValuesType::iterator &fileIt )
 {
    std::string fileName = DataPath + fileIt->first;
    std::cout << Indent << "FileName: " << fileName << std::endl;
-   gdcm::File *tested = new gdcm::File( fileName.c_str() );
+   
+   gdcm::File *tested;
+   tested = new gdcm::File( );
+   tested->SetFileName( fileName.c_str() );
+   tested->Load( );
    if( !tested->IsReadable() )
    {
      std::cerr << Indent << "Failed\n"