OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
Public Member Functions | Protected Attributes | Friends | List of all members
ossimplugins::DataPointDataRecord Class Reference

This class is able to read a Data point data record. More...

#include <DataPointDataRecord.h>

Public Member Functions

 DataPointDataRecord ()
 Constructor. More...
 
 ~DataPointDataRecord ()
 Destructor. More...
 
 DataPointDataRecord (const DataPointDataRecord &rhs)
 Copy constructor. More...
 
DataPointDataRecordoperator= (const DataPointDataRecord &rhs)
 Copy operator. More...
 
int get_gmt_day ()
 Day of the year, GMT. More...
 
int get_gmt_sec ()
 
Milliseconds of day, GMT More...
 
int get_pitch_flag ()
 
Pitch data quality flag More...
 
int get_roll_flag ()
 
Roll data quality flag More...
 
int get_yaw_flag ()
 
Yaw data quality flag More...
 
double get_pitch ()
 
Pitch error, degrees More...
 
double get_roll ()
 
Roll error, degrees More...
 
double get_yaw ()
 
Yaw error, degrees More...
 
int get_pitch_rate_flag ()
 
Pitch rate data quality flag More...
 
int get_roll_rate_flag ()
 
Roll rate data quality fla More...
 
int get_yaw_rate_flag ()
 
Yaw rate data quality flag More...
 
double get_pitch_rate ()
 
Pitch rate, degrees/sec More...
 
double get_roll_rate ()
 
Roll rate, degrees/sec More...
 
double get_yaw_rate ()
 
Yaw rate, degrees/sec More...
 

Protected Attributes

int _gmt_day
 Day of the year, GMT. More...
 
int _gmt_sec
 
Milliseconds of day, GMT More...
 
int _pitch_flag
 
Pitch data quality flag More...
 
int _roll_flag
 
Roll data quality flag More...
 
int _yaw_flag
 
Yaw data quality flag More...
 
double _pitch
 
Pitch error, degrees More...
 
double _roll
 
Roll error, degrees More...
 
double _yaw
 
Yaw error, degrees More...
 
int _pitch_rate_flag
 
Pitch rate data quality flag More...
 
int _roll_rate_flag
 
Roll rate data quality fla More...
 
int _yaw_rate_flag
 
Yaw rate data quality flag More...
 
double _pitch_rate
 
Pitch rate, degrees/sec More...
 
double _roll_rate
 
Roll rate, degrees/sec More...
 
double _yaw_rate
 
Yaw rate, degrees/sec More...
 

Friends

std::ostream & operator<< (std::ostream &os, const DataPointDataRecord &data)
 This function writes the DataPointDataRecord in a stream. More...
 
std::istream & operator>> (std::istream &is, DataPointDataRecord &data)
 This function reads a DataPointDataRecord from a stream. More...
 

Detailed Description

This class is able to read a Data point data record.

Definition at line 26 of file DataPointDataRecord.h.

Constructor & Destructor Documentation

◆ DataPointDataRecord() [1/2]

ossimplugins::DataPointDataRecord::DataPointDataRecord ( )

Constructor.

Definition at line 16 of file DataPointDataRecord.cpp.

17 {
18 }

◆ ~DataPointDataRecord()

ossimplugins::DataPointDataRecord::~DataPointDataRecord ( )

Destructor.

Definition at line 20 of file DataPointDataRecord.cpp.

21 {
22 }

◆ DataPointDataRecord() [2/2]

ossimplugins::DataPointDataRecord::DataPointDataRecord ( const DataPointDataRecord rhs)

Copy constructor.

Definition at line 107 of file DataPointDataRecord.cpp.

References _gmt_day, _gmt_sec, _pitch, _pitch_flag, _pitch_rate, _pitch_rate_flag, _roll, _roll_flag, _roll_rate, _roll_rate_flag, _yaw, _yaw_flag, _yaw_rate, and _yaw_rate_flag.

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;
117  _pitch_rate_flag = rhs._pitch_rate_flag;
118  _roll_rate_flag = rhs._roll_rate_flag;
119  _yaw_rate_flag = rhs._yaw_rate_flag;
120  _pitch_rate = rhs._pitch_rate;
121  _roll_rate = rhs._roll_rate;
122  _yaw_rate = rhs._yaw_rate;
123 }
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
double _yaw_rate
Yaw rate, degrees/sec
double _roll_rate
Roll rate, degrees/sec
int _yaw_rate_flag
Yaw rate data quality flag
int _pitch_rate_flag
Pitch rate data quality flag
int _yaw_flag
Yaw data quality flag
int _pitch_flag
Pitch data quality flag

Member Function Documentation

◆ get_gmt_day()

int ossimplugins::DataPointDataRecord::get_gmt_day ( )
inline

Day of the year, GMT.

Definition at line 61 of file DataPointDataRecord.h.

References _gmt_day.

62  {
63  return _gmt_day;
64  };
int _gmt_day
Day of the year, GMT.

◆ get_gmt_sec()

