OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
AlosPalsarDataFileDescriptor.cpp
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 
14 
15 
16 namespace ossimplugins
17 {
18 
20 {
21 }
22 
24 {
25 }
26 
28 {
29  os << "_num_lines:" << data._num_lines << std::endl;
30  os << "_num_pix_in_line:" << data._num_pix_in_line << std::endl;
31  return os;
32 }
33 
35 {
36  char buf6[7];
37  buf6[6] = '\0';
38 
39  char buf168[169];
40  buf168[168] = '\0';
41 
42  char buf94[95];
43  buf94[94] = '\0';
44 
45  char buf8[9];
46  buf8[8] = '\0';
47 
48  is.read(buf168, 168);
49 
50  is.read(buf6, 6);
51  data._num_lines = atoi(buf6);
52 
53  is.read(buf94, 94);
54 
55  int tmpval;
56  is.read(buf8, 8);
57  tmpval = atoi(buf8);
58  data._num_pix_in_line = tmpval / 8; // Assume data always in 8-byte complex format
59 
60  char buf432[433];
61  buf432[432] = '\0';
62 
63  is.read(buf432, 432);
64  return is;
65 }
66 
68  AlosPalsarRecord(rhs),
69  _num_pix_in_line(rhs._num_pix_in_line),
70  _num_lines(rhs._num_lines)
71 {
72 }
73 
75 {
76  _num_lines = rhs._num_lines;
78  return *this;
79 }
80 }
This class is the base class of all the record classes.
This class is able to read the SAR leader file descriptor record of the leader file.
std::ostream & operator<<(std::ostream &os, const AlosPalsarData &data)
std::istream & operator>>(std::istream &is, AlosPalsarData &data)
std::basic_istream< char > istream
Base class for char input streams.
Definition: ossimIosFwd.h:20
AlosPalsarDataFileDescriptor & operator=(const AlosPalsarDataFileDescriptor &rhs)
Copy operator.
std::basic_ostream< char > ostream
Base class for char output streams.
Definition: ossimIosFwd.h:23