OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
Public Member Functions | List of all members
ossimplugins::VolumeDirFactory Class Reference

This class is a factory able to construct Record base classes. More...

#include <VolumeDirFactory.h>

Inheritance diagram for ossimplugins::VolumeDirFactory:
ossimplugins::RadarSatRecordFactory

Public Member Functions

 VolumeDirFactory ()
 Contstructor. More...
 
 ~VolumeDirFactory ()
 Destructor. More...
 
- Public Member Functions inherited from ossimplugins::RadarSatRecordFactory
 RadarSatRecordFactory ()
 Constructor. More...
 
 ~RadarSatRecordFactory ()
 Destructor. More...
 
void RegisterRecord (int id, RadarSatRecord *record)
 Add a new Record type available in this factory. More...
 
RadarSatRecordInstanciate (int id)
 Instanciates a new Record. More...
 

Additional Inherited Members

- Protected Attributes inherited from ossimplugins::RadarSatRecordFactory
std::map< int, RadarSatRecord * > _availableRecords
 Contains all the available Records for the factory. More...
 

Detailed Description

This class is a factory able to construct Record base classes.

Definition at line 25 of file VolumeDirFactory.h.

Constructor & Destructor Documentation

◆ VolumeDirFactory()

ossimplugins::VolumeDirFactory::VolumeDirFactory ( )

Contstructor.

Definition at line 21 of file VolumeDirFactory.cpp.

References ossimplugins::RadarSatRecordFactory::RegisterRecord().

22 {
23  RegisterRecord(1, new VolumeDescriptorRecord());
27  RegisterRecord(5, new TextRecord());
28 }
FilePointerRecord SARLeaderFilePointerRecord
FilePointerRecord ImageOptionsFilePointerRecord
FilePointerRecord SARTrailerFilePointerRecord
void RegisterRecord(int id, RadarSatRecord *record)
Add a new Record type available in this factory.

◆ ~VolumeDirFactory()

ossimplugins::VolumeDirFactory::~VolumeDirFactory ( )

Destructor.

Definition at line 30 of file VolumeDirFactory.cpp.

References ossimplugins::RadarSatRecordFactory::_availableRecords.

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 }
std::map< int, RadarSatRecord * > _availableRecords
Contains all the available Records for the factory.

The documentation for this class was generated from the following files: