MrSID Decode SDK for Raster Reference Manual  9.5.5.5244
FileHeader.h
Go to the documentation of this file.
1 //
2 // This code is property of Celartem, Inc dba Extensis.
3 // Copyright (c) 1995-2023. All rights reserved.
4 // Use permitted only under license from Extensis.
5 //
6 /* PUBLIC */
7 
8 #ifndef FileHeader_H
9 #define FileHeader_H
10 
11 // local
12 #include "Segment.h"
13 
14 
15 LT_BEGIN_LIZARDTECH_NAMESPACE
16 class LTIOStreamInf;
17 
18 namespace Nitf {
19 class ImageSegment;
20 class GraphicSegment;
21 class LabelSegment;
22 class TextSegment;
23 class DataSegment;
24 class ReservedSegment;
25 class FieldReader;
26 class FileMetadata;
27 
28 
37 class FileHeader : public Segment
38 {
39 public:
40  // not for public use
43 
44  // not for public use
46 
55 
56  // not for public use
57  LT_STATUS createSegments(ImageSegment**& imageSegments, lt_uint32& numImageSegments,
58  GraphicSegment**& graphicSegments, lt_uint32& numGraphicSegments,
59  LabelSegment**& labelSegments, lt_uint32& numLabelSegments,
60  TextSegment**& textSegments, lt_uint32& numTextSegments,
61  DataSegment**& dataSegments, lt_uint32& numDataSegments,
62  ReservedSegment**& resSegments, lt_uint32& numResSegments);
63 
64  // not for public use
66 
75  const lt_uint8* getFBKGC() const;
76 
84  const FileMetadata* getFileMetadata() const;
85 
86 private:
87  LT_STATUS readHeader();
88  LT_STATUS readData();
89  LT_STATUS readHeader_v2x();
90  LT_STATUS parseVersion();
91 
92  const lt_int64 m_fileSize;
93 
94  Version m_ver;
95  char* m_FHDR; // 4
96  char* m_FVER; // 5
97  int m_CLEVEL;
98  char* m_STYPE; // 4
99  int m_FSCOP;
100  int m_FSCPYS;
101  lt_uint8 m_FBKGC[3];
102  lt_int64 m_FL;
103  lt_int64 m_HL;
104  lt_int32 m_NUMI;
105  lt_int64* m_LISH;
106  lt_int64* m_LI;
107  lt_int32 m_NUMS;
108  lt_int64* m_LSSH;
109  lt_int64* m_LS;
110  lt_int32 m_NUML;
111  lt_int64* m_LLSH;
112  lt_int64* m_LL;
113  lt_int32 m_NUMT;
114  lt_int64* m_LTSH;
115  lt_int64* m_LT;
116  lt_int32 m_NUMDES;
117  lt_int64* m_LDSH;
118  lt_int64* m_LD;
119  lt_int32 m_NUMRES;
120  lt_int64* m_LRESH;
121  lt_int64* m_LRE;
122 
123  char* m_FTITLE;
124 
125  FileMetadata* m_fileMetadata;
126 
127  // nope
129  FileHeader& operator=(const FileHeader&);
130 };
131 
132 
133 }
134 LT_END_LIZARDTECH_NAMESPACE
135 
136 #endif // FileHeader_H
lt_uint32 LT_STATUS
An integral status code.
Definition: lt_status.h:30
unsigned char lt_uint8
unsigned 8-bit integer
Definition: lt_types.h:36
unsigned int lt_uint32
unsigned 32-bit integer
Definition: lt_types.h:44
long long int lt_int64
signed 64-bit integer
Definition: lt_types.h:57
signed int lt_int32
signed 32-bit integer
Definition: lt_types.h:42
Version
version
Definition: nitf_types.h:32
Abstract definition of a stream.
class for storing metadata associated with an image
class for reading an NITF file
represents a data segment in an existing NITF file
Definition: DataSegment.h:31
represents the file header properties of a NITF file
Definition: FileHeader.h:38
Version getVersion() const
returns the version of the file
LT_STATUS initialize()
initializer
LT_STATUS createSegments(ImageSegment **&imageSegments, lt_uint32 &numImageSegments, GraphicSegment **&graphicSegments, lt_uint32 &numGraphicSegments, LabelSegment **&labelSegments, lt_uint32 &numLabelSegments, TextSegment **&textSegments, lt_uint32 &numTextSegments, DataSegment **&dataSegments, lt_uint32 &numDataSegments, ReservedSegment **&resSegments, lt_uint32 &numResSegments)
const FileMetadata * getFileMetadata() const
returns the object holding the file metadata
LT_STATUS addMetadataLocal(LTIMetadataDatabase &db) const
FileHeader(NITFReaderManager &, LTIOStreamInf &, lt_int64 fileSize)
const lt_uint8 * getFBKGC() const
returns the background pixel for the overall file
container for File Header metadata
Definition: FileMetadata.h:35
represents a graphic segment in an existing NITF file
represents a image segment in an existing NITF file
Definition: ImageSegment.h:41
represents a label segment in an existing NITF file
Definition: LabelSegment.h:31
represents a Reserved segment in an NITF file
base class for segment data in an NITF file
Definition: Segment.h:39
represents a text segment in an NITF file
Definition: TextSegment.h:33

Extensis