OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
#include <ossimNitfFileHeaderV2_0.h>
Classes | |
struct | ossimNitfDisplayInfo |
Public Member Functions | |
ossimNitfFileHeaderV2_0 () | |
virtual | ~ossimNitfFileHeaderV2_0 () |
virtual void | parseStream (ossim::istream &in) |
parse method. More... | |
virtual void | writeStream (ossim::ostream &out) |
virtual std::ostream & | print (std::ostream &out, const std::string &prefix=std::string()) const |
print method that outputs a key/value type format adding prefix to keys. More... | |
virtual bool | isEncrypted () const |
virtual ossim_int32 | getNumberOfImages () const |
virtual ossim_int32 | getNumberOfLabels () const |
virtual ossim_int32 | getNumberOfSymbols () const |
virtual ossim_int32 | getNumberOfGraphics () const |
virtual ossim_int32 | getNumberOfTextSegments () const |
virtual ossim_int32 | getNumberOfDataExtSegments () const |
virtual ossim_int32 | getNumberOfReservedExtSegments () const |
virtual ossim_int32 | getHeaderSize () const |
virtual ossim_int64 | getFileSize () const |
virtual ossimString | getSecurityClassification () const |
virtual const char * | getDateTime () const |
virtual const char * | getVersion () const |
virtual ossimDrect | getImageRect () const |
virtual void | addImageInfoRecord (const ossimNitfImageInfoRecordV2_0 &recordInfo) |
virtual void | replaceImageInfoRecord (ossim_uint32 i, const ossimNitfImageInfoRecordV2_0 &recordInfo) |
virtual ossimNitfImageHeader * | getNewImageHeader (ossim_uint32 imageNumber, ossim::istream &in) const |
virtual ossimNitfSymbolHeader * | getNewSymbolHeader (ossim_uint32 symbolNumber, ossim::istream &in) const |
virtual ossimNitfLabelHeader * | getNewLabelHeader (ossim_uint32 labelNumber, ossim::istream &in) const |
virtual ossimNitfTextHeader * | getNewTextHeader (ossim_uint32 textNumber, ossim::istream &in) const |
virtual ossimNitfDataExtensionSegment * | getNewDataExtensionSegment (ossim_int32 dataExtNumber, ossim::istream &in) const |
virtual ossimNitfImageHeader * | allocateImageHeader () const |
virtual ossimNitfSymbolHeader * | allocateSymbolHeader () const |
virtual ossimNitfLabelHeader * | allocateLabelHeader () const |
virtual ossimNitfTextHeader * | allocateTextHeader () const |
virtual ossimNitfDataExtensionSegment * | allocateDataExtSegment () const |
virtual void | setCodeWords (const ossimString &codeWords) |
virtual void | setControlAndHandling (const ossimString &controlAndHandling) |
virtual void | setReleasingInstructions (const ossimString &releasingInstructions) |
virtual void | setClassificationAuthority (const ossimString &classAuth) |
virtual void | setSecurityControlNumber (const ossimString &controlNo) |
virtual void | setOriginatorsName (const ossimString &originatorName) |
virtual void | setOriginatorsPhone (const ossimString &origniatorPhone) |
virtual ossimString | getCodeWords () const |
virtual ossimString | getControlAndHandling () const |
virtual ossimString | getReleasingInstructions () const |
virtual ossimString | getClassificationAuthority () const |
virtual ossimString | getSecurityControlNumber () const |
virtual ossimString | getOriginatorsName () const |
virtual ossimString | getOriginatorsPhone () const |
virtual bool | isValid () const |
isValid will test if the fields are valid and will return true or false. More... | |
ossimString | getComplianceLevel () const |
ossimString | getSecurityDowngrade () const |
ossimString | getDowngradingEvent () const |
void | setComplianceLevel (const ossimString &complianceLevel) |
void | setSecurityDowngrade (const ossimString &securityDowngrade) |
void | setDowngradingEvent (const ossimString &downgradeEvent) |
virtual void | setFileLength (ossim_uint64 fileLength) |
Sets file length (FL) field. More... | |
virtual void | setHeaderLength (ossim_uint64 headerLength) |
Sets header length (HL) field. More... | |
virtual void | setProperty (ossimRefPtr< ossimProperty > property) |
virtual ossimRefPtr< ossimProperty > | getProperty (const ossimString &name) const |
virtual void | getPropertyNames (std::vector< ossimString > &propertyNames) const |
virtual bool | saveState (ossimKeywordlist &kwl, const ossimString &prefix="") const |
![]() | |
ossimNitfFileHeaderV2_X () | |
void | setComplexityLevel (const ossimString &level) |
void | setSystemType (const ossimString &systemType) |
void | setOriginatingStationId (const ossimString &originationId) |
void | setDate (const ossimLocalTm &d) |
Sets field FDT. More... | |
void | setDate (const ossimString &d) |
Sets field FDT. More... | |
virtual void | setDate () |
Sets field FDT to current time converted to GMT(ZULU). More... | |
void | setTitle (const ossimString &title) |
void | setFileSecurityClassification (const ossimString &securityClassification) |
void | setCopyNumber (const ossimString ©Number) |
void | setNumberOfCopies (const ossimString &numberOfCopies) |
void | setEncryption (const ossimString &encryption) |
ossimString | getComplexityLevel () const |
ossimString | getSystemType () const |
ossimString | getOriginatingStationId () const |
ossimString | getDate () const |
ossimString | getTitle () const |
ossimString | getCopyNumber () const |
ossimString | getNumberOfCopies () const |
ossimString | getEncryption () const |
bool | saveState (ossimKeywordlist &kwl, const ossimString &prefix="") const |
virtual bool | loadState (const ossimKeywordlist &kwl, const char *prefix=0) |
Method to set fields from a keyword list. More... | |
![]() | |
ossimNitfFileHeader () | |
virtual | ~ossimNitfFileHeader () |
void | addTag (const ossimNitfTagInformation &tag, bool unique=true) |
virtual void | removeTag (const ossimString &tagName) |
virtual bool | getTagInformation (ossimNitfTagInformation &tag, int idx) const |
virtual std::vector< ossimNitfTagInformation > | getAllTags () |
virtual void | setAllTags (std::vector< ossimNitfTagInformation > tagList) |
virtual int | getNumberOfTags () const |
virtual bool | getTag (ossimNitfTagInformation &tagInfo, const ossimString &tagName) const |
bool | hasImages () const |
bool | hasSymbols () const |
bool | hasGraphics () const |
bool | hasText () const |
bool | hasLabels () const |
bool | hasDataExtSegments () const |
virtual ossim_uint32 | getTotalTagLength () const |
virtual std::ostream & | printTags (std::ostream &out, const std::string &prefix=std::string()) const |
print tags method that outputs a key/value type format adding prefix to keys. More... | |
![]() | |
ossimObject () | |
virtual | ~ossimObject () |
virtual ossimObject * | dup () const |
virtual ossimString | getShortName () const |
virtual ossimString | getLongName () const |
virtual ossimString | getDescription () const |
virtual ossimString | getClassName () const |
virtual RTTItypeid | getType () const |
virtual bool | canCastTo (ossimObject *obj) const |
virtual bool | canCastTo (const RTTItypeid &id) const |
virtual bool | canCastTo (const ossimString &parentClassName) const |
virtual bool | saveState (ossimKeywordlist &kwl, const char *prefix=0) const |
virtual std::ostream & | print (std::ostream &out) const |
Generic print method. More... | |
virtual bool | isEqualTo (const ossimObject &obj, ossimCompareType compareType=OSSIM_COMPARE_FULL) const |
virtual void | accept (ossimVisitor &visitor) |
![]() | |
ossimReferenced () | |
ossimReferenced (const ossimReferenced &) | |
ossimReferenced & | operator= (const ossimReferenced &) |
void | ref () const |
increment the reference count by one, indicating that this object has another pointer which is referencing it. More... | |
void | unref () const |
decrement the reference count by one, indicating that a pointer to this object is referencing it. More... | |
void | unref_nodelete () const |
decrement the reference count by one, indicating that a pointer to this object is referencing it. More... | |
int | referenceCount () const |
![]() | |
ossimPropertyInterface () | |
virtual | ~ossimPropertyInterface () |
virtual void | setProperty (const ossimString &name, const ossimString &value) |
virtual ossimString | getPropertyValueAsString (const ossimString &name) const |
void | getPropertyList (std::vector< ossimRefPtr< ossimProperty > > &propertyList) const |
void | setProperties (std::vector< ossimRefPtr< ossimProperty > > &propertyList) |
Static Public Attributes | |
static const ossimString | FSDWNG_KW = "fsdwng" |
Properties of a NITF 2.0 Header file. More... | |
static const ossimString | FSDEVT_KW = "fsdevt" |
![]() | |
static const ossimString | FILE_TYPE_KW = "FILE_TYPE" |
Properties of a NITF 2.x Header file. More... | |
static const ossimString | FHDR_KW = "FHDR" |
static const ossimString | VERSION_KW = "VERSION" |
static const ossimString | CLEVEL_KW = "CLEVEL" |
static const ossimString | STYPE_KW = "STYPE" |
static const ossimString | OSTAID_KW = "OSTAID" |
static const ossimString | FDT_KW = "FDT" |
static const ossimString | FTITLE_KW = "FTITLE" |
static const ossimString | FSCLAS_KW = "FSCLAS" |
static const ossimString | FSCODE_KW = "FSCODE" |
static const ossimString | FSCTLH_KW = "FSCTLH" |
static const ossimString | FSREL_KW = "FSREL" |
static const ossimString | FSCAUT_KW = "FSCAUT" |
static const ossimString | FSCTLN_KW = "FSCTLN" |
static const ossimString | FSCOP_KW = "FSCOP" |
static const ossimString | FSCPYS_KW = "FSCPYS" |
static const ossimString | ENCRYP_KW = "ENCRYP" |
static const ossimString | ONAME_KW = "ONAME" |
static const ossimString | OPHONE_KW = "OPHONE" |
Private Member Functions | |
void | clearFields () |
void | setNumberOfImageInfoRecords (ossim_uint64 num) |
Sets the number of image records in the NITF 2.0 File Header. More... | |
void | precomputeValues () |
void | readImageInfoRecords (ossim::istream &in) |
void | readSymbolInfoRecords (ossim::istream &in) |
void | readLabelInfoRecords (ossim::istream &in) |
void | readTextFileInfoRecords (ossim::istream &in) |
void | readDataExtSegInfoRecords (ossim::istream &in) |
void | readResExtSegInfoRecords (ossim::istream &in) |
void | initializeAllOffsets () |
void | readOverflowTags (ossim::istream &in) |
void | initializeDisplayLevels (ossim::istream &in) |
void | insertIntoDisplayInfoList (const ossimNitfDisplayInfo &displayInformation) |
Additional Inherited Members | |
![]() | |
static ossimString | formatDate (const ossimString &version, const ossimLocalTm &d) |
![]() | |
virtual | ~ossimReferenced () |
![]() | |
char | theFileTypeVersion [10] |
Field: FHDR Required field for NITF and is a 9 byte value. More... | |
char | theComplexityLevel [3] |
Field: CLEVEL. More... | |
char | theSystemType [5] |
Field: STYPE. More... | |
char | theOriginatingStationId [11] |
Field: OSTAID. More... | |
char | theDateTime [15] |
Field: FDT. More... | |
char | theFileTitle [81] |
Field: FTITLE. More... | |
char | theSecurityClassification [2] |
Field: FSCLAS. More... | |
char | theCopyNumber [6] |
Field: FSCOP. More... | |
char | theNumberOfCopies [6] |
Field: FSCOPYS. More... | |
char | theEncryption [2] |
Field: ENCRYP. More... | |
![]() | |
std::vector< ossimNitfTagInformation > | theTagList |
std::vector< ossimNitfDesInformation > | theDesList |
Definition at line 147 of file ossimNitfFileHeaderV2_0.h.
ossimNitfFileHeaderV2_0::ossimNitfFileHeaderV2_0 | ( | ) |
Definition at line 199 of file ossimNitfFileHeaderV2_0.cpp.
References clearFields().
|
virtual |
Definition at line 205 of file ossimNitfFileHeaderV2_0.cpp.
|
virtual |
Definition at line 957 of file ossimNitfFileHeaderV2_0.cpp.
References setNumberOfImageInfoRecords(), and theNitfImageInfoRecords.
Referenced by ossimNitf20Writer::writeBlockBandSeparate(), and ossimNitf20Writer::writeBlockBandSequential().
|
virtual |
Implements ossimNitfFileHeader.
Definition at line 1198 of file ossimNitfFileHeaderV2_0.cpp.
Referenced by getNewDataExtensionSegment().
|
virtual |
Implements ossimNitfFileHeader.
Definition at line 1178 of file ossimNitfFileHeaderV2_0.cpp.
Referenced by getNewImageHeader(), and initializeDisplayLevels().
|
virtual |
Implements ossimNitfFileHeader.
Definition at line 1188 of file ossimNitfFileHeaderV2_0.cpp.
Referenced by getNewLabelHeader().
|
virtual |
Implements ossimNitfFileHeader.
Definition at line 1183 of file ossimNitfFileHeaderV2_0.cpp.
Referenced by getNewSymbolHeader().
|
virtual |
Implements ossimNitfFileHeader.
Definition at line 1193 of file ossimNitfFileHeaderV2_0.cpp.
Referenced by getNewTextHeader().
|
private |
Definition at line 1276 of file ossimNitfFileHeaderV2_0.cpp.
References theClassificationAuthority, theCodewords, ossimNitfFileHeaderV2_X::theComplexityLevel, theControlAndHandling, ossimNitfFileHeaderV2_X::theCopyNumber, theDataExtSegOffsetList, ossimNitfFileHeaderV2_X::theDateTime, theDisplayInformationList, theDowngradingEvent, ossimNitfFileHeaderV2_X::theEncryption, theExtendedHeaderDataLength, theExtendedHeaderOverflow, theFileLength, theFilename, ossimNitfFileHeaderV2_X::theFileTitle, ossimNitfFileHeaderV2_X::theFileTypeVersion, theHeaderLength, theHeaderSize, theImageOffsetList, theLabelOffsetList, theNitfDataExtSegInfoRecords, theNitfLabelInfoRecords, theNitfResExtSegInfoRecords, theNitfSymbolInfoRecords, theNitfTextInfoRecords, ossimNitfFileHeaderV2_X::theNumberOfCopies, theNumberOfDataExtSegInfoRecords, theNumberOfImageInfoRecords, theNumberOfLabelInfoRecords, theNumberOfResExtSegInfoRecords, theNumberOfSymbolInfoRecords, theNumberOfTextFileInfoRecords, ossimNitfFileHeaderV2_X::theOriginatingStationId, theOriginatorsName, theOriginatorsPhone, theReleasingInstructions, ossimNitfFileHeaderV2_X::theSecurityClassification, theSecurityControlNumber, theSecurityDowngrade, theSymbolOffsetList, ossimNitfFileHeaderV2_X::theSystemType, theTextOffsetList, theUserDefinedHeaderDataLength, and theUserDefinedHeaderOverflow.
Referenced by ossimNitfFileHeaderV2_0().
|
virtual |
Implements ossimNitfFileHeaderV2_X.
Definition at line 1613 of file ossimNitfFileHeaderV2_0.cpp.
References theClassificationAuthority.
|
virtual |
Implements ossimNitfFileHeaderV2_X.
Definition at line 1598 of file ossimNitfFileHeaderV2_0.cpp.
References theCodewords.
ossimString ossimNitfFileHeaderV2_0::getComplianceLevel | ( | ) | const |
Definition at line 1583 of file ossimNitfFileHeaderV2_0.cpp.
References ossimNitfFileHeaderV2_X::theComplexityLevel.
|
virtual |
Implements ossimNitfFileHeaderV2_X.
Definition at line 1603 of file ossimNitfFileHeaderV2_0.cpp.
References theControlAndHandling.
|
virtual |
Implements ossimNitfFileHeader.
Definition at line 1266 of file ossimNitfFileHeaderV2_0.cpp.
References ossimNitfFileHeaderV2_X::theDateTime.
ossimString ossimNitfFileHeaderV2_0::getDowngradingEvent | ( | ) | const |
Definition at line 1593 of file ossimNitfFileHeaderV2_0.cpp.
References theDowngradingEvent.
|
virtual |
Implements ossimNitfFileHeader.
Definition at line 1248 of file ossimNitfFileHeaderV2_0.cpp.
References theFileLength, and ossimString::toInt64().
|
virtual |
Implements ossimNitfFileHeader.
Definition at line 1238 of file ossimNitfFileHeaderV2_0.cpp.
References theHeaderSize.
|
virtual |
Implements ossimNitfFileHeader.
Definition at line 952 of file ossimNitfFileHeaderV2_0.cpp.
References theImageRect.
|
virtual |
Implements ossimNitfFileHeader.
Definition at line 1041 of file ossimNitfFileHeaderV2_0.cpp.
References allocateDataExtSegment(), getNumberOfDataExtSegments(), ossimNitfDataExtensionSegment::parseStream(), theDataExtSegOffsetList, and theNitfDataExtSegInfoRecords.
Referenced by readOverflowTags().
|
virtual |
Implements ossimNitfFileHeader.
Definition at line 970 of file ossimNitfFileHeaderV2_0.cpp.
References allocateImageHeader(), getNumberOfImages(), ossimNotify(), ossimNotifyLevel_FATAL, ossimNitfImageHeader::parseStream(), and theImageOffsetList.
|
virtual |
Implements ossimNitfFileHeader.
Definition at line 1009 of file ossimNitfFileHeaderV2_0.cpp.
References allocateLabelHeader(), getNumberOfLabels(), ossimNitfLabelHeader::parseStream(), and theLabelOffsetList.
|
virtual |
Implements ossimNitfFileHeader.
Definition at line 993 of file ossimNitfFileHeaderV2_0.cpp.
References allocateSymbolHeader(), getNumberOfSymbols(), ossimNitfSymbolHeader::parseStream(), and theSymbolOffsetList.
|
virtual |
Implements ossimNitfFileHeader.
Definition at line 1025 of file ossimNitfFileHeaderV2_0.cpp.
References allocateTextHeader(), getNumberOfTextSegments(), ossimNitfTextHeader::parseStream(), and theTextOffsetList.
|
virtual |
Implements ossimNitfFileHeader.
Definition at line 1233 of file ossimNitfFileHeaderV2_0.cpp.
References theNitfDataExtSegInfoRecords.
Referenced by getNewDataExtensionSegment().
|
virtual |
Implements ossimNitfFileHeader.
Definition at line 1223 of file ossimNitfFileHeaderV2_0.cpp.
|
virtual |
Implements ossimNitfFileHeader.
Definition at line 1208 of file ossimNitfFileHeaderV2_0.cpp.
References theNitfImageInfoRecords.
Referenced by getNewImageHeader().
|
virtual |
Implements ossimNitfFileHeader.
Definition at line 1213 of file ossimNitfFileHeaderV2_0.cpp.
References theNitfLabelInfoRecords.
Referenced by getNewLabelHeader().
|
virtual |
Implements ossimNitfFileHeader.
Definition at line 1243 of file ossimNitfFileHeaderV2_0.cpp.
References theNitfResExtSegInfoRecords.
|
virtual |
Implements ossimNitfFileHeader.
Definition at line 1218 of file ossimNitfFileHeaderV2_0.cpp.
References theNitfSymbolInfoRecords.
Referenced by getNewSymbolHeader().
|
virtual |
Implements ossimNitfFileHeader.
Definition at line 1228 of file ossimNitfFileHeaderV2_0.cpp.
References theNitfTextInfoRecords.
Referenced by getNewTextHeader().
|
virtual |
Implements ossimNitfFileHeaderV2_X.
Definition at line 1623 of file ossimNitfFileHeaderV2_0.cpp.
References theOriginatorsName.
|
virtual |
Implements ossimNitfFileHeaderV2_X.
Definition at line 1628 of file ossimNitfFileHeaderV2_0.cpp.
References theOriginatorsPhone.
|
virtual |
Reimplemented from ossimNitfFileHeaderV2_X.
Definition at line 1662 of file ossimNitfFileHeaderV2_0.cpp.
References ossimNitfFileHeaderV2_X::CLEVEL_KW, FSDEVT_KW, FSDWNG_KW, ossimNitfFileHeaderV2_X::getProperty(), ossimNitfFileHeaderV2_X::ONAME_KW, ossimNitfFileHeaderV2_X::OPHONE_KW, ossimNitfFileHeaderV2_X::theComplexityLevel, theDowngradingEvent, theOriginatorsName, theOriginatorsPhone, and theSecurityDowngrade.
|
virtual |
Reimplemented from ossimNitfFileHeaderV2_X.
Definition at line 1694 of file ossimNitfFileHeaderV2_0.cpp.
References ossimNitfFileHeaderV2_X::CLEVEL_KW, ossimNitfFileHeaderV2_X::ENCRYP_KW, ossimNitfFileHeaderV2_X::FDT_KW, ossimNitfFileHeaderV2_X::FSCAUT_KW, ossimNitfFileHeaderV2_X::FSCLAS_KW, ossimNitfFileHeaderV2_X::FSCODE_KW, ossimNitfFileHeaderV2_X::FSCOP_KW, ossimNitfFileHeaderV2_X::FSCPYS_KW, ossimNitfFileHeaderV2_X::FSCTLH_KW, ossimNitfFileHeaderV2_X::FSCTLN_KW, ossimNitfFileHeaderV2_X::FSREL_KW, ossimNitfFileHeaderV2_X::FTITLE_KW, ossimNitfFileHeaderV2_X::getPropertyNames(), ossimNitfFileHeaderV2_X::ONAME_KW, ossimNitfFileHeaderV2_X::OPHONE_KW, ossimNitfFileHeaderV2_X::OSTAID_KW, and ossimNitfFileHeaderV2_X::STYPE_KW.
|
virtual |
Implements ossimNitfFileHeaderV2_X.
Definition at line 1608 of file ossimNitfFileHeaderV2_0.cpp.
References theReleasingInstructions.
|
virtual |
Reimplemented from ossimNitfFileHeaderV2_X.
Definition at line 1271 of file ossimNitfFileHeaderV2_0.cpp.
References ossimNitfFileHeaderV2_X::theSecurityClassification.
|
virtual |
Implements ossimNitfFileHeaderV2_X.
Definition at line 1618 of file ossimNitfFileHeaderV2_0.cpp.
References theSecurityControlNumber.
ossimString ossimNitfFileHeaderV2_0::getSecurityDowngrade | ( | ) | const |
Definition at line 1588 of file ossimNitfFileHeaderV2_0.cpp.
References theSecurityDowngrade.
|
virtual |
Implements ossimNitfFileHeader.
Definition at line 1261 of file ossimNitfFileHeaderV2_0.cpp.
References ossimNitfFileHeaderV2_X::theFileTypeVersion.
|
private |
If the header was parsed this method will initialize the offsets to whare all data resides within the file. Example: NITF files have several sections (Image, Symbol, Labels, Text and Extended data) and each of these sections have subsections. The offsets stored are just offsets from the start of the file to each major section and eqach subsection.
Definition at line 1130 of file ossimNitfFileHeaderV2_0.cpp.
References theDataExtSegOffsetList, theHeaderSize, theImageOffsetList, theLabelOffsetList, theNitfDataExtSegInfoRecords, theNitfImageInfoRecords, theNitfLabelInfoRecords, theNitfSymbolInfoRecords, theNitfTextInfoRecords, theSymbolOffsetList, and theTextOffsetList.
|
private |
This method will be called after the header is read in and the offsets have been initialized. It will sort in order all renderable data based on their display level.
Definition at line 1058 of file ossimNitfFileHeaderV2_0.cpp.
References allocateImageHeader(), ossimDrect::combine(), ossimNitfImageHeader::getDisplayLevel(), ossimNitfImageHeader::getImageRect(), ossimDrect::height(), insertIntoDisplayInfoList(), ossimNitfImageHeader::parseStream(), theDisplayInformationList, theImageOffsetList, theImageRect, and ossimDrect::width().
|
private |
Definition at line 1111 of file ossimNitfFileHeaderV2_0.cpp.
References theDisplayInformationList, and ossimNitfFileHeaderV2_0::ossimNitfDisplayInfo::theDisplayLevel.
Referenced by initializeDisplayLevels().
|
virtual |
Implements ossimNitfFileHeader.
Definition at line 1203 of file ossimNitfFileHeaderV2_0.cpp.
References ossimNitfFileHeaderV2_X::theEncryption.
|
virtual |
isValid will test if the fields are valid and will return true or false.
Reimplemented from ossimNitfFileHeaderV2_X.
Definition at line 209 of file ossimNitfFileHeaderV2_0.cpp.
References ossimNitfFileHeaderV2_X::isValid().
|
virtual |
parse method.
Implements ossimNitfFileHeader.
Definition at line 221 of file ossimNitfFileHeaderV2_0.cpp.
|
private |
This method will be used to setup information about the file. Example: NITF files have display levels where the lowest number is the back most image and the highes number is the front most image. We are not guranteed that they will be in order in the file so we must parse the file and sort the images. The images include image data, symbols and labels. Each of these are renderable. The lowest display level should have the larges rect and this will be used to send back to the user an image rect. During rasterization we must know the order to draw the data.
|
virtual |
print method that outputs a key/value type format adding prefix to keys.
Reimplemented from ossimNitfFileHeader.
Definition at line 600 of file ossimNitfFileHeaderV2_0.cpp.
References ossimNitfFileHeader::print(), theClassificationAuthority, theCodewords, ossimNitfFileHeaderV2_X::theComplexityLevel, theControlAndHandling, ossimNitfFileHeaderV2_X::theCopyNumber, ossimNitfFileHeaderV2_X::theDateTime, theDowngradingEvent, ossimNitfFileHeaderV2_X::theEncryption, theExtendedHeaderDataLength, theFileLength, ossimNitfFileHeaderV2_X::theFileTitle, ossimNitfFileHeaderV2_X::theFileTypeVersion, theHeaderLength, theNitfDataExtSegInfoRecords, theNitfImageInfoRecords, theNitfLabelInfoRecords, theNitfResExtSegInfoRecords, theNitfSymbolInfoRecords, theNitfTextInfoRecords, ossimNitfFileHeaderV2_X::theNumberOfCopies, theNumberOfDataExtSegInfoRecords, theNumberOfImageInfoRecords, theNumberOfLabelInfoRecords, theNumberOfResExtSegInfoRecords, theNumberOfSymbolInfoRecords, theNumberOfTextFileInfoRecords, ossimNitfFileHeaderV2_X::theOriginatingStationId, theOriginatorsName, theOriginatorsPhone, theReleasingInstructions, ossimNitfFileHeaderV2_X::theSecurityClassification, theSecurityControlNumber, theSecurityDowngrade, ossimNitfFileHeaderV2_X::theSystemType, theUserDefinedHeaderDataLength, and theUserDefinedHeaderOverflow.
|
private |
Definition at line 1467 of file ossimNitfFileHeaderV2_0.cpp.
References ossimNitfDataExtSegInfoRecordV2_0::theDataExtSegLength, ossimNitfDataExtSegInfoRecordV2_0::theDataExtSegSubheaderLength, theHeaderSize, theNitfDataExtSegInfoRecords, theNumberOfDataExtSegInfoRecords, and ossimString::toInt32().
|
private |
Definition at line 1382 of file ossimNitfFileHeaderV2_0.cpp.
References theHeaderSize, ossimNitfImageInfoRecordV2_0::theImageLength, ossimNitfImageInfoRecordV2_0::theImageSubheaderLength, theNitfImageInfoRecords, theNumberOfImageInfoRecords, and ossimString::toInt32().
|
private |
Definition at line 1425 of file ossimNitfFileHeaderV2_0.cpp.
References theHeaderSize, ossimNitfLabelInfoRecordV2_0::theLabelLength, ossimNitfLabelInfoRecordV2_0::theLabelSubheaderLength, theNitfLabelInfoRecords, theNumberOfLabelInfoRecords, and ossimString::toInt32().
|
private |
If the header was parsed and the offsets have been initialized, this method will parse all overflow tags and put them into theTagList.
Definition at line 395 of file ossimNitfFileHeaderV2_0.cpp.
References getNewDataExtensionSegment(), ossimNitfDataExtensionSegment::getTagList(), theExtendedHeaderOverflow, ossimNitfFileHeader::theTagList, theUserDefinedHeaderOverflow, ossimString::toInt32(), and ossimRefPtr< T >::valid().
|
private |
Definition at line 1488 of file ossimNitfFileHeaderV2_0.cpp.
References theHeaderSize, theNitfResExtSegInfoRecords, theNumberOfResExtSegInfoRecords, ossimNitfResExtSegInfoRecordV2_0::theResExtSegLength, ossimNitfResExtSegInfoRecordV2_0::theResExtSegSubheaderLength, and ossimString::toInt32().
|
private |
Definition at line 1402 of file ossimNitfFileHeaderV2_0.cpp.
References theHeaderSize, theNitfSymbolInfoRecords, theNumberOfSymbolInfoRecords, ossimNitfSymbolInfoRecordV2_0::theSymbolLength, ossimNitfSymbolInfoRecordV2_0::theSymbolSubheaderLength, and ossimString::toInt32().
|
private |
Definition at line 1446 of file ossimNitfFileHeaderV2_0.cpp.
References theHeaderSize, theNitfTextInfoRecords, theNumberOfTextFileInfoRecords, ossimNitfTextInfoRecordV2_0::theTextLength, ossimNitfTextInfoRecordV2_0::theTextSubheaderLength, and ossimString::toInt32().
|
virtual |
Definition at line 964 of file ossimNitfFileHeaderV2_0.cpp.
References theNitfImageInfoRecords.
Referenced by ossimNitf20Writer::writeBlockBandSeparate(), and ossimNitf20Writer::writeBlockBandSequential().
|
virtual |
Reimplemented from ossimNitfFileHeader.
Definition at line 788 of file ossimNitfFileHeaderV2_0.cpp.
References ossimKeywordlist::add(), ossimNitfFileHeaderV2_X::saveState(), theClassificationAuthority, theCodewords, theControlAndHandling, theDowngradingEvent, theExtendedHeaderDataLength, theFileLength, theHeaderLength, theNitfDataExtSegInfoRecords, theNitfImageInfoRecords, theNitfLabelInfoRecords, theNitfResExtSegInfoRecords, theNitfSymbolInfoRecords, theNitfTextInfoRecords, theNumberOfDataExtSegInfoRecords, theNumberOfImageInfoRecords, theNumberOfLabelInfoRecords, theNumberOfResExtSegInfoRecords, theNumberOfSymbolInfoRecords, theNumberOfTextFileInfoRecords, theOriginatorsName, theOriginatorsPhone, theReleasingInstructions, theSecurityControlNumber, theSecurityDowngrade, and theUserDefinedHeaderDataLength.
|
virtual |
Implements ossimNitfFileHeaderV2_X.
Definition at line 1529 of file ossimNitfFileHeaderV2_0.cpp.
References ossimNitfCommon::setField(), and theClassificationAuthority.
|
virtual |
Implements ossimNitfFileHeaderV2_X.
Definition at line 1514 of file ossimNitfFileHeaderV2_0.cpp.
References ossimNitfCommon::setField(), and theCodewords.
void ossimNitfFileHeaderV2_0::setComplianceLevel | ( | const ossimString & | complianceLevel | ) |
Definition at line 1509 of file ossimNitfFileHeaderV2_0.cpp.
References ossimNitfCommon::setField(), and ossimNitfFileHeaderV2_X::theComplexityLevel.
Referenced by setProperty().
|
virtual |
Implements ossimNitfFileHeaderV2_X.
Definition at line 1519 of file ossimNitfFileHeaderV2_0.cpp.
References ossimNitfCommon::setField(), and theControlAndHandling.
void ossimNitfFileHeaderV2_0::setDowngradingEvent | ( | const ossimString & | downgradeEvent | ) |
Definition at line 1554 of file ossimNitfFileHeaderV2_0.cpp.
References ossimNitfCommon::setField(), and theDowngradingEvent.
Referenced by setProperty().
|
virtual |
Sets file length (FL) field.
Implements ossimNitfFileHeader.
Definition at line 1559 of file ossimNitfFileHeaderV2_0.cpp.
References theFileLength.
Referenced by ossimNitf20Writer::writeBlockBandSeparate(), and ossimNitf20Writer::writeBlockBandSequential().
|
virtual |
Sets header length (HL) field.
Implements ossimNitfFileHeader.
Definition at line 1571 of file ossimNitfFileHeaderV2_0.cpp.
References theHeaderLength.
Referenced by ossimNitf20Writer::writeBlockBandSeparate(), and ossimNitf20Writer::writeBlockBandSequential().
|
private |
Sets the number of image records in the NITF 2.0 File Header.
num | The number of image records for the entire NITF 2.0 file. |
std::out_of_range |
Definition at line 1357 of file ossimNitfFileHeaderV2_0.cpp.
References theNumberOfImageInfoRecords.
Referenced by addImageInfoRecord().
|
virtual |
Implements ossimNitfFileHeaderV2_X.
Definition at line 1539 of file ossimNitfFileHeaderV2_0.cpp.
References ossimNitfCommon::setField(), and theOriginatorsName.
Referenced by setProperty().
|
virtual |
Implements ossimNitfFileHeaderV2_X.
Definition at line 1544 of file ossimNitfFileHeaderV2_0.cpp.
References ossimNitfCommon::setField(), and theOriginatorsPhone.
Referenced by setProperty().
|
virtual |
Reimplemented from ossimNitfFileHeaderV2_X.
Definition at line 1633 of file ossimNitfFileHeaderV2_0.cpp.
References ossimNitfFileHeaderV2_X::CLEVEL_KW, FSDEVT_KW, FSDWNG_KW, ossimNitfFileHeaderV2_X::ONAME_KW, ossimNitfFileHeaderV2_X::OPHONE_KW, setComplianceLevel(), setDowngradingEvent(), setOriginatorsName(), setOriginatorsPhone(), ossimNitfFileHeaderV2_X::setProperty(), setSecurityDowngrade(), and ossimProperty::valueToString().
Referenced by ossimNitf20Writer::setProperty().
|
virtual |
Implements ossimNitfFileHeaderV2_X.
Definition at line 1524 of file ossimNitfFileHeaderV2_0.cpp.
References ossimNitfCommon::setField(), and theReleasingInstructions.
|
virtual |
Implements ossimNitfFileHeaderV2_X.
Definition at line 1534 of file ossimNitfFileHeaderV2_0.cpp.
References ossimNitfCommon::setField(), and theSecurityControlNumber.
void ossimNitfFileHeaderV2_0::setSecurityDowngrade | ( | const ossimString & | securityDowngrade | ) |
Definition at line 1549 of file ossimNitfFileHeaderV2_0.cpp.
References ossimNitfCommon::setField(), and theSecurityDowngrade.
Referenced by setProperty().
|
virtual |
Implements ossimNitfFileHeader.
Definition at line 433 of file ossimNitfFileHeaderV2_0.cpp.
References ossimNitfFileHeader::getTotalTagLength(), ossimNotify(), ossimNotifyLevel_WARN, theClassificationAuthority, theCodewords, ossimNitfFileHeaderV2_X::theComplexityLevel, theControlAndHandling, ossimNitfFileHeaderV2_X::theCopyNumber, ossimNitfFileHeaderV2_X::theDateTime, theDowngradingEvent, ossimNitfFileHeaderV2_X::theEncryption, theExtendedHeaderDataLength, theExtendedHeaderOverflow, theFileLength, ossimNitfFileHeaderV2_X::theFileTitle, ossimNitfFileHeaderV2_X::theFileTypeVersion, theHeaderLength, theNitfDataExtSegInfoRecords, theNitfImageInfoRecords, theNitfLabelInfoRecords, theNitfResExtSegInfoRecords, theNitfSymbolInfoRecords, theNitfTextInfoRecords, ossimNitfFileHeaderV2_X::theNumberOfCopies, ossimNitfFileHeaderV2_X::theOriginatingStationId, theOriginatorsName, theOriginatorsPhone, theReleasingInstructions, ossimNitfFileHeaderV2_X::theSecurityClassification, theSecurityControlNumber, theSecurityDowngrade, ossimNitfFileHeaderV2_X::theSystemType, ossimNitfFileHeader::theTagList, theUserDefinedHeaderDataLength, and theUserDefinedHeaderOverflow.
Referenced by ossimNitf20Writer::writeBlockBandSeparate(), and ossimNitf20Writer::writeBlockBandSequential().
|
static |
Definition at line 244 of file ossimNitfFileHeaderV2_0.h.
Referenced by getProperty(), and setProperty().
|
static |
Properties of a NITF 2.0 Header file.
See MIL-STD-2500A for details.
To access these, pass the constant to getProperty().
Definition at line 243 of file ossimNitfFileHeaderV2_0.h.
Referenced by getProperty(), and setProperty().
|
private |
FSCAUT: This is a 20 byte alphanumeric field.
Definition at line 430 of file ossimNitfFileHeaderV2_0.h.
Referenced by clearFields(), getClassificationAuthority(), print(), saveState(), setClassificationAuthority(), and writeStream().
|
private |
FSCODE: This is a 40 byte Alphanumeric field
Definition at line 415 of file ossimNitfFileHeaderV2_0.h.
Referenced by clearFields(), getCodeWords(), print(), saveState(), setCodeWords(), and writeStream().
|
private |
FSCTLH: This is a 40 byte Alphanumeric field.
Definition at line 420 of file ossimNitfFileHeaderV2_0.h.
Referenced by clearFields(), getControlAndHandling(), print(), saveState(), setControlAndHandling(), and writeStream().
|
private |
This will hold pre-coputed offsets to the start of all the data extension segments.
Definition at line 395 of file ossimNitfFileHeaderV2_0.h.
Referenced by clearFields(), getNewDataExtensionSegment(), and initializeAllOffsets().
|
private |
This will hold some pre-computed information about the display order of the images. It will be populated by scanning the file and sorting display levels.
Definition at line 365 of file ossimNitfFileHeaderV2_0.h.
Referenced by clearFields(), initializeDisplayLevels(), and insertIntoDisplayInfoList().
|
private |
FSDEVT: This is a conditional field and is a 40 byte Alphanumeric field.
This field exists if the security downgrade is 999998.
Definition at line 462 of file ossimNitfFileHeaderV2_0.h.
Referenced by clearFields(), getDowngradingEvent(), getProperty(), print(), saveState(), setDowngradingEvent(), and writeStream().
|
private |
XHDL:
This is a required field. It is 5 bytes long and ranges from 0-99999. 0 means there is no data
Definition at line 609 of file ossimNitfFileHeaderV2_0.h.
Referenced by clearFields(), print(), saveState(), and writeStream().
|
private |
This is a required field. It is 5 bytes long and ranges from 0-99999. 0 means there is no data
Definition at line 615 of file ossimNitfFileHeaderV2_0.h.
Referenced by clearFields(), readOverflowTags(), and writeStream().
|
private |
FL:
This is a required field.
Is a 12 byte number of the form 000000000388-999999999998 indicates the file length and a value of 999999999999 indicates that the file length was not available.
Definition at line 488 of file ossimNitfFileHeaderV2_0.h.
Referenced by clearFields(), getFileSize(), print(), saveState(), setFileLength(), and writeStream().
|
private |
This is the current file we are operating on.
Definition at line 351 of file ossimNitfFileHeaderV2_0.h.
Referenced by clearFields().
|
private |
HL:
This is a reqired field.
Will hold the header length. The values range up to 999998 and a value of 999999 indicates that the length of the header was not available upon creation.
Definition at line 500 of file ossimNitfFileHeaderV2_0.h.
Referenced by clearFields(), print(), saveState(), setHeaderLength(), and writeStream().
|
private |
This is not part of the NITF file header. This will be computed since somethimes the header size will not be given in the header field. This value will hold a count of all the bytes read for the header portion. This can be used to skip past the header data.
Definition at line 410 of file ossimNitfFileHeaderV2_0.h.
Referenced by clearFields(), getHeaderSize(), initializeAllOffsets(), readDataExtSegInfoRecords(), readImageInfoRecords(), readLabelInfoRecords(), readResExtSegInfoRecords(), readSymbolInfoRecords(), and readTextFileInfoRecords().
|
private |
This will hold pre-computed offsets to the start of all image headers and start to their data.
Definition at line 371 of file ossimNitfFileHeaderV2_0.h.
Referenced by clearFields(), getNewImageHeader(), initializeAllOffsets(), and initializeDisplayLevels().
|
private |
This will be pre-computed when the header file is opened. This is computed after we have found the display order. We will use the rectangle of the smallest display number.
Definition at line 358 of file ossimNitfFileHeaderV2_0.h.
Referenced by getImageRect(), and initializeDisplayLevels().
|
private |
This will hold pre-computed offsets to the start of all Label headers and start to their data.
Definition at line 383 of file ossimNitfFileHeaderV2_0.h.
Referenced by clearFields(), getNewLabelHeader(), and initializeAllOffsets().
|
private |
This information is conditional on the number of info records field. If the field is greater than 0 then the record information is read in up to the indicated number
Definition at line 570 of file ossimNitfFileHeaderV2_0.h.
Referenced by clearFields(), getNewDataExtensionSegment(), getNumberOfDataExtSegments(), initializeAllOffsets(), print(), readDataExtSegInfoRecords(), saveState(), and writeStream().
|
private |
This information is conditional on the number of image info records field. If the field is greater than 0 then the record information is read in up to the indicated number
Definition at line 515 of file ossimNitfFileHeaderV2_0.h.
Referenced by addImageInfoRecord(), getNumberOfImages(), initializeAllOffsets(), print(), readImageInfoRecords(), replaceImageInfoRecord(), saveState(), and writeStream().
|
private |
This information is conditional on the number of label info records field. If the field is greater than 0 then the record information is read in up to the indicated number
Definition at line 542 of file ossimNitfFileHeaderV2_0.h.
Referenced by clearFields(), getNumberOfLabels(), initializeAllOffsets(), print(), readLabelInfoRecords(), saveState(), and writeStream().
|
private |
This information is conditional on the number of Res Ext Seg info records field. If the field is greater than 0 then the record information is read in up to the indicated number
Definition at line 584 of file ossimNitfFileHeaderV2_0.h.
Referenced by clearFields(), getNumberOfReservedExtSegments(), print(), readResExtSegInfoRecords(), saveState(), and writeStream().
|
private |
This information is conditional on the number of symbol info records field. If the field is greater than 0 then the record information is read in up to the indicated number
Definition at line 527 of file ossimNitfFileHeaderV2_0.h.
Referenced by clearFields(), getNumberOfSymbols(), initializeAllOffsets(), print(), readSymbolInfoRecords(), saveState(), and writeStream().
|
private |
This information is conditional on the number of text file info records field. If the field is greater than 0 then the record information is read in up to the indicated number
Definition at line 556 of file ossimNitfFileHeaderV2_0.h.
Referenced by clearFields(), getNumberOfTextSegments(), initializeAllOffsets(), print(), readTextFileInfoRecords(), saveState(), and writeStream().
|
private |
NUMDES:
This is a 3 byte numeric 0-999.
Definition at line 563 of file ossimNitfFileHeaderV2_0.h.
Referenced by clearFields(), print(), readDataExtSegInfoRecords(), and saveState().
|
private |
NUMI:
This is a 3 byte field that specifies the number of images in the file. 0-999
Definition at line 508 of file ossimNitfFileHeaderV2_0.h.
Referenced by clearFields(), print(), readImageInfoRecords(), saveState(), and setNumberOfImageInfoRecords().
|
private |
NUML.
This is a 3 byte numeric 0-999.
Definition at line 535 of file ossimNitfFileHeaderV2_0.h.
Referenced by clearFields(), print(), readLabelInfoRecords(), and saveState().
|
private |
NUMRES:
This is a 3 byte numeric 0-999. Reserved Extension Segments
Definition at line 577 of file ossimNitfFileHeaderV2_0.h.
Referenced by clearFields(), print(), readResExtSegInfoRecords(), and saveState().
|
private |
This is a 3 byte numeric 0-999.
Definition at line 521 of file ossimNitfFileHeaderV2_0.h.
Referenced by clearFields(), print(), readSymbolInfoRecords(), and saveState().
|
private |
NUMT:
This is a 3 byte numeric 0-999.
Definition at line 549 of file ossimNitfFileHeaderV2_0.h.
Referenced by clearFields(), print(), readTextFileInfoRecords(), and saveState().
|
private |
ONAME:
This is a 27 byte Alphanumeric number
Definition at line 469 of file ossimNitfFileHeaderV2_0.h.
Referenced by clearFields(), getOriginatorsName(), getProperty(), print(), saveState(), setOriginatorsName(), and writeStream().
|
private |
OPHONE: This is an 18 byte Alphanumeric value.
Definition at line 475 of file ossimNitfFileHeaderV2_0.h.
Referenced by clearFields(), getOriginatorsPhone(), getProperty(), print(), saveState(), setOriginatorsPhone(), and writeStream().
|
private |
FSREL: This is a 40 byte Alphanumeric field.
Definition at line 425 of file ossimNitfFileHeaderV2_0.h.
Referenced by clearFields(), getReleasingInstructions(), print(), saveState(), setReleasingInstructions(), and writeStream().
|
private |
FSCTLN: This is a 20 byte Alphanumeric field.
Definition at line 435 of file ossimNitfFileHeaderV2_0.h.
Referenced by clearFields(), getSecurityControlNumber(), print(), saveState(), setSecurityControlNumber(), and writeStream().
|
private |
FSDWNG:
This is a 6 byte Alphanumeric. If this field is not blank then it will have the form:
YYMMDD
Where YY is the last 2 chars of the year and will be 00 to 59 represents 2000 to 2059 60 to 99 represents 1960 to 1999
if the field is 999999 then the Originating agency field is required. If te field is 999998 then the downgrade event is required
Definition at line 454 of file ossimNitfFileHeaderV2_0.h.
Referenced by clearFields(), getProperty(), getSecurityDowngrade(), print(), saveState(), setSecurityDowngrade(), and writeStream().
|
private |
This will hold pre-computed offsets to the start of all symbol headers and start to their data.
Definition at line 377 of file ossimNitfFileHeaderV2_0.h.
Referenced by clearFields(), getNewSymbolHeader(), and initializeAllOffsets().
|
private |
This will hold pre-computed offsets to the start of all text headers and start to their data.
Definition at line 389 of file ossimNitfFileHeaderV2_0.h.
Referenced by clearFields(), getNewTextHeader(), and initializeAllOffsets().
|
private |
UDHDL:
This is a required field and is a 5 byte numeric ranging from 0-99999. This is 0 if there is no data.
Definition at line 592 of file ossimNitfFileHeaderV2_0.h.
Referenced by clearFields(), print(), saveState(), and writeStream().
|
private |
This is a conditional field. It will exist if the user defined header length is not 0. If it exists then it may contain an overflow into one of the data extension segments above and will hold the number of that segment.
Definition at line 601 of file ossimNitfFileHeaderV2_0.h.
Referenced by clearFields(), print(), readOverflowTags(), and writeStream().