OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimRpfCompressionLookupOffsetRecord.cpp
Go to the documentation of this file.
5 
8 {
9  data.print(out);
10 
11  return out;
12 }
13 
15 {
16  clearFields();
17 }
18 
21 {
22  if(in)
23  {
24  ossimEndian anEndian;
25 
26  in.read((char*)&theCompressionLookupTableId, 2);
27  in.read((char*)&theNumberOfCompressionLookupRecords, 4);
29  in.read((char*)&theCompressionLookupValueBitLength, 2);
30  in.read((char*)&theCompressionLookupTableOffset, 4);
31 
32  if(anEndian.getSystemEndianType() != byteOrder)
33  {
39  }
40  }
41  else
42  {
44  }
45 
47 }
48 
50 {
51  out << "theCompressionLookupTableId: " << theCompressionLookupTableId
52  << "\ntheNumberOfCompressionLookupRecords: " << theNumberOfCompressionLookupRecords
53  << "\ntheNumberOfValuesPerCompressionLookupRecord: " << theNumberOfValuesPerCompressionLookupRecord
54  << "\ntheCompressionLookupValueBitLength: " << theCompressionLookupValueBitLength
55  << "\ntheCompressionLookupTableOffset: " << theCompressionLookupTableOffset;
56 }
57 
59 {
65 }
ossim_int32 ossimErrorCode
static const ossimErrorCode OSSIM_OK
OSSIM_DLL ossimByteOrder byteOrder()
Definition: ossimCommon.cpp:54
static const ossimErrorCode OSSIM_ERROR
ossimErrorCode parseStream(ossim::istream &in, ossimByteOrder byteOrder)
ossimByteOrder
ossimByteOrder getSystemEndianType() const
Definition: ossimEndian.h:78
std::basic_istream< char > istream
Base class for char input streams.
Definition: ossimIosFwd.h:20
std::ostream & operator<<(std::ostream &out, const ossimRpfCompressionLookupOffsetRecord &data)
void swap(ossim_sint8 &)
Definition: ossimEndian.h:26
std::basic_ostream< char > ostream
Base class for char output streams.
Definition: ossimIosFwd.h:23