OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
Data.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 Data_h
13 #define Data_h
14 
15 #include <iostream>
16 #include <map>
18 
19 namespace ossimplugins
20 {
21 class ImageOptionsFileDescriptor;
22 class ProcessedDataRecord;
23 
31 class Data
32 {
33 public:
37  Data();
38 
42  ~Data();
43 
47  friend std::ostream& operator<<(std::ostream& os, const Data& data);
48 
52  friend std::istream& operator>>(std::istream& is, Data& data);
53 
57  Data(const Data& rhs);
58 
62  Data& operator=(const Data& rhs);
63 
67  void ClearRecords();
68 
72  void InsertRecord(int id, RadarSatRecord* record);
73 
77 protected:
78  std::map<int, RadarSatRecord*> _records;
79  static const int ImageOptionsFileDescriptorID;
80  static const int FirstProcessedDataRecordID;
81  static const int LastProcessedDataRecordID;
82 private:
83 
84 };
85 }
86 #endif
~Data()
Destructor.
Definition: Data.cpp:32
ProcessedDataRecord * get_FirstProcessedDataRecord()
Definition: Data.cpp:226
This class is the base class of all the record classes.
Data & operator=(const Data &rhs)
Copy operator.
Definition: Data.cpp:185
static const int LastProcessedDataRecordID
Definition: Data.h:81
This class is able to read an Processed Data Record.
ProcessedDataRecord * get_LastProcessedDataRecord()
Definition: Data.cpp:231
static const int ImageOptionsFileDescriptorID
Definition: Data.h:79
This class is able to read an Image options file descriptor record.
std::basic_istream< char > istream
Base class for char input streams.
Definition: ossimIosFwd.h:20
std::map< int, RadarSatRecord * > _records
Definition: Data.h:78
static const int FirstProcessedDataRecordID
Definition: Data.h:80
void ClearRecords()
Removes all the previous records from the Data.
Definition: Data.cpp:205
This class is able to read the data file of the RadarSat file structure.
Definition: Data.h:31
void InsertRecord(int id, RadarSatRecord *record)
Inserts an existing record in the Data.
Definition: Data.cpp:216
Data()
Constructor.
Definition: Data.cpp:28
friend std::ostream & operator<<(std::ostream &os, const Data &data)
This function writes the Data in a stream.
Definition: Data.cpp:37
ImageOptionsFileDescriptor * get_ImageOptionsFileDescriptor()
Definition: Data.cpp:221
friend std::istream & operator>>(std::istream &is, Data &data)
This function reads a Data from a stream.
Definition: Data.cpp:49
std::basic_ostream< char > ostream
Base class for char output streams.
Definition: ossimIosFwd.h:23