#include <HdfImporterShell.h>

Public Member Functions | |
| HdfImporterShell () | |
| virtual | ~HdfImporterShell () |
| virtual bool | validate (const DataDescriptor *pDescriptor, std::string &errorMessage) const |
Protected Member Functions | |
| virtual int | getValidationTest (const DataDescriptor *pDescriptor) const |
| bool | createRasterPagerPlugIn (const std::string &pagerName, RasterElement &raster) const |
| virtual bool | createRasterPager (RasterElement *pRaster) const =0 |
Protected Attributes | |
| ProgressTracker | mProgressTracker |
Requires linking against PlugInUtilities.
Definition at line 27 of file HdfImporterShell.h.
| HdfImporterShell::HdfImporterShell | ( | ) |
Constructs the HdfImporterShell object.
| virtual HdfImporterShell::~HdfImporterShell | ( | ) | [virtual] |
Destroys the HdfImporterShell object.
| virtual bool HdfImporterShell::validate | ( | const DataDescriptor * | pDescriptor, | |
| std::string & | errorMessage | |||
| ) | const [virtual] |
Queries whether a given data descriptor can be successfully loaded by the importer.
This method is called for the importer to parse the current settings in the data descriptor to see if it supports loading the data as currently specified in the data descriptor. This allows importers that do not support certain combinations of values to indicate as such. This method is called each time the user changes a value in the import options dialog. This method is also called by ImportAgent::execute() before executing the importer.
| pDescriptor | The data descriptor to query if it can be successfully imported. | |
| errorMessage | An error message that is populated with the reason why the importer cannot load the given data descriptor. This message will be displayed to the user via the importer's Progress object. If this method returns true, this message will be displayed to the user as a warning. If this method returns false, this message will be displayed to the user as an error. |
true if the importer can successfully import the given data descriptor; otherwise returns false.
true. Reimplemented from RasterElementImporterShell.
| virtual int HdfImporterShell::getValidationTest | ( | const DataDescriptor * | pDescriptor | ) | const [protected, virtual] |
Returns the test that should be performed when validating the given data set for import.
This method is called by validate() to determine which tests should be performed to validate the import. This method should be overridden by derived importers to add additional tests or remove default tests.
| pDescriptor | The data descriptor for the data set that is being imported. |
Reimplemented from RasterElementImporterShell.
| bool HdfImporterShell::createRasterPagerPlugIn | ( | const std::string & | pagerName, | |
| RasterElement & | raster | |||
| ) | const [protected] |
Based on the plug-in name and a reference to an RasterElement, creates the RasterPager Plug-In by calling the private pure virtual function createRasterPager(RasterElement*).
The dataset loaded is the one specified in the location specified by FileDescriptor::getDatasetLocation().
| pagerName | The name of the RasterPager plug-in. Passed to PlugInManagerServices::createPlugIn(). | |
| raster | A reference to the RasterElement for setting the plug-in. |
| virtual bool HdfImporterShell::createRasterPager | ( | RasterElement * | pRaster | ) | const [protected, pure virtual] |
Creates an RasterPager Plug-In and sets it in the RasterElement.
This method can be overridden for importers that do not have a one-to-one correspondence between an HDF dataset and an RasterElement (ie. MODIS). Those that load one HDF dataset as a RasterElement can use the default implementation provided.
Called from createrRasterPagerPlugIn(const string&, const string&, RasterElement&).
| pRaster | A pointer to the RasterElement for placing the raster pager plug-in. |
Reimplemented from RasterElementImporterShell.
ProgressTracker HdfImporterShell::mProgressTracker [mutable, protected] |
Definition at line 101 of file HdfImporterShell.h.