Program: gdcm
Module: $RCSfile: gdcmFile.cxx,v $
Language: C++
- Date: $Date: 2005/10/19 09:27:24 $
- Version: $Revision: 1.280 $
+ Date: $Date: 2005/10/19 09:43:13 $
+ Version: $Revision: 1.281 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
itemTagGroup = ReadInt16();
itemTagElem = ReadInt16();
}
- catch ( FormatError /*e*/ )
+ catch ( FormatError )
{
- //std::cerr << e << std::endl;
+ gdcmErrorMacro( "Can not read tag for "
+ << " We should have found tag ("
+ << DictEntry::TranslateToKey(testGroup,testElem) << ")"
+ ) ;
+
return false;
}
if ( itemTagGroup != testGroup || itemTagElem != testElem )
{
- gdcmWarningMacro( "Wrong Item Tag found:"
+ gdcmErrorMacro( "Wrong Item Tag found:"
<< " We should have found tag ("
<< DictEntry::TranslateToKey(testGroup,testElem) << ")" << std::endl
<< " but instead we encountered tag ("
<< DictEntry::TranslateToKey(itemTagGroup,itemTagElem) << ")"
- << " at address: " << " 0x(" << (unsigned int)currentPosition << ")"
+ << " at address: " << " 0x(" << std::hex
+ << (unsigned int)currentPosition << std::dec << ")"
) ;
Fp->seekg(positionOnEntry, std::ios::beg);
if ( !ReadTag(testGroup, testElem) )
{
- gdcmErrorMacro( "ReadTag did not succeed... for "
- << DictEntry::TranslateToKey(testGroup,testElem) );
+ gdcmErrorMacro( "ReadTag did not succeed for ("
+ << DictEntry::TranslateToKey(testGroup,testElem)
+ << ")..." );
return 0;
}