LizardTech::Nitf::Segment Class Reference

base class for segment data in an NITF file More...

#include <Segment.h>

Inheritance diagram for LizardTech::Nitf::Segment:
LizardTech::Nitf::DataSegment LizardTech::Nitf::FileHeader LizardTech::Nitf::GraphicSegment LizardTech::Nitf::ImageSegment LizardTech::Nitf::LabelSegment LizardTech::Nitf::ReservedSegment LizardTech::Nitf::TextSegment

List of all members.

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
int getSegmentNumber () const
const char * getSegmentID ()
lt_int64 getHeaderOffset () const
lt_int64 getHeaderLength () const
lt_int64 getDataOffset () const
lt_int64 getDataLength () const
const SecurityBlockgetSecurityBlock () const
const SecurityMetadatagetSecurityMetadata () const
 returns the security information about the segment
virtual LT_STATUS addMetadata (LTIMetadataDatabase &) const
const char * getMetadataTagPrefix () const
int getNumTREs () const
 returns the number of TREs in this segment
const TREDatagetTRE (int index) const
 TRE accessor.

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
LTIOStreamInfm_stream
const lt_int64 m_headerOffset
lt_int64 m_headerLength
const lt_int64 m_dataOffset
const lt_int64 m_dataLength
NITFReaderManagerm_manager
Version m_version
SecurityBlockm_securityBlock
const int m_segmentNumber
const char * m_segmentID

Detailed Description

This class is the base class for representing all the segment types in an NITF file. It is not be used directly.

Definition at line 42 of file Segment.h.


Constructor & Destructor Documentation

LizardTech::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 LizardTech::Nitf::Segment::~Segment (  )  [virtual]

Member Function Documentation

virtual LT_STATUS LizardTech::Nitf::Segment::addMetadata ( LTIMetadataDatabase  )  const [virtual]
virtual LT_STATUS LizardTech::Nitf::Segment::addMetadataLocal ( LTIMetadataDatabase  )  const [protected, pure virtual]
lt_int64 LizardTech::Nitf::Segment::getDataLength (  )  const
lt_int64 LizardTech::Nitf::Segment::getDataOffset (  )  const
lt_int64 LizardTech::Nitf::Segment::getHeaderLength (  )  const
lt_int64 LizardTech::Nitf::Segment::getHeaderOffset (  )  const
const char* LizardTech::Nitf::Segment::getMetadataTagPrefix (  )  const
int LizardTech::Nitf::Segment::getNumTREs (  )  const
const SecurityBlock* LizardTech::Nitf::Segment::getSecurityBlock (  )  const
const SecurityMetadata* LizardTech::Nitf::Segment::getSecurityMetadata (  )  const
const char* LizardTech::Nitf::Segment::getSegmentID (  ) 
int LizardTech::Nitf::Segment::getSegmentNumber (  )  const
const TREData* LizardTech::Nitf::Segment::getTRE ( int  index  )  const

This function is used to access a TRE in the segment.

Parameters:
index the (zero-based) index of the TRE to access
Returns:
the TRE data
virtual LT_STATUS LizardTech::Nitf::Segment::initialize (  )  [virtual]
virtual LT_STATUS LizardTech::Nitf::Segment::readData (  )  [protected, pure virtual]
virtual LT_STATUS LizardTech::Nitf::Segment::readHeader (  )  [protected, pure virtual]

Member Data Documentation

const lt_int64 LizardTech::Nitf::Segment::m_dataLength [protected]

Definition at line 122 of file Segment.h.

const lt_int64 LizardTech::Nitf::Segment::m_dataOffset [protected]

Definition at line 121 of file Segment.h.

FieldReader* LizardTech::Nitf::Segment::m_field [protected]

Definition at line 116 of file Segment.h.

Definition at line 120 of file Segment.h.

const lt_int64 LizardTech::Nitf::Segment::m_headerOffset [protected]

Definition at line 119 of file Segment.h.

Definition at line 124 of file Segment.h.

MetadataHelper* LizardTech::Nitf::Segment::m_mdHelper [protected]

Definition at line 114 of file Segment.h.

Definition at line 127 of file Segment.h.

const char* LizardTech::Nitf::Segment::m_segmentID [protected]

Definition at line 130 of file Segment.h.

Definition at line 129 of file Segment.h.

Definition at line 118 of file Segment.h.

Definition at line 125 of file Segment.h.


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

LizardTech