15 #ifndef GDCMBASICOFFSETTABLE_H
16 #define GDCMBASICOFFSETTABLE_H
43 template <
typename TSwap>
44 std::istream &
Read(std::istream &is) {
46 const Tag itemStart(0xfffe, 0xe000);
47 const Tag seqDelItem(0xfffe,0xe0dd);
48 if( !TagField.Read<TSwap>(is) )
50 assert(0 &&
"Should not happen");
54 if( TagField != itemStart )
57 throw "SIEMENS Icon thingy";
59 if( !ValueLengthField.Read<TSwap>(is) )
61 assert(0 &&
"Should not happen");
66 bv->SetLength(ValueLengthField);
67 if( !bv->Read<TSwap>(is) )
69 assert(0 &&
"Should not happen");
125 #endif //GDCMBASICOFFSETTABLE_H