OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
FilePointerRecord.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 FilePointerRecord_h
13 #define FilePointerRecord_h
14 
15 
16 #include<iostream>
19 
20 namespace ossimplugins
21 {
27 {
28 public:
36  virtual ~FilePointerRecord();
37 
41  friend std::ostream& operator<<(std::ostream& os, const FilePointerRecord& data);
42 
47 
52 
57 
62  {
63  return new FilePointerRecord();
64  };
65 
70  {
71  return new FilePointerRecord(*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 
102  {
103  return _file_num;
104  };
105 
109  std::string get_file_name()
110  {
111  return _file_name;
112  };
113 
117  std::string get_file_class()
118  {
119  return _file_class;
120  };
121 
125  std::string get_file_code()
126  {
127  return _file_code;
128  };
129 
133  std::string get_data_type()
134  {
135  return _data_type;
136  };
137 
141  std::string get_data_code()
142  {
143  return _data_code;
144  };
145 
149  int get_nrec()
150  {
151  return _nrec;
152  };
153 
158  {
159  return _first_len;
160  };
161 
166  {
167  return _max_len;
168  };
169 
173  std::string get_len_type()
174  {
175  return _len_type;
176  };
177 
181  std::string get_len_code()
182  {
183  return _len_code;
184  };
185 
190  {
191  return _first_phyvol;
192  };
193 
198  {
199  return _last_phyvol;
200  };
201 
206  {
207  return _first_rec;
208  };
209 
214  {
215  return _last_rec;
216  };
217 
218 protected:
222  std::string _ascii_flag;
223 
228 
232  std::string _file_name;
233 
237  std::string _file_class;
238 
242  std::string _file_code;
243 
247  std::string _data_type;
248 
252  std::string _data_code;
253 
257  int _nrec;
258 
263 
267  int _max_len;
268 
272  std::string _len_type;
273 
277  std::string _len_code;
278 
283 
288 
293 
298 
299 private:
300 };
304 }
305 #endif
FilePointerRecord & operator=(const FilePointerRecord &rhs)
Copy operator.
friend std::istream & operator>>(std::istream &is, FilePointerRecord &data)
This function reads a FilePointerRecord from a stream.
std::string _len_type
Record length type.
int get_first_phyvol()
First physical volume.
virtual ~FilePointerRecord()
Destructor.
std::string get_len_code()
Record length type code.
std::string get_data_code()
Referenced file data type code.
std::string _data_code
Referenced file data type code.
std::string _file_name
Referenced file name.
FilePointerRecord SARLeaderFilePointerRecord
int _last_rec
Last physical volume record.
std::string get_file_code()
Referenced file class code.
int get_first_len()
First record length, bytes.
std::string _len_code
Record length type code.
int _file_num
Referenced file number.
void Read(std::istream &is)
Reads the class data from a stream.
std::string get_ascii_flag()
ASCII flag.
int get_max_len()
Maximum record length, bytes.
int get_last_phyvol()
Last physical volume.
This class is the base class of all the record classes.
void Write(std::ostream &os)
Writes the class to a stream.
friend std::ostream & operator<<(std::ostream &os, const FilePointerRecord &data)
This function writes the FilePointerRecord in a stream.
std::string _ascii_flag
ASCII flag.
This class is able to read the SAR leader file descriptor record of the leader file.
std::string _file_class
Referenced file class.
FilePointerRecord ImageOptionsFilePointerRecord
int get_file_num()
Referenced file number.
int get_last_rec()
Last physical volume record.
int get_first_rec()
First physical volume record.
std::string get_data_type()
Referenced file data type.
int _first_rec
First physical volume record.
std::string _file_code
Referenced file class code.
int _max_len
Maximum record length, bytes.
int _nrec
Referenced file record count.
std::basic_istream< char > istream
Base class for char input streams.
Definition: ossimIosFwd.h:20
std::string get_file_class()
Referenced file class.
std::string get_len_type()
Record length type.
int _first_len
First record length, bytes.
std::string get_file_name()
Referenced file name.
int _first_phyvol
First physical volume.
FilePointerRecord SARTrailerFilePointerRecord
int get_nrec()
Referenced file record count.
int _last_phyvol
Last physical volume.
RadarSatRecord * Clone()
This function is able to create a new instance of the class initialised with the data of the calling ...
std::basic_ostream< char > ostream
Base class for char output streams.
Definition: ossimIosFwd.h:23
RadarSatRecord * Instanciate()
This function is able to create a new instance of the class.
std::string _data_type
Referenced file data type.