OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimRpfColorGrayscaleSubheader.cpp
Go to the documentation of this file.
4 
7 {
8  data.print(out);
9 
10  return out;
11 }
12 
14 {
15  clearFields();
16 }
17 
19  ossimByteOrder /* byteOrder */)
20 {
21  if(in)
22  {
23  clearFields();
24 
25  theStartOffset = in.tellg();
26  in.read((char*)&theNumberOfColorGreyscaleOffsetRecords, 1);
27  in.read((char*)&theNumberOfColorConverterOffsetRecords, 1);
28 
29  char tempString[12];
30  in.read(tempString, 12);
32  (char*)(&tempString[12]));
33  theEndOffset = in.tellg();
34  }
35  else
36  {
38  }
39 
41 }
42 
44 {
45  out << "theNumberOfColorGreyscaleOffsetRecords: " << (int)theNumberOfColorGreyscaleOffsetRecords
46  << "\ntheNumberOfColorConverterOffsetRecords: " << (int)theNumberOfColorConverterOffsetRecords
47  << "\ntheColorGrayscaleFilename: " << theColorGrayscaleFilename;
48 
49 }
50 
52 {
53  theStartOffset = 0;
54  theEndOffset = 0;
55 
59 }
60 
ossim_int32 ossimErrorCode
static const ossimErrorCode OSSIM_OK
std::ostream & operator<<(std::ostream &out, const ossimRpfColorGrayscaleSubheader &data)
static const ossimErrorCode OSSIM_ERROR
ossimByteOrder
std::basic_istream< char > istream
Base class for char input streams.
Definition: ossimIosFwd.h:20
ossimErrorCode parseStream(ossim::istream &in, ossimByteOrder byteOrder)
std::basic_ostream< char > ostream
Base class for char output streams.
Definition: ossimIosFwd.h:23