36 std::map<int, RadarSatRecord*>::const_iterator it = data.
_records.begin();
39 (*it).second->Write(os);
67 data.
_records[header.get_rec_seq()] = record;
71 char* buff =
new char[header.get_length()-12];
72 is.read(buff, header.get_length()-12);
83 std::map<int, RadarSatRecord*>::const_iterator it = rhs.
_records.begin();
86 _records[(*it).first] = (*it).second->Clone();
94 std::map<int, RadarSatRecord*>::const_iterator it = rhs.
_records.begin();
97 _records[(*it).first] = (*it).second->Clone();
106 std::map<int, RadarSatRecord*>::const_iterator it =
_records.begin();
static const int SARLeaderFilePointerRecordID
SARTrailerFilePointerRecord * get_SARTrailerFilePointerRecord()
TextRecord * get_TextRecord()
static const int TextRecordID
RadarSatRecord * Instanciate(int id)
Instanciates a new Record.
This class is able to read the volume directory file of the RadarSat file structure.
VolumeDir & operator=(const VolumeDir &rhs)
Copy operator.
This class is able to read the Text record of the volume directory file.
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 the SAR leader file descriptor record of the leader file.
std::map< int, RadarSatRecord * > _records
This class is able to read the SAR leader file descriptor record of the leader file.
std::ostream & operator<<(std::ostream &os, const AlosPalsarData &data)
static const int ImageOptionsFilePointerRecordID
VolumeDescriptorRecord * get_VolumeDescriptorRecord()
static const int SARTrailerFilePointerRecordID
std::istream & operator>>(std::istream &is, AlosPalsarData &data)
This class is a factory able to construct Record base classes.
std::basic_istream< char > istream
Base class for char input streams.
ImageOptionsFilePointerRecord * get_ImageOptionsFilePointerRecord()
static const int VolumeDescriptorRecordID
std::basic_ostream< char > ostream
Base class for char output streams.
SARLeaderFilePointerRecord * get_SARLeaderFilePointerRecord()
void ClearRecords()
Removes all the previous records from the VolumeDir.