Program: gdcm
Module: $RCSfile: gdcmDocument.cxx,v $
Language: C++
- Date: $Date: 2010/06/24 04:34:20 $
- Version: $Revision: 1.383 $
+ Date: $Date: 2011/03/29 07:36:00 $
+ Version: $Revision: 1.386 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
std::cout << std::dec <<"(long)(Fp->tellg()) " << (long)(Fp->tellg()) // in Debug mode
<< std::hex << " 0x(" <<(long)(Fp->tellg()) << ")" << std::endl;
-
// if ( !delim_mode && ((long)(Fp->tellg())-offset) >= l_max) // Once per DocEntry
if ( !delim_mode ) // 'and then' doesn't exist in C++ :-(
if ( ((long)(Fp->tellg())-offset) >= l_max) // Once per DocEntry, when no delim mode
HandleBrokenEndian(CurrentGroup, CurrentElem);
}
- //VRKey vr = FindDocEntryVR();
- //VRKey realVR = vr;
-
- std::string vr, realVR;
- if (group == 0xfffe && (elem == 0xe000 || elem == 0xe00d || elem == 0xe0dd))
- {
- // DICOM PS 3.6-2009, page 117 states:
- // The VR for Data Elements, Item (FFFE,E000), Item Delimitation
- // Item (FFFE,E00D), and Sequence Delimitation Item (FFFE,E0DD)
- // do not exist. See PS 3.5 for explanation.
- vr = GDCM_UNKNOWN;
- realVR = GDCM_UNKNOWN;
- }
- else
- {
- vr = FindDocEntryVR();
- realVR = vr;
- }
+ VRKey vr = FindDocEntryVR();
+ VRKey realVR = vr;
if ( vr == GDCM_VRUNKNOWN )
{