OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimRpfColorConverterOffsetRecord.cpp
Go to the documentation of this file.
5 
8 {
9  out << "theColorConverterTableId: " << data.theColorConverterTableId
10  << "\ntheNumberOfColorConverterRecords: " << data.theNumberOfColorConverterRecords
11  << "\ntheColorConverterTableOffset: " << data.theColorConverterTableOffset
12  << "\ntheSourceColorGrayscaleOffsetTableOffset: " << data.theSourceColorGrayscaleOffsetTableOffset
13  << "\ntheTargetColorGrayscaleOffsetTableOffset: " << data.theTargetColorGrayscaleOffsetTableOffset;
14 
15  return out;
16 }
17 
19 {
20  clearFields();
21 }
22 
25 {
26  if(in)
27  {
28  in.read((char*)&theColorConverterTableId, 2);
29  in.read((char*)&theNumberOfColorConverterRecords, 4);
30  in.read((char*)&theColorConverterTableOffset, 4);
31  in.read((char*)&theSourceColorGrayscaleOffsetTableOffset, 4);
32  in.read((char*)&theTargetColorGrayscaleOffsetTableOffset, 4);
33 
34  ossimEndian anEndian;
35 
36  if(anEndian.getSystemEndianType() != byteOrder)
37  {
43  }
44  }
45  else
46  {
48  }
49 
51 }
52 
54 {
60 }
61 
ossim_int32 ossimErrorCode
static const ossimErrorCode OSSIM_OK
ossimErrorCode parseStream(ossim::istream &in, ossimByteOrder byteOrder)
OSSIM_DLL ossimByteOrder byteOrder()
Definition: ossimCommon.cpp:54
static const ossimErrorCode OSSIM_ERROR
std::ostream & operator<<(std::ostream &out, const ossimRpfColorConverterOffsetRecord &data)
ossimByteOrder
ossimByteOrder getSystemEndianType() const
Definition: ossimEndian.h:78
std::basic_istream< char > istream
Base class for char input streams.
Definition: ossimIosFwd.h:20
void swap(ossim_sint8 &)
Definition: ossimEndian.h:26
std::basic_ostream< char > ostream
Base class for char output streams.
Definition: ossimIosFwd.h:23