MrSID Decode SDK for Raster Reference Manual  9.5.5.5244
NITFReaderManager.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 NITFReaderManager_H
9 #define NITFReaderManager_H
10 
11 // lt_lib_base
12 #include "lt_base.h"
13 
14 // lt_lib_mrsid_core
15 #include "lti_geoImageReader.h"
16 #include "lti_imageStageManager.h"
17 
18 LT_BEGIN_LIZARDTECH_NAMESPACE
19 class LTFileSpec;
20 class LTIOStreamInf;
21 
22 namespace Nitf
23 {
24  class ImageReader;
25  class FileHeader;
26  class ImageSegment;
27  class GraphicSegment;
28  class LabelSegment;
29  class TextSegment;
30  class DataSegment;
31  class ReservedSegment;
32  class FileMetadata;
33  class SecurityMetadata;
34 }
35 
36 
50 {
52 public:
62  LT_STATUS initialize(const LTFileSpec& fileSpec, bool useWorldFile=true);
63 
72 
87 
104  LTIImageStage *&imageStage) final;
105 
121  void setCompat_2500B_N2(bool use2500B);
122 
131  bool getCompat_2500B_N2() const;
132 
134 
139 
144 
156 
160  const char* getImageSegmentIID1(lt_uint32 num) const;
161 
166 
176 
181 
191 
196 
206 
211 
221 
226 
236 
240  const char* getVersionString() const;
241 
246 
251 
252  // not for public use
254 
255 private:
256  LT_STATUS fixMetadata(LTIImageStage *mos);
257 
258  LTFileSpec *m_fileSpec;
259  LTIOStreamInf *m_stream;
260  bool m_ownStream;
261  lt_int64 m_fileSize;
262  bool m_useWorldFile;
263 
264  Nitf::FileHeader* m_fileHeader;
265  Nitf::ImageSegment** m_imageSegments;
266  Nitf::GraphicSegment** m_graphicSegments;
267  Nitf::LabelSegment** m_labelSegments;
268  Nitf::TextSegment** m_textSegments;
269  Nitf::DataSegment** m_dataSegments;
270  Nitf::ReservedSegment** m_resSegments;
271  lt_uint32 m_numImageSegments;
272  lt_uint32 m_numGraphicSegments;
273  lt_uint32 m_numLabelSegments;
274  lt_uint32 m_numTextSegments;
275  lt_uint32 m_numDataSegments;
276  lt_uint32 m_numResSegments;
277 
278  char* m_versionString;
279 
280  bool m_compat_2500B_N2;
281 };
282 
283 
284 LT_END_LIZARDTECH_NAMESPACE
285 
286 #endif // NITFReaderManager_H
Include file for all LizardTech sources.
lt_uint32 LT_STATUS
An integral status code.
Definition: lt_status.h:30
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
#define LTI_REFERENCE_COUNTED_BOILERPLATE(classname)
Represents a file or directory path.
Definition: lt_fileSpec.h:35
Abstract definition of a stream.
abstract class for decoding from an image
abstract class for managing a list of image stages
class for reading an NITF file
const Nitf::FileHeader * getFileHeader() const
returns FileHeader metadata
LTFileSpec * getFileSpec() const
const Nitf::FileMetadata * getFileMetadata() const
returns the file-level metadata
lt_uint32 getNumResSegments() const
returns the number of RES segments
LT_STATUS initialize(LTIOStreamInf *stream)
initialization Creates an NITFReaderManager object from the given stream.
bool getCompat_2500B_N2() const
COMRAT compliance setting.
lt_uint32 getNumDataSegments() const
returns the number of data segments
const Nitf::DataSegment * getDataSegment(lt_uint32 num) const
returns a data segment
void setCompat_2500B_N2(bool use2500B)
COMRAT compliance control.
lt_uint32 getNumLabelSegments() const
returns the number of label segments
const char * getVersionString() const
returns NITF version information
lt_int64 getFileSize() const
const Nitf::TextSegment * getTextSegment(lt_uint32 num) const
returns a text segment
const Nitf::SecurityMetadata * getSecurityMetadata() const
returns file-level security metadata
LT_STATUS createImageStage(lt_uint32 imageNumber, LTIImageStage *&imageStage) final
creates a reader for a single element, band mapped according to irep
lt_uint32 getNumImageSegments() const
returns number of image segments
lt_uint32 getNumTextSegments() const
returns the number of text segments
const Nitf::LabelSegment * getLabelSegment(lt_uint32 num) const
returns a label segment
const Nitf::GraphicSegment * getGraphicSegment(lt_uint32 num) const
returns a graphic segment
const char * getImageSegmentIID1(lt_uint32 num) const
returns the IID1 field of the given image segment
LT_STATUS createReader(Nitf::ImageReader *&reader, lt_uint32 idx)
creates a reader for a single segment
lt_uint32 getNumGraphicSegments() const
returns the number of graphic segments
LT_STATUS initialize(const LTFileSpec &fileSpec, bool useWorldFile=true)
initialization Creates an NITFReaderManager object from the given file.
const Nitf::ReservedSegment * getResSegment(lt_uint32 num) const
returns a RES segment
const Nitf::ImageSegment * getImageSegment(lt_uint32 num) const
returns an image segment
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
container for File Header metadata
Definition: FileMetadata.h:35
represents a graphic segment in an existing NITF file
class for representing an NITF image segment as an LTIImageReader
Definition: ImageReader.h:43
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
container for Security metadata
represents a text segment in an NITF file
Definition: TextSegment.h:33

Extensis