OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
AlosPalsarRecordFactory.h
Go to the documentation of this file.
1 //----------------------------------------------------------------------------
2 //
3 // "Copyright Centre National d'Etudes Spatiales"
4 // "Copyright Centre for Remote Imaging, Sensing and Processing"
5 //
6 // License: LGPL
7 //
8 // See LICENSE.txt file in the top level directory for more details.
9 //
10 //----------------------------------------------------------------------------
11 // $Id$
12 
13 #ifndef AlosPalsarRecordFactory_h
14 #define AlosPalsarRecordFactory_h
15 
16 
19 #include <map>
20 
21 namespace ossimplugins
22 {
23 
29 {
30 public:
39 
45  void RegisterRecord(int id, AlosPalsarRecord * record);
46 
51  AlosPalsarRecord* Instanciate(int id) ;
52 protected:
53 
57  std::map<int, AlosPalsarRecord*> _availableRecords;
58 
59 private:
60 };
61 }
62 #endif
AlosPalsarRecord * Instanciate(int id)
Instanciate a new Record.
This class is the base class of all the record classes.
std::map< int, AlosPalsarRecord * > _availableRecords
Contain all the available Records for the factory.
This class is a facory able to construct Record base classes given the id of the record wanted...
void RegisterRecord(int id, AlosPalsarRecord *record)
Add a new Record type available in this factory.