MrSID Decode SDK for Raster Reference Manual
9.1.0.4045
|
base class for segment data in an NITF file More...
#include <Segment.h>
Public Member Functions | |
Segment (NITFReaderManager &, LTIOStreamInf &, lt_int64 headerOffset, lt_int64 headerLength, lt_int64 dataOffset, lt_int64 dataLength, const char *code, int segmentNumber, bool doUserSubheader, bool doExtendedSubheader) | |
virtual | ~Segment () |
virtual LT_STATUS | initialize () |
initializer More... | |
int | getSegmentNumber () const |
const char * | getSegmentID () |
lt_int64 | getHeaderOffset () const |
lt_int64 | getHeaderLength () const |
lt_int64 | getDataOffset () const |
lt_int64 | getDataLength () const |
const SecurityBlock * | getSecurityBlock () const |
const SecurityMetadata * | getSecurityMetadata () const |
returns the security information about the segment More... | |
virtual LT_STATUS | addMetadata (LTIMetadataDatabase &) const |
const char * | getMetadataTagPrefix () const |
int | getNumTREs () const |
returns the number of TREs in this segment More... | |
const TREData * | getTRE (int index) const |
TRE accessor. More... | |
Protected Member Functions | |
virtual LT_STATUS | readHeader ()=0 |
virtual LT_STATUS | readData ()=0 |
virtual LT_STATUS | addMetadataLocal (LTIMetadataDatabase &) const =0 |
Protected Attributes | |
MetadataHelper * | m_mdHelper |
FieldReader * | m_field |
LTIOStreamInf & | m_stream |
const lt_int64 | m_headerOffset |
lt_int64 | m_headerLength |
const lt_int64 | m_dataOffset |
const lt_int64 | m_dataLength |
NITFReaderManager & | m_manager |
Version | m_version |
SecurityBlock * | m_securityBlock |
const int | m_segmentNumber |
const char * | m_segmentID |
This class is the base class for representing all the segment types in an NITF file. It is not be used directly.
Nitf::Segment::Segment | ( | NITFReaderManager & | , |
LTIOStreamInf & | , | ||
lt_int64 | headerOffset, | ||
lt_int64 | headerLength, | ||
lt_int64 | dataOffset, | ||
lt_int64 | dataLength, | ||
const char * | code, | ||
int | segmentNumber, | ||
bool | doUserSubheader, | ||
bool | doExtendedSubheader | ||
) |
|
virtual |
|
virtual |
|
protectedpure virtual |
Implemented in Nitf::ImageSegment, Nitf::TextSegment, Nitf::FileHeader, Nitf::GraphicSegment, Nitf::LabelSegment, Nitf::ReservedSegment, and Nitf::DataSegment.
lt_int64 Nitf::Segment::getDataLength | ( | ) | const |
lt_int64 Nitf::Segment::getDataOffset | ( | ) | const |
lt_int64 Nitf::Segment::getHeaderLength | ( | ) | const |
lt_int64 Nitf::Segment::getHeaderOffset | ( | ) | const |
const char* Nitf::Segment::getMetadataTagPrefix | ( | ) | const |
int Nitf::Segment::getNumTREs | ( | ) | const |
const SecurityBlock* Nitf::Segment::getSecurityBlock | ( | ) | const |
const SecurityMetadata* Nitf::Segment::getSecurityMetadata | ( | ) | const |
const char* Nitf::Segment::getSegmentID | ( | ) |
int Nitf::Segment::getSegmentNumber | ( | ) | const |
const TREData* Nitf::Segment::getTRE | ( | int | index | ) | const |
This function is used to access a TRE in the segment.
index | the (zero-based) index of the TRE to access |
|
virtual |
This function must be called immediately after the constructor.
Reimplemented in Nitf::ImageSegment, Nitf::FileHeader, Nitf::TextSegment, Nitf::GraphicSegment, Nitf::ReservedSegment, Nitf::DataSegment, and Nitf::LabelSegment.
|
protectedpure virtual |
|
protectedpure virtual |
|
protected |
|
protected |
LizardTech |