OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
AlosPalsarFileDescriptor.h
Go to the documentation of this file.
1 //----------------------------------------------------------------------------
2 //
3 // "Copyright Centre National d'Etudes Spatiales"
4 // "Copyright Centre for Remote Imaging, Sensing and Processing"
5 //
6 // License: LGPL
7 //
8 // See LICENSE.txt file in the top level directory for more details.
9 //
10 //----------------------------------------------------------------------------
11 // $Id$
12 
13 #ifndef AlosPalsarFileDescriptor_h
14 #define AlosPalsarFileDescriptor_h
15 
16 // TODO Rename to AlosPalsarLeaderFileDescriptor
17 
18 #include<iostream>
19 #include <cstdlib>
22 
23 namespace ossimplugins
24 {
25 
31 {
32 public:
40  virtual ~AlosPalsarFileDescriptor();
41 
46 
51 
56 
61 
66  {
67  return new AlosPalsarFileDescriptor();
68  };
69 
74  {
75  return new AlosPalsarFileDescriptor(*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_continuation_flag() const
106  {
107  return _continuation_flag;
108  };
109 
110 
114  std::string get_format_doc() const
115  {
116  return _format_doc;
117  };
121  std::string get_format_ver() const
122  {
123  return _format_ver;
124  };
128  std::string get_design_rev() const
129  {
130  return _design_rev;
131  };
135  std::string get_software_id() const
136  {
137  return _software_id;
138  };
142  int get_file_num() const
143  {
144  return _file_num ;
145  };
149  std::string get_file_name() const
150  {
151  return _file_name;
152  };
156  std::string get_rec_seq() const
157  {
158  return _rec_seq;
159  };
163  int get_seq_loc() const
164  {
165  return _seq_loc;
166  };
170  int get_seq_len() const
171  {
172  return _seq_len;
173  };
177  std::string get_rec_code() const
178  {
179  return _rec_code;
180  };
184  int get_code_loc() const
185  {
186  return _code_loc;
187  };
191  int get_code_len() const
192  {
193  return _code_len;
194  };
198  std::string get_rec_len() const
199  {
200  return _rec_len;
201  };
205  int get_rlen_loc() const
206  {
207  return _rlen_loc;
208  };
212  int get_rlen_len() const
213  {
214  return _rlen_len;
215  };
219  int get_n_dataset() const
220  {
221  return _n_dataset;
222  };
226  int get_l_dataset() const
227  {
228  return _l_dataset;
229  };
233  int get_n_map_proj() const
234  {
235  return _n_map_proj;
236  };
240  int get_l_map_proj() const
241  {
242  return _l_map_proj;
243  };
247  int get_n_plat_pos() const
248  {
249  return _n_plat_pos;
250  };
254  int get_l_plat_pos() const
255  {
256  return _l_plat_pos;
257  };
261  int get_n_att_data() const
262  {
263  return _n_att_data;
264  };
268  int get_l_att_data() const
269  {
270  return _l_att_data;
271  };
275  int get_n_radi_data() const
276  {
277  return _n_radi_data;
278  };
282  int get_l_radi_data() const
283  {
284  return _l_radi_data;
285  };
289  int get_n_radi_comp() const
290  {
291  return _n_radi_comp;
292  };
296  int get_l_radi_comp() const
297  {
298  return _l_radi_comp;
299  };
303  int get_n_qual_sum() const
304  {
305  return _n_qual_sum;
306  };
310  int get_l_qual_sum() const
311  {
312  return _l_qual_sum;
313  };
317  int get_n_data_his() const
318  {
319  return _n_data_his;
320  };
324  int get_l_data_his() const
325  {
326  return _l_data_his;
327  };
331  int get_n_rang_spec() const
332  {
333  return _n_rang_spec ;
334  };
338  int get_l_rang_spec() const
339  {
340  return _l_rang_spec;
341  };
345  int get_n_dem_desc() const
346  {
347  return _n_dem_desc;
348  };
352  int get_l_dem_desc() const
353  {
354  return _l_dem_desc;
355  };
359  int get_n_radar_par() const
360  {
361  return _n_radar_par;
362  };
366  int get_l_radar_par() const
367  {
368  return _l_radar_par;
369  };
373  int get_n_anno_data() const
374  {
375  return _n_anno_data;
376  };
380  int get_l_anno_data() const
381  {
382  return _l_anno_data;
383  };
387  int get_n_det_proc() const
388  {
389  return _n_det_proc;
390  };
394  int get_l_det_proc() const
395  {
396  return _l_det_proc;
397  };
401  int get_n_cal() const
402  {
403  return _n_cal;
404  };
408  int get_l_cal() const
409  {
410  return _l_cal;
411  };
415  int get_n_gcp() const
416  {
417  return _n_gcp;
418  };
422  int get_l_gcp() const
423  {
424  return _l_gcp;
425  };
429  int get_n_fac_data() const
430  {
431  return _n_fac_data;
432  };
436  int get_l_fac_data() const
437  {
438  return _l_fac_data;
439  };
440 
445  {
446  return _n_fac_data;
447  };
452  {
453  return _l_fac_data;
454  };
459  {
460  return _n_fac_data;
461  };
466  {
467  return _l_fac_data;
468  };
473  {
474  return _n_fac_data;
475  };
480  {
481  return _l_fac_data;
482  };
487  {
488  return _n_fac_data;
489  };
494  {
495  return _l_fac_data;
496  };
501  {
502  return _n_fac_data;
503  };
508  {
509  return _l_fac_data;
510  };
515  {
516  return _n_fac_data;
517  };
522  {
523  return _l_fac_data;
524  };
529  {
530  return _n_fac_data;
531  };
536  {
537  return _l_fac_data;
538  };
543  {
544  return _n_fac_data;
545  };
550  {
551  return _l_fac_data;
552  };
557  {
558  return _n_fac_data;
559  };
564  {
565  return _l_fac_data;
566  };
571  {
572  return _n_fac_data;
573  };
578  {
579  return _l_fac_data;
580  };
581 
582 protected:
586  std::string _ascii_flag;
587 
591  std::string _continuation_flag;
592 
596  std::string _format_doc;
600  std::string _format_ver;
604  std::string _design_rev;
608  std::string _software_id;
616  std::string _file_name;
620  std::string _rec_seq;
624  int _seq_loc;
628  int _seq_len;
632  std::string _rec_code;
644  std::string _rec_len;
653 
654 
762  int _n_cal;
766  int _l_cal;
770  int _n_gcp;
774  int _l_gcp;
775 
784 
793 
802 
811 
820 
829 
838 
847 
856 
865 
874 
875 private:
876 };
877 }
878 #endif
std::string _continuation_flag
Continuation flag.
int get_n_fac_data2()
Number of facility data records.
int _n_data_his
Number of data histogram records.
int _n_radi_data
Number of radiometric data records.
int get_l_fac_data10()
Fac data record length, bytes.
std::string _format_doc
Format control documentation.
int _l_fac_data6
Fac data record length, bytes.
int get_l_fac_data() const
Fac data record length, bytes.
int _l_radi_data
Radiometric data record length, bytes.
int get_l_radi_comp() const
Radiometric compensation record length, bytes.
std::string get_design_rev() const
Format doc revision.
int _l_radi_comp
Radiometric compensation record length, bytes.
int get_l_dem_desc() const
DEM desc record length, bytes.
int _n_fac_data4
Number of facility data records.
int _l_qual_sum
Data quality summary record length, bytes.
std::string _rec_len
Record length/location flag.
int _n_cal
Number of calibration records.
int get_l_fac_data4()
Fac data record length, bytes.
std::string get_file_name() const
File name.
int get_n_dem_desc() const
Number of DEM descriptor records.
int _n_radar_par
Number of RADAR par records.
int get_n_det_proc() const
Number of processing parameter records.
int _n_fac_data2
Number of facility data records.
int _n_dem_desc
Number of DEM descriptor records.
int _l_plat_pos
Platform position record length, bytes.
int get_l_cal() const
Calibration record length, bytes.
int _l_fac_data10
Fac data record length, bytes.
AlosPalsarFileDescriptor & operator=(const AlosPalsarFileDescriptor &rhs)
Copy operator.
int get_n_radi_data() const
Number of radiometric data records.
int get_n_fac_data7()
Number of facility data records.
int get_n_data_his() const
Number of data histogram records.
std::string get_rec_code() const
Record code/location flag.
int get_n_fac_data5()
Number of facility data records.
int get_n_fac_data() const
Number of facility data records.
int _l_fac_data11
Fac data record length, bytes.
std::string get_format_ver() const
Format doc version.
int _l_fac_data8
Fac data record length, bytes.
int get_l_plat_pos() const
Platform position record length, bytes.
int _n_radi_comp
Number of radiometric compensation records.
std::string get_continuation_flag() const
Continuation flag.
int _n_fac_data7
Number of facility data records.
int _l_fac_data7
Fac data record length, bytes.
std::string get_rec_seq() const
Record sequence/location flag.
int get_l_att_data() const
Attitude data record length, bytes.
int _l_fac_data
Fac data record length, bytes.
int _l_dem_desc
DEM desc record length, bytes.
int get_l_map_proj() const
Map projection record length, bytes.
int get_n_anno_data() const
Number of annotation data records.
int get_l_fac_data9()
Fac data record length, bytes.
int _l_fac_data2
Fac data record length, bytes.
int get_l_dataset() const
Data set summary record length, bytes.
This class is the base class of all the record classes.
std::string _software_id
Software identifier.
int get_l_anno_data() const
Annotation data record length, bytes.
int _l_dataset
Data set summary record length, bytes.
int _l_att_data
Attitude data record length, bytes.
int get_rlen_len() const
Record length, bytes.
std::string _rec_seq
Record sequence/location flag.
std::string get_ascii_flag() const
ASCII flag.
int _n_plat_pos
Number of platform position records.
std::string get_rec_len() const
Record length/location flag.
int _l_fac_data5
Fac data record length, bytes.
int _n_det_proc
Number of processing parameter records.
int get_n_rang_spec() const
Number of range spectra records.
std::string _design_rev
Format doc revision.
int get_l_radi_data() const
Radiometric data record length, bytes.
int _l_cal
Calibration record length, bytes.
int get_l_gcp() const
GCP record length, bytes.
int _n_dataset
Number of dataset summ records.
int get_n_fac_data10()
Number of facility data records.
int get_n_map_proj() const
Number of map proj records.
int get_l_fac_data11()
Fac data record length, bytes.
int get_n_qual_sum() const
Number of data quality summary records.
std::string _format_ver
Format doc version.
int get_seq_loc() const
Sequence number location.
void Read(std::istream &is)
Read the class data from a stream.
int _n_fac_data
Number of facility data records.
int _l_map_proj
Map projection record length, bytes.
int get_l_qual_sum() const
Data quality summary record length, bytes.
int get_n_radi_comp() const
Number of radiometric compensation records.
int get_l_fac_data8()
Fac data record length, bytes.
int get_n_fac_data9()
Number of facility data records.
int get_n_fac_data3()
Number of facility data records.
int get_l_fac_data3()
Fac data record length, bytes.
int get_l_fac_data2()
Fac data record length, bytes.
int _n_fac_data11
Number of facility data records.
int get_n_dataset() const
Number of dataset summ records.
void Write(std::ostream &os)
Write the class to a stream.
int get_l_fac_data6()
Fac data record length, bytes.
AlosPalsarRecord * Instanciate()
This function is able to create a new instance of the class.
int _l_anno_data
Annotation data record length, bytes.
int get_n_gcp() const
Number of GCP records.
int get_code_len() const
Record code length.
int _n_fac_data9
Number of facility data records.
int _n_rang_spec
Number of range spectra records.
int get_n_cal() const
Number of calibration records.
int get_l_radar_par() const
RADAR par record length, bytes.
std::basic_istream< char > istream
Base class for char input streams.
Definition: ossimIosFwd.h:20
int get_n_att_data() const
Number of attitude data records.
int _n_qual_sum
Number of data quality summary records.
std::string get_software_id() const
Software identifier.
int get_l_data_his() const
Data histogram record length, bytes.
int _n_fac_data8
Number of facility data records.
int get_rlen_loc() const
Record lenght location.
int get_n_plat_pos() const
Number of platform position records.
int get_seq_len() const
Sequence number lenght.
int _n_anno_data
Number of annotation data records.
int get_l_fac_data5()
Fac data record length, bytes.
int _l_radar_par
RADAR par record length, bytes.
AlosPalsarRecord * Clone()
This function is able to create a new instance of the class initialised with the data of the calling ...
int _n_fac_data3
Number of facility data records.
int get_l_det_proc() const
Processing parameter record length, bytes.
int get_l_rang_spec() const
Range spectra record length, bytes.
int _n_fac_data5
Number of facility data records.
int _n_fac_data6
Number of facility data records.
int get_n_radar_par() const
Number of RADAR par records.
int _n_fac_data10
Number of facility data records.
int get_l_fac_data7()
Fac data record length, bytes.
int _l_fac_data3
Fac data record length, bytes.
int _n_att_data
Number of attitude data records.
int _l_data_his
Data histogram record length, bytes.
int _l_fac_data4
Fac data record length, bytes.
int _n_map_proj
Number of map proj records.
This class is able to read the SAR leader file descriptor record of the leader file.
std::string _rec_code
Record code/location flag.
int get_n_fac_data11()
Number of facility data records.
std::string get_format_doc() const
Format control documentation.
int _l_fac_data9
Fac data record length, bytes.
int get_n_fac_data4()
Number of facility data records.
friend std::ostream & operator<<(std::ostream &os, const AlosPalsarFileDescriptor &data)
This function write the AlosPalsarFileDescriptor in a stream.
int get_code_loc() const
Record code location.
std::basic_ostream< char > ostream
Base class for char output streams.
Definition: ossimIosFwd.h:23
int _l_rang_spec
Range spectra record length, bytes.
int get_n_fac_data8()
Number of facility data records.
int _l_det_proc
Processing parameter record length, bytes.
friend std::istream & operator>>(std::istream &is, AlosPalsarFileDescriptor &data)
This function read a AlosPalsarFileDescriptor from a stream.
int get_n_fac_data6()
Number of facility data records.