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

#include <ossimRpfCompressionSection.h>

Public Member Functions

 ossimRpfCompressionOffsetTableData ()
 
 ossimRpfCompressionOffsetTableData (const ossimRpfCompressionOffsetTableData &rhs)
 
 ~ossimRpfCompressionOffsetTableData ()
 
const ossimRpfCompressionOffsetTableDataoperator= (const ossimRpfCompressionOffsetTableData &rhs)
 

Public Attributes

ossim_uint16 theTableId
 
ossim_uint32 theNumberOfLookupValues
 
ossim_uint16 theCompressionLookupValueBitLength
 
ossim_uint16 theNumberOfValuesPerLookup
 
ossim_uint8theData
 

Friends

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

Detailed Description

Definition at line 11 of file ossimRpfCompressionSection.h.

Constructor & Destructor Documentation

◆ ossimRpfCompressionOffsetTableData() [1/2]

ossimRpfCompressionOffsetTableData::ossimRpfCompressionOffsetTableData ( )

◆ ossimRpfCompressionOffsetTableData() [2/2]

ossimRpfCompressionOffsetTableData::ossimRpfCompressionOffsetTableData ( const ossimRpfCompressionOffsetTableData rhs)

◆ ~ossimRpfCompressionOffsetTableData()

ossimRpfCompressionOffsetTableData::~ossimRpfCompressionOffsetTableData ( )

Definition at line 85 of file ossimRpfCompressionSection.cpp.

References theData.

86 {
87  if(theData)
88  {
89  delete [] theData;
90  theData = 0;
91  }
92 }

Member Function Documentation

◆ operator=()

const ossimRpfCompressionOffsetTableData & ossimRpfCompressionOffsetTableData::operator= ( const ossimRpfCompressionOffsetTableData rhs)

Definition at line 46 of file ossimRpfCompressionSection.cpp.

References size, theCompressionLookupValueBitLength, theData, theNumberOfLookupValues, theNumberOfValuesPerLookup, and theTableId.

48 {
49  if(this != &rhs)
50  {
51  if(theData)
52  {
53  delete [] theData;
54  theData = 0;
55  }
56 
57  if(rhs.theData)
58  {
59  theTableId = rhs.theTableId;
63 
64  unsigned long size = (theNumberOfValuesPerLookup*
67  if(size > 0)
68  {
69  theData = new unsigned char[size];
70  memcpy(theData, rhs.theData, size);
71  }
72  }
73  else
74  {
75  theTableId = 0;
79  }
80  }
81 
82  return *this;
83 }
yy_size_t size

Friends And Related Function Documentation

◆ operator<<

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

Definition at line 10 of file ossimRpfCompressionSection.cpp.

12 {
13  unsigned long size = (data.theNumberOfValuesPerLookup*data.theNumberOfLookupValues*
15 
16  out << "theTableId: " << data.theTableId
17  << "\ntheNumberOfLookupValues: " << data.theNumberOfLookupValues
18  << "\ntheCompressionLookupValueBitLength: " << data.theCompressionLookupValueBitLength
19  << "\ntheNumberOfValuesPerLookup: " << data.theNumberOfValuesPerLookup
20  << "\nData Size in bytes: "
21  << size;
22 
23  return out;
24 }
yy_size_t size

Member Data Documentation

◆ theCompressionLookupValueBitLength

ossim_uint16 ossimRpfCompressionOffsetTableData::theCompressionLookupValueBitLength

Definition at line 22 of file ossimRpfCompressionSection.h.

Referenced by operator<<(), and operator=().

◆ theData

ossim_uint8* ossimRpfCompressionOffsetTableData::theData

Definition at line 24 of file ossimRpfCompressionSection.h.

Referenced by operator=(), and ~ossimRpfCompressionOffsetTableData().

◆ theNumberOfLookupValues

ossim_uint32 ossimRpfCompressionOffsetTableData::theNumberOfLookupValues

Definition at line 21 of file ossimRpfCompressionSection.h.

Referenced by operator<<(), and operator=().

◆ theNumberOfValuesPerLookup

ossim_uint16 ossimRpfCompressionOffsetTableData::theNumberOfValuesPerLookup

Definition at line 23 of file ossimRpfCompressionSection.h.

Referenced by operator<<(), and operator=().

◆ theTableId

ossim_uint16 ossimRpfCompressionOffsetTableData::theTableId

Definition at line 20 of file ossimRpfCompressionSection.h.

Referenced by operator<<(), and operator=().


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