OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
RadiometricCompensationData.cpp
Go to the documentation of this file.
1 //----------------------------------------------------------------------------
2 //
3 // "Copyright Centre National d'Etudes Spatiales"
4 //
5 // License: LGPL
6 //
7 // See LICENSE.txt file in the top level directory for more details.
8 //
9 //----------------------------------------------------------------------------
10 // $Id$
11 
13 
14 namespace ossimplugins
15 {
17  {
18  }
19 
21  {
22  }
23 
25  {
26  os<<"seq_num:"<<data._seq_num<<std::endl;
27 
28  os<<"chan_ind:"<<data._chan_ind<<std::endl;
29 
30  os<<"n_dset:"<<data._n_dset<<std::endl;
31 
32  os<<"dset_size:"<<data._dset_size<<std::endl;
33 
34  for (int i=0;i<4;i++)
35  {
36  os<<"dset["<<i<<"]:"<<data._dset[i]<<std::endl;
37  }
38  return os;
39  }
40 
42  {
43  char buf[9];
44  buf[8] = '\0';
45 
46  is.read(buf,4);
47  buf[4] = '\0';
48  data._seq_num = atoi(buf);
49 
50  is.read(buf,4);
51  buf[4] = '\0';
52  data._chan_ind = atoi(buf);
53 
54  is.read(buf,8);
55  buf[8] = '\0';
56  data._n_dset = atoi(buf);
57 
58  is.read(buf,8);
59  buf[8] = '\0';
60  data._dset_size = atoi(buf);
61 
62  for (int i=0;i<4;i++)
63  {
64  is>> data._dset[i];
65  }
66 
67  return is;
68  }
69 
71  RadarSatRecord(rhs)
72  {
73  _seq_num = rhs._seq_num;
74 
75  _chan_ind = rhs._chan_ind;
76 
77  _n_dset = rhs._n_dset;
78 
79  _dset_size = rhs._dset_size;
80 
81  for (int i=0;i<4;i++)
82  {
83  _dset[i] = rhs._dset[i];
84  }
85  }
86 
88  {
89  return *this;
90  }
91 }
This class is the base class of all the record classes.
std::ostream & operator<<(std::ostream &os, const AlosPalsarData &data)
This class is able to read a Radiometric Compensation data record.
std::istream & operator>>(std::istream &is, AlosPalsarData &data)
std::basic_istream< char > istream
Base class for char input streams.
Definition: ossimIosFwd.h:20
CompensationDataRecord _dset[4]
Compensation data set records.
RadiometricCompensationData & operator=(const RadiometricCompensationData &rhs)
Copy operator.
std::basic_ostream< char > ostream
Base class for char output streams.
Definition: ossimIosFwd.h:23