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

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

#include <DopplerCentroidParameters.h>

Inheritance diagram for ossimplugins::DopplerCentroidParameters:
ossimplugins::EnvisatAsarRecord

Public Member Functions

 DopplerCentroidParameters ()
 Constructor. More...
 
virtual ~DopplerCentroidParameters ()
 Destructor. More...
 
 DopplerCentroidParameters (const DopplerCentroidParameters &rhs)
 Copy constructor. More...
 
DopplerCentroidParametersoperator= (const DopplerCentroidParameters &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...
 
std::string get_zero_doppler_time ()
 zero_doppler_time More...
 
bool get_attach_flag ()
 attach_flag More...
 
float get_slant_range_time ()
 slant_range_time More...
 
float * get_dop_coef ()
 dop_coef[5] More...
 
float get_dop_conf ()
 dop_conf More...
 
bool get_dop_conf_below_thresh_flag ()
 dop_conf_below_thresh_flag More...
 
signed short * get_delta_dopp_coeff ()
 delta_dopp_coeff[5] 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

std::string _zero_doppler_time
 zero_doppler_time More...
 
bool _attach_flag
 attach_flag More...
 
float _slant_range_time
 slant_range_time More...
 
float _dop_coef [5]
 dop_coef[5] More...
 
float _dop_conf
 dop_conf More...
 
bool _dop_conf_below_thresh_flag
 dop_conf_below_thresh_flag More...
 
signed short _delta_dopp_coeff [5]
 delta_dopp_coeff[5] More...
 

Friends

std::ostream & operator<< (std::ostream &os, const DopplerCentroidParameters &data)
 This function writes the DopplerCentroidParameters in a stream. More...
 
std::istream & operator>> (std::istream &is, DopplerCentroidParameters &data)
 This function reads a DopplerCentroidParameters 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 DopplerCentroidParameters record.

Definition at line 24 of file DopplerCentroidParameters.h.

Constructor & Destructor Documentation

◆ DopplerCentroidParameters() [1/2]

ossimplugins::DopplerCentroidParameters::DopplerCentroidParameters ( )

Constructor.

Definition at line 16 of file DopplerCentroidParameters.cpp.

Referenced by Clone(), and Instanciate().

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

◆ ~DopplerCentroidParameters()

ossimplugins::DopplerCentroidParameters::~DopplerCentroidParameters ( )
virtual

Destructor.

Definition at line 20 of file DopplerCentroidParameters.cpp.

21  {
22  }

◆ DopplerCentroidParameters() [2/2]

ossimplugins::DopplerCentroidParameters::DopplerCentroidParameters ( const DopplerCentroidParameters rhs)

Copy constructor.

Definition at line 124 of file DopplerCentroidParameters.cpp.

References _delta_dopp_coeff, and _dop_coef.

124  :
125  EnvisatAsarRecord(rhs),
126  _zero_doppler_time(rhs._zero_doppler_time),
127  _attach_flag(rhs._attach_flag),
128  _slant_range_time(rhs._slant_range_time),
129  _dop_conf(rhs._dop_conf),
130  _dop_conf_below_thresh_flag(rhs._dop_conf_below_thresh_flag)
131  {
132  for (int i = 0; i <5; i++) {
133  _dop_coef[i] = rhs._dop_coef[i];
134  }
135  for (int i = 0; i <5; i++) {
136  _delta_dopp_coeff[i] = rhs._delta_dopp_coeff[i];
137  }
138  }
bool _dop_conf_below_thresh_flag
dop_conf_below_thresh_flag
signed short _delta_dopp_coeff[5]
delta_dopp_coeff[5]
std::string _zero_doppler_time
zero_doppler_time
EnvisatAsarRecord(std::string mnemonic)
Constructor.

Member Function Documentation

◆ Clone()

EnvisatAsarRecord* ossimplugins::DopplerCentroidParameters::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 68 of file DopplerCentroidParameters.h.

References DopplerCentroidParameters().

69  {
70  return new DopplerCentroidParameters(*this);
71  };

◆ get_attach_flag()

bool ossimplugins::DopplerCentroidParameters::get_attach_flag ( )
inline

attach_flag

Definition at line 100 of file DopplerCentroidParameters.h.

References _attach_flag.

101  {
102  return _attach_flag;
103  };

◆ get_delta_dopp_coeff()

signed short* ossimplugins::DopplerCentroidParameters::get_delta_dopp_coeff ( )
inline

delta_dopp_coeff[5]

Definition at line 135 of file DopplerCentroidParameters.h.

References _delta_dopp_coeff.

136  {
137  return _delta_dopp_coeff;
138  };
signed short _delta_dopp_coeff[5]
delta_dopp_coeff[5]

◆ get_dop_coef()

float* ossimplugins::DopplerCentroidParameters::get_dop_coef ( )
inline

dop_coef[5]

Definition at line 114 of file DopplerCentroidParameters.h.

References _dop_coef.

115  {
116  return _dop_coef;
117  };

◆ get_dop_conf()

float ossimplugins::DopplerCentroidParameters::get_dop_conf ( )
inline

dop_conf

Definition at line 121 of file DopplerCentroidParameters.h.

References _dop_conf.

122  {
123  return _dop_conf;
124  };

◆ get_dop_conf_below_thresh_flag()

bool ossimplugins::DopplerCentroidParameters::get_dop_conf_below_thresh_flag ( )
inline

dop_conf_below_thresh_flag

Definition at line 128 of file DopplerCentroidParameters.h.

References _dop_conf_below_thresh_flag.

129  {
131  };
bool _dop_conf_below_thresh_flag
dop_conf_below_thresh_flag

◆ get_slant_range_time()

float ossimplugins::DopplerCentroidParameters::get_slant_range_time ( )
inline

slant_range_time

Definition at line 107 of file DopplerCentroidParameters.h.

References _slant_range_time.

108  {
109  return _slant_range_time;
110  };

◆ get_zero_doppler_time()

std::string ossimplugins::DopplerCentroidParameters::get_zero_doppler_time ( )
inline

zero_doppler_time

Definition at line 93 of file DopplerCentroidParameters.h.

References _zero_doppler_time.

94  {
95  return _zero_doppler_time;
96  };
std::string _zero_doppler_time
zero_doppler_time

◆ Instanciate()

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

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

Implements ossimplugins::EnvisatAsarRecord.

Definition at line 60 of file DopplerCentroidParameters.h.

References DopplerCentroidParameters().

61  {
62  return new DopplerCentroidParameters();
63  };

◆ operator=()

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

Copy operator.

Definition at line 141 of file DopplerCentroidParameters.cpp.

References _attach_flag, _delta_dopp_coeff, _dop_coef, _dop_conf, _dop_conf_below_thresh_flag, _slant_range_time, and _zero_doppler_time.

142  {
143  _zero_doppler_time = rhs._zero_doppler_time;
144  _attach_flag = rhs._attach_flag;
145  _slant_range_time = rhs._slant_range_time;
146  _dop_conf = rhs._dop_conf;
147  _dop_conf_below_thresh_flag = rhs._dop_conf_below_thresh_flag;
148 
149  for (int i = 0; i <5; i++) {
150  _dop_coef[i] = rhs._dop_coef[i];
151  }
152  for (int i = 0; i <5; i++) {
153  _delta_dopp_coeff[i] = rhs._delta_dopp_coeff[i];
154  }
155 
156  return *this;
157  }
bool _dop_conf_below_thresh_flag
dop_conf_below_thresh_flag
signed short _delta_dopp_coeff[5]
delta_dopp_coeff[5]
std::string _zero_doppler_time
zero_doppler_time

◆ Read()

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

Reads the class data from a stream.

Implements ossimplugins::EnvisatAsarRecord.

Definition at line 76 of file DopplerCentroidParameters.h.

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

◆ Write()

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

Writes the class to a stream.

Implements ossimplugins::EnvisatAsarRecord.

Definition at line 84 of file DopplerCentroidParameters.h.

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

Friends And Related Function Documentation

◆ operator<<

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

This function writes the DopplerCentroidParameters in a stream.

Definition at line 25 of file DopplerCentroidParameters.cpp.

26  {
27  os<<"zero_doppler_time:"<<data._zero_doppler_time.c_str()<<std::endl;
28 
29  os<<"attach_flag:"<<data._attach_flag<<std::endl;
30 
31  os<<"slant_range_time:"<<data._slant_range_time<<std::endl;
32 
33  os<<"dop_coef[0]:"<<data._dop_coef[0]<<std::endl;
34  os<<"dop_coef[1]:"<<data._dop_coef[1]<<std::endl;
35  os<<"dop_coef[2]:"<<data._dop_coef[2]<<std::endl;
36  os<<"dop_coef[3]:"<<data._dop_coef[3]<<std::endl;
37  os<<"dop_coef[4]:"<<data._dop_coef[4]<<std::endl;
38 
39  os<<"dop_conf:"<<data._dop_conf<<std::endl;
40 
41  os<<"dop_conf_below_thresh_flag:"<<data._dop_conf_below_thresh_flag<<std::endl;
42 
43  os<<"delta_dopp_coeff[0]:"<<data._delta_dopp_coeff[0]<<std::endl;
44  os<<"delta_dopp_coeff[1]:"<<data._delta_dopp_coeff[1]<<std::endl;
45  os<<"delta_dopp_coeff[2]:"<<data._delta_dopp_coeff[2]<<std::endl;
46  os<<"delta_dopp_coeff[3]:"<<data._delta_dopp_coeff[3]<<std::endl;
47  os<<"delta_dopp_coeff[4]:"<<data._delta_dopp_coeff[4]<<std::endl;
48 
49  return os;
50 
51  }

◆ operator>>

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

This function reads a DopplerCentroidParameters from a stream.

Definition at line 53 of file DopplerCentroidParameters.cpp.

54  {
55  // char buf64[65];
56  // buf64[64] = '\0';
57  // char buf32[33];
58  // buf32[32] = '\0';
59  // char buf27[28];
60  // buf27[27] = '\0';
61  // char buf20[21];
62  // buf20[20] = '\0';
63  // char buf16[17];
64  // buf16[16]='\0';
65  // char buf15[16];
66  // buf15[15] = '\0';
67  // char buf14[15];
68  // buf14[14] = '\0';
69  // char buf13[14];
70  // buf13[13] = '\0';
71  char buf12[13];
72  buf12[12] = '\0';
73  // char buf11[12];
74  // buf11[11] = '\0';
75  // char buf10[11];
76  // buf10[10] = '\0';
77  // char buf9[10];
78  // buf9[9] = '\0';
79  // char buf8[9];
80  // buf8[8] = '\0';
81  // char buf7[8];
82  // buf7[7] = '\0';
83  // char buf6[7];
84  // buf6[6] = '\0';
85  // char buf5[6];
86  // buf5[5] = '\0';
87  // char buf4[5];
88  // buf4[4] = '\0';
89  char buf3[4];
90  buf3[3] = '\0';
91  // char buf2[3];
92  // buf2[2] = '\0';
93 // char buf1[1]; // Not used avoid warning
94 
95  is.read(buf12,12);
96  data._zero_doppler_time = buf12;
97 
98  is.read((char*)&(data._attach_flag),1);
99 
100  is.read((char*)&(data._slant_range_time),4);
101  data.SwitchEndian(data._slant_range_time);
102 
103  for (int i = 0; i <5; i++) {
104  is.read((char*)&(data._dop_coef[i]),4);
105  data.SwitchEndian(data._dop_coef[i]);
106  }
107 
108  is.read((char*)&(data._dop_conf),4);
109  data.SwitchEndian(data._dop_conf);
110 
111  is.read((char*)&(data._dop_conf_below_thresh_flag),1);
112 
113  for (int i = 0; i <5; i++) {
114  is.read((char*)&(data._delta_dopp_coeff[i]),2);
115  data.SwitchEndian(data._delta_dopp_coeff[i]);
116  }
117 
118  is.read(buf3,3);
119 
120  return is;
121 
122  }

Member Data Documentation

◆ _attach_flag

bool ossimplugins::DopplerCentroidParameters::_attach_flag

◆ _delta_dopp_coeff

signed short ossimplugins::DopplerCentroidParameters::_delta_dopp_coeff[5]

◆ _dop_coef

float ossimplugins::DopplerCentroidParameters::_dop_coef[5]

◆ _dop_conf

float ossimplugins::DopplerCentroidParameters::_dop_conf

◆ _dop_conf_below_thresh_flag

bool ossimplugins::DopplerCentroidParameters::_dop_conf_below_thresh_flag

dop_conf_below_thresh_flag

Definition at line 163 of file DopplerCentroidParameters.h.

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

◆ _slant_range_time

float ossimplugins::DopplerCentroidParameters::_slant_range_time

◆ _zero_doppler_time

std::string ossimplugins::DopplerCentroidParameters::_zero_doppler_time

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