Program: gdcm
Module: $RCSfile: gdcmHeader.cxx,v $
Language: C++
- Date: $Date: 2004/07/31 23:30:04 $
- Version: $Revision: 1.181 $
+ Date: $Date: 2004/09/01 16:23:59 $
+ Version: $Revision: 1.183 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
/**
* \brief Constructor
* @param filename name of the file whose header we want to analyze
- * @param exception_on_error whether we want to throw an exception or not
*/
-gdcmHeader::gdcmHeader( std::string const & filename,
- bool exception_on_error ):
- gdcmDocument( filename,
- exception_on_error )
+gdcmHeader::gdcmHeader( std::string const & filename ):
+ gdcmDocument( filename )
{
// for some ACR-NEMA images GrPixel, NumPixel is *not* 7fe0,0010
// We may encounter the 'RETired' (0x0028, 0x0200) tag
/**
* \brief Constructor
- * @param exception_on_error whether we want to throw an exception or not
*/
-gdcmHeader::gdcmHeader(bool exception_on_error) :
- gdcmDocument( exception_on_error )
+gdcmHeader::gdcmHeader()
+ :gdcmDocument()
{
}
return 0; // It's supposed to be mandatory
// the caller will have to check
}
-
return atoi( strSize.c_str() );
}
return 0; // It's supposed to be mandatory
// the caller will have to check
}
-
return atoi( strSize.c_str() );
}
return 1; // Well, it's supposed to be mandatory ...
// but sometimes it's missing : *we* assume Gray pixels
}
-
return atoi( strSize.c_str() );
}
{
return 0;
}
-
return atoi( strSize.c_str() );
}
{
return 8;
}
-
dbg.Verbose(0, "gdcmHeader::GetPixelSize: Unknown pixel type");
return 0;
}
{
sign = "S";
}
-
return bitsAlloc + sign;
}