MrSID Decode SDK for Raster Reference Manual  9.5.5.5244
TextSegment.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 TextSegment_H
9 #define TextSegment_H
10 
11 // lt_lib_base
12 #include "lt_base.h"
13 
14 // local
15 #include "Segment.h"
16 
17 LT_BEGIN_LIZARDTECH_NAMESPACE
18 class LTIOStreamInf;
19 
20 namespace Nitf {
21 
22 class TextSegmentMetadata;
23 
24 
32 class TextSegment : public Segment
33 {
34 public:
35  // not for public use -- to get a DataSegment, use NITFReaderManager::getTextSegment
37  int segmentNumber,
38  lt_int64 headerOffset, lt_int64 headerLength,
39  lt_int64 dataOffset, lt_int64 dataLength);
40 
41  // not for public use
43 
44  // not for public use
46 
55 
64 
65  // not for public use
67 
68 private:
69  LT_STATUS readHeader();
70  LT_STATUS readData();
71 
72  TextSegmentMetadata* m_textMetadata;
73 
74  char* m_TXTALVL; // 3
75  char* m_TXTFMT; // 3
76 
77  lt_uint8* m_textData;
78  lt_uint32 m_textDataLen;
79 
80  // nope
82  TextSegment& operator=(const TextSegment&);
83 };
84 
85 
86 }
87 LT_END_LIZARDTECH_NAMESPACE
88 
89 #endif // TextSegment_H
Include file for all LizardTech sources.
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
Abstract definition of a stream.
class for storing metadata associated with an image
class for reading 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
lt_uint32 getTextDataLength() const
get the text data length
LT_STATUS addMetadataLocal(LTIMetadataDatabase &db) const
TextSegment(NITFReaderManager &, LTIOStreamInf &, int segmentNumber, lt_int64 headerOffset, lt_int64 headerLength, lt_int64 dataOffset, lt_int64 dataLength)
lt_uint8 * getTextData() const
get the text data
LT_STATUS initialize()
initializer
container for Text Segment metadata

Extensis