MrSID Decode SDK for Raster Reference Manual
9.5.4.4709
|
represents a data segment in an existing NITF file More...
#include <DataSegment.h>
Public Member Functions | |
DataSegment (NITFReaderManager &, LTIOStreamInf &, int segmentNumber, lt_int64 headerOffset, lt_int64 headerLength, lt_int64 dataOffset, lt_int64 dataLength) | |
~DataSegment () | |
LT_STATUS | initialize () |
initializer | |
LT_STATUS | addMetadataLocal (LTIMetadataDatabase &db) const |
LT_STATUS | addMetadataLocal (LTIMetadataDatabase &db, const char *prefixOverride) const |
bool | verifyIsOverflow (const char *code, bool isU, int segmentNum) const |
const char * | getDESID () const |
returns the ID | |
const char * | getDESVER () const |
returns the version | |
lt_uint32 | getDataLen () const |
returns the length of the data from the segment | |
const lt_uint8 * | getData () const |
returns the data from the segment |
This class represents a data segment in an NITF file. To access the data segment of a file, retrieve the DataSegment from the NITFReaderManager class.
Definition at line 34 of file DataSegment.h.
Nitf::DataSegment::DataSegment | ( | NITFReaderManager & | , |
LTIOStreamInf & | , | ||
int | segmentNumber, | ||
lt_int64 | headerOffset, | ||
lt_int64 | headerLength, | ||
lt_int64 | dataOffset, | ||
lt_int64 | dataLength | ||
) |
LT_STATUS Nitf::DataSegment::addMetadataLocal | ( | LTIMetadataDatabase & | db | ) | const [virtual] |
Implements Nitf::Segment.
LT_STATUS Nitf::DataSegment::addMetadataLocal | ( | LTIMetadataDatabase & | db, |
const char * | prefixOverride | ||
) | const |
const lt_uint8* Nitf::DataSegment::getData | ( | ) | const |
This function returns the actual data of the data segment, as an array of bytes. The length of the array can be found by calling getDataLen().
lt_uint32 Nitf::DataSegment::getDataLen | ( | ) | const |
This function returns the length of actual data of the data segment, in bytes.
const char* Nitf::DataSegment::getDESID | ( | ) | const |
This function returns the ID of the data segment.
const char* Nitf::DataSegment::getDESVER | ( | ) | const |
This function returns the version of the data segment.
LT_STATUS Nitf::DataSegment::initialize | ( | ) | [virtual] |
This function must be called immediately after the constructor.
Reimplemented from Nitf::Segment.
bool Nitf::DataSegment::verifyIsOverflow | ( | const char * | code, |
bool | isU, | ||
int | segmentNum | ||
) | const |