Hdf4ImporterShell Class Reference
[Plug-In Shells]

The base class of an importer that loads data in HDF Version 4 format. More...

#include <Hdf4ImporterShell.h>

Inheritance diagram for Hdf4ImporterShell:

Inheritance graph

List of all members.

Protected Member Functions

 Hdf4ImporterShell ()
virtual bool getFileData (Hdf4File &hdfFile) const
void * loadDatasetFromFile (const Hdf4File &hdfFile, const Hdf4Dataset &dataset) const


Detailed Description

The base class of an importer that loads data in HDF Version 4 format.

The HDF4 Importer Shell is a class designed to wrap the HDF4 libraries and provide a convenient means of importing simple (header, metadata, 1 cube) HDF4 data. The shell class is highly customizable, but to use these features requires (a) downloading the HDF4 v4.2r1 precompiled libraries from *

To link a derived plugin under Windows, link to hm421md.lib/hd421md.lib (DEBUG) or hm421m.lib/hd421m.lib (RELEASE). To link a derived plugin under Solaris, link to libmfhdf.a, libdf.a, libjpeg.a, and libudport.a.

Definition at line 38 of file Hdf4ImporterShell.h.


Constructor & Destructor Documentation

Hdf4ImporterShell::Hdf4ImporterShell (  )  [protected]

Constructs the Hdf4ImporterShell object to load file data in HDF Version 4 format.


Member Function Documentation

virtual bool Hdf4ImporterShell::getFileData ( Hdf4File hdfFile  )  const [protected, virtual]

Populates a representation of the HDF File.

Parameters:
hdfFile An EMPTY Hdf4File object to populate.
Returns:
TRUE if the Hdf4File object was successfully populated, otherwise FALSE.

void* Hdf4ImporterShell::loadDatasetFromFile ( const Hdf4File hdfFile,
const Hdf4Dataset dataset 
) const [protected]

Loads entire Hdf4Dataset into the studio's memory block and returns the pointer to it.

Calls ModelServices::getMemoryBlock() to fetch the memory.

Parameters:
hdfFile A const reference to the Hdf4File that contains the dataset to load into memory.
dataset The dataset to load into memory from the Hdf4File.
Returns:
A pointer to memory in the studio's memory space with the loaded data. If passed in NULL, this method will allocate enough memory for reading.


Software Development Kit - Opticks 4.9.0 Build 16218