OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ErsSarRecord.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 ErsSarRecord_h
13 #define ErsSarRecord_h
14 
15 
17 #include <iostream>
18 
19 namespace ossimplugins
20 {
21 
28 {
29 public:
34  ErsSarRecord(std::string mnemonic);
38  virtual ~ErsSarRecord();
39 
43  ErsSarRecord(const ErsSarRecord& rhs);
44 
48  virtual ErsSarRecord* Instanciate() = 0;
49 
53  virtual ErsSarRecord* Clone() = 0;
54 
58  virtual void Read(std::istream& is) = 0;
59 
63  virtual void Write(std::ostream& os) = 0;
64 
65  std::string get_mnemonic()
66  {
67  return _mnemonic;
68  };
69 
70 protected:
71 
72  std::string _mnemonic;
73 
74 private:
75 };
76 }
77 
78 #endif
virtual ErsSarRecord * Clone()=0
This function is able to create a new instance of the class initialised with the data of the calling ...
ErsSarRecord(std::string mnemonic)
Constructor.
virtual ErsSarRecord * Instanciate()=0
This function is able to create a new instance of the class.
virtual ~ErsSarRecord()
Destructor.
This class is the base class of all the record classes.
Definition: ErsSarRecord.h:27
std::string get_mnemonic()
Definition: ErsSarRecord.h:65
std::basic_istream< char > istream
Base class for char input streams.
Definition: ossimIosFwd.h:20
virtual void Read(std::istream &is)=0
Read the class data from a stream.
virtual void Write(std::ostream &os)=0
Write the class to a stream.
std::basic_ostream< char > ostream
Base class for char output streams.
Definition: ossimIosFwd.h:23