OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
This class is a facory able to construct Record base classes given the id of the record wanted. More...
#include <ErsSarRecordFactory.h>
Public Member Functions | |
ErsSarRecordFactory () | |
Constructor. More... | |
virtual | ~ErsSarRecordFactory () |
Destructor. More... | |
void | RegisterRecord (int id, ErsSarRecord *record) |
Add a new Record type available in this factory. More... | |
ErsSarRecord * | Instanciate (int id) |
Instanciate a new Record. More... | |
Protected Attributes | |
std::map< int, ErsSarRecord * > | _availableRecords |
Contain all the available Records for the factory. More... | |
This class is a facory able to construct Record base classes given the id of the record wanted.
Definition at line 31 of file ErsSarRecordFactory.h.
ossimplugins::ErsSarRecordFactory::ErsSarRecordFactory | ( | ) |
|
virtual |
ErsSarRecord * ossimplugins::ErsSarRecordFactory::Instanciate | ( | int | id | ) |
Instanciate a new Record.
id | Id of the Record we want to instanciate |
Definition at line 25 of file ErsSarRecordFactory.cpp.
References _availableRecords, and ossimplugins::ErsSarRecord::Instanciate().
Referenced by ossimplugins::operator>>().
void ossimplugins::ErsSarRecordFactory::RegisterRecord | ( | int | id, |
ErsSarRecord * | record | ||
) |
Add a new Record type available in this factory.
record | Record to add in the factory |
id | Id of the new avalaible Record |
Definition at line 38 of file ErsSarRecordFactory.cpp.
References _availableRecords.
Referenced by ossimplugins::ErsSarLeaderFactory::ErsSarLeaderFactory().
|
protected |
Contain all the available Records for the factory.
Definition at line 60 of file ErsSarRecordFactory.h.
Referenced by Instanciate(), RegisterRecord(), and ossimplugins::ErsSarLeaderFactory::~ErsSarLeaderFactory().