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 )
58 throw "SIEMENS Icon thingy";
60 if( !ValueLengthField.Read<TSwap>(is) )
62 assert(0 &&
"Should not happen");
67 bv->SetLength(ValueLengthField);
68 if( !bv->Read<TSwap>(is) )
70 assert(0 &&
"Should not happen");
126 #endif //GDCMBASICOFFSETTABLE_H
BasicOffsetTable()
Definition: gdcmBasicOffsetTable.h:31
std::istream & Read(std::istream &is)
Definition: gdcmBasicOffsetTable.h:44
#define GDCM_EXPORT
Definition: gdcmWin32.h:34
#define gdcmDebugMacro(msg)
Debug.
Definition: gdcmTrace.h:119
Class to represent a Fragment.
Definition: gdcmFragment.h:43
VL ValueLengthField
Definition: gdcmDataElement.h:248
const ByteValue * GetByteValue() const
Definition: gdcmDataElement.h:130
Class to represent binary value (array of bytes)
Definition: gdcmByteValue.h:35
Class for Smart Pointer.
Definition: gdcmObject.h:26
ValuePtr ValueField
Definition: gdcmDataElement.h:253
Class to represent a BasicOffsetTable.
Definition: gdcmBasicOffsetTable.h:26
std::ostream & operator<<(std::ostream &os, const BasicOffsetTable &val)
Definition: gdcmBasicOffsetTable.h:110
Class to represent a DICOM Data Element (Attribute) Tag (Group, Element). Basically an uint32_t which...
Definition: gdcmTag.h:38