int ossimplugins::DataPointDataRecord::get_gmt_sec ( )
inline


Milliseconds of day, GMT

Definition at line 68 of file DataPointDataRecord.h.

References _gmt_sec.

69  {
70  return _gmt_sec;
71  };
int _gmt_sec
Milliseconds of day, GMT

◆ get_pitch()

double ossimplugins::DataPointDataRecord::get_pitch ( )
inline


Pitch error, degrees

Definition at line 96 of file DataPointDataRecord.h.

References _pitch.

97  {
98  return _pitch;
99  };
double _pitch
Pitch error, degrees

◆ get_pitch_flag()

int ossimplugins::DataPointDataRecord::get_pitch_flag ( )
inline


Pitch data quality flag

Definition at line 75 of file DataPointDataRecord.h.

References _pitch_flag.

76  {
77  return _pitch_flag;
78  };
int _pitch_flag
Pitch data quality flag

◆ get_pitch_rate()

double ossimplugins::DataPointDataRecord::get_pitch_rate ( )
inline


Pitch rate, degrees/sec

Definition at line 138 of file DataPointDataRecord.h.

References _pitch_rate.

139  {
140  return _pitch_rate;
141  };
double _pitch_rate
Pitch rate, degrees/sec

◆ get_pitch_rate_flag()

int ossimplugins::DataPointDataRecord::get_pitch_rate_flag ( )
inline


Pitch rate data quality flag

Definition at line 117 of file DataPointDataRecord.h.

References _pitch_rate_flag.

118  {
119  return _pitch_rate_flag;
120  };
int _pitch_rate_flag
Pitch rate data quality flag

◆ get_roll()

double ossimplugins::DataPointDataRecord::get_roll ( )
inline


Roll error, degrees

Definition at line 103 of file DataPointDataRecord.h.

References _roll.

104  {
105  return _roll;
106  };
double _roll
Roll error, degrees

◆ get_roll_flag()

int ossimplugins::DataPointDataRecord::get_roll_flag ( )
inline


Roll data quality flag

Definition at line 82 of file DataPointDataRecord.h.

References _roll_flag.

83  {
84  return _roll_flag;
85  };
int _roll_flag
Roll data quality flag

◆ get_roll_rate()

double ossimplugins::DataPointDataRecord::get_roll_rate ( )
inline


Roll rate, degrees/sec

Definition at line 145 of file DataPointDataRecord.h.

References _roll_rate.

146  {
147  return _roll_rate;
148  };
double _roll_rate
Roll rate, degrees/sec

◆ get_roll_rate_flag()

int ossimplugins::DataPointDataRecord::get_roll_rate_flag ( )
inline


Roll rate data quality fla

Definition at line 124 of file DataPointDataRecord.h.

References _roll_rate_flag.

125  {
126  return _roll_rate_flag;
127  };
int _roll_rate_flag
Roll rate data quality fla

◆ get_yaw()

double ossimplugins::DataPointDataRecord::get_yaw ( )
inline


Yaw error, degrees

Definition at line 110 of file DataPointDataRecord.h.

References _yaw.

111  {
112  return _yaw;
113  };
double _yaw
Yaw error, degrees

◆ get_yaw_flag()

int ossimplugins::DataPointDataRecord::get_yaw_flag ( )
inline


Yaw data quality flag

Definition at line 89 of file DataPointDataRecord.h.

References _yaw_flag.

90  {
91  return _yaw_flag;
92  };
int _yaw_flag
Yaw data quality flag

◆ get_yaw_rate()

double ossimplugins::DataPointDataRecord::get_yaw_rate ( )
inline


Yaw rate, degrees/sec

Definition at line 152 of file DataPointDataRecord.h.

References _yaw_rate.

153  {
154  return _yaw_rate;
155  };
double _yaw_rate
Yaw rate, degrees/sec

◆ get_yaw_rate_flag()

int ossimplugins::DataPointDataRecord::get_yaw_rate_flag ( )
inline


Yaw rate data quality flag

Definition at line 131 of file DataPointDataRecord.h.

References _yaw_rate_flag.

132  {
133  return _yaw_rate_flag;
134  };
int _yaw_rate_flag
Yaw rate data quality flag

◆ operator=()

DataPointDataRecord & ossimplugins::DataPointDataRecord::operator= ( const DataPointDataRecord rhs)

Copy operator.

Definition at line 125 of file DataPointDataRecord.cpp.

References _gmt_day, _gmt_sec, _pitch, _pitch_flag, _pitch_rate, _pitch_rate_flag, _roll, _roll_flag, _roll_rate, _roll_rate_flag, _yaw, _yaw_flag, _yaw_rate, and _yaw_rate_flag.

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;
135  _pitch_rate_flag = rhs._pitch_rate_flag;
136  _roll_rate_flag = rhs._roll_rate_flag;
137  _yaw_rate_flag = rhs._yaw_rate_flag;
138  _pitch_rate = rhs._pitch_rate;
139  _roll_rate = rhs._roll_rate;
140  _yaw_rate = rhs._yaw_rate;
141  return *this;
142 }
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
double _yaw_rate
Yaw rate, degrees/sec
double _roll_rate
Roll rate, degrees/sec
int _yaw_rate_flag
Yaw rate data quality flag
int _pitch_rate_flag
Pitch rate data quality flag
int _yaw_flag
Yaw data quality flag
int _pitch_flag
Pitch data quality flag

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  os,
const DataPointDataRecord data 
)
friend

