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