ossimNitfDataExtensionSegment* ossimNitfFileHeaderV2_0::getNewDataExtensionSegment( ossim_uint32 dataExtNumber, std::istream& in)const { ossimNitfDataExtensionSegment *result = 0; if( (getNumberOfDataExtSegments() > 0) && (dataExtNumber < theNitfDataExtSegInfoRecords.size()) ) { result = allocateDataExtSegment(); in.seekg(theDataExtSegOffsetList[dataExtNumber].theDataExtSegHeaderOffset, std::ios::beg); result->parseStream(in); } return result; }
bool ossimNitfFileHeader::hasDataExtSegments()const { return (getNumberOfDataExtSegments() > 0); }