OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
MisregistrationRecord.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 "MisregistrationRecord.h"
13 
14 namespace ossimplugins
15 {
17 {
18 }
19 
21 {
22 }
23 
25 {
26  os<<"alt_m:"<<data._alt_m<<std::endl;
27  os<<"crt_m:"<<data._crt_m<<std::endl;
28  return os;
29 }
30 
32 {
33  char buf16[17];
34  buf16[16] = '\0';
35 
36  is.read(buf16,16);
37  data._alt_m = atof(buf16);
38 
39  is.read(buf16,16);
40  data._crt_m = atof(buf16);
41  return is;
42 }
43 
45  _alt_m(rhs._alt_m),
46  _crt_m(rhs._crt_m)
47 {
48 }
49 
51 {
52  _alt_m = rhs._alt_m;
53  _crt_m = rhs._crt_m;
54  return *this;
55 }
56 }
MisregistrationRecord & operator=(const MisregistrationRecord &rhs)
Copy operator.
double _alt_m
Nominal along track misregistration.
std::ostream & operator<<(std::ostream &os, const AlosPalsarData &data)
double _crt_m
Nominal cross track misregistration
std::istream & operator>>(std::istream &is, AlosPalsarData &data)
This class is able to read a misregistration record.
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