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

#include <ossimRpfAttributeSectionSubheader.h>

Public Member Functions

 ossimRpfAttributeSectionSubheader ()
 
virtual ~ossimRpfAttributeSectionSubheader ()
 
ossimErrorCode parseStream (ossim::istream &in, ossimByteOrder byteOrder)
 
virtual void print (std::ostream &out) const
 
ossim_uint16 getNumberOfAttributeOffsetRecords () const
 
ossim_uint16 getAttributeOffsetTableOffset () const
 
ossim_uint64 getSubheaderStart () const
 
ossim_uint64 getSubheaderEnd () const
 

Private Member Functions

void clearFields ()
 

Private Attributes

ossim_uint16 theNumberOfAttributeOffsetRecords
 
ossim_uint16 theNumberOfExplicitArealCoverageRecords
 
ossim_uint32 theAttributeOffsetTableOffset
 
ossim_uint16 theAttribteOffsetRecordLength
 
ossim_uint64 theAttributeSectionSubheaderStart
 
ossim_uint64 theAttributeSectionSubheaderEnd
 

Friends

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

Detailed Description

Definition at line 18 of file ossimRpfAttributeSectionSubheader.h.

Constructor & Destructor Documentation

◆ ossimRpfAttributeSectionSubheader()

ossimRpfAttributeSectionSubheader::ossimRpfAttributeSectionSubheader ( )

◆ ~ossimRpfAttributeSectionSubheader()

virtual ossimRpfAttributeSectionSubheader::~ossimRpfAttributeSectionSubheader ( )
inlinevirtual

Definition at line 25 of file ossimRpfAttributeSectionSubheader.h.

25 {}

Member Function Documentation

◆ clearFields()

void ossimRpfAttributeSectionSubheader::clearFields ( )
private

Definition at line 68 of file ossimRpfAttributeSectionSubheader.cpp.

References theAttribteOffsetRecordLength, theAttributeOffsetTableOffset, theAttributeSectionSubheaderEnd, theAttributeSectionSubheaderStart, theNumberOfAttributeOffsetRecords, and theNumberOfExplicitArealCoverageRecords.

Referenced by ossimRpfAttributeSectionSubheader().

◆ getAttributeOffsetTableOffset()

ossim_uint16 ossimRpfAttributeSectionSubheader::getAttributeOffsetTableOffset ( ) const
inline

◆ getNumberOfAttributeOffsetRecords()

ossim_uint16 ossimRpfAttributeSectionSubheader::getNumberOfAttributeOffsetRecords ( ) const
inline

◆ getSubheaderEnd()

ossim_uint64 ossimRpfAttributeSectionSubheader::getSubheaderEnd ( ) const

◆ getSubheaderStart()

ossim_uint64 ossimRpfAttributeSectionSubheader::getSubheaderStart ( ) const

◆ parseStream()

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

Definition at line 29 of file ossimRpfAttributeSectionSubheader.cpp.

References ossim::byteOrder(), ossimEndian::getSystemEndianType(), ossimErrorCodes::OSSIM_ERROR, ossimErrorCodes::OSSIM_OK, ossimEndian::swap(), theAttribteOffsetRecordLength, theAttributeOffsetTableOffset, theAttributeSectionSubheaderEnd, theAttributeSectionSubheaderStart, theNumberOfAttributeOffsetRecords, and theNumberOfExplicitArealCoverageRecords.

Referenced by ossimRpfHeader::getNewAttributeSectionSubheader().

31 {
34  if(in)
35  {
37  in.read((char*)&theNumberOfAttributeOffsetRecords, 2);
38  in.read((char*)&theNumberOfExplicitArealCoverageRecords, 2);
39  in.read((char*)&theAttributeOffsetTableOffset, 4);
40  in.read((char*)&theAttribteOffsetRecordLength, 2);
41  ossimEndian anEndian;
42 
43  if(anEndian.getSystemEndianType() != byteOrder)
44  {
49  }
51  }
52  else
53  {
55  }
56 
58 }
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 ossimRpfAttributeSectionSubheader::print ( std::ostream &  out) const
virtual

Definition at line 60 of file ossimRpfAttributeSectionSubheader.cpp.

References theAttribteOffsetRecordLength, theAttributeOffsetTableOffset, theNumberOfAttributeOffsetRecords, and theNumberOfExplicitArealCoverageRecords.

Referenced by operator<<().

61 {
62  out << "theNumberOfAttributeOffsetRecords: " << theNumberOfAttributeOffsetRecords
63  << "\ntheNumberOfExplicitArealCoverageRecords: " << theNumberOfExplicitArealCoverageRecords
64  << "\ntheAttributeOffsetTableOffset: " << theAttributeOffsetTableOffset
65  << "\ntheAttribteOffsetRecordLength: " << theAttribteOffsetRecordLength;
66 }

Friends And Related Function Documentation

◆ operator<<

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

Definition at line 16 of file ossimRpfAttributeSectionSubheader.cpp.

18 {
19  data.print(out);
20 
21  return out;
22 }
virtual void print(std::ostream &out) const

Member Data Documentation

◆ theAttribteOffsetRecordLength

ossim_uint16 ossimRpfAttributeSectionSubheader::theAttribteOffsetRecordLength
private

Definition at line 46 of file ossimRpfAttributeSectionSubheader.h.

Referenced by clearFields(), parseStream(), and print().

◆ theAttributeOffsetTableOffset

ossim_uint32 ossimRpfAttributeSectionSubheader::theAttributeOffsetTableOffset
private

◆ theAttributeSectionSubheaderEnd

ossim_uint64 ossimRpfAttributeSectionSubheader::theAttributeSectionSubheaderEnd
mutableprivate

Definition at line 50 of file ossimRpfAttributeSectionSubheader.h.

Referenced by clearFields(), getSubheaderEnd(), and parseStream().

◆ theAttributeSectionSubheaderStart

ossim_uint64 ossimRpfAttributeSectionSubheader::theAttributeSectionSubheaderStart
mutableprivate

Definition at line 49 of file ossimRpfAttributeSectionSubheader.h.

Referenced by clearFields(), getSubheaderStart(), and parseStream().

◆ theNumberOfAttributeOffsetRecords

ossim_uint16 ossimRpfAttributeSectionSubheader::theNumberOfAttributeOffsetRecords
private

◆ theNumberOfExplicitArealCoverageRecords

ossim_uint16 ossimRpfAttributeSectionSubheader::theNumberOfExplicitArealCoverageRecords
private

Definition at line 44 of file ossimRpfAttributeSectionSubheader.h.

Referenced by clearFields(), parseStream(), and print().


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