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

This class is able to read a data histogram record - Signal data. More...

#include <DataHistogramSignalData.h>

Inheritance diagram for ossimplugins::DataHistogramSignalData:
ossimplugins::RadarSatRecord

Public Member Functions

 DataHistogramSignalData ()
 Constructor. More...
 
virtual ~DataHistogramSignalData ()
 Destructor. More...
 
 DataHistogramSignalData (const DataHistogramSignalData &rhs)
 Copy constructor. More...
 
DataHistogramSignalDataoperator= (const DataHistogramSignalData &rhs)
 Copy operator. More...
 
RadarSatRecordInstanciate ()
 This function is able to create a new instance of the class. More...
 
RadarSatRecordClone ()
 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_rec_seq ()
 Record sequence number. More...
 
int get_sar_chn ()
 SAR channel indicator. More...
 
int get_ntab ()
 Number of histogram table data sets in this record. More...
 
int get_ltab ()
 Histogram table data set size. More...
 
DataHistogramRecord get_histogram ()
 Histogram data record. More...
 
- Public Member Functions inherited from ossimplugins::RadarSatRecord
 RadarSatRecord (std::string mnemonic)
 Constructor. More...
 
virtual ~RadarSatRecord ()
 Destructor. More...
 
 RadarSatRecord (const RadarSatRecord &rhs)
 Copy constructor. More...
 
std::string get_mnemonic ()
 

Protected Attributes

int _rec_seq
 Record sequence number. More...
 
int _sar_chn
 SAR channel indicator. More...
 
int _ntab
 Number of histogram table data sets in this record. More...
 
int _ltab
 Histogram table data set size. More...
 
DataHistogramRecord _histogram
 Histogram data record. More...
 
- Protected Attributes inherited from ossimplugins::RadarSatRecord
std::string _mnemonic
 

Friends

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

Detailed Description

This class is able to read a data histogram record - Signal data.

Definition at line 27 of file DataHistogramSignalData.h.

Constructor & Destructor Documentation

◆ DataHistogramSignalData() [1/2]

ossimplugins::DataHistogramSignalData::DataHistogramSignalData ( )

Constructor.

Definition at line 17 of file DataHistogramSignalData.cpp.

Referenced by Clone(), and Instanciate().

17  : RadarSatRecord("sdr_hist_rec")
18 {
19 }
RadarSatRecord(std::string mnemonic)
Constructor.

◆ ~DataHistogramSignalData()

ossimplugins::DataHistogramSignalData::~DataHistogramSignalData ( )
virtual

Destructor.

Definition at line 21 of file DataHistogramSignalData.cpp.

22 {
23 }

◆ DataHistogramSignalData() [2/2]

ossimplugins::DataHistogramSignalData::DataHistogramSignalData ( const DataHistogramSignalData rhs)

Copy constructor.

Definition at line 72 of file DataHistogramSignalData.cpp.

72  :
73  RadarSatRecord(rhs),
74  _rec_seq(rhs._rec_seq),
75  _sar_chn(rhs._sar_chn),
76  _ntab(rhs._ntab),
77  _ltab(rhs._ltab),
78  _histogram(rhs._histogram)
79 {
80 
81 }
int _ntab
Number of histogram table data sets in this record.
RadarSatRecord(std::string mnemonic)
Constructor.
DataHistogramRecord _histogram
Histogram data record.
int _ltab
Histogram table data set size.

Member Function Documentation

◆ Clone()

RadarSatRecord* ossimplugins::DataHistogramSignalData::Clone ( )
inlinevirtual

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

Implements ossimplugins::RadarSatRecord.

Definition at line 70 of file DataHistogramSignalData.h.

References DataHistogramSignalData().

71  {
72  return new DataHistogramSignalData(*this);
73  };

◆ get_histogram()

DataHistogramRecord ossimplugins::DataHistogramSignalData::get_histogram ( )
inline

Histogram data record.

Definition at line 125 of file DataHistogramSignalData.h.

References _histogram.

126  {
127  return _histogram;
128  };
DataHistogramRecord _histogram
Histogram data record.

◆ get_ltab()

int ossimplugins::DataHistogramSignalData::get_ltab ( )
inline

Histogram table data set size.

Definition at line 117 of file DataHistogramSignalData.h.

References _ltab.

118  {
119  return _ltab;
120  };
int _ltab
Histogram table data set size.

◆ get_ntab()

int ossimplugins::DataHistogramSignalData::get_ntab ( )
inline

