OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimRpfAttributeOffsetRecord.cpp
Go to the documentation of this file.
5 
8 {
9  data.print(out);
10 
11  return out;
12 }
13 
15 {
16  clearFields();
17 }
18 
21 {
22  if(in)
23  {
24  in.read((char*)&theAttributeId, 2);
25  in.read((char*)&theParameterId, 1);
26  in.read((char*)&theArealCoverageSequenceNumber, 1);
27  in.read((char*)&theAttributeRecordOffset, 4);
28 
29  ossimEndian anEndian;
30 
31  if(anEndian.getSystemEndianType() != byteOrder)
32  {
33  anEndian.swap(theAttributeId);
35  }
36  }
37  else
38  {
40  }
41 
43 }
44 
46 {
47  out << "theAttributeId: " << theAttributeId
48  << "\ntheParameterId: " << theParameterId
49  << "\ntheArealCoverageSequenceNumber: " << theArealCoverageSequenceNumber
50  << "\ntheAttributeRecordOffset: " << theAttributeRecordOffset;
51 }
52 
54 {
55  theAttributeId = 0;
56  theParameterId = 0;
59 }
ossim_int32 ossimErrorCode
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 ossimRpfAttributeOffsetRecord &data)
ossimByteOrder
ossimByteOrder getSystemEndianType() const
Definition: ossimEndian.h:78
std::basic_istream< char > istream
Base class for char input streams.
Definition: ossimIosFwd.h:20
ossimErrorCode parseStream(ossim::istream &in, ossimByteOrder byteOrder)
void swap(ossim_sint8 &)
Definition: ossimEndian.h:26
std::basic_ostream< char > ostream
Base class for char output streams.
Definition: ossimIosFwd.h:23