OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
FileDescriptor.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 FileDescriptor_h
13 #define FileDescriptor_h
14 
15 
16 #include<iostream>
19 
20 namespace ossimplugins
21 {
27 {
28 public:
36  virtual ~FileDescriptor();
37 
41  friend std::ostream& operator<<(std::ostream& os, const FileDescriptor& data);
42 
47 
51  FileDescriptor(const FileDescriptor& rhs);
52 
57 
62  {
63  return new FileDescriptor();
64  };
65 
70  {
71  return new FileDescriptor(*this);
72  };
73 
77  void Read(std::istream& is)
78  {
79  is>>*this;
80  };
81 
85  void Write(std::ostream& os)
86  {
87  os<<*this;
88  };
89 
93  std::string get_ascii_flag()
94  {
95  return _ascii_flag;
96  };
97 
101  std::string get_format_doc()
102  {
103  return _format_doc;
104  };
108  std::string get_format_ver()
109  {
110  return _format_ver;
111  };
115  std::string get_design_rev()
116  {
117  return _design_rev;
118  };
122  std::string get_software_id()
123  {
124  return _software_id;
125  };
130  {
131  return _file_num ;
132  };
136  std::string get_file_name()
137  {
138  return _file_name;
139  };
143  std::string get_rec_seq()
144  {
145  return _rec_seq;
146  };
151  {
152  return _seq_loc;
153  };
158  {
159  return _seq_len;
160  };
164  std::string get_rec_code()
165  {
166  return _rec_code;
167  };
172  {
173  return _code_loc;
174  };
179  {
180  return _code_len;
181  };
185  std::string get_rec_len()
186  {
187  return _rec_len;
188  };
193  {
194  return _rlen_loc;
195  };
200  {
201  return _rlen_len;
202  };
207  {
208  return _n_dataset;
209  };
214  {
215  return _l_dataset;
216  };
221  {
222  return _n_map_proj;
223  };
228  {
229  return _l_map_proj;
230  };
235  {
236  return _n_plat_pos;
237  };
242  {
243  return _l_plat_pos;
244  };
249  {
250  return _n_att_data;
251  };
256  {
257  return _l_att_data;
258  };
263  {
264  return _n_radi_data;
265  };
270  {
271  return _l_radi_data;
272  };
277  {
278  return _n_radi_comp;
279  };
284  {
285  return _l_radi_comp;
286  };
291  {
292  return _n_qual_sum;
293  };
298  {
299  return _l_qual_sum;
300  };
305  {
306  return _n_data_his;
307  };
312  {
313  return _l_data_his;
314  };
319  {
320  return _n_rang_spec ;
321  };
326  {
327  return _l_rang_spec;
328  };
333  {
334  return _n_dem_desc;
335  };
340  {
341  return _l_dem_desc;
342  };
347  {
348  return _n_radar_par;
349  };
354  {
355  return _l_radar_par;
356  };
361  {
362  return _n_anno_data;
363  };
368  {
369  return _l_anno_data;
370  };
375  {
376  return _n_det_proc;
377  };
382  {
383  return _l_det_proc;
384  };
388  int get_n_cal()
389  {
390  return _n_cal;
391  };
395  int get_l_cal()
396  {
397  return _l_cal;
398  };
402  int get_n_gcp()
403  {
404  return _n_gcp;
405  };
409  int get_l_gcp()
410  {
411  return _l_gcp;
412  };
417  {
418  return _n_fac_data;
419  };
424  {
425  return _l_fac_data;
426  };
427 
428 protected:
432  std::string _ascii_flag;
433 
437  std::string _format_doc;
441  std::string _format_ver;
445  std::string _design_rev;
449  std::string _software_id;
457  std::string _file_name;
461  std::string _rec_seq;
465  int _seq_loc;
469  int _seq_len;
473  std::string _rec_code;
485  std::string _rec_len;
494 
495 
603  int _n_cal;
607  int _l_cal;
611  int _n_gcp;
615  int _l_gcp;
616 
625 
626 private:
627 };
628 }
629 #endif
This class is able to read the SAR leader file descriptor record of the leader file.
std::string get_rec_code()
Record code/location flag.
std::string get_format_doc()
Format control documentation.
int get_n_radi_comp()
Number of radiometric compensation records.
int get_n_qual_sum()
Number of data quality summary records.
int get_rlen_loc()
Record lenght location.
int _n_radi_data
Number of radiometric data records.
int get_l_rang_spec()
Range spectra record length, bytes.
int _n_gcp
Number of GCP records.
int get_seq_len()
Sequence number lenght.
int _l_anno_data
Annotation data record length, bytes.
int get_l_radi_comp()
Radiometric compensation record length, bytes.
int get_l_anno_data()
Annotation data record length, bytes.
int get_l_dataset()
Data set summary record length, bytes.
int get_n_map_proj()
Number of map proj records.
std::string get_design_rev()
Format doc revision.
std::string _format_ver
Format doc version.
friend std::ostream & operator<<(std::ostream &os, const FileDescriptor &data)
This function writes the FileDescriptor in a stream.
virtual ~FileDescriptor()
Destructor.
int get_n_fac_data()
Number of facility data records.
void Write(std::ostream &os)
Writes the class to a stream.
int _n_cal
Number of calibration records.
int _l_radi_data
Radiometric data record length, bytes.
int _l_det_proc
Processing parameter record length, bytes.
int _n_data_his
Number of data histogram records.
int _n_radi_comp
Number of radiometric compensation records.
int get_n_rang_spec()
Number of range spectra records.
int get_file_num()
File number.
int get_l_gcp()
GCP record length, bytes.
int _seq_len
Sequence number lenght.
std::string get_software_id()
Software identifier.
int _l_qual_sum
Data quality summary record length, bytes.
int get_n_det_proc()
Number of processing parameter records.
int _n_anno_data
Number of annotation data records.
int _l_dem_desc
DEM desc record length, bytes.
This class is the base class of all the record classes.
int _l_rang_spec
Range spectra record length, bytes.
int _n_qual_sum
Number of data quality summary records.
std::string _format_doc
Format control documentation.
int _n_plat_pos
Number of platform position records.
int _n_radar_par
Number of RADAR par records.
int _n_rang_spec
Number of range spectra records.
int _n_fac_data
Number of facility data records.
int _n_det_proc
Number of processing parameter records.
friend std::istream & operator>>(std::istream &is, FileDescriptor &data)
This function reads a FileDescriptor from a stream.
int get_l_map_proj()
Map projection record length, bytes.
std::string _file_name
File name.
int _code_len
Record code length.
std::string _software_id
Software identifier.
int _rlen_len
Record length, bytes.
std::string _ascii_flag
ASCII flag.
int _l_plat_pos
Platform position record length, bytes.
std::string get_rec_seq()
Record sequence/location flag.
int _l_cal
Calibration record length, bytes.
int get_code_len()
Record code length.
std::string get_file_name()
File name.
int _l_radi_comp
Radiometric compensation record length, bytes.
int get_n_data_his()
Number of data histogram records.
int _n_map_proj
Number of map proj records.
int get_rlen_len()
Record length, bytes.
int get_n_cal()
Number of calibration records.
int _n_dem_desc
Number of DEM descriptor records.
FileDescriptor & operator=(const FileDescriptor &rhs)
Copy operator.
int _l_data_his
Data histogram record length, bytes.
int get_n_dem_desc()
Number of DEM descriptor records.
RadarSatRecord * Instanciate()
This function is able to create a new instance of the class.
int get_l_data_his()
Data histogram record length, bytes.
RadarSatRecord * Clone()
This function is able to create a new instance of the class initialised with the data of the calling ...
int _l_fac_data
Fac data record length, bytes.
std::string get_ascii_flag()
ASCII flag.
int get_n_att_data()
Number of attitude data records.
int _l_radar_par
RADAR par record length, bytes.
int _l_att_data
Attitude data record length, bytes.
int get_n_anno_data()
Number of annotation data records.
int _rlen_loc
Record lenght location.
std::string get_rec_len()
Record length/location flag.
int get_n_radi_data()
Number of radiometric data records.
int _l_map_proj
Map projection record length, bytes.
std::string get_format_ver()
Format doc version.
std::basic_istream< char > istream
Base class for char input streams.
Definition: ossimIosFwd.h:20
int get_n_dataset()
Number of dataset summ records.
int get_n_gcp()
Number of GCP records.
std::string _rec_len
Record length/location flag.
int get_l_fac_data()
Fac data record length, bytes.
int get_l_radar_par()
RADAR par record length, bytes.
int _seq_loc
Sequence number location.
int get_seq_loc()
Sequence number location.
std::string _rec_seq
Record sequence/location flag.
int get_l_det_proc()
Processing parameter record length, bytes.
int get_code_loc()
Record code location.
void Read(std::istream &is)
Reads the class data from a stream.
int _n_dataset
Number of dataset summ records.
int get_l_plat_pos()
Platform position record length, bytes.
int _n_att_data
Number of attitude data records.
std::string _design_rev
Format doc revision.
int get_l_cal()
Calibration record length, bytes.
std::string _rec_code
Record code/location flag.
int _code_loc
Record code location.
int get_n_plat_pos()
Number of platform position records.
int _l_dataset
Data set summary record length, bytes.
int get_l_radi_data()
Radiometric data record length, bytes.
std::basic_ostream< char > ostream
Base class for char output streams.
Definition: ossimIosFwd.h:23
int get_n_radar_par()
Number of RADAR par records.
int get_l_att_data()
Attitude data record length, bytes.
int get_l_dem_desc()
DEM desc record length, bytes.
int get_l_qual_sum()
Data quality summary record length, bytes.
int _l_gcp
GCP record length, bytes.