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

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

#include <AntennaElevationPatterns.h>

Inheritance diagram for ossimplugins::AntennaElevationPatterns:
ossimplugins::EnvisatAsarRecord

Public Member Functions

 AntennaElevationPatterns ()
 Constructor. More...
 
virtual ~AntennaElevationPatterns ()
 Destructor. More...
 
 AntennaElevationPatterns (const AntennaElevationPatterns &rhs)
 Copy constructor. More...
 
AntennaElevationPatternsoperator= (const AntennaElevationPatterns &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...
 
std::string get_swath ()
 swath More...
 
float * get_elevation_pattern ()
 Elevation Pattern. 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...
 
std::string _swath
 swath More...
 
float _elevation_pattern [33]
 Elevation Pattern. More...
 

Friends

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

Definition at line 25 of file AntennaElevationPatterns.h.

Constructor & Destructor Documentation

◆ AntennaElevationPatterns() [1/2]

ossimplugins::AntennaElevationPatterns::AntennaElevationPatterns ( )

Constructor.

Definition at line 16 of file AntennaElevationPatterns.cpp.

Referenced by Clone(), and Instanciate().

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

◆ ~AntennaElevationPatterns()

ossimplugins::AntennaElevationPatterns::~AntennaElevationPatterns ( )
virtual

Destructor.

Definition at line 20 of file AntennaElevationPatterns.cpp.

21  {
22  }

◆ AntennaElevationPatterns() [2/2]

ossimplugins::AntennaElevationPatterns::AntennaElevationPatterns ( const AntennaElevationPatterns rhs)

Copy constructor.

Definition at line 72 of file AntennaElevationPatterns.cpp.

References _elevation_pattern.

72  :
73  EnvisatAsarRecord(rhs),
74  _zero_doppler_time(rhs._zero_doppler_time),
75  _attach_flag(rhs._attach_flag),
76  _swath(rhs._swath)
77  {
78  for (int i = 0; i<33; i++) {
79  _elevation_pattern[i] = rhs._elevation_pattern[i];
80  }
81  }
std::string _zero_doppler_time
zero_doppler_time
float _elevation_pattern[33]
Elevation Pattern.
EnvisatAsarRecord(std::string mnemonic)
Constructor.

Member Function Documentation

◆ Clone()

EnvisatAsarRecord* ossimplugins::AntennaElevationPatterns::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 AntennaElevationPatterns.h.

References AntennaElevationPatterns().

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

◆ get_attach_flag()

bool ossimplugins::AntennaElevationPatterns::get_attach_flag ( )
inline

attach_flag

Definition at line 101 of file AntennaElevationPatterns.h.

References _attach_flag.

102  {
103  return _attach_flag;
104  };

◆ get_elevation_pattern()

float* ossimplugins::AntennaElevationPatterns::get_elevation_pattern ( )
inline

Elevation Pattern.

Definition at line 115 of file AntennaElevationPatterns.h.

References _elevation_pattern.

116  {
117  return _elevation_pattern;
118  };
float _elevation_pattern[33]
Elevation Pattern.

◆ get_swath()

std::string ossimplugins::AntennaElevationPatterns::get_swath ( )
inline

swath

Definition at line 108 of file AntennaElevationPatterns.h.

References _swath.

109  {
110  return _swath;
111  };

◆ get_zero_doppler_time()

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

zero_doppler_time

Definition at line 94 of file AntennaElevationPatterns.h.

References _zero_doppler_time.

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

◆ Instanciate()

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

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

Implements ossimplugins::EnvisatAsarRecord.

Definition at line 61 of file AntennaElevationPatterns.h.

References AntennaElevationPatterns().

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

◆ operator=()

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

Copy operator.

Definition at line 84 of file AntennaElevationPatterns.cpp.

References _attach_flag, _elevation_pattern, _swath, and _zero_doppler_time.

85  {
86  _zero_doppler_time = rhs._zero_doppler_time;
87  _attach_flag = rhs._attach_flag;
88  _swath = rhs._swath;
89 
90  for (int i = 0; i<33; i++) {
91  _elevation_pattern[i] = rhs._elevation_pattern[i];
92  }
93 
94  return *this;
95  }
std::string _zero_doppler_time
zero_doppler_time
float _elevation_pattern[33]
Elevation Pattern.

◆ Read()

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

Reads the class data from a stream.

Implements ossimplugins::EnvisatAsarRecord.

Definition at line 77 of file AntennaElevationPatterns.h.

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

◆ Write()

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

Writes the class to a stream.

Implements ossimplugins::EnvisatAsarRecord.

Definition at line 85 of file AntennaElevationPatterns.h.

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

Friends And Related Function Documentation

◆ operator<<

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

This function writes the AntennaElevationPatterns in a stream.

Definition at line 25 of file AntennaElevationPatterns.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<<"swath:"<<data._swath.c_str()<<std::endl;
32 
33  for (int i = 0; i<33; i++) {
34  os<<"elevation pattern:"<<data._elevation_pattern[i]<<std::endl;
35  }
36 
37  return os;
38 
39  }

◆ operator>>

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

This function reads a AntennaElevationPatterns from a stream.

Definition at line 41 of file AntennaElevationPatterns.cpp.

42  {
43  char buf16[17];
44  buf16[16]='\0';
45  char buf12[13];
46  buf12[12] = '\0';
47  char buf3[4];
48  buf3[3] = '\0';
49  // char buf2[3];
50  // buf2[2] = '\0';
51 // char buf1[1]; // avoid not used warning
52 
53  is.read(buf12,12);
54  data._zero_doppler_time = buf12;
55 
56  is.read((char*)&(data._attach_flag),1);
57 
58  is.read(buf3,3);
59  data._swath = buf3;
60 
61  for (int i = 0; i<33; i++) {
62  is.read((char*)&(data._elevation_pattern[i]),4);
63  data.SwitchEndian(data._elevation_pattern[i]);
64  }
65 
66  is.read(buf16,14);
67 
68  return is;
69 
70  }

Member Data Documentation

◆ _attach_flag

bool ossimplugins::AntennaElevationPatterns::_attach_flag

◆ _elevation_pattern

float ossimplugins::AntennaElevationPatterns::_elevation_pattern[33]

◆ _swath

std::string ossimplugins::AntennaElevationPatterns::_swath

◆ _zero_doppler_time

std::string ossimplugins::AntennaElevationPatterns::_zero_doppler_time

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