12 #ifndef ProcessedDataRecord_h 13 #define ProcessedDataRecord_h 402 int nb_octets =
sizeof(T);
405 buffer = (
char* )malloc(nb_octets);
406 res = (
char* )malloc(nb_octets);
408 memcpy(buffer,&value,nb_octets);
410 for (
int i=0; i<nb_octets/2; i++) {
411 res[i] = buffer[nb_octets-1-i];
412 res[nb_octets-1-i] = buffer[i];
414 memcpy(&value,res,nb_octets);
friend std::ostream & operator<<(std::ostream &os, const ProcessedDataRecord &data)
This function writes the ProcessedDataRecord in a stream.
int get_ka_mid()
Mid pixel azimuth FM rate, Hz
int get_ka_first()
First pixel azimuth FM rate, Hz
void Read(std::istream &is)
Reads the class data from a stream.
int _fdc_mid
Mid pixel Doppler centroid, Hz
int get_lon_first()
First pixel longitude, 10e-6 deg.
int _n_right_pixel
Right fill pixel count
int get_fdc_mid()
Mid pixel Doppler centroid, Hz
void Write(std::ostream &os)
Writes the class to a stream.
int get_heading()
Line heading, 10e-6 deg.
int _recv_polar
Received polarization
int get_sr_first()
Slant range to first pixel, m
int _east_first
Easting of first pixel, m.
RadarSatRecord * Clone()
This function is able to create a new instance of the class initialised with the data of the calling ...
int _lon_first
First pixel longitude, 10e-6 deg.
void SwitchEndian(T &value)
This function switches the LSB value and the MSB value of the parameter.
int _sensor_updf
Sensor parameter update flag
OSSIM_DLL ossimByteOrder byteOrder()
int _heading
Line heading, 10e-6 deg.
int _geo_updf
Geographic ref parameter update flag
ProcessedDataRecord()
Constructor.
int _acq_msec
Acquisition msecs
int _acq_day
Acquisition day
int _sar_chan_code
SAR channel code
int get_recv_polar()
Received polarization
int get_east_first()
Easting of first pixel, m.
int get_sr_last()
Slant range to last pixel, m
int _fdc_last
Last pixel Doppler centroid, Hz
int _lat_first
First pixel latitude, 10e-6 deg
int get_north_last()
Northing of last pixel, m.
int get_nadir_ang()
Nadir look angle, 10e-6 deg
This class is the base class of all the record classes.
friend std::istream & operator>>(std::istream &is, ProcessedDataRecord &data)
This function reads a ProcessedDataRecord from a stream.
int get_n_data_pixel()
Data pixel count
int _squint_ang
Azimuth squint angle, 10e-6 deg
int get_sensor_updf()
Sensor parameter update flag
int _lon_last
Last-pixel longitude, 10e-6 deg.
int get_line_num()
Image data line number.
int get_east_last()
Easting of last pixel, m.
int get_n_left_pixel()
Left fill pixel count
int _lon_mid
Mid-pixel longitude, 10e-6 deg
int _sar_chan_ind
SAR channel indicator
int get_fdc_last()
Last pixel Doppler centroid, Hz
int get_acq_day()
Acquisition day
int _sr_mid
Slant range to mid-pixel, m
RadarSatRecord * Instanciate()
This function is able to create a new instance of the class.
int get_lon_last()
Last-pixel longitude, 10e-6 deg.
This class is able to read an Processed Data Record.
int _north_last
Northing of last pixel, m.
int _fdc_first
First pixel Doppler centroid, Hz
int _ka_mid
Mid pixel azimuth FM rate, Hz
int _line_num
Image data line number.
int _lat_mid
Mid-pixel latitude, 10e-6 deg
int get_geo_updf()
Geographic ref parameter update flag
int _north_first
Northing of first pixel, m
int get_fdc_first()
First pixel Doppler centroid, Hz
ProcessedDataRecord & operator=(const ProcessedDataRecord &rhs)
Copy operator.
int _ka_last
Last pixel azimuth FM rate, Hz.
int get_lat_last()
Last-pixel latitude, 10e-6 deg.
std::basic_istream< char > istream
Base class for char input streams.
int _acq_year
Acquisition year
int _nadir_ang
Nadir look angle, 10e-6 deg
int _tran_polar
Transmitted polarization
int get_acq_year()
Acquisition year
int _ka_first
First pixel azimuth FM rate, Hz
int _sr_first
Slant range to first pixel, m
int _sr_last
Slant range to last pixel, m
int get_sar_chan_code()
SAR channel code
int _rec_num
Image data record index
int get_lat_mid()
Mid-pixel latitude, 10e-6 deg
int get_north_first()
Northing of first pixel, m
int get_acq_msec()
Acquisition msecs
int get_tran_polar()
Transmitted polarization
int get_squint_ang()
Azimuth squint angle, 10e-6 deg
~ProcessedDataRecord()
Destructor.
int _n_left_pixel
Left fill pixel count
int get_lat_first()
First pixel latitude, 10e-6 deg
int get_rec_num()
Image data record index
int _n_data_pixel
Data pixel count
int _lat_last
Last-pixel latitude, 10e-6 deg.
int _east_last
Easting of last pixel, m.
int get_sar_chan_ind()
SAR channel indicator
std::basic_ostream< char > ostream
Base class for char output streams.
int get_lon_mid()
Mid-pixel longitude, 10e-6 deg
int get_n_right_pixel()
Right fill pixel count
int get_ka_last()
Last pixel azimuth FM rate, Hz.
int get_sr_mid()
Slant range to mid-pixel, m