OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
DataHistogramProcessedData.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 {
17 {
18 }
19 
21 {
22 }
23 
25 {
26  os<<"rec_seq:"<<data._rec_seq<<std::endl;
27 
28  os<<"sar_chn:"<<data._sar_chn<<std::endl;
29 
30  os<<"ntab:"<<data._ntab<<std::endl;
31 
32  os<<"ltab:"<<data._ltab<<std::endl;
33 
34  os<<data._histogram1<<std::endl;
35 
36  os<<data._histogram2<<std::endl;
37 
38  return os;
39 }
40 
42 {
43  char buff[33];
44  buff[32] = '\0';
45 
46  is.read(buff,4);
47  buff[4] = '\0';
48  data._rec_seq = atoi(buff);
49 
50  is.read(buff,4);
51  buff[4] = '\0';
52  data._sar_chn = atoi(buff);
53 
54  is.read(buff,8);
55  buff[8] = '\0';
56  data._ntab = atoi(buff);
57 
58  is.read(buff,8);
59  buff[8] = '\0';
60  data._ltab = atoi(buff);
61 
62  is>>data._histogram1;
63 
64  is>>data._histogram2;
65 
66  char tmp[5];
67  tmp[4] = '\0';
68  is.read(tmp, 4);
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  _histogram1(rhs._histogram1),
79  _histogram2(rhs._histogram2)
80 {
81 
82 }
83 
85 {
88  _sar_chn = rhs._sar_chn;
89  _rec_seq = rhs._rec_seq;
90  _ntab = rhs._ntab;
91  _ltab = rhs._ltab;
92  return *this;
93 }
94 }
This class is able to read a data histogram record - Processed data.
DataHistogramRecord _histogram2
Histogram data record #2.
This class is the base class of all the record classes.
DataHistogramProcessedData & operator=(const DataHistogramProcessedData &rhs)
Copy operator.
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
DataHistogramRecord _histogram1
Histogram data record #1.
int _ntab
Number of histogram table data sets in this record.
std::basic_ostream< char > ostream
Base class for char output streams.
Definition: ossimIosFwd.h:23