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

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

#include <LeaderFactory.h>

Inheritance diagram for ossimplugins::LeaderFactory:
ossimplugins::RadarSatRecordFactory

Public Member Functions

 LeaderFactory ()
 Contstructor. More...
 
 ~LeaderFactory ()
 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 LeaderFactory.h.

Constructor & Destructor Documentation

◆ LeaderFactory()

ossimplugins::LeaderFactory::LeaderFactory ( )

Contstructor.

Definition at line 27 of file LeaderFactory.cpp.

References ossimplugins::RadarSatRecordFactory::RegisterRecord().

28 {
29  RegisterRecord(9, new RadiometricData());
30  RegisterRecord(10, new RadiometricCompensationData());
31  RegisterRecord(8, new AttitudeData());
32  RegisterRecord(7, new PlatformPositionData());
33  RegisterRecord(6, new ProcessingParameters());
34  RegisterRecord(5, new DataHistogramProcessedData());
35  RegisterRecord(4, new DataHistogramSignalData());
36  RegisterRecord(3, new DataQuality());
37  RegisterRecord(2, new DataSetSummary());
38  RegisterRecord(1, new FileDescriptor());
39 }
void RegisterRecord(int id, RadarSatRecord *record)
Add a new Record type available in this factory.

◆ ~LeaderFactory()

ossimplugins::LeaderFactory::~LeaderFactory ( )

Destructor.

Definition at line 41 of file LeaderFactory.cpp.

References ossimplugins::RadarSatRecordFactory::_availableRecords.

42 {
43 
44  std::map<int, RadarSatRecord*>::iterator i = _availableRecords.begin();
45 
46  while (i != _availableRecords.end())
47  {
48  if ( (*i).second )
49  {
50  delete (*i).second;
51  (*i).second = 0;
52  }
53  ++i;
54  }
55  _availableRecords.clear();
56 
57 }
std::map< int, RadarSatRecord * > _availableRecords
Contains all the available Records for the factory.

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