コード例 #1
0
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;
}
コード例 #2
0
bool ossimNitfFileHeader::hasDataExtSegments()const
{
   return (getNumberOfDataExtSegments() > 0);
}