OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
RadarSatRecordFactory.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 RadarSatRecordFactory_h
13 #define RadarSatRecordFactory_h
14 
15 
18 #include <map>
19 
20 namespace ossimplugins
21 {
27 {
28 public:
37 
43  void RegisterRecord(int id, RadarSatRecord * record);
44 
49  RadarSatRecord* Instanciate(int id) ;
50 protected:
51 
55  std::map<int, RadarSatRecord*> _availableRecords;
56 
57 private:
58 };
59 }
60 #endif
RadarSatRecord * Instanciate(int id)
Instanciates a new Record.
This class is the base class of all the record classes.
This class is a factory able to construct Record base classes given the id of the wanted record...
std::map< int, RadarSatRecord * > _availableRecords
Contains all the available Records for the factory.
void RegisterRecord(int id, RadarSatRecord *record)
Add a new Record type available in this factory.