ImportDescriptor Class Reference

Specifies parameters for importing a single DataElement. More...

#include <ImportDescriptor.h>

List of all members.

Public Member Functions

virtual void setDataDescriptor (DataDescriptor *pDescriptor)=0
virtual DataDescriptorgetDataDescriptor () const =0
virtual void setImported (bool bImport)=0
virtual bool isImported () const =0

Protected Member Functions

virtual ~ImportDescriptor ()


Detailed Description

Specifies parameters for importing a single DataElement.

The import descriptor contains all parameters necessary to import a single DataElement, including a DataDescriptor and a flag that specifies whether the data should be included or ignored on import.

Importers should create an import descriptor by calling ModelServices::createImportDescriptor() from within the Importer::getImportDescriptors() method.

See also:
DataDescriptor

Definition at line 28 of file ImportDescriptor.h.


Constructor & Destructor Documentation

virtual ImportDescriptor::~ImportDescriptor (  )  [protected, virtual]

This object should be destroyed by calling ModelServices::destroyImportDescriptor().

Definition at line 91 of file ImportDescriptor.h.


Member Function Documentation

virtual void ImportDescriptor::setDataDescriptor ( DataDescriptor pDescriptor  )  [pure virtual]

Sets the data set to import.

This method sets a new underlying data descriptor for import and deletes the previous data descriptor. The import descriptor assumes ownership of the given data descriptor and will delete it when the import descriptor is destroyed or on the next call to setDataDescriptor().

Parameters:
pDescriptor The data descriptor to import. Ownership is transferred to the import descriptor.

virtual DataDescriptor* ImportDescriptor::getDataDescriptor (  )  const [pure virtual]

Returns the data set for import.

Returns:
A pointer to the underlying data descriptor to import.

virtual void ImportDescriptor::setImported ( bool  bImport  )  [pure virtual]

Sets whether the data element represented by the underlying data descriptor should be imported.

This method provides a means by which the underlying data descriptor can be ignored on import. Importers can call this method to default the data to load on import or to ignore loading the data on import. In interactive mode the application will call this method to set the value based the user selects in the import dialog.

By default when an ImportDescriptor is created, the import flag is set to true.

Parameters:
bImport Set this value to true to import the given data element or to false to ignore the data element when importing.

virtual bool ImportDescriptor::isImported (  )  const [pure virtual]

Queries whether the data element represented by the underlying data descriptor should be imported.

By default when an ImportDescriptor is created, this method returns true.

Returns:
Returns true if the data represented by the underlying data descriptor should be imported, or false if the data should be ignored on import.
See also:
setImported()


Software Development Kit - Opticks 4.9.0 Build 16218