//-----------------------------------------------------------------------------
// Print
+
/**
* \ingroup gdcmHeader
* \brief
// use the gdcmTS (TS : Transfert Syntax)
std::string TransfertSyntax = GetPubElValByNumber(0x0002,0x0010);
if (TransfertSyntax == GDCM_UNFOUND) {
- dbg.Verbose(0, "gdcmHeader::GetTransferSyntaxName: unfound Transfert Syntax (0002,0010)");
+ dbg.Verbose(0, "gdcmHeader::GetTransfertSyntaxName: unfound Transfert Syntax (0002,0010)");
return "Uncompressed ACR-NEMA";
}
// we do it only when we need it
* @return integer acts as a boolean
*/
bool gdcmHeader::CheckIfExistByNumber(guint16 Group, guint16 Elem ) {
- return (PubElValSet.CheckIfExistByNumber(Group, Elem));
+ return (PubElValSet.CheckIfExistByNumber(Group, Elem)>0);
}
/**
* \brief Loads the element content if it's length is not bigger
* than the value specified with
* gdcmHeader::SetMaxSizeLoadElementValue()
+ * @param ElVal string value of the Dicom Element
*/
void gdcmHeader::LoadElementValue(gdcmElValue * ElVal) {
size_t item_read;
fseek(fp, (long)ElVal->GetOffset(), SEEK_SET);
- // FIXME Sequences not treated yet !
- //
- // Ne faudrait-il pas au contraire trouver immediatement
- // une maniere 'propre' de traiter les sequences (vr = SQ)
- // car commencer par les ignorer risque de conduire a qq chose
- // qui pourrait ne pas etre generalisable
- // Well, I'm expecting your code !!!
-
// the test was commented out to 'go inside' the SeQuences
// we don't any longer skip them !