Number of histogram table data sets in this record.

Definition at line 109 of file DataHistogramSignalData.h.

References _ntab.

110  {
111  return _ntab;
112  };
int _ntab
Number of histogram table data sets in this record.

◆ get_rec_seq()

int ossimplugins::DataHistogramSignalData::get_rec_seq ( )
inline

Record sequence number.

Definition at line 94 of file DataHistogramSignalData.h.

References _rec_seq.

95  {
96  return _rec_seq;
97  };

◆ get_sar_chn()

int ossimplugins::DataHistogramSignalData::get_sar_chn ( )
inline

SAR channel indicator.

Definition at line 101 of file DataHistogramSignalData.h.

References _sar_chn.

102  {
103  return _sar_chn;
104  };

◆ Instanciate()

RadarSatRecord* ossimplugins::DataHistogramSignalData::Instanciate ( )
inlinevirtual

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

Implements ossimplugins::RadarSatRecord.

Definition at line 62 of file DataHistogramSignalData.h.

References DataHistogramSignalData().

63  {
64  return new DataHistogramSignalData();
65  };

◆ operator=()

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

Copy operator.

Definition at line 83 of file DataHistogramSignalData.cpp.

References _histogram, _ltab, _ntab, _rec_seq, and _sar_chn.

84 {
85  _histogram = rhs._histogram;
86  _sar_chn = rhs._sar_chn;
87  _rec_seq = rhs._rec_seq;
88  _ntab = rhs._ntab;
89  _ltab = rhs._ltab;
90 
91  return *this;
92 }
int _ntab
Number of histogram table data sets in this record.
DataHistogramRecord _histogram
Histogram data record.
int _ltab
Histogram table data set size.

◆ Read()

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

Reads the class data from a stream.

Implements ossimplugins::RadarSatRecord.

Definition at line 78 of file DataHistogramSignalData.h.

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

◆ Write()

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

Writes the class to a stream.

Implements ossimplugins::RadarSatRecord.

Definition at line 86 of file DataHistogramSignalData.h.

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

Friends And Related Function Documentation

◆ operator<<

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

This function writes the DataHistogramSignalData in a stream.

Definition at line 25 of file DataHistogramSignalData.cpp.

26 {
27 
28  os<<"rec_seq:"<<data._rec_seq<<std::endl;
29 
30  os<<"sar_chn:"<<data._sar_chn<<std::endl;
31 
32  os<<"ntab:"<<data._ntab<<std::endl;
33 
34  os<<"ltab:"<<data._ltab<<std::endl;
35 
36  os<<data._histogram<<std::endl;
37 
38  return os;
39 }

◆ operator>>

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

This function reads a DataHistogramSignalData from a stream.

Definition at line 41 of file DataHistogramSignalData.cpp.

42 {
43  char buff[33];
44  buff[32] = '\0';
45 
46 
47  is.read(buff,4);
48  buff[4] = '\0';
49  data._rec_seq = atoi(buff);
50 
51  is.read(buff,4);
52  buff[4] = '\0';
53  data._sar_chn = atoi(buff);
54 
55  is.read(buff,8);
56  buff[8] = '\0';
57  data._ntab = atoi(buff);
58 
59  is.read(buff,8);
60  buff[8] = '\0';
61  data._ltab = atoi(buff);
62 
63  is>>data._histogram;
64 
65  char tmp[14589];
66  tmp[14588] = '\0';
67  is.read(tmp, 14588);
68 
69  return is;
70 }

Member Data Documentation

◆ _histogram

DataHistogramRecord ossimplugins::DataHistogramSignalData::_histogram
protected

Histogram data record.

Definition at line 151 of file DataHistogramSignalData.h.

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

◆ _ltab

int ossimplugins::DataHistogramSignalData::_ltab
protected

Histogram table data set size.

Definition at line 147 of file DataHistogramSignalData.h.

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

◆ _ntab

int ossimplugins::DataHistogramSignalData::_ntab
protected

Number of histogram table data sets in this record.

Definition at line 143 of file DataHistogramSignalData.h.

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

◆ _rec_seq

int ossimplugins::DataHistogramSignalData::_rec_seq
protected

Record sequence number.

Definition at line 128 of file DataHistogramSignalData.h.

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

◆ _sar_chn

int ossimplugins::DataHistogramSignalData::_sar_chn
protected

SAR channel indicator.

Definition at line 138 of file DataHistogramSignalData.h.

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


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