OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
ossimRpfCompressionLookupOffsetRecord Class Reference

#include <ossimRpfCompressionLookupOffsetRecord.h>

Public Member Functions

 ossimRpfCompressionLookupOffsetRecord ()
 
ossimErrorCode parseStream (ossim::istream &in, ossimByteOrder byteOrder)
 
void print (std::ostream &out) const
 
ossim_uint16 getCompressionLookupTableId () const
 
ossim_uint32 getNumberOfCompressionLookupRecords () const
 
ossim_uint16 getNumberOfValuesPerCompressionLookupRecord () const
 
ossim_uint16 getCompressionLookupValueBitLength () const
 
ossim_uint32 getCompressionLookupTableOffset () const
 

Private Member Functions

void clearFields ()
 

Private Attributes

ossim_uint16 theCompressionLookupTableId
 
ossim_uint32 theNumberOfCompressionLookupRecords
 
ossim_uint16 theNumberOfValuesPerCompressionLookupRecord
 
ossim_uint16 theCompressionLookupValueBitLength
 
ossim_uint32 theCompressionLookupTableOffset
 

Friends

std::ostream & operator<< (std::ostream &out, const ossimRpfCompressionLookupOffsetRecord &data)
 

Detailed Description

Definition at line 8 of file ossimRpfCompressionLookupOffsetRecord.h.

Constructor & Destructor Documentation

◆ ossimRpfCompressionLookupOffsetRecord()

ossimRpfCompressionLookupOffsetRecord::ossimRpfCompressionLookupOffsetRecord ( )

Member Function Documentation

◆ clearFields()

void ossimRpfCompressionLookupOffsetRecord::clearFields ( )
private

◆ getCompressionLookupTableId()

ossim_uint16 ossimRpfCompressionLookupOffsetRecord::getCompressionLookupTableId ( ) const
inline

◆ getCompressionLookupTableOffset()

ossim_uint32 ossimRpfCompressionLookupOffsetRecord::getCompressionLookupTableOffset ( ) const
inline

◆ getCompressionLookupValueBitLength()

ossim_uint16 ossimRpfCompressionLookupOffsetRecord::getCompressionLookupValueBitLength ( ) const
inline

◆ getNumberOfCompressionLookupRecords()

ossim_uint32 ossimRpfCompressionLookupOffsetRecord::getNumberOfCompressionLookupRecords ( ) const
inline

◆ getNumberOfValuesPerCompressionLookupRecord()

ossim_uint16 ossimRpfCompressionLookupOffsetRecord::getNumberOfValuesPerCompressionLookupRecord ( ) const
inline

◆ parseStream()

ossimErrorCode ossimRpfCompressionLookupOffsetRecord::parseStream ( ossim::istream in,
ossimByteOrder  byteOrder 
)

Definition at line 19 of file ossimRpfCompressionLookupOffsetRecord.cpp.

References ossim::byteOrder(), ossimEndian::getSystemEndianType(), ossimErrorCodes::OSSIM_ERROR, ossimErrorCodes::OSSIM_OK, ossimEndian::swap(), theCompressionLookupTableId, theCompressionLookupTableOffset, theCompressionLookupValueBitLength, theNumberOfCompressionLookupRecords, and theNumberOfValuesPerCompressionLookupRecord.

Referenced by ossimRpfCompressionSection::parseStream().

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 }
static const ossimErrorCode OSSIM_OK
OSSIM_DLL ossimByteOrder byteOrder()
Definition: ossimCommon.cpp:54
static const ossimErrorCode OSSIM_ERROR
ossimByteOrder getSystemEndianType() const
Definition: ossimEndian.h:78
void swap(ossim_sint8 &)
Definition: ossimEndian.h:26

◆ print()

void ossimRpfCompressionLookupOffsetRecord::print ( std::ostream &  out) const

Definition at line 49 of file ossimRpfCompressionLookupOffsetRecord.cpp.

References theCompressionLookupTableId, theCompressionLookupTableOffset, theCompressionLookupValueBitLength, theNumberOfCompressionLookupRecords, and theNumberOfValuesPerCompressionLookupRecord.

Referenced by operator<<().

50 {
51  out << "theCompressionLookupTableId: " << theCompressionLookupTableId
52  << "\ntheNumberOfCompressionLookupRecords: " << theNumberOfCompressionLookupRecords
53  << "\ntheNumberOfValuesPerCompressionLookupRecord: " << theNumberOfValuesPerCompressionLookupRecord
54  << "\ntheCompressionLookupValueBitLength: " << theCompressionLookupValueBitLength
55  << "\ntheCompressionLookupTableOffset: " << theCompressionLookupTableOffset;
56 }

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  out,
const ossimRpfCompressionLookupOffsetRecord data 
)
friend

Definition at line 6 of file ossimRpfCompressionLookupOffsetRecord.cpp.

8 {
9  data.print(out);
10 
11  return out;
12 }

Member Data Documentation

◆ theCompressionLookupTableId

ossim_uint16 ossimRpfCompressionLookupOffsetRecord::theCompressionLookupTableId
private

◆ theCompressionLookupTableOffset

ossim_uint32 ossimRpfCompressionLookupOffsetRecord::theCompressionLookupTableOffset
private

◆ theCompressionLookupValueBitLength

ossim_uint16 ossimRpfCompressionLookupOffsetRecord::theCompressionLookupValueBitLength
private

◆ theNumberOfCompressionLookupRecords

ossim_uint32 ossimRpfCompressionLookupOffsetRecord::theNumberOfCompressionLookupRecords
private

◆ theNumberOfValuesPerCompressionLookupRecord

ossim_uint16 ossimRpfCompressionLookupOffsetRecord::theNumberOfValuesPerCompressionLookupRecord
private

The documentation for this class was generated from the following files: