MrSID Decode SDK for Raster Reference Manual  9.5.5.5244
LabelSegment.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 LabelSegment_H
9 #define LabelSegment_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 
30 class LabelSegment : public Segment
31 {
32 public:
33  // not for public use -- to get a DataSegment, use NITFReaderManager::getLabelSegment
35  int segmentNumber,
36  lt_int64 headerOffset, lt_int64 headerLength,
37  lt_int64 dataOffset, lt_int64 dataLength);
39 
40  // not for public use
42 
47 
52 
53  // not for public use
55 
56 private:
57  LT_STATUS readHeader();
58  LT_STATUS readData();
59 
60  char* m_LID; // 10
61  char* m_LFS; // 1
62  char* m_LCW; // 2
63  char* m_LCH; // 2
64  char* m_LDLVL; // 3
65  char* m_LALVL; // 3
66  char* m_LLOC; // 3
67  lt_uint8* m_LTC; // 3
68  lt_uint8* m_LBC; // 3
69 
70  lt_uint8* m_labelData;
71  lt_uint32 m_labelDataLen;
72 
73  // nope
75  LabelSegment& operator=(const LabelSegment&);
76 };
77 
78 
79 }
80 LT_END_LIZARDTECH_NAMESPACE
81 
82 #endif // LabelSegment_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
represents a label segment in an existing NITF file
Definition: LabelSegment.h:31
LT_STATUS initialize()
initializer
lt_uint8 * getLabelData() const
returns the label data as raw bytes
LT_STATUS addMetadataLocal(LTIMetadataDatabase &db) const
LabelSegment(NITFReaderManager &, LTIOStreamInf &, int segmentNumber, lt_int64 headerOffset, lt_int64 headerLength, lt_int64 dataOffset, lt_int64 dataLength)
lt_uint32 getLabelDataLength() const
returns the length (in bytes) of the label data
base class for segment data in an NITF file
Definition: Segment.h:39

Extensis