OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimRpfAttributeSectionSubheader.cpp
Go to the documentation of this file.
1 //*******************************************************************
2 //
3 // License: MIT
4 //
5 // Author: Garrett Potts (gpotts@imagelinks.com)
6 // Description: Rpf support class
7 //
8 //********************************************************************
9 // $Id$
10 
12 #include <ossim/base/ossimEndian.h>
15 
18 {
19  data.print(out);
20 
21  return out;
22 }
23 
25 {
26  clearFields();
27 }
28 
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 }
59 
61 {
62  out << "theNumberOfAttributeOffsetRecords: " << theNumberOfAttributeOffsetRecords
63  << "\ntheNumberOfExplicitArealCoverageRecords: " << theNumberOfExplicitArealCoverageRecords
64  << "\ntheAttributeOffsetTableOffset: " << theAttributeOffsetTableOffset
65  << "\ntheAttribteOffsetRecordLength: " << theAttribteOffsetRecordLength;
66 }
67 
69 {
74 
77 }
78 
80 {
82 }
83 
85 {
87 }
ossim_int32 ossimErrorCode
ossimErrorCode parseStream(ossim::istream &in, ossimByteOrder byteOrder)
static const ossimErrorCode OSSIM_OK
OSSIM_DLL ossimByteOrder byteOrder()
Definition: ossimCommon.cpp:54
static const ossimErrorCode OSSIM_ERROR
std::ostream & operator<<(std::ostream &out, const ossimRpfAttributeSectionSubheader &data)
unsigned long long ossim_uint64
ossimByteOrder
ossimByteOrder getSystemEndianType() const
Definition: ossimEndian.h:78
std::basic_istream< char > istream
Base class for char input streams.
Definition: ossimIosFwd.h:20
virtual void print(std::ostream &out) const
void swap(ossim_sint8 &)
Definition: ossimEndian.h:26
std::basic_ostream< char > ostream
Base class for char output streams.
Definition: ossimIosFwd.h:23