OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimRpfColorConverterTable.cpp
Go to the documentation of this file.
5 
8 {
9  data.print(out);
10  return out;
11 }
12 
14 {
15  theTableId = 0;
18 }
19 
21 {
23  {
26  }
27 }
30 {
31  if(in)
32  {
33  if(theNumberOfEntries > 0)
34  {
36 
37  ossimEndian anEndian;
38  if(anEndian.getSystemEndianType() != byteOrder)
39  {
40  for(ossim_uint32 index = 0;
41  index < theNumberOfEntries;
42  ++index)
43  {
44  anEndian.swap(theColorGrayscaleTableEntryList[index]);
45  }
46  }
47  }
48  }
49  else
50  {
52  }
53 
55 }
56 
58 {
59  out << "theTableId: " << theTableId << "\n"
60  << "theNumberOfEntries: " << theNumberOfEntries << "\n";
61 
63  {
64  out << "Values:\n";
65  for(ossim_uint32 index=0; index < theNumberOfEntries; index++)
66  {
67  out<< theColorGrayscaleTableEntryList[index] << "\n";
68  }
69  }
70 
71 }
72 
74 {
76  {
79  }
81  theNumberOfEntries = entries;
82 
83  for(ossim_uint32 index=0;
84  index < theNumberOfEntries;
85  ++index)
86  {
88  }
89 }
91 {
92  theTableId = id;
93 }
ossim_int32 ossimErrorCode
static const ossimErrorCode OSSIM_OK
void setNumberOfEntries(ossim_uint32 entries)
OSSIM_DLL ossimByteOrder byteOrder()
Definition: ossimCommon.cpp:54
static const ossimErrorCode OSSIM_ERROR
unsigned short ossim_uint16
ossimErrorCode parseStream(ossim::istream &in, ossimByteOrder byteOrder)
std::ostream & operator<<(std::ostream &out, const ossimRpfColorConverterTable &data)
void print(std::ostream &out) const
unsigned int ossim_uint32
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