This function writes the DataPointDataRecord in a stream.

Definition at line 24 of file DataPointDataRecord.cpp.

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 }

◆ operator>>

std::istream& operator>> ( std::istream &  is,
DataPointDataRecord data 
)
friend

This function reads a DataPointDataRecord from a stream.

Definition at line 43 of file DataPointDataRecord.cpp.

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 }

Member Data Documentation

◆ _gmt_day

int ossimplugins::DataPointDataRecord::_gmt_day
protected

Day of the year, GMT.

Definition at line 155 of file DataPointDataRecord.h.

Referenced by DataPointDataRecord(), get_gmt_day(), ossimplugins::operator<<(), operator=(), and ossimplugins::operator>>().

◆ _gmt_sec

int ossimplugins::DataPointDataRecord::_gmt_sec
protected


Milliseconds of day, GMT

Definition at line 165 of file DataPointDataRecord.h.

Referenced by DataPointDataRecord(), get_gmt_sec(), ossimplugins::operator<<(), operator=(), and ossimplugins::operator>>().

◆ _pitch

double ossimplugins::DataPointDataRecord::_pitch
protected


Pitch error, degrees

Definition at line 181 of file DataPointDataRecord.h.

Referenced by DataPointDataRecord(), get_pitch(), ossimplugins::operator<<(), operator=(), and ossimplugins::operator>>().

◆ _pitch_flag

int ossimplugins::DataPointDataRecord::_pitch_flag
protected


Pitch data quality flag

Definition at line 169 of file DataPointDataRecord.h.

Referenced by DataPointDataRecord(), get_pitch_flag(), ossimplugins::operator<<(), operator=(), and ossimplugins::operator>>().

◆ _pitch_rate

double ossimplugins::DataPointDataRecord::_pitch_rate
protected


Pitch rate, degrees/sec

Definition at line 205 of file DataPointDataRecord.h.

Referenced by DataPointDataRecord(), get_pitch_rate(), ossimplugins::operator<<(), operator=(), and ossimplugins::operator>>().

◆ _pitch_rate_flag

int ossimplugins::DataPointDataRecord::_pitch_rate_flag
protected


Pitch rate data quality flag

Definition at line 193 of file DataPointDataRecord.h.

Referenced by DataPointDataRecord(), get_pitch_rate_flag(), ossimplugins::operator<<(), operator=(), and ossimplugins::operator>>().

◆ _roll

double ossimplugins::DataPointDataRecord::_roll
protected


Roll error, degrees

Definition at line 185 of file DataPointDataRecord.h.

Referenced by DataPointDataRecord(), get_roll(), ossimplugins::operator<<(), operator=(), and ossimplugins::operator>>().

◆ _roll_flag

int ossimplugins::DataPointDataRecord::_roll_flag
protected


Roll data quality flag

Definition at line 173 of file DataPointDataRecord.h.

Referenced by DataPointDataRecord(), get_roll_flag(), ossimplugins::operator<<(), operator=(), and ossimplugins::operator>>().

◆ _roll_rate

double ossimplugins::DataPointDataRecord::_roll_rate
protected


Roll rate, degrees/sec

Definition at line 209 of file DataPointDataRecord.h.

Referenced by DataPointDataRecord(), get_roll_rate(), ossimplugins::operator<<(), operator=(), and ossimplugins::operator>>().

◆ _roll_rate_flag

int ossimplugins::DataPointDataRecord::_roll_rate_flag
protected


Roll rate data quality fla

Definition at line 197 of file DataPointDataRecord.h.

Referenced by DataPointDataRecord(), get_roll_rate_flag(), ossimplugins::operator<<(), operator=(), and ossimplugins::operator>>().

◆ _yaw

double ossimplugins::DataPointDataRecord::_yaw
protected


Yaw error, degrees

Definition at line 189 of file DataPointDataRecord.h.

Referenced by DataPointDataRecord(), get_yaw(), ossimplugins::operator<<(), operator=(), and ossimplugins::operator>>().

◆ _yaw_flag

int ossimplugins::DataPointDataRecord::_yaw_flag
protected

◆ _yaw_rate

double ossimplugins::DataPointDataRecord::_yaw_rate
protected

◆ _yaw_rate_flag

int ossimplugins::DataPointDataRecord::_yaw_rate_flag
protected


Yaw rate data quality flag

Definition at line 201 of file DataPointDataRecord.h.

Referenced by DataPointDataRecord(), get_yaw_rate_flag(), ossimplugins::operator<<(), operator=(), and ossimplugins::operator>>().


The documentation for this class was generated from the following files: