Program: gdcm
Module: $RCSfile: TestAllEntryVerify.cxx,v $
Language: C++
- Date: $Date: 2005/02/03 10:00:06 $
- Version: $Revision: 1.25 $
+ 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;
m--; // adjust the position to set
n++; // next digit to process
}
- return intValue;
+ return (uint16_t)intValue;
}
void ReferenceFileParser::SetDataPath( std::string &inDataPath )
{
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"