OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
TextRecord.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 TextRecord_h
13 #define TextRecord_h
14 
15 
16 #include<iostream>
19 
20 namespace ossimplugins
21 {
26 class TextRecord : public RadarSatRecord
27 {
28 public:
32  TextRecord();
36  virtual ~TextRecord();
37 
41  friend std::ostream& operator<<(std::ostream& os, const TextRecord& data);
42 
46  friend std::istream& operator>>(std::istream& is, TextRecord& data);
47 
51  TextRecord(const TextRecord& rhs);
52 
56  TextRecord& operator=(const TextRecord& rhs);
57 
62  {
63  return new TextRecord();
64  };
65 
70  {
71  return new TextRecord(*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_cont_flag()
102  {
103  return _cont_flag;
104  };
105 
109  std::string get_product_type()
110  {
111  return _product_type;
112  };
113 
117  std::string get_product_create()
118  {
119  return _product_create;
120  };
121 
125  std::string get_phyvol_id()
126  {
127  return _phyvol_id;
128  };
129 
133  std::string get_scene_id()
134  {
135  return _scene_id;
136  };
137 
141  std::string get_scene_loc()
142  {
143  return _scene_loc;
144  };
145 
149  std::string get_copyright_info()
150  {
151  return _copyright_info;
152  };
153 
154 
155 protected:
159  std::string _ascii_flag;
160 
164  std::string _cont_flag;
165 
169  std::string _product_type;
170 
174  std::string _product_create ;
175 
179  std::string _phyvol_id;
180 
184  std::string _scene_id;
185 
189  std::string _scene_loc;
190 
194  std::string _copyright_info;
195 
196 private:
197 };
198 }
199 #endif
friend std::istream & operator>>(std::istream &is, TextRecord &data)
This function reads a TextRecord from a stream.
Definition: TextRecord.cpp:37
std::string _copyright_info
Copyright.
Definition: TextRecord.h:194
std::string _cont_flag
Continuation flag.
Definition: TextRecord.h:164
std::string get_phyvol_id()
Volume Description Record.
Definition: TextRecord.h:125
friend std::ostream & operator<<(std::ostream &os, const TextRecord &data)
This function writes the TextRecord in a stream.
Definition: TextRecord.cpp:24
std::string get_product_type()
Product type specifier.
Definition: TextRecord.h:109
This class is able to read the Text record of the volume directory file.
Definition: TextRecord.h:26
std::string get_scene_id()
Scene identifier.
Definition: TextRecord.h:133
std::string get_scene_loc()
Scene location.
Definition: TextRecord.h:141
void Read(std::istream &is)
Reads the class data from a stream.
Definition: TextRecord.h:77
std::string _product_create
Product creation info.
Definition: TextRecord.h:174
RadarSatRecord * Instanciate()
This function is able to create a new instance of the class.
Definition: TextRecord.h:61
This class is the base class of all the record classes.
std::string _product_type
Product type specifier.
Definition: TextRecord.h:169
std::string _scene_id
Scene identifier.
Definition: TextRecord.h:184
std::string get_cont_flag()
Continuation flag.
Definition: TextRecord.h:101
RadarSatRecord * Clone()
This function is able to create a new instance of the class initialised with the data of the calling ...
Definition: TextRecord.h:69
std::string get_ascii_flag()
ASCII flag.
Definition: TextRecord.h:93
std::basic_istream< char > istream
Base class for char input streams.
Definition: ossimIosFwd.h:20
void Write(std::ostream &os)
Writes the class to a stream.
Definition: TextRecord.h:85
TextRecord()
Constructor.
Definition: TextRecord.cpp:16
std::string _phyvol_id
Volume Description Record.
Definition: TextRecord.h:179
std::string get_copyright_info()
Copyright.
Definition: TextRecord.h:149
virtual ~TextRecord()
Destructor.
Definition: TextRecord.cpp:20
std::string get_product_create()
Product creation info.
Definition: TextRecord.h:117
TextRecord & operator=(const TextRecord &rhs)
Copy operator.
Definition: TextRecord.cpp:92
std::basic_ostream< char > ostream
Base class for char output streams.
Definition: ossimIosFwd.h:23
std::string _scene_loc
Scene location.
Definition: TextRecord.h:189
std::string _ascii_flag
ASCII flag.
Definition: TextRecord.h:152