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

This class is able to read a Beam information record. More...

#include <BeamInformationRecord.h>

Public Member Functions

 BeamInformationRecord ()
 Constructor. More...
 
 ~BeamInformationRecord ()
 Destructor. More...
 
 BeamInformationRecord (const BeamInformationRecord &rhs)
 Copy constructor. More...
 
BeamInformationRecordoperator= (const BeamInformationRecord &rhs)
 Copy operator. More...
 
std::string get_beam_type ()
 Beam type. More...
 
std::string get_beam_look_src ()
 Elevation beam look angle source. More...
 
double get_beam_look_ang ()
 
Applied elevation beam look angle (deg) More...
 
double get_prf ()
 Actual PRF (Hz) More...
 

Protected Attributes

std::string _beam_type
 Beam type. More...
 
std::string _beam_look_src
 Elevation beam look angle source. More...
 
double _beam_look_ang
 
Applied elevation beam look angle (deg) More...
 
double _prf
 Actual PRF (Hz) More...
 

Friends

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

Detailed Description

This class is able to read a Beam information record.

Definition at line 25 of file BeamInformationRecord.h.

Constructor & Destructor Documentation

◆ BeamInformationRecord() [1/2]

ossimplugins::BeamInformationRecord::BeamInformationRecord ( )

Constructor.

Definition at line 16 of file BeamInformationRecord.cpp.

17 {
18 }

◆ ~BeamInformationRecord()

ossimplugins::BeamInformationRecord::~BeamInformationRecord ( )

Destructor.

Definition at line 20 of file BeamInformationRecord.cpp.

21 {
22 }

◆ BeamInformationRecord() [2/2]

ossimplugins::BeamInformationRecord::BeamInformationRecord ( const BeamInformationRecord rhs)

Copy constructor.

Definition at line 61 of file BeamInformationRecord.cpp.

61  :
62  _beam_type(rhs._beam_type),
63  _beam_look_src(rhs._beam_look_src),
64  _beam_look_ang(rhs._beam_look_ang),
65  _prf(rhs._prf)
66 {
67 
68 }
std::string _beam_look_src
Elevation beam look angle source.
double _beam_look_ang
Applied elevation beam look angle (deg)

Member Function Documentation

◆ get_beam_look_ang()

double ossimplugins::BeamInformationRecord::get_beam_look_ang ( )
inline


Applied elevation beam look angle (deg)

Definition at line 77 of file BeamInformationRecord.h.

References _beam_look_ang.

78  {
79  return _beam_look_ang;
80  };
double _beam_look_ang
Applied elevation beam look angle (deg)

◆ get_beam_look_src()

std::string ossimplugins::BeamInformationRecord::get_beam_look_src ( )
inline

Elevation beam look angle source.

Definition at line 69 of file BeamInformationRecord.h.

References _beam_look_src.

70  {
71  return _beam_look_src;
72  };
std::string _beam_look_src
Elevation beam look angle source.

◆ get_beam_type()

std::string ossimplugins::BeamInformationRecord::get_beam_type ( )
inline

Beam type.

Definition at line 61 of file BeamInformationRecord.h.

References _beam_type.

62  {
63  return _beam_type;
64  };

◆ get_prf()

double ossimplugins::BeamInformationRecord::get_prf ( )
inline

Actual PRF (Hz)

Definition at line 85 of file BeamInformationRecord.h.

References _prf.

86  {
87  return _prf;
88  };

◆ operator=()

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

Copy operator.

Definition at line 70 of file BeamInformationRecord.cpp.

References _beam_look_ang, _beam_look_src, _beam_type, and _prf.

71 {
72  _beam_type = rhs._beam_type;
73  _beam_look_src = rhs._beam_look_src;
74  _beam_look_ang = rhs._beam_look_ang;
75  _prf = rhs._prf;
76  return *this;
77 }
std::string _beam_look_src
Elevation beam look angle source.
double _beam_look_ang
Applied elevation beam look angle (deg)

Friends And Related Function Documentation

◆ operator<<

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

This function writes the BeamInformationRecord in a stream.

Definition at line 24 of file BeamInformationRecord.cpp.

25 {
26  os<<"beam_type:"<<data._beam_type.c_str()<<std::endl;
27 
28  os<<"beam_look_src:"<<data._beam_look_src.c_str()<<std::endl;
29 
30  os<<"beam_look_ang:"<<data._beam_look_ang<<std::endl;
31 
32  os<<"prf:"<<data._prf<<std::endl;
33 
34  return os;
35 }

◆ operator>>

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

This function reads a BeamInformationRecord from a stream.

Definition at line 37 of file BeamInformationRecord.cpp.

38 {
39  char buf[17];
40  buf[16] = '\0';
41 
42  is.read(buf,3);
43  buf[3] = '\0';
44  data._beam_type = buf;
45 
46  is.read(buf,9);
47  buf[9] = '\0';
48  data._beam_look_src = buf;
49 
50  is.read(buf,16);
51  buf[16] = '\0';
52  data._beam_look_ang = atof(buf);
53 
54  is.read(buf,16);
55  buf[16] = '\0';
56  data._prf = atof(buf);
57 
58  return is;
59 }

Member Data Documentation

◆ _beam_look_ang

double ossimplugins::BeamInformationRecord::_beam_look_ang
protected


Applied elevation beam look angle (deg)

Definition at line 104 of file BeamInformationRecord.h.

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

◆ _beam_look_src

std::string ossimplugins::BeamInformationRecord::_beam_look_src
protected

Elevation beam look angle source.

Definition at line 99 of file BeamInformationRecord.h.

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

◆ _beam_type

std::string ossimplugins::BeamInformationRecord::_beam_type
protected

◆ _prf

double ossimplugins::BeamInformationRecord::_prf
protected

Actual PRF (Hz)

Definition at line 109 of file BeamInformationRecord.h.

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


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