OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
src
support_data
ossimAigIndexFileHeader.cpp
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.cpp 9963 2006-11-28 21:11:01Z gpotts $
9
#include <
ossim/support_data/ossimAigIndexFileHeader.h
>
10
#include <
ossim/base/ossimEndian.h
>
11
12
bool
ossimAigIndexFileHeader::writeStream
(
std::ostream
& out)
13
{
14
ossimEndian
endian;
15
ossim_uint32
tempInt;
16
17
if
(endian.
getSystemEndianType
() ==
OSSIM_LITTLE_ENDIAN
)
18
{
19
out.write((
char
*)
theMagicNumber
, 8);
20
out.write((
char
*)
theZeroFill1
, 16);
21
tempInt =
theFileSize
;
22
endian.
swap
(tempInt);
23
out.write((
char
*)(&tempInt), 4);
24
out.write((
char
*)
theZeroFill2
, 72);
25
}
26
else
27
{
28
out.write((
char
*)(&
theFileSize
), 8);
29
}
30
31
return
out.good();
32
}
ossimAigIndexFileHeader::theZeroFill2
ossim_uint8 theZeroFill2[72]
Definition:
ossimAigIndexFileHeader.h:56
ossimAigIndexFileHeader::theZeroFill1
ossim_uint8 theZeroFill1[16]
Definition:
ossimAigIndexFileHeader.h:50
ossimAigIndexFileHeader.h
ossimEndian
Definition:
ossimEndian.h:18
ossimAigIndexFileHeader::theFileSize
ossim_int32 theFileSize
Definition:
ossimAigIndexFileHeader.h:54
ossim_uint32
unsigned int ossim_uint32
Definition:
ossimConstants.h:235
ossimEndian::getSystemEndianType
ossimByteOrder getSystemEndianType() const
Definition:
ossimEndian.h:78
ossimAigIndexFileHeader::theMagicNumber
ossim_uint8 theMagicNumber[8]
Definition:
ossimAigIndexFileHeader.h:48
ossimEndian.h
ossimAigIndexFileHeader::writeStream
bool writeStream(std::ostream &out)
Definition:
ossimAigIndexFileHeader.cpp:12
ossimEndian::swap
void swap(ossim_sint8 &)
Definition:
ossimEndian.h:26
OSSIM_LITTLE_ENDIAN
Definition:
ossimConstants.h:427
ossim::ostream
std::basic_ostream< char > ostream
Base class for char output streams.
Definition:
ossimIosFwd.h:23
Generated on Fri Aug 3 2018 08:46:45 for OSSIM - Open Source Software Image Map by
1.8.14