OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
DataPointDataRecord.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 "DataPointDataRecord.h"
13 
14 namespace ossimplugins
15 {
17 {
18 }
19 
21 {
22 }
23 
25 {
26  os<<"gmt_day:"<<data._gmt_day<<std::endl;
27  os<<"gmt_sec:"<<data._gmt_sec<<std::endl;
28  os<<"pitch_flag:"<<data._pitch_flag<<std::endl;
29  os<<"roll_flag:"<<data._roll_flag<<std::endl;
30  os<<"yaw_flag:"<<data._yaw_flag<<std::endl;
31  os<<"pitch:"<<data._pitch<<std::endl;
32  os<<"roll:"<<data._roll<<std::endl;
33  os<<"yaw:"<<data._yaw<<std::endl;
34  os<<"pitch_rate_flag:"<<data._pitch_rate_flag<<std::endl;
35  os<<"roll_rate_flag:"<<data._roll_rate_flag<<std::endl;
36  os<<"yaw_rate_flag:"<<data._yaw_rate_flag<<std::endl;
37  os<<"pitch_rate:"<<data._pitch_rate<<std::endl;
38  os<<"roll_rate:"<<data._roll_rate<<std::endl;
39  os<<"yaw_rate:"<<data._yaw_rate<<std::endl;
40  return os;
41 }
42 
44 {
45  char buf[15];
46  buf[14] = '\0';
47 
48  is.read(buf,4);
49  buf[4] = '\0';
50  data._gmt_day = atoi(buf);
51 
52  is.read(buf,8);
53  buf[8] = '\0';
54  data._gmt_sec = atoi(buf);
55 
56  is.read(buf,4);
57  buf[4] = '\0';
58  data._pitch_flag = atoi(buf);
59 
60  is.read(buf,4);
61  buf[4] = '\0';
62  data._roll_flag = atoi(buf);
63 
64  is.read(buf,4);
65  buf[4] = '\0';
66  data._yaw_flag = atoi(buf);
67 
68  is.read(buf,14);
69  buf[14] = '\0';
70  data._pitch = atof(buf);
71 
72  is.read(buf,14);
73  buf[14] = '\0';
74  data._roll = atof(buf);
75 
76  is.read(buf,14);
77  buf[14] = '\0';
78  data._yaw = atof(buf);
79 
80  is.read(buf,4);
81  buf[4] = '\0';
82  data._pitch_rate_flag = atoi(buf);
83 
84  is.read(buf,4);
85  buf[4] = '\0';
86  data._roll_rate_flag = atoi(buf);
87 
88  is.read(buf,4);
89  buf[4] = '\0';
90  data._yaw_rate_flag = atoi(buf);
91 
92  is.read(buf,14);
93  buf[14] = '\0';
94  data._pitch_rate = atof(buf);
95 
96  is.read(buf,14);
97  buf[14] = '\0';
98  data._roll_rate = atof(buf);
99 
100  is.read(buf,14);
101  buf[14] = '\0';
102  data._yaw_rate = atof(buf);
103 
104  return is;
105 }
106 
108 {
109  _gmt_day = rhs._gmt_day;
110  _gmt_sec = rhs._gmt_sec;
111  _pitch_flag = rhs._pitch_flag;
112  _roll_flag = rhs._roll_flag;
113  _yaw_flag = rhs._yaw_flag;
114  _pitch = rhs._pitch;
115  _roll = rhs._roll;
116  _yaw = rhs._yaw;
120  _pitch_rate = rhs._pitch_rate;
121  _roll_rate = rhs._roll_rate;
122  _yaw_rate = rhs._yaw_rate;
123 }
124 
126 {
127  _gmt_day = rhs._gmt_day;
128  _gmt_sec = rhs._gmt_sec;
129  _pitch_flag = rhs._pitch_flag;
130  _roll_flag = rhs._roll_flag;
131  _yaw_flag = rhs._yaw_flag;
132  _pitch = rhs._pitch;
133  _roll = rhs._roll;
134  _yaw = rhs._yaw;
138  _pitch_rate = rhs._pitch_rate;
139  _roll_rate = rhs._roll_rate;
140  _yaw_rate = rhs._yaw_rate;
141  return *this;
142 }
143 }
double _roll
Roll error, degrees
double _pitch
Pitch error, degrees
int _gmt_sec
Milliseconds of day, GMT
int _roll_flag
Roll data quality flag
double _yaw
Yaw error, degrees
int _gmt_day
Day of the year, GMT.
int _roll_rate_flag
Roll rate data quality fla
double _pitch_rate
Pitch rate, degrees/sec
DataPointDataRecord & operator=(const DataPointDataRecord &rhs)
Copy operator.
double _yaw_rate
Yaw rate, degrees/sec
double _roll_rate
Roll rate, degrees/sec
int _yaw_rate_flag
Yaw rate data quality flag
std::ostream & operator<<(std::ostream &os, const AlosPalsarData &data)
This class is able to read a Data point 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
int _pitch_rate_flag
Pitch rate data quality flag
int _yaw_flag
Yaw data quality flag
int _pitch_flag
Pitch data quality flag
std::basic_ostream< char > ostream
Base class for char output streams.
Definition: ossimIosFwd.h:23