MrSID Decode SDK for Raster Reference Manual 9.5.5.5244
Nitf::LabelSegment Class Reference

represents a label segment in an existing NITF file More...

#include <LabelSegment.h>

Inheritance diagram for Nitf::LabelSegment:
Collaboration diagram for Nitf::LabelSegment:

Public Member Functions

 LabelSegment (NITFReaderManager &, LTIOStreamInf &, int segmentNumber, lt_int64 headerOffset, lt_int64 headerLength, lt_int64 dataOffset, lt_int64 dataLength)
 
 ~LabelSegment ()
 
LT_STATUS initialize ()
 initializer More...
 
lt_uint32 getLabelDataLength () const
 returns the length (in bytes) of the label data More...
 
lt_uint8 * getLabelData () const
 returns the label data as raw bytes More...
 
LT_STATUS addMetadataLocal (LTIMetadataDatabase &db) const
 
- Public Member Functions inherited from 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 ~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...
 

Additional Inherited Members

virtual LT_STATUS readHeader ()=0
 
virtual LT_STATUS readData ()=0
 
virtual LT_STATUS addMetadataLocal (LTIMetadataDatabase &) const =0
 
- Protected Attributes inherited from Nitf::Segment
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
 

Detailed Description

This class represents a label segment in an NITF file. To access the label segment of a file, retrieve the LabelSegment from the NITFReaderManager class.

Definition at line 30 of file LabelSegment.h.

Constructor & Destructor Documentation

◆ LabelSegment()

Nitf::LabelSegment::LabelSegment ( NITFReaderManager &  ,
LTIOStreamInf &  ,
int  segmentNumber,
lt_int64  headerOffset,
lt_int64  headerLength,
lt_int64  dataOffset,
lt_int64  dataLength 
)

◆ ~LabelSegment()

Nitf::LabelSegment::~LabelSegment ( )

Member Function Documentation

◆ addMetadataLocal()

LT_STATUS Nitf::LabelSegment::addMetadataLocal ( LTIMetadataDatabase &  db) const
virtual

Implements Nitf::Segment.

◆ getLabelData()

lt_uint8 * Nitf::LabelSegment::getLabelData ( ) const

◆ getLabelDataLength()

lt_uint32 Nitf::LabelSegment::getLabelDataLength ( ) const

◆ initialize()

LT_STATUS Nitf::LabelSegment::initialize ( )
virtual

This function must be called immediately after the constructor.

Returns
success or failure

Reimplemented from Nitf::Segment.


The documentation for this class was generated from the following file:

Extensis