OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
AlosPalsarPositionVectorRecord.cpp
Go to the documentation of this file.
1 //----------------------------------------------------------------------------
2 //
3 // "Copyright Centre National d'Etudes Spatiales"
4 // "Copyright Centre for Remote Imaging, Sensing and Processing"
5 //
6 // License: LGPL
7 //
8 // See LICENSE.txt file in the top level directory for more details.
9 //
10 //----------------------------------------------------------------------------
11 // $Id$
12 
14 
15 namespace ossimplugins
16 {
17 
18 
20 {
21 }
22 
24 {
25 }
26 
28 {
29  for (int i = 0; i < 3; i++)
30  {
31  os << "pos[" << i << "]:" << data._pos[i] << std::endl;
32  }
33 
34  for (int i = 0; i < 3; i++)
35  {
36  os << "vel[" << i << "]:" << data._vel[i] << std::endl;
37  }
38  return os;
39 }
40 
42 {
43  char buf[23];
44  buf[22] = '\0';
45 
46  for (int i = 0; i < 3; i++)
47  {
48  is.read(buf, 22);
49  data._pos[i] = atof(buf);
50  }
51 
52  for (int i = 0; i < 3; i++)
53  {
54  is.read(buf, 22);
55  data._vel[i] = atof(buf);
56  }
57  return is;
58 }
59 
61 {
62  for (int i = 0; i < 3; i++)
63  {
64  _pos[i] = rhs._pos[i];
65  }
66 
67  for (int i = 0; i < 3; i++)
68  {
69  _vel[i] = rhs._vel[i];
70  }
71 }
72 
74 {
75  for (int i = 0; i < 3; i++)
76  {
77  _pos[i] = rhs._pos[i];
78  }
79 
80  for (int i = 0; i < 3; i++)
81  {
82  _vel[i] = rhs._vel[i];
83  }
84  return *this;
85 }
86 
87 }
std::ostream & operator<<(std::ostream &os, const AlosPalsarData &data)
This class is able to read a position vector record.
std::istream & operator>>(std::istream &is, AlosPalsarData &data)
std::basic_istream< char > istream
Base class for char input streams.
Definition: ossimIosFwd.h:20
AlosPalsarPositionVectorRecord & operator=(const AlosPalsarPositionVectorRecord &rhs)
Copy operator.
std::basic_ostream< char > ostream
Base class for char output streams.
Definition: ossimIosFwd.h:23