OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimNitfImageLutV2_0.cpp
Go to the documentation of this file.
1 //*******************************************************************
2 // Copyright (C) 2000 ImageLinks Inc.
3 //
4 // License: See top level LICENSE.txt file.
5 //
6 // Author: Garrett Potts
7 //
8 // Description: Nitf support class
9 //
10 //********************************************************************
11 // $Id: ossimNitfImageLutV2_0.cpp 9094 2006-06-13 19:12:40Z dburken $
12 
13 #include <cstring> // memcpy
14 #include <istream>
15 #include <ostream>
16 
18 
20 {
21 }
22 
24 {
25 }
26 
28 {
29  if (!in) return;
30 
31  ossim_uint32 count = 0;
32  while(count < theNumberOfEntries)
33  {
34  in.read((char*)&theData[count], 1);
35 
36  ++count;
37  }
38 }
39 
41 {
42  out << "theNumberOfEntries: " << theNumberOfEntries;
43 
44  return out;
45 }
46 
48 {
49  return theNumberOfEntries;
50 }
51 
53 {
54  theData.resize(numberOfEntries);
55  theNumberOfEntries = numberOfEntries;
56 }
57 
59 {
60  return theData[index];
61 }
virtual ossim_uint8 getValue(ossim_uint32 idx) const
virtual ossim_uint32 getNumberOfEntries() const
virtual void setNumberOfEntries(ossim_uint32 numberOfEntries)
unsigned int ossim_uint32
virtual std::ostream & print(std::ostream &out) const
Generic print method.
std::vector< ossim_uint8 > theData
std::basic_istream< char > istream
Base class for char input streams.
Definition: ossimIosFwd.h:20
virtual void parseStream(std::istream &in)
unsigned char ossim_uint8
std::basic_ostream< char > ostream
Base class for char output streams.
Definition: ossimIosFwd.h:23