OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
DataHistogramProcessedData.h
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 
12 #ifndef DataHistogramProcessedData_h
13 #define DataHistogramProcessedData_h
14 
15 #include<iostream>
16 
20 
21 namespace ossimplugins
22 {
31 {
32 public:
37 
42 
47 
56 
61 
66  {
67  return new DataHistogramProcessedData();
68  };
69 
74  {
75  return new DataHistogramProcessedData(*this);
76  };
77 
81  void Read(std::istream& is)
82  {
83  is>>*this;
84  };
85 
89  void Write(std::ostream& os)
90  {
91  os<<*this;
92  };
93 
98  {
99  return _rec_seq;
100  };
105  {
106  return _sar_chn;
107  };
108 
112  int get_ntab()
113  {
114  return _ntab;
115  };
116 
120  int get_ltab()
121  {
122  return _ltab;
123  };
124 
129  {
130  return _histogram1;
131  };
132 
137  {
138  return _histogram2;
139  };
140 protected:
144  int _rec_seq;
148  int _sar_chn;
149 
153  int _ntab;
157  int _ltab;
166 
167 private:
168 
169 
170 };
171 }
172 #endif
This class is able to read a data histogram record - Processed data.
DataHistogramRecord get_histogram2()
Histogram data record #2.
friend std::ostream & operator<<(std::ostream &os, const DataHistogramProcessedData &data)
This function writes the DataHistogramProcessedData in a stream.
This class is able to read a data histogram record.
friend std::istream & operator>>(std::istream &is, DataHistogramProcessedData &data)
This function reads a DataHistogramProcessedData from a stream.
int get_ltab()
Histogram table data set size.
DataHistogramRecord _histogram2
Histogram data record #2.
void Write(std::ostream &os)
Writes the class to a stream.
This class is the base class of all the record classes.
DataHistogramProcessedData & operator=(const DataHistogramProcessedData &rhs)
Copy operator.
void Read(std::istream &is)
Reads the class data from a stream.
RadarSatRecord * Clone()
This function is able to create a new instance of the class initialised with the data of the calling ...
int get_ntab()
Number of histogram table data sets in this record.
std::basic_istream< char > istream
Base class for char input streams.
Definition: ossimIosFwd.h:20
DataHistogramRecord get_histogram1()
Histogram data record #1.
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
RadarSatRecord * Instanciate()
This function is able to create a new instance of the class.