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

This class is able to read the ASAR SRGRConversionParameters record. More...

#include <SRGRConversionParameters.h>

Inheritance diagram for ossimplugins::SRGRConversionParameters:
ossimplugins::EnvisatAsarRecord

Public Member Functions

 SRGRConversionParameters ()
 Constructor. More...
 
virtual ~SRGRConversionParameters ()
 Destructor. More...
 
 SRGRConversionParameters (const SRGRConversionParameters &rhs)
 Copy constructor. More...
 
SRGRConversionParametersoperator= (const SRGRConversionParameters &rhs)
 Copy operator. More...
 
EnvisatAsarRecordInstanciate ()
 This function is able to create a new instance of the class. More...
 
EnvisatAsarRecordClone ()
 This function is able to create a new instance of the class initialised with the data of the calling instance. More...
 
void Read (std::istream &is)
 Reads the class data from a stream. More...
 
void Write (std::ostream &os)
 Writes the class to a stream. More...
 
int get_first_zero_doppler_time_day ()
 first_zero_doppler_time day More...
 
unsigned int get_first_zero_doppler_time_sec ()
 first_zero_doppler_time second More...
 
unsigned int get_first_zero_doppler_time_microsec ()
 first_zero_doppler_time micro sec More...
 
bool get_attach_flag ()
 attach_flag More...
 
float get_slant_range_time ()
 input_mean_flag More...
 
float get_ground_range_origin ()
 input_std_dev_flag More...
 
float * get_srgr_coef ()
 input_gaps_flag More...
 
- Public Member Functions inherited from ossimplugins::EnvisatAsarRecord
 EnvisatAsarRecord (std::string mnemonic)
 Constructor. More...
 
virtual ~EnvisatAsarRecord ()
 Destructor. More...
 
 EnvisatAsarRecord (const EnvisatAsarRecord &rhs)
 Copy constructor. More...
 
std::string get_mnemonic ()
 Returns the mnemonic of the record. More...
 

Public Attributes

int _first_zero_doppler_time_day
 first_zero_doppler_time day More...
 
unsigned int _first_zero_doppler_time_sec
 first_zero_doppler_time sec More...
 
unsigned int _first_zero_doppler_time_microsec
 first_zero_doppler_time microsec More...
 
bool _attach_flag
 attach_flag More...
 
float _slant_range_time
 input_mean_flag More...
 
float _ground_range_origin
 input_std_dev_flag More...
 
float _srgr_coef [5]
 input_gaps_flag More...
 

Friends

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

Additional Inherited Members

- Protected Member Functions inherited from ossimplugins::EnvisatAsarRecord
template<typename T >
void SwitchEndian (T &value)
 This function switches the LSB value and the MSB value of the parameter. More...
 
- Protected Attributes inherited from ossimplugins::EnvisatAsarRecord
std::string _mnemonic
 

Detailed Description

This class is able to read the ASAR SRGRConversionParameters record.

Definition at line 25 of file SRGRConversionParameters.h.

Constructor & Destructor Documentation

◆ SRGRConversionParameters() [1/2]

ossimplugins::SRGRConversionParameters::SRGRConversionParameters ( )

Constructor.

Definition at line 16 of file SRGRConversionParameters.cpp.

Referenced by Clone(), and Instanciate().

16  : EnvisatAsarRecord("SRGRConversionParameters_rec")
17  {
18  }
EnvisatAsarRecord(std::string mnemonic)
Constructor.

◆ ~SRGRConversionParameters()

ossimplugins::SRGRConversionParameters::~SRGRConversionParameters ( )
virtual

Destructor.

Definition at line 20 of file SRGRConversionParameters.cpp.

21  {
22  }

◆ SRGRConversionParameters() [2/2]

ossimplugins::SRGRConversionParameters::SRGRConversionParameters ( const SRGRConversionParameters rhs)

Copy constructor.

Definition at line 82 of file SRGRConversionParameters.cpp.

References _srgr_coef.

82  :
83  EnvisatAsarRecord(rhs),
84  _first_zero_doppler_time_day(rhs._first_zero_doppler_time_day),
85  _first_zero_doppler_time_sec(rhs._first_zero_doppler_time_sec),
86  _first_zero_doppler_time_microsec(rhs._first_zero_doppler_time_microsec),
87  _attach_flag(rhs._attach_flag),
88  _slant_range_time(rhs._slant_range_time),
89  _ground_range_origin(rhs._ground_range_origin)
90  {
91  for (int i = 0; i<5; i++) {
92  _srgr_coef[i] = rhs._srgr_coef[i];
93  }
94  }
unsigned int _first_zero_doppler_time_microsec
first_zero_doppler_time microsec
unsigned int _first_zero_doppler_time_sec
first_zero_doppler_time sec
int _first_zero_doppler_time_day
first_zero_doppler_time day
EnvisatAsarRecord(std::string mnemonic)
Constructor.

