Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
* \brief Accessor to the Transfer Syntax (when present) of the
* current document (it internally handles reading the
* value from disk when only parsing occured).
* \brief Accessor to the Transfer Syntax (when present) of the
* current document (it internally handles reading the
* value from disk when only parsing occured).
// Skip if user wants to write an ACR-NEMA file
if ( filetype == ImplicitVR || filetype == ExplicitVR ||
// Skip if user wants to write an ACR-NEMA file
if ( filetype == ImplicitVR || filetype == ExplicitVR ||
Fp->read((char*)data, l);
if ( Fp->fail() || Fp->eof() )
{
Fp->read((char*)data, l);
if ( Fp->fail() || Fp->eof() )
{
- // explicit VR AND OB, OW, SQ, UT : 4 more bytes
+ // explicit VR AND (OB, OW, SQ, UT) : 4 more bytes
// It's too late to do the Job
// (we should check the value, but we know it after LoadDocEntry ...)
// It's too late to do the Job
// (we should check the value, but we know it after LoadDocEntry ...)
- //printf( "%04x|%04x %s\n",newDocEntry->GetGroup(),
- // newDocEntry->GetElement(),
- // newDocEntry->GetVR().c_str() );
+ if( Debug::GetDebugFlag() )
+ std::cerr<<newDocEntry->GetKey()<<" "<<newDocEntry->GetVR()<<std::endl;
if ( Filetype == ExplicitVR &&
!Global::GetVR()->IsVROfBinaryRepresentable(vr) )
{
////// No DataEntry: should mean UNKOWN VR
gdcmWarningMacro( std::hex << newDocEntry->GetGroup()
<< "|" << newDocEntry->GetElement()
if ( Filetype == ExplicitVR &&
!Global::GetVR()->IsVROfBinaryRepresentable(vr) )
{
////// No DataEntry: should mean UNKOWN VR
gdcmWarningMacro( std::hex << newDocEntry->GetGroup()
<< "|" << newDocEntry->GetElement()
if ( newDocEntry->GetGroup()%2 != 0 )
{
Fp->seekg( l, std::ios::cur);
if ( newDocEntry->GetGroup()%2 != 0 )
{
Fp->seekg( l, std::ios::cur);
{
// User asked to skip *any* SeQuence
Fp->seekg( l, std::ios::cur);
{
// User asked to skip *any* SeQuence
Fp->seekg( l, std::ios::cur);
// Let's try :------------
// remove fff0,e000, created out of the SQItem
// Let's try :------------
// remove fff0,e000, created out of the SQItem
Fp->seekg(offsetStartCurrentSQItem, std::ios::beg);
// fill up the current SQItem, starting at the beginning of fff0,e000
Fp->seekg(offsetStartCurrentSQItem, std::ios::beg);
// fill up the current SQItem, starting at the beginning of fff0,e000
// end try -----------------
seqEntry->AddSQItem( itemSQ, SQItemNumber );
// end try -----------------
seqEntry->AddSQItem( itemSQ, SQItemNumber );
{
// delete the Item Starter, built erroneously out of any Sequence
// it's not yet in the HTable/chained list
{
// delete the Item Starter, built erroneously out of any Sequence
// it's not yet in the HTable/chained list