OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
DataHistogramSignalData.cpp
Go to the documentation of this file.
1 //----------------------------------------------------------------------------
2 //
3 // "Copyright Centre National d'Etudes Spatiales"
4 //
5 // License: LGPL
6 //
7 // See LICENSE.txt file in the top level directory for more details.
8 //
9 //----------------------------------------------------------------------------
10 // $Id$
11 
13 
14 namespace ossimplugins
15 {
16 
18 {
19 }
20 
22 {
23 }
24 
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 }
40 
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 }
71 
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 }
82 
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 }
93 }
int _ntab
Number of histogram table data sets in this record.
This class is the base class of all the record classes.
DataHistogramRecord _histogram
Histogram data record.
This class is able to read a data histogram record - Signal data.
std::ostream & operator<<(std::ostream &os, const AlosPalsarData &data)
std::istream & operator>>(std::istream &is, AlosPalsarData &data)
std::basic_istream< char > istream
Base class for char input streams.
Definition: ossimIosFwd.h:20
DataHistogramSignalData & operator=(const DataHistogramSignalData &rhs)
Copy operator.
int _ltab
Histogram table data set size.
std::basic_ostream< char > ostream
Base class for char output streams.
Definition: ossimIosFwd.h:23