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 if( !TagField.Read<TSwap>(is) )
49 assert(0 &&
"Should not happen");
53 if( TagField != itemStart )
62 if( !ValueLengthField.Read<TSwap>(is) )
64 assert(0 &&
"Should not happen");
69 bv->SetLength(ValueLengthField);
70 if( !bv->Read<TSwap>(is) )
Class to represent a BasicOffsetTable.
Definition gdcmBasicOffsetTable.h:27
BasicOffsetTable()
Definition gdcmBasicOffsetTable.h:31
std::istream & Read(std::istream &is)
Definition gdcmBasicOffsetTable.h:44
Class to represent binary value (array of bytes)
Definition gdcmByteValue.h:35
ValuePtr ValueField
Definition gdcmDataElement.h:250
const ByteValue * GetByteValue() const
Definition gdcmDataElement.h:133
VL ValueLengthField
Definition gdcmDataElement.h:245
Class to represent a Fragment.
Definition gdcmFragment.h:44
ParseException Standard exception handling object.
Definition gdcmParseException.h:37
void SetLastElement(DataElement &de)
Definition gdcmParseException.h:71
Class for Smart Pointer.
Definition gdcmSmartPointer.h:40
Class to represent a DICOM Data Element (Attribute) Tag (Group, Element).
Definition gdcmTag.h:39
#define gdcmAssertAlwaysMacro(arg)
AssertAlways.
Definition gdcmTrace.h:228
#define GDCM_EXPORT
Definition gdcmWin32.h:34
std::ostream & operator<<(std::ostream &os, const Directory &d)
Definition gdcmDirectory.h:88