Blame view

envi/EnviFid.h 721 Bytes
a47a23a9   dmayerich   added ENVI functions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
  #ifndef ENVIFID_H
  #define ENVIFID_H
  
  #include <string>
  #include <iostream>
  #include <fstream>
  #include <ctime>
  #include <sstream>
  #include "EnviHeader.h"
  using namespace std;
  
  class EnviFidClass
  {
  public:
      //binary file name
      string fileName;
  
      //header structure
  	EnviHeaderClass header;
  
  	//valid flag (is the current file valid)
  	int isValid;
  
  	//file mask (NULL if the whole file is to be read)
  	char* mask;
  
  	//current position (in pixels) in the file
  	int filePos;
  
  	//read/write mode ("r" or "w")
  	string mode;
  
  	//create a variable to store a pointer to the binary file
  	FILE * file;
  
      //constructor, set default values
  	EnviFidClass()
  	{
          isValid = 0;
          filePos = 0;
      }
  
  
  };
  
  
  #endif