OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
BeamInformationRecord.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 
12 #include "BeamInformationRecord.h"
13 
14 namespace ossimplugins
15 {
17 {
18 }
19 
21 {
22 }
23 
25 {
26  os<<"beam_type:"<<data._beam_type.c_str()<<std::endl;
27 
28  os<<"beam_look_src:"<<data._beam_look_src.c_str()<<std::endl;
29 
30  os<<"beam_look_ang:"<<data._beam_look_ang<<std::endl;
31 
32  os<<"prf:"<<data._prf<<std::endl;
33 
34  return os;
35 }
36 
38 {
39  char buf[17];
40  buf[16] = '\0';
41 
42  is.read(buf,3);
43  buf[3] = '\0';
44  data._beam_type = buf;
45 
46  is.read(buf,9);
47  buf[9] = '\0';
48  data._beam_look_src = buf;
49 
50  is.read(buf,16);
51  buf[16] = '\0';
52  data._beam_look_ang = atof(buf);
53 
54  is.read(buf,16);
55  buf[16] = '\0';
56  data._prf = atof(buf);
57 
58  return is;
59 }
60 
62  _beam_type(rhs._beam_type),
63  _beam_look_src(rhs._beam_look_src),
64  _beam_look_ang(rhs._beam_look_ang),
65  _prf(rhs._prf)
66 {
67 
68 }
69 
71 {
72  _beam_type = rhs._beam_type;
75  _prf = rhs._prf;
76  return *this;
77 }
78 }
std::string _beam_look_src
Elevation beam look angle source.
BeamInformationRecord & operator=(const BeamInformationRecord &rhs)
Copy operator.
This class is able to read a Beam information record.
double _beam_look_ang
Applied elevation beam look angle (deg)
std::ostream & operator<<(std::ostream &os, const AlosPalsarData &data)
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