OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
VolumeDescriptorRecord.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 VolumeDescriptorRecord_h
13 #define VolumeDescriptorRecord_h
14 
15 
16 #include<iostream>
19 
20 namespace ossimplugins
21 {
27 {
28 public:
36  virtual ~VolumeDescriptorRecord();
37 
42 
47 
52 
57 
62  {
63  return new VolumeDescriptorRecord();
64  };
65 
70  {
71  return new VolumeDescriptorRecord(*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  };
100  std::string get_format_doc()
101  {
102  return _format_doc;
103  };
104 
108  std::string get_format_ver()
109  {
110  return _format_ver;
111  };
112 
116  std::string getget_format_rev()
117  {
118  return _format_rev;
119  };
120 
124  std::string get_software_id()
125  {
126  return _software_id;
127  };
128 
132  std::string get_phyvol_id()
133  {
134  return _phyvol_id;
135  };
136 
140  std::string get_logvol_id()
141  {
142  return _logvol_id;
143  };
144 
148  std::string get_volset_id()
149  {
150  return _volset_id;
151  };
152 
157  {
158  return _phyvol_cnt;
159  };
160 
165  {
166  return _first_phyvol;
167  };
168 
173  {
174  return _last_phyvol;
175  };
176 
181  {
182  return _curr_phyvol;
183  };
184 
189  {
190  return _first_file;
191  };
192 
197  {
198  return _volset_log;
199  };
200 
205  {
206  return _phyvol_log;
207  };
208 
212  std::string get_logvol_date()
213  {
214  return _logvol_date;
215  };
216 
220  std::string get_logvol_time()
221  {
222  return _logvol_time;
223  };
224 
228  std::string get_logvol_country()
229  {
230  return _logvol_country;
231  };
232 
236  std::string get_logvol_agency()
237  {
238  return _logvol_agency;
239  };
240 
244  std::string get_logvol_facility()
245  {
246  return _logvol_facility;
247  };
248 
253  {
254  return _n_filepoint;
255  };
256 
261  {
262  return _n_voldir;
263  };
264 
268  std::string get_product_id()
269  {
270  return _product_id;
271  };
272 
273 protected:
277  std::string _ascii_flag;
278 
282  std::string _format_doc;
283 
287  std::string _format_ver;
288 
292  std::string _format_rev;
293 
297  std::string _software_id;
298 
302  std::string _phyvol_id;
303 
307  std::string _logvol_id;
308 
312  std::string _volset_id;
313 
318 
323 
328 
333 
338 
343 
348 
352  std::string _logvol_date;
353 
357  std::string _logvol_time;
358 
362  std::string _logvol_country;
363 
367  std::string _logvol_agency;
368 
372  std::string _logvol_facility;
373 
378 
383 
387  std::string _product_id;
388 
389 
390 private:
391 };
392 }
393 #endif
friend std::istream & operator>>(std::istream &is, VolumeDescriptorRecord &data)
This function reads a VolumeDescriptorRecord from a stream.
int get_curr_phyvol()
Physical volume of current tape.
std::string get_logvol_agency()
Logvol generation agency.
std::string get_logvol_facility()
Logvol generation facility.
int get_phyvol_cnt()
Total physical volume count.
std::string get_software_id()
Software identifier.
VolumeDescriptorRecord & operator=(const VolumeDescriptorRecord &rhs)
Copy operator.
std::string get_product_id()
Product identifier.
std::string _logvol_time
Logvol creation time.
std::string _format_doc
Format control documentation.
std::string _logvol_country
Logvol generation country.
void Write(std::ostream &os)
Writes the class to a stream.
std::string get_logvol_time()
Logvol creation time.
int _n_voldir
Number of records in volume directory file.
void Read(std::istream &is)
Reads the class data from a stream.
int _curr_phyvol
Physical volume of current tape.
int get_n_filepoint()
Number of file pointer records.
int get_volset_log()
Logical volume within set.
std::string _phyvol_id
Physical volume identifier.
int _first_file
First file number in physical volume.
std::string _logvol_facility
Logvol generation facility.
int get_n_voldir()
Number of records in volume directory file.
This class is the base class of all the record classes.
int get_phyvol_log()
Logical volume within phyvol.
RadarSatRecord * Clone()
This function is able to create a new instance of the class initialised with the data of the calling ...
std::string _volset_id
Volume set identifier.
std::string _format_ver
Format doc version.
This class is able to read the SAR leader file descriptor record of the leader file.
std::string getget_format_rev()
Format doc revision.
int get_first_phyvol()
Physical volume of first tape.
std::string _product_id
Product identifier.
int _phyvol_cnt
Total physical volume count.
int _last_phyvol
Physical volume of last tape.
int get_last_phyvol()
Physical volume of last tape.
std::string get_logvol_id()
Logical volume identifier.
int _first_phyvol
Physical volume of first tape.
int _n_filepoint
Number of file pointer records.
int _volset_log
Logical volume within set.
std::string get_format_ver()
Format doc version.
std::string _software_id
Software identifier.
std::string _format_rev
Format doc revision.
std::basic_istream< char > istream
Base class for char input streams.
Definition: ossimIosFwd.h:20
std::string get_volset_id()
Volume set identifier.
friend std::ostream & operator<<(std::ostream &os, const VolumeDescriptorRecord &data)
This function writes the VolumeDescriptorRecord in a stream.
std::string _logvol_agency
Logvol generation agency.
std::string get_phyvol_id()
Physical volume identifier.
std::string get_format_doc()
Format control documentation.
int _phyvol_log
Logical volume within phyvol.
RadarSatRecord * Instanciate()
This function is able to create a new instance of the class.
int get_first_file()
First file number in physical volume.
std::string _logvol_id
Logical volume identifier.
std::string _logvol_date
Logvol creation date.
std::basic_ostream< char > ostream
Base class for char output streams.
Definition: ossimIosFwd.h:23
std::string get_logvol_country()
Logvol generation country.
std::string get_logvol_date()
Logvol creation date.