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

#include <ossimRpfImageDisplayParameterSubheader.h>

Public Member Functions

 ossimRpfImageDisplayParameterSubheader ()
 
ossimErrorCode parseStream (ossim::istream &in, ossimByteOrder byteOrder)
 
void print (std::ostream &out) const
 
ossim_uint32 getStartOffset () const
 
ossim_uint32 getEndOffset () const
 
ossim_uint32 getNumberOfImageRows () const
 
ossim_uint32 getNumberOfImageCodesPerRow () const
 
ossim_uint32 getImageCodeLength () const
 

Private Member Functions

void clearFields ()
 

Private Attributes

ossim_uint32 theStartOffset
 
ossim_uint32 theEndOffset
 
ossim_uint32 theNumberOfImageRows
 
ossim_uint32 theNumberOfImageCodesPerRow
 
ossim_uint8 theImageCodeBitLength
 

Friends

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

Detailed Description

Definition at line 18 of file ossimRpfImageDisplayParameterSubheader.h.

Constructor & Destructor Documentation

◆ ossimRpfImageDisplayParameterSubheader()

ossimRpfImageDisplayParameterSubheader::ossimRpfImageDisplayParameterSubheader ( )

Member Function Documentation

◆ clearFields()

void ossimRpfImageDisplayParameterSubheader::clearFields ( )
private

◆ getEndOffset()

ossim_uint32 ossimRpfImageDisplayParameterSubheader::getEndOffset ( ) const
inline

Definition at line 32 of file ossimRpfImageDisplayParameterSubheader.h.

References theEndOffset.

◆ getImageCodeLength()

ossim_uint32 ossimRpfImageDisplayParameterSubheader::getImageCodeLength ( ) const
inline

◆ getNumberOfImageCodesPerRow()

ossim_uint32 ossimRpfImageDisplayParameterSubheader::getNumberOfImageCodesPerRow ( ) const
inline

◆ getNumberOfImageRows()

ossim_uint32 ossimRpfImageDisplayParameterSubheader::getNumberOfImageRows ( ) const
inline

◆ getStartOffset()

ossim_uint32 ossimRpfImageDisplayParameterSubheader::getStartOffset ( ) const
inline

◆ parseStream()

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

Definition at line 29 of file ossimRpfImageDisplayParameterSubheader.cpp.

References ossim::byteOrder(), clearFields(), ossimEndian::getSystemEndianType(), ossimErrorCodes::OSSIM_ERROR, ossimErrorCodes::OSSIM_OK, ossimEndian::swap(), theEndOffset, theImageCodeBitLength, theNumberOfImageCodesPerRow, theNumberOfImageRows, and theStartOffset.

Referenced by ossimRpfHeader::getNewImageDisplayParameterSubheader().

31 {
32  clearFields();
33  if(in)
34  {
35  theStartOffset = in.tellg();
36  in.read((char*)&theNumberOfImageRows, 4);
37  in.read((char*)&theNumberOfImageCodesPerRow, 4);
38  in.read((char*)&theImageCodeBitLength, 1);
39  theEndOffset = in.tellg();
40 
41  ossimEndian anEndian;
42  if(anEndian.getSystemEndianType() != byteOrder)
43  {
44  anEndian.swap(theNumberOfImageRows);
46  }
47  }
48  else
49  {
51  }
52 
54 }
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 ossimRpfImageDisplayParameterSubheader::print ( std::ostream &  out) const

Definition at line 56 of file ossimRpfImageDisplayParameterSubheader.cpp.

References theImageCodeBitLength, theNumberOfImageCodesPerRow, and theNumberOfImageRows.

Referenced by operator<<().

57 {
58  out << "theNumberOfImageRows: " << theNumberOfImageRows << "\n"
59  << "theNumberOfImageCodesPerRow: " << theNumberOfImageCodesPerRow << "\n"
60  << "theImageCodeBitLength: " << (unsigned long)theImageCodeBitLength;
61 }

Friends And Related Function Documentation

◆ operator<<

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

Definition at line 16 of file ossimRpfImageDisplayParameterSubheader.cpp.

18 {
19  data.print(out);
20 
21  return out;
22 }

Member Data Documentation

◆ theEndOffset

ossim_uint32 ossimRpfImageDisplayParameterSubheader::theEndOffset
private

Definition at line 53 of file ossimRpfImageDisplayParameterSubheader.h.

Referenced by getEndOffset(), and parseStream().

◆ theImageCodeBitLength

ossim_uint8 ossimRpfImageDisplayParameterSubheader::theImageCodeBitLength
private

◆ theNumberOfImageCodesPerRow

ossim_uint32 ossimRpfImageDisplayParameterSubheader::theNumberOfImageCodesPerRow
private

◆ theNumberOfImageRows

ossim_uint32 ossimRpfImageDisplayParameterSubheader::theNumberOfImageRows
private

◆ theStartOffset

ossim_uint32 ossimRpfImageDisplayParameterSubheader::theStartOffset
private

Definition at line 52 of file ossimRpfImageDisplayParameterSubheader.h.

Referenced by getStartOffset(), and parseStream().


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