OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
AlosPalsarDataFileDescriptor.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 AlosPalsarDataFileDescriptor_h
14 #define AlosPalsarDataFileDescriptor_h
15 
16 
17 #include<iostream>
18 #include <cstdlib>
21 
22 namespace ossimplugins
23 {
24 
30 {
31 public:
40 
45 
50 
55 
60 
65  {
66  return new AlosPalsarDataFileDescriptor();
67  };
68 
73  {
74  return new AlosPalsarDataFileDescriptor(*this);
75  };
76 
80  void Read(std::istream& is)
81  {
82  is >> *this;
83  };
84 
88  void Write(std::ostream& os)
89  {
90  os << *this;
91  };
92 
93 
94  int get_num_pix_in_line() const
95  {
96  return _num_pix_in_line;
97  };
98 
99  int get_num_lines() const
100  {
101  return _num_lines;
102  };
103 
104 protected:
108  int _num_pix_in_line;
113 
114 
115 private:
116 };
117 }
118 #endif
AlosPalsarRecord * Instanciate()
This function is able to create a new instance of the class.
friend std::istream & operator>>(std::istream &is, AlosPalsarDataFileDescriptor &data)
This function read a AlosPalsarDataFileDescriptor from a stream.
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.
void Read(std::istream &is)
Read the class data from a stream.
void Write(std::ostream &os)
Write the class to a stream.
std::basic_istream< char > istream
Base class for char input streams.
Definition: ossimIosFwd.h:20
friend std::ostream & operator<<(std::ostream &os, const AlosPalsarDataFileDescriptor &data)
This function write the AlosPalsarDataFileDescriptor in a stream.
AlosPalsarRecord * Clone()
This function is able to create a new instance of the class initialised with the data of the calling ...
AlosPalsarDataFileDescriptor & operator=(const AlosPalsarDataFileDescriptor &rhs)
Copy operator.
std::basic_ostream< char > ostream
Base class for char output streams.
Definition: ossimIosFwd.h:23