OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
VolumeDirFactory.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 
17 
18 
19 namespace ossimplugins
20 {
22 {
27  RegisterRecord(5, new TextRecord());
28 }
29 
31 {
32 
33  std::map<int, RadarSatRecord*>::iterator i = _availableRecords.begin();
34 
35  while (i != _availableRecords.end())
36  {
37  if ( (*i).second )
38  {
39  delete (*i).second;
40  (*i).second = 0;
41  }
42  ++i;
43  }
44  _availableRecords.clear();
45 
46 }
47 }
FilePointerRecord SARLeaderFilePointerRecord
This class is able to read the Text record of the volume directory file.
Definition: TextRecord.h:26
FilePointerRecord ImageOptionsFilePointerRecord
This class is able to read the SAR leader file descriptor record of the leader file.
std::map< int, RadarSatRecord * > _availableRecords
Contains all the available Records for the factory.
FilePointerRecord SARTrailerFilePointerRecord
void RegisterRecord(int id, RadarSatRecord *record)
Add a new Record type available in this factory.