54 std::map<int, RadarSatRecord*>::const_iterator it = data.
_records.begin();
57 (*it).second->Write(os);
82 if ( (header.get_rec_seq() == 2) && (header.get_length() == 8960) )
84 record = factory.
Instanciate(header.get_rec_seq() + 5);
88 data.
_records[header.get_rec_seq() + 5] = record;
92 char* buff =
new char[header.get_length()-12];
93 is.read(buff, header.get_length()-12);
103 data.
_records[header.get_rec_seq()] = record;
107 char* buff =
new char[header.get_length()-12];
108 is.read(buff, header.get_length()-12);
119 std::map<int, RadarSatRecord*>::const_iterator it = rhs.
_records.begin();
122 _records[(*it).first] = (*it).second->Clone();
130 std::map<int, RadarSatRecord*>::const_iterator it = rhs.
_records.begin();
133 _records[(*it).first] = (*it).second->Clone();
142 std::map<int, RadarSatRecord*>::const_iterator it =
_records.begin();
This class is able to read the SAR leader file descriptor record of the leader file.
static const int RadiometricDataID
This class is able to read a data histogram record - Processed data.
FileDescriptor * get_FileDescriptor()
RadarSatRecord * Instanciate(int id)
Instanciates a new Record.
static const int DataHistogramSignalDataID
This class is able to read a data quality record.
DataHistogramProcessedData * get_DataHistogramProcessedData()
static const int AttitudeDataID
static const int DataQualityID
static const int RadiometricCompensationDataID
This class is the base class of all the record classes.
virtual void Read(std::istream &is)=0
Reads the class data from a stream.
This class is able to read a data histogram record - Signal data.
Leader & operator=(const Leader &rhs)
Copy operator.
std::ostream & operator<<(std::ostream &os, const AlosPalsarData &data)
static const int ProcessingParametersID
PlatformPositionData * get_PlatformPositionData()
This class is able to read a radiometric data record.
This class is a factory able to construct Record base classes.
This class is able to read a Radiometric Compensation data record.
DataQuality * get_DataQuality()
std::istream & operator>>(std::istream &is, AlosPalsarData &data)
AttitudeData * get_AttitudeData()
static const int DataHistogramProcessedDataID
ProcessingParameters * get_ProcessingParameters()
This class is able to read a Detailed processing parameters record.
std::basic_istream< char > istream
Base class for char input streams.
static const int DataSetSummaryID
DataHistogramSignalData * get_DataHistogramSignalData()
This class is able to read the SAR leader data set summary record of the leader file.
static const int FileDescriptorID
DataSetSummary * get_DataSetSummary()
void ClearRecords()
Removes all the previous records from the Leader.
RadiometricCompensationData * get_RadiometricCompensationData()
static const int PlatformPositionDataID
This class is able to read a Attitude data record.
RadiometricData * get_RadiometricData()
std::basic_ostream< char > ostream
Base class for char output streams.
std::map< int, RadarSatRecord * > _records
This class is able to read the leader file of the RadarSat file structure.