OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimRpfImageDisplayParameterSubheader.cpp
Go to the documentation of this file.
1 //*******************************************************************
2 // License: MIT
3 //
4 // Author: Garrett Potts
5 //
6 // Description: This class extends the stl's string 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 {
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 }
55 
57 {
58  out << "theNumberOfImageRows: " << theNumberOfImageRows << "\n"
59  << "theNumberOfImageCodesPerRow: " << theNumberOfImageCodesPerRow << "\n"
60  << "theImageCodeBitLength: " << (unsigned long)theImageCodeBitLength;
61 }
62 
64 {
68 }
std::ostream & operator<<(std::ostream &out, const ossimRpfImageDisplayParameterSubheader &data)
ossim_int32 ossimErrorCode
static const ossimErrorCode OSSIM_OK
OSSIM_DLL ossimByteOrder byteOrder()
Definition: ossimCommon.cpp:54
static const ossimErrorCode OSSIM_ERROR
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