24 static ossimTrace traceDebug(
"ossimAlosPalsarData:debug");
44 std::map<int, AlosPalsarRecord*>::const_iterator it = data.
_records.begin();
47 (*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);
76 std::streampos filePosition;
78 filePosition = is.tellg();
86 data.
_records[header.get_rec_seq()] = record;
89 is.seekg(filePosition);
91 is.seekg(static_cast<std::streamoff>(header.get_length()), std::ios::cur);
99 std::map<int, AlosPalsarRecord*>::const_iterator it = rhs.
_records.begin();
102 _records[(*it).first] = (*it).second->Clone();
110 std::map<int, AlosPalsarRecord*>::const_iterator it = rhs.
_records.begin();
113 _records[(*it).first] = (*it).second->Clone();
122 std::map<int, AlosPalsarRecord*>::const_iterator it =
_records.begin();
132 const char* prefix)
const 135 static const char MODULE[] =
"AlosPalsarData::saveState";
148 if (datafiledesc != NULL)
159 if (datafiledesc != NULL)
This class is able to read the header of the Signal Data Records of the image file.
Represents serializable keyword/value map.
int get_slant_range_to_1st_data_sample() const
virtual ~AlosPalsarData()
Destructor.
This class is the base class of all the record classes.
AlosPalsarData()
Constructor.
This class is able to read the SAR leader file descriptor record of the leader file.
void add(const char *prefix, const ossimKeywordlist &kwl, bool overwrite=true)
static const int AlosPalsarDataFileDescriptorID
std::ostream & operator<<(std::ostream &os, const AlosPalsarData &data)
This class is able to read the Leader file of the AlosPalsar file structure.
int get_num_lines() const
AlosPalsarData & operator=(const AlosPalsarData &rhs)
Copy operator.
virtual bool saveState(ossimKeywordlist &kwl, const char *prefix=0) const
Method to save object state to a keyword list.
std::istream & operator>>(std::istream &is, AlosPalsarData &data)
int get_pulse_repetition_frequency() const
std::basic_istream< char > istream
Base class for char input streams.
const AlosPalsarDataFileDescriptor * get_AlosPalsarDataFileDescriptor() const
static const int AlosPalsarSignalDataID
int get_num_pix_in_line() const
void ClearRecords()
Remove all the previous records from the AlosPalsarData.
virtual void Read(std::istream &is)=0
Read the class data from a stream.
OSSIMDLLEXPORT std::ostream & ossimNotify(ossimNotifyLevel level=ossimNotifyLevel_WARN)
std::basic_ostream< char > ostream
Base class for char output streams.
const AlosPalsarSignalData * get_AlosPalsarSignalData() const