OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
DataHistogramSignalData.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 DataHistogramSignalData_h
13 #define DataHistogramSignalData_h
14 
15 #include <iostream>
16 
19 #include "DataHistogramRecord.h"
20 
21 namespace ossimplugins
22 {
28 {
29 public:
34 
38  virtual ~DataHistogramSignalData();
39 
44 
53 
58 
63  {
64  return new DataHistogramSignalData();
65  };
66 
71  {
72  return new DataHistogramSignalData(*this);
73  };
74 
78  void Read(std::istream& is)
79  {
80  is>>*this;
81  };
82 
86  void Write(std::ostream& os)
87  {
88  os<<*this;
89  };
90 
95  {
96  return _rec_seq;
97  };
102  {
103  return _sar_chn;
104  };
105 
109  int get_ntab()
110  {
111  return _ntab;
112  };
113 
117  int get_ltab()
118  {
119  return _ltab;
120  };
121 
126  {
127  return _histogram;
128  };
129 
130 protected:
134  int _rec_seq;
138  int _sar_chn;
139 
143  int _ntab;
147  int _ltab;
152 
153 private:
154 
155 
156 };
157 
159 }
160 #endif
int get_ntab()
Number of histogram table data sets in this record.
This class is able to read a data histogram record.
friend std::ostream & operator<<(std::ostream &os, const DataHistogramSignalData &data)
This function writes the DataHistogramSignalData in a stream.
void Read(std::istream &is)
Reads the class data from a stream.
DataHistogramSignalData DataHistogramProcessedData8
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.
RadarSatRecord * Clone()
This function is able to create a new instance of the class initialised with the data of the calling ...
int get_ltab()
Histogram table data set size.
DataHistogramRecord get_histogram()
Histogram data record.
std::basic_istream< char > istream
Base class for char input streams.
Definition: ossimIosFwd.h:20
DataHistogramSignalData & operator=(const DataHistogramSignalData &rhs)
Copy operator.
void Write(std::ostream &os)
Writes the class to a stream.
int _ltab
Histogram table data set size.
std::basic_ostream< char > ostream
Base class for char output streams.
Definition: ossimIosFwd.h:23
int get_rec_seq()
Record sequence number.
friend std::istream & operator>>(std::istream &is, DataHistogramSignalData &data)
This function reads a DataHistogramSignalData from a stream.
RadarSatRecord * Instanciate()
This function is able to create a new instance of the class.