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 | |
| 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 | |
| virtual LT_STATUS | addMetadata (LTIMetadataDatabase &) const |
| const char * | getMetadataTagPrefix () const |
| int | getNumTREs () const |
| returns the number of TREs in this segment | |
| const TREData * | getTRE (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 |
| 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.
Definition at line 42 of file Segment.h.
| 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] |
| 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.
| index | the (zero-based) index of the TRE to access |
| virtual LT_STATUS LizardTech::Nitf::Segment::initialize | ( | ) | [virtual] |
This function must be called immediately after the constructor.
Reimplemented in LizardTech::Nitf::DataSegment, LizardTech::Nitf::FileHeader, LizardTech::Nitf::GraphicSegment, LizardTech::Nitf::ImageSegment, LizardTech::Nitf::LabelSegment, LizardTech::Nitf::ReservedSegment, and LizardTech::Nitf::TextSegment.
| virtual LT_STATUS LizardTech::Nitf::Segment::readData | ( | ) | [protected, pure virtual] |
| virtual LT_STATUS LizardTech::Nitf::Segment::readHeader | ( | ) | [protected, pure virtual] |
const lt_int64 LizardTech::Nitf::Segment::m_dataLength [protected] |
const lt_int64 LizardTech::Nitf::Segment::m_dataOffset [protected] |
FieldReader* LizardTech::Nitf::Segment::m_field [protected] |
lt_int64 LizardTech::Nitf::Segment::m_headerLength [protected] |
const lt_int64 LizardTech::Nitf::Segment::m_headerOffset [protected] |
NITFReaderManager& LizardTech::Nitf::Segment::m_manager [protected] |
MetadataHelper* LizardTech::Nitf::Segment::m_mdHelper [protected] |
SecurityBlock* LizardTech::Nitf::Segment::m_securityBlock [protected] |
const char* LizardTech::Nitf::Segment::m_segmentID [protected] |
const int LizardTech::Nitf::Segment::m_segmentNumber [protected] |
LTIOStreamInf& LizardTech::Nitf::Segment::m_stream [protected] |
Version LizardTech::Nitf::Segment::m_version [protected] |
| LizardTech |