MrSID Decode SDK for Raster Reference Manual  9.5.5.5244
TREData.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 TREData_H
9 #define TREData_H
10 
11 // lt_lib_base
12 #include "lt_base.h"
13 
14 // lt_lib_io
15 #include "lt_ioStreamInf.h"
16 
17 #include <string.h>
18 #include <stdio.h>
19 
20 LT_BEGIN_LIZARDTECH_NAMESPACE
21 namespace Nitf {
22 
23 
29 class TREData
30 {
31 public:
32  // not for public use
34 
35  // not for public use
36  TREData(const TREData* tre);
37 
47  TREData(const char* tag, int dataLength, const lt_uint8* data);
48 
49  // not for public use
51 
52  // not for public use
54 
55  // not for public use
57 
61  const char* getTag() const;
62 
67 
71  const lt_uint8* getData() const;
72 
73 private:
74  void set(const char* t, int l, const lt_uint8* d);
75 
76  char* m_tag; // 6 chars only
77  int m_length; // length of data array only; serialized as "%05d"
78  lt_uint8* m_data;
79 
80  TREData(TREData&);
81  TREData& operator=(const TREData&);
82 };
83 
84 
85 }
86 LT_END_LIZARDTECH_NAMESPACE
87 
88 #endif // TREData_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
Abstract definition of a stream.
representation of a single TRE in a NITF file
Definition: TREData.h:30
const char * getTag() const
returns the tag name (a 6-char array)
lt_uint32 getDataLength() const
returns the length in bytes of the data payload
lt_uint8 * serialize(lt_uint8 *p) const
TREData(const char *tag, int dataLength, const lt_uint8 *data)
constructor for a TRE object
const lt_uint8 * getData() const
returns the data payload
TREData(const TREData *tre)
LT_STATUS serialize(LTIOStreamInf &stream) const

Extensis