OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
SRGRCoefficientSetRecord.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<<"srgr_update:"<<data._srgr_update.c_str()<<std::endl;
27  for (int i=0;i<6;i++)
28  {
29  os<<"srgr_coef["<<i<<"]:"<<data._srgr_coef[i]<<std::endl;
30  }
31 
32  return os;
33 }
34 
36 {
37  char buf[22];
38  buf[21] = '\0';
39 
40  is.read(buf,21);
41  buf[21] = '\0';
42  data._srgr_update = buf;
43 
44  for (int i=0;i<6;i++)
45  {
46  is.read(buf,16);
47  buf[16] = '\0';
48  data._srgr_coef[i] = atof(buf);
49  }
50  return is;
51 }
52 
54  _srgr_update(rhs._srgr_update)
55 {
56  for (int i=0;i<6;i++)
57  {
58  _srgr_coef[i] = rhs._srgr_coef[i];
59  }
60 }
61 
63 {
65  for (int i=0;i<6;i++)
66  {
67  _srgr_coef[i] = rhs._srgr_coef[i];
68  }
69  return *this;
70 }
71 }
This class is able to read a SRGR coefficients set record.
std::string _srgr_update
SRGR update date/time.
std::ostream & operator<<(std::ostream &os, const AlosPalsarData &data)
SRGRCoefficientSetRecord & operator=(const SRGRCoefficientSetRecord &rhs)
Copy operator.
std::istream & operator>>(std::istream &is, AlosPalsarData &data)
std::basic_istream< char > istream
Base class for char input streams.
Definition: ossimIosFwd.h:20
std::basic_ostream< char > ostream
Base class for char output streams.
Definition: ossimIosFwd.h:23