OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
include
ossim
support_data
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>
12
#include <
ossim/base/ossimConstants.h
>
13
#include <string.h>
14
15
class
ossimAigIndexFileHeader
16
{
17
public
:
18
friend
std::ostream
&
operator <<
(
std::ostream
& out,
const
ossimAigIndexFileHeader
& data)
19
{
20
out <<
"theFileSize: "
<< data.
theFileSize
;
21
22
return
out;
23
}
24
ossimAigIndexFileHeader
()
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
48
ossim_uint8
theMagicNumber
[8];
49
50
ossim_uint8
theZeroFill1
[16];
54
ossim_int32
theFileSize
;
55
56
ossim_uint8
theZeroFill2
[72];
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
ossimConstants.h
ossimAigIndexFileHeader::reset
void reset()
Definition:
ossimAigIndexFileHeader.h:28
ossimAigIndexFileHeader::theZeroFill2
ossim_uint8 theZeroFill2[72]
Definition:
ossimAigIndexFileHeader.h:56
ossimAigIndexFileHeader::theZeroFill1
ossim_uint8 theZeroFill1[16]
Definition:
ossimAigIndexFileHeader.h:50
ossimAigIndexFileHeader
Definition:
ossimAigIndexFileHeader.h:15
ossimAigIndexFileHeader::theFileSize
ossim_int32 theFileSize
Definition:
ossimAigIndexFileHeader.h:54
ossimAigIndexFileHeader::theMagicNumber
ossim_uint8 theMagicNumber[8]
Definition:
ossimAigIndexFileHeader.h:48
ossimAigIndexFileHeader::writeStream
bool writeStream(std::ostream &out)
Definition:
ossimAigIndexFileHeader.cpp:12
ossimAigIndexFileHeader::operator<<
friend std::ostream & operator<<(std::ostream &out, const ossimAigIndexFileHeader &data)
Definition:
ossimAigIndexFileHeader.h:18
ossimAigIndexFileHeader::ossimAigIndexFileHeader
ossimAigIndexFileHeader()
Definition:
ossimAigIndexFileHeader.h:24
ossim_uint8
unsigned char ossim_uint8
Definition:
ossimConstants.h:227
ossim::ostream
std::basic_ostream< char > ostream
Base class for char output streams.
Definition:
ossimIosFwd.h:23
ossim_int32
int ossim_int32
Definition:
ossimConstants.h:234
Generated on Fri Aug 3 2018 08:46:45 for OSSIM - Open Source Software Image Map by
1.8.14