OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
DataFactory.cpp
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 
13 
16 
17 namespace ossimplugins
18 {
19 
21 {
24 }
25 
27 {
28  std::map<int, RadarSatRecord*>::iterator i = _availableRecords.begin();
29 
30  while (i != _availableRecords.end())
31  {
32  if ( (*i).second )
33  {
34  delete (*i).second;
35  (*i).second = 0;
36  }
37  ++i;
38  }
39  _availableRecords.clear();
40 }
41 }
DataFactory()
Contstructor.
Definition: DataFactory.cpp:20
This class is able to read an Processed Data Record.
~DataFactory()
Destructor.
Definition: DataFactory.cpp:26
This class is able to read an Image options file descriptor 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.