OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimAigIndexFileHeader.h
Go to the documentation of this file.
1 //*******************************************************************
2 //
3 // License: See top level LICENSE.txt file.
4 //
5 // Author: Garrett Potts (gpotts@imagelinks.com)
6 //
7 //*******************************************************************
8 // $Id: ossimAigIndexFileHeader.h 9968 2006-11-29 14:01:53Z gpotts $
9 #ifndef ossimAigIndexFileHeader_HEADER
10 #define ossimAigIndexFileHeader_HEADER
11 #include <iostream>
13 #include <string.h>
14 
16 {
17 public:
19  {
20  out << "theFileSize: " << data.theFileSize;
21 
22  return out;
23  }
25  {
26  reset();
27  }
28  void reset()
29  {
30  theMagicNumber[0] = 0x00;
31  theMagicNumber[1] = 0x00;
32  theMagicNumber[2] = 0x27;
33  theMagicNumber[3] = 0x0A;
34  theMagicNumber[4] = 0xFF;
35  theMagicNumber[5] = 0xFF;
36  theMagicNumber[6] = 0xFC;
37  theMagicNumber[7] = 0x14;
38  memset((char*)theZeroFill1,
39  0x00,
40  16);
41  memset((char*)theZeroFill2,
42  0x00,
43  72);
44  theFileSize = 50;
45  }
46  bool writeStream(std::ostream& out);
47 
49 
55 
57 
58 
65 // 100 + t*8
66 // 4
67 // MSB Int32
68 // Offset to tile t in w001001.adf measured in two byte
69 // shorts.
70 // 104 + t*8
71 // 4
72 // MSB Int32
73 // Size of tile t in 2 byte shorts.
74 };
75 
76 #endif
bool writeStream(std::ostream &out)
friend std::ostream & operator<<(std::ostream &out, const ossimAigIndexFileHeader &data)
unsigned char ossim_uint8
std::basic_ostream< char > ostream
Base class for char output streams.
Definition: ossimIosFwd.h:23
int ossim_int32