OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ErsSarFileDescriptor.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 ErsSarFileDescriptor_h
13 #define ErsSarFileDescriptor_h
14 
15 
16 #include<iostream>
17 #include <cstdlib>
19 #include "erssar/ErsSarRecord.h"
20 
21 
22 namespace ossimplugins
23 {
24 
31 {
32 public:
40  virtual ~ErsSarFileDescriptor();
41 
45  friend std::ostream& operator<<(std::ostream& os, const ErsSarFileDescriptor& data);
46 
51 
56 
61 
66  {
67  return new ErsSarFileDescriptor();
68  };
69 
74  {
75  return new ErsSarFileDescriptor(*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 
97  std::string get_ascii_flag() const
98  {
99  return _ascii_flag;
100  };
101 
105  std::string get_format_doc() const
106  {
107  return _format_doc;
108  };
112  std::string get_format_ver() const
113  {
114  return _format_ver;
115  };
119  std::string get_design_rev() const
120  {
121  return _design_rev;
122  };
126  std::string get_software_id() const
127  {
128  return _software_id;
129  };
133  int get_file_num() const
134  {
135  return _file_num ;
136  };
140  std::string get_file_name() const
141  {
142  return _file_name;
143  };
147  std::string get_rec_seq() const
148  {
149  return _rec_seq;
150  };
154  int get_seq_loc() const
155  {
156  return _seq_loc;
157  };
161  int get_seq_len() const
162  {
163  return _seq_len;
164  };
168  std::string get_rec_code() const
169  {
170  return _rec_code;
171  };
175  int get_code_loc() const
176  {
177  return _code_loc;
178  };
182  int get_code_len() const
183  {
184  return _code_len;
185  };
189  std::string get_rec_len() const
190  {
191  return _rec_len;
192  };
196  int get_rlen_loc() const
197  {
198  return _rlen_loc;
199  };
203  int get_rlen_len() const
204  {
205  return _rlen_len;
206  };
210  int get_n_dataset() const
211  {
212  return _n_dataset;
213  };
217  int get_l_dataset() const
218  {
219  return _l_dataset;
220  };
224  int get_n_map_proj() const
225  {
226  return _n_map_proj;
227  };
231  int get_l_map_proj() const
232  {
233  return _l_map_proj;
234  };
238  int get_n_plat_pos() const
239  {
240  return _n_plat_pos;
241  };
245  int get_l_plat_pos() const
246  {
247  return _l_plat_pos;
248  };
252  int get_n_att_data() const
253  {
254  return _n_att_data;
255  };
259  int get_l_att_data() const
260  {
261  return _l_att_data;
262  };
266  int get_n_radi_data() const
267  {
268  return _n_radi_data;
269  };
273  int get_l_radi_data() const
274  {
275  return _l_radi_data;
276  };
280  int get_n_radi_comp() const
281  {
282  return _n_radi_comp;
283  };
287  int get_l_radi_comp() const
288  {
289  return _l_radi_comp;
290  };
294  int get_n_qual_sum() const
295  {
296  return _n_qual_sum;
297  };
301  int get_l_qual_sum() const
302  {
303  return _l_qual_sum;
304  };
308  int get_n_data_his() const
309  {
310  return _n_data_his;
311  };
315  int get_l_data_his() const
316  {
317  return _l_data_his;
318  };
322  int get_n_rang_spec() const
323  {
324  return _n_rang_spec ;
325  };
329  int get_l_rang_spec() const
330  {
331  return _l_rang_spec;
332  };
336  int get_n_dem_desc() const
337  {
338  return _n_dem_desc;
339  };
343  int get_l_dem_desc() const
344  {
345  return _l_dem_desc;
346  };
350  int get_n_radar_par() const
351  {
352  return _n_radar_par;
353  };
357  int get_l_radar_par() const
358  {
359  return _l_radar_par;
360  };
364  int get_n_anno_data() const
365  {
366  return _n_anno_data;
367  };
371  int get_l_anno_data() const
372  {
373  return _l_anno_data;
374  };
378  int get_n_det_proc() const
379  {
380  return _n_det_proc;
381  };
385  int get_l_det_proc() const
386  {
387  return _l_det_proc;
388  };
392  int get_n_cal() const
393  {
394  return _n_cal;
395  };
399  int get_l_cal() const
400  {
401  return _l_cal;
402  };
406  int get_n_gcp() const
407  {
408  return _n_gcp;
409  };
413  int get_l_gcp() const
414  {
415  return _l_gcp;
416  };
420  int get_n_fac_data() const
421  {
422  return _n_fac_data;
423  };
427  int get_l_fac_data() const
428  {
429  return _l_fac_data;
430  };
431 
432 protected:
436  std::string _ascii_flag;
437 
441  std::string _format_doc;
445  std::string _format_ver;
449  std::string _design_rev;
453  std::string _software_id;
461  std::string _file_name;
465  std::string _rec_seq;
469  int _seq_loc;
473  int _seq_len;
477  std::string _rec_code;
489  std::string _rec_len;
498 
499 
607  int _n_cal;
611  int _l_cal;
615  int _n_gcp;
619  int _l_gcp;
620 
629 
630 private:
631 };
632 }
633 
634 #endif
void Read(std::istream &is)
Read the class data from a stream.
int _n_cal
Number of calibration records.
int get_l_anno_data() const
Annotation data record length, bytes.
std::string get_rec_seq() const
Record sequence/location flag.
int _n_dem_desc
Number of DEM descriptor records.
int get_l_plat_pos() const
Platform position record length, bytes.
int _l_data_his
Data histogram record length, bytes.
void Write(std::ostream &os)
Write the class to a stream.
int _l_dem_desc
DEM desc record length, bytes.
int _l_gcp
GCP record length, bytes.
int _l_anno_data
Annotation data record length, bytes.
int _n_fac_data
Number of facility data records.
std::string _design_rev
Format doc revision.
int _l_radi_comp
Radiometric compensation record length, bytes.
std::string _rec_seq
Record sequence/location flag.
int get_n_qual_sum() const
Number of data quality summary records.
int _l_cal
Calibration record length, bytes.
int _n_radi_comp
Number of radiometric compensation records.
int get_l_data_his() const
Data histogram record length, bytes.
int get_l_att_data() const
Attitude data record length, bytes.
int _l_map_proj
Map projection record length, bytes.
int get_n_gcp() const
Number of GCP records.
int get_seq_loc() const
Sequence number location.
int get_n_anno_data() const
Number of annotation data records.
int _l_plat_pos
Platform position record length, bytes.
int get_code_loc() const
Record code location.
int get_n_att_data() const
Number of attitude data records.
int get_n_radar_par() const
Number of RADAR par records.
std::string get_rec_len() const
Record length/location flag.
int _l_att_data
Attitude data record length, bytes.
ErsSarRecord * Instanciate()
This function is able to create a new instance of the class.
int _n_det_proc
Number of processing parameter records.
std::string _rec_code
Record code/location flag.
int _n_anno_data
Number of annotation data records.
int _n_qual_sum
Number of data quality summary records.
int get_seq_len() const
Sequence number lenght.
std::string _format_ver
Format doc version.
std::string get_format_doc() const
Format control documentation.
ErsSarRecord * Clone()
This function is able to create a new instance of the class initialised with the data of the calling ...
int get_n_fac_data() const
Number of facility data records.
int get_code_len() const
Record code length.
int _n_radi_data
Number of radiometric data records.
int _l_qual_sum
Data quality summary record length, bytes.
int _n_radar_par
Number of RADAR par records.
int get_rlen_len() const
Record length, bytes.
int get_n_map_proj() const
Number of map proj records.
int get_l_dataset() const
Data set summary record length, bytes.
std::string get_ascii_flag() const
ASCII flag.
int get_n_dataset() const
Number of dataset summ records.
int get_l_fac_data() const
Fac data record length, bytes.
std::string _rec_len
Record length/location flag.
int _l_radi_data
Radiometric data record length, bytes.
int _l_rang_spec
Range spectra record length, bytes.
std::string _software_id
Software identifier.
int get_n_plat_pos() const
Number of platform position records.
friend std::istream & operator>>(std::istream &is, ErsSarFileDescriptor &data)
This function read a ErsSarFileDescriptor from a stream.
int get_l_radi_data() const
Radiometric data record length, bytes.
int get_n_radi_data() const
Number of radiometric data records.
std::string get_file_name() const
File name.
int _n_map_proj
Number of map proj records.
int get_rlen_loc() const
Record lenght location.
int _l_fac_data
Fac data record length, bytes.
This class is the base class of all the record classes.
Definition: ErsSarRecord.h:27
int get_n_dem_desc() const
Number of DEM descriptor records.
int get_n_radi_comp() const
Number of radiometric compensation records.
std::string get_software_id() const
Software identifier.
int _n_att_data
Number of attitude data records.
int get_l_det_proc() const
Processing parameter record length, bytes.
This class is able to read the SAR leader file descriptor record of the leader file.
int _l_radar_par
RADAR par record length, bytes.
int _seq_loc
Sequence number location.
int get_n_rang_spec() const
Number of range spectra records.
int _l_det_proc
Processing parameter record length, bytes.
std::basic_istream< char > istream
Base class for char input streams.
Definition: ossimIosFwd.h:20
int _n_plat_pos
Number of platform position records.
int _n_data_his
Number of data histogram records.
int _rlen_loc
Record lenght location.
int _n_dataset
Number of dataset summ records.
int get_l_cal() const
Calibration record length, bytes.
std::string get_format_ver() const
Format doc version.
ErsSarFileDescriptor & operator=(const ErsSarFileDescriptor &rhs)
Copy operator.
int get_l_rang_spec() const
Range spectra record length, bytes.
int _seq_len
Sequence number lenght.
std::string _format_doc
Format control documentation.
int get_l_qual_sum() const
Data quality summary record length, bytes.
int get_n_data_his() const
Number of data histogram records.
int get_l_dem_desc() const
DEM desc record length, bytes.
int get_n_det_proc() const
Number of processing parameter records.
int get_l_gcp() const
GCP record length, bytes.
int get_l_radar_par() const
RADAR par record length, bytes.
int get_l_map_proj() const
Map projection record length, bytes.
std::string get_rec_code() const
Record code/location flag.
std::string get_design_rev() const
Format doc revision.
std::basic_ostream< char > ostream
Base class for char output streams.
Definition: ossimIosFwd.h:23
int _l_dataset
Data set summary record length, bytes.
int get_n_cal() const
Number of calibration records.
friend std::ostream & operator<<(std::ostream &os, const ErsSarFileDescriptor &data)
This function write the ErsSarFileDescriptor in a stream.
int _n_rang_spec
Number of range spectra records.
int get_l_radi_comp() const
Radiometric compensation record length, bytes.