OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ErsSarPositionVectorRecord.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 
15 namespace ossimplugins
16 {
17 
19 {
20 }
21 
23 {
24 }
25 
27 {
28  for (int i = 0; i < 3; i++)
29  {
30  os << "pos[" << i << "]:" << data._pos[i] << std::endl;
31  }
32 
33  for (int i = 0; i < 3; i++)
34  {
35  os << "vel[" << i << "]:" << data._vel[i] << std::endl;
36  }
37  return os;
38 }
39 
41 {
42  char buf[23];
43  buf[22] = '\0';
44 
45  for (int i = 0; i < 3; i++)
46  {
47  is.read(buf, 22);
48  data._pos[i] = atof(buf);
49  }
50 
51  for (int i = 0; i < 3; i++)
52  {
53  is.read(buf, 22);
54  data._vel[i] = atof(buf);
55  }
56  return is;
57 }
58 
60 {
61  for (int i = 0; i < 3; i++)
62  {
63  _pos[i] = rhs._pos[i];
64  }
65 
66  for (int i = 0; i < 3; i++)
67  {
68  _vel[i] = rhs._vel[i];
69  }
70 }
71 
73 {
74  for (int i = 0; i < 3; i++)
75  {
76  _pos[i] = rhs._pos[i];
77  }
78 
79  for (int i = 0; i < 3; i++)
80  {
81  _vel[i] = rhs._vel[i];
82  }
83  return *this;
84 }
85 }
std::ostream & operator<<(std::ostream &os, const AlosPalsarData &data)
std::istream & operator>>(std::istream &is, AlosPalsarData &data)
ErsSarPositionVectorRecord & operator=(const ErsSarPositionVectorRecord &rhs)
Copy operator.
double _vel[3]
Data point velocity (mm/s)
std::basic_istream< char > istream
Base class for char input streams.
Definition: ossimIosFwd.h:20
This class is able to read a position vector record.
std::basic_ostream< char > ostream
Base class for char output streams.
Definition: ossimIosFwd.h:23