MrSID Decode SDK for Raster Reference Manual 9.5.5.5244
DataSegment.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 DataSegment_H
9#define DataSegment_H
10
11// lt_lib_base
12#include "lt_base.h"
13
14// local
15#include "Segment.h"
16
17LT_BEGIN_LIZARDTECH_NAMESPACE
18class LTIOStreamInf;
19
20namespace Nitf {
21
22
30class DataSegment : public Segment
31{
32public:
33 // not for public use -- to get a DataSegment, use NITFReaderManager::getDataSegment
35 int segmentNumber,
36 lt_int64 headerOffset, lt_int64 headerLength,
37 lt_int64 dataOffset, lt_int64 dataLength);
39
40 // not for public use
42
43 // not for public use
45
46 // not for public use
48 const char* prefixOverride) const;
49
50 // not for public use
51 bool verifyIsOverflow(const char* code, bool isU, int segmentNum) const;
52
60 const char* getDESID() const;
61
69 const char* getDESVER() const;
70
79
88 const lt_uint8* getData() const;
89
90private:
91 LT_STATUS readHeader();
92 LT_STATUS readData();
93
94 char* m_DESID; // 25
95 char* m_DESVER; // 2
96 char* m_DESOFLW; // 6
97 int m_DESITEM;
98 int m_DESSHL;
99 lt_uint8* m_DESSHF;
100
101 lt_uint32 m_bytesLen;
102 lt_uint8* m_bytes;
103
104 // nope
106 DataSegment& operator=(const DataSegment&);
107};
108
109
110}
111LT_END_LIZARDTECH_NAMESPACE
112
113#endif // DataSegment_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 data segment in an existing NITF file
Definition: DataSegment.h:31
lt_uint32 getDataLen() const
returns the length of the data from the segment
const char * getDESVER() const
returns the version
LT_STATUS addMetadataLocal(LTIMetadataDatabase &db, const char *prefixOverride) const
LT_STATUS addMetadataLocal(LTIMetadataDatabase &db) const
bool verifyIsOverflow(const char *code, bool isU, int segmentNum) const
const char * getDESID() const
returns the ID
LT_STATUS initialize()
initializer
const lt_uint8 * getData() const
returns the data from the segment
DataSegment(NITFReaderManager &, LTIOStreamInf &, int segmentNumber, lt_int64 headerOffset, lt_int64 headerLength, lt_int64 dataOffset, lt_int64 dataLength)
base class for segment data in an NITF file
Definition: Segment.h:39

Extensis