Member Function Documentation

◆ Clone()

EnvisatAsarRecord* ossimplugins::SRGRConversionParameters::Clone ( )
inlinevirtual

This function is able to create a new instance of the class initialised with the data of the calling instance.

Implements ossimplugins::EnvisatAsarRecord.

Definition at line 69 of file SRGRConversionParameters.h.

References SRGRConversionParameters().

70  {
71  return new SRGRConversionParameters(*this);
72  };

◆ get_attach_flag()

bool ossimplugins::SRGRConversionParameters::get_attach_flag ( )
inline

attach_flag

Definition at line 115 of file SRGRConversionParameters.h.

References _attach_flag.

116  {
117  return _attach_flag;
118  };

◆ get_first_zero_doppler_time_day()

int ossimplugins::SRGRConversionParameters::get_first_zero_doppler_time_day ( )
inline

first_zero_doppler_time day

Definition at line 94 of file SRGRConversionParameters.h.

References _first_zero_doppler_time_day.

Referenced by ossimplugins::ossimEnvisatAsarModel::saveState().

95  {
97  };
int _first_zero_doppler_time_day
first_zero_doppler_time day

◆ get_first_zero_doppler_time_microsec()

unsigned int ossimplugins::SRGRConversionParameters::get_first_zero_doppler_time_microsec ( )
inline

first_zero_doppler_time micro sec

Definition at line 108 of file SRGRConversionParameters.h.

References _first_zero_doppler_time_microsec.

Referenced by ossimplugins::ossimEnvisatAsarModel::saveState().

109  {
111  };
unsigned int _first_zero_doppler_time_microsec
first_zero_doppler_time microsec

◆ get_first_zero_doppler_time_sec()

unsigned int ossimplugins::SRGRConversionParameters::get_first_zero_doppler_time_sec ( )
inline

first_zero_doppler_time second

Definition at line 101 of file SRGRConversionParameters.h.

References _first_zero_doppler_time_sec.

Referenced by ossimplugins::ossimEnvisatAsarModel::saveState().

102  {
104  };
unsigned int _first_zero_doppler_time_sec
first_zero_doppler_time sec

◆ get_ground_range_origin()

float ossimplugins::SRGRConversionParameters::get_ground_range_origin ( )
inline

input_std_dev_flag

Definition at line 129 of file SRGRConversionParameters.h.

References _ground_range_origin.

Referenced by ossimplugins::ossimEnvisatAsarModel::saveState().

130  {
131  return _ground_range_origin;
132  };

◆ get_slant_range_time()

float ossimplugins::SRGRConversionParameters::get_slant_range_time ( )
inline

input_mean_flag

Definition at line 122 of file SRGRConversionParameters.h.

References _slant_range_time.

123  {
124  return _slant_range_time;
125  };

◆ get_srgr_coef()

float* ossimplugins::SRGRConversionParameters::get_srgr_coef ( )
inline

input_gaps_flag

Definition at line 136 of file SRGRConversionParameters.h.

References _srgr_coef.

Referenced by ossimplugins::ossimEnvisatAsarModel::saveState().

137  {
138  return _srgr_coef;
139  };

◆ Instanciate()

EnvisatAsarRecord* ossimplugins::SRGRConversionParameters::Instanciate ( )
inlinevirtual

This function is able to create a new instance of the class.

Implements ossimplugins::EnvisatAsarRecord.

Definition at line 61 of file SRGRConversionParameters.h.

References SRGRConversionParameters().

62  {
63  return new SRGRConversionParameters();
64  };

◆ operator=()

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

Copy operator.

Definition at line 96 of file SRGRConversionParameters.cpp.

References _attach_flag, _first_zero_doppler_time_day, _first_zero_doppler_time_microsec, _first_zero_doppler_time_sec, _slant_range_time, and _srgr_coef.

97  {
98  _first_zero_doppler_time_day = rhs._first_zero_doppler_time_day;
99  _first_zero_doppler_time_sec = rhs._first_zero_doppler_time_sec;
100  _first_zero_doppler_time_microsec = rhs._first_zero_doppler_time_microsec;
101  _attach_flag = rhs._attach_flag;
102  _slant_range_time = rhs._slant_range_time;
103 
104  for (int i = 0; i<5; i++) {
105  _srgr_coef[i] = rhs._srgr_coef[i];
106  }
107 
108  return *this;
109  }
unsigned int _first_zero_doppler_time_microsec
first_zero_doppler_time microsec
unsigned int _first_zero_doppler_time_sec
first_zero_doppler_time sec
int _first_zero_doppler_time_day
first_zero_doppler_time day

◆ Read()

void ossimplugins::SRGRConversionParameters::Read ( std::istream &  is)
inlinevirtual

Reads the class data from a stream.

Implements ossimplugins::EnvisatAsarRecord.

Definition at line 77 of file SRGRConversionParameters.h.

78  {
79  is>>*this;
80  };

◆ Write()

void ossimplugins::SRGRConversionParameters::Write ( std::ostream &  os)
inlinevirtual

Writes the class to a stream.

Implements ossimplugins::EnvisatAsarRecord.

Definition at line 85 of file SRGRConversionParameters.h.

86  {
87  os<<*this;
88  };

Friends And Related Function Documentation

◆ operator<<

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

This function writes the SRGRConversionParameters in a stream.

Definition at line 24 of file SRGRConversionParameters.cpp.

25  {
26  os<<"first_zero_doppler_time_day:"<<data._first_zero_doppler_time_day<<std::endl;
27 
28  os<<"first_zero_doppler_time_sec:"<<data._first_zero_doppler_time_sec<<std::endl;
29 
30  os<<"first_zero_doppler_time_microsec:"<<data._first_zero_doppler_time_microsec<<std::endl;
31 
32  os<<"attach_flag:"<<data._attach_flag<<std::endl;
33 
34  os<<"_slant_range_time:"<<data._slant_range_time<<std::endl;
35 
36  os<<"_ground_range_origin:"<<data._ground_range_origin<<std::endl;
37 
38  for (int i = 0; i<5; i++) {
39  os<<"_srgr_coef[i]:"<<data._srgr_coef[i]<<std::endl;
40  }
41 
42  return os;
43 
44  }

◆ operator>>

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

This function reads a SRGRConversionParameters from a stream.

Definition at line 46 of file SRGRConversionParameters.cpp.

47  {
48  char buf14[15];
49  buf14[14] = '\0';
50  // char buf12[13];
51  // buf12[12] = '\0';
52 
53 
54  is.read((char*)&(data._first_zero_doppler_time_day),4);
55  data.SwitchEndian(data._first_zero_doppler_time_day);
56 
57  is.read((char*)&(data._first_zero_doppler_time_sec),4);
58  data.SwitchEndian(data._first_zero_doppler_time_sec);
59 
60  is.read((char*)&(data._first_zero_doppler_time_microsec),4);
61  data.SwitchEndian(data._first_zero_doppler_time_microsec);
62 
63  is.read((char*)&(data._attach_flag),1);
64 
65  is.read((char*)&(data._slant_range_time),4);
66  data.SwitchEndian(data._slant_range_time);
67 
68  is.read((char*)&(data._ground_range_origin),4);
69  data.SwitchEndian(data._ground_range_origin);
70 
71  for (int i = 0; i<5; i++) {
72  is.read((char*)&(data._srgr_coef[i]),4);
73  data.SwitchEndian(data._srgr_coef[i]);
74  }
75 
76  is.read(buf14,14);
77 
78  return is;
79  }

Member Data Documentation

◆ _attach_flag

bool ossimplugins::SRGRConversionParameters::_attach_flag

◆ _first_zero_doppler_time_day

int ossimplugins::SRGRConversionParameters::_first_zero_doppler_time_day

first_zero_doppler_time day

Definition at line 139 of file SRGRConversionParameters.h.

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

◆ _first_zero_doppler_time_microsec

unsigned int ossimplugins::SRGRConversionParameters::_first_zero_doppler_time_microsec

first_zero_doppler_time microsec

Definition at line 152 of file SRGRConversionParameters.h.

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

◆ _first_zero_doppler_time_sec

unsigned int ossimplugins::SRGRConversionParameters::_first_zero_doppler_time_sec

first_zero_doppler_time sec

Definition at line 148 of file SRGRConversionParameters.h.

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

◆ _ground_range_origin

float ossimplugins::SRGRConversionParameters::_ground_range_origin

input_std_dev_flag

Definition at line 164 of file SRGRConversionParameters.h.

Referenced by get_ground_range_origin(), ossimplugins::operator<<(), and ossimplugins::operator>>().

◆ _slant_range_time

float ossimplugins::SRGRConversionParameters::_slant_range_time

◆ _srgr_coef

float ossimplugins::SRGRConversionParameters::_srgr_coef[5]

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