OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
EnvsatDSR.h
Go to the documentation of this file.
1 /*
2  * File: EnvsatDSR.h
3  * Author: dshea
4  *
5  * Created on December 10, 2012, 12:33 PM
6  */
7 
8 #ifndef ENVSATDSR_H
9 #define ENVSATDSR_H
10 
11 #include <string>
12 
13 class EnvsatDSR {
14 public:
15  EnvsatDSR(const EnvsatDSR& orig);
16  EnvsatDSR(int size);
17 
18  virtual ~EnvsatDSR();
19 
20  virtual int getSize() {
21  return size;
22  }
23 
24  virtual char* getBuffer() {
25  return buffer;
26  }
27 
28  virtual int getNumPixels() {
29  return numPixels;
30  }
31 
32  virtual void print();
33  virtual void printRecursive();
34 
35  virtual int readData(int fin);
36  virtual int writeData(int fout);
37 
38  virtual void setRange(int offset, int count, int val);
39 
40 protected:
41  // num bytes into buffer that the pixel array starts
43  // size of pixel data in bytes
44  int pixelSize;
45  // number of pixels in the array
46  int numPixels;
47 
48 private:
49  void init(int size);
50 
51  // size of the buffer in bytes
52  int size;
53  // memory for the pixel data
54  char* buffer;
55 
56 };
57 
58 #endif /* ENVSATDSR_H */
59 
int numPixels
Definition: EnvsatDSR.h:46
virtual char * getBuffer()
Definition: EnvsatDSR.h:24
virtual int readData(int fin)
Definition: EnvsatDSR.cpp:50
EnvsatDSR(const EnvsatDSR &orig)
Definition: EnvsatDSR.cpp:19
virtual int getNumPixels()
Definition: EnvsatDSR.h:28
virtual ~EnvsatDSR()
Definition: EnvsatDSR.cpp:27
virtual int getSize()
Definition: EnvsatDSR.h:20
int pixelSize
Definition: EnvsatDSR.h:44
virtual void printRecursive()
Definition: EnvsatDSR.cpp:46
virtual int writeData(int fout)
Definition: EnvsatDSR.cpp:64
l2prod offset
int arrayOffset
Definition: EnvsatDSR.h:42
msiBandIdx val
Definition: l1c_msi.cpp:34
virtual void setRange(int offset, int count, int val)
Definition: EnvsatDSR.cpp:78
virtual void print()
Definition: EnvsatDSR.cpp:40
int count
Definition: decode_rs.h:79