Exporter Class Reference

Interface specific to exporter plug-ins. More...

#include <Exporter.h>

Inheritance diagram for Exporter:

Inheritance graph

List of all members.

Public Member Functions

virtual std::string getDefaultExtensions () const =0
virtual ValidationResultType validate (const PlugInArgList *pArgList, std::string &errorMessage) const =0
virtual QWidget * getExportOptionsWidget (const PlugInArgList *pInArgList)=0

Static Public Member Functions

static std::string ExportItemArg ()
static std::string ExportDescriptorArg ()

Protected Member Functions

virtual ~Exporter ()


Detailed Description

Interface specific to exporter plug-ins.

Defines the exporter specific interface to all exporter plug-ins. This interface contains all exporter specific operations.

Definition at line 26 of file Exporter.h.


Constructor & Destructor Documentation

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

Since the Exporter interface is usually used in conjunction with the PlugIn and Executable interfaces, this should be destroyed by casting to the PlugIn interface and calling PlugInManagerServices::destroyPlugIn().

Definition at line 127 of file Exporter.h.


Member Function Documentation

static std::string Exporter::ExportItemArg (  )  [static]

The name for an export item argument.

Input arguments with this name will be automatically populated with a SessionItem pointer when the plug-in is executed with an ExportAgent. Arguments with this name should be of the type SessionItem or one of its subclasses.

See also:
ExportAgent::execute()

Definition at line 39 of file Exporter.h.

static std::string Exporter::ExportDescriptorArg (  )  [static]

The name for an export file descriptor argument.

Input arguments with this name will be automatically populated with the FileDescriptor to use for export when the plug-in is executed with an ExportAgent. Arguments with this name should be of the type FileDescriptor or one of its subclasses.

See also:
ExportAgent::execute()

Definition at line 51 of file Exporter.h.

virtual std::string Exporter::getDefaultExtensions (  )  const [pure virtual]

Returns the default file extensions recognized by the exporter.

Returns:
The file extensions recognized by the exporter as a string. The string consists of a description followed by one or more file extensions separated by a space. Multiple file types may be specified with a double semicolon. Examples include "ENVI Header Files (*.hdr)", "TIFF Files (*.tif *.tiff)", and "Source Files (*.c*);;Header Files (*.h)".

Implemented in ExporterShell.

virtual ValidationResultType Exporter::validate ( const PlugInArgList pArgList,
std::string &  errorMessage 
) const [pure virtual]

Queries whether a given argument list can be successfully saved by the exporter.

This method is called for the exporter to parse the current settings in the plug-in argument list to see if it supports saving the data as currently specified. This allows exporters that do not support certain combinations of values and options to indicate as such. This method is called each time the user changes a value in the export options dialog.

Parameters:
pArgList The plug-in argument list as requested in getInputSpecification. This is populated as it would be in a call to execute.
errorMessage An error message that is populated with the reason why the exporter cannot save the given data descriptor. This message will be displayed to the user. When returning ValidationResultType::VALIDATE_INFO, a non-empty errorMessage is required.
Returns:
Returns a result based on the level of validation success. Either complete success, complete failure, a success with a caveat which will be reported to the user, or a potential success with additional input from the user.
See also:
ValidationResultType

Implemented in ExporterShell.

virtual QWidget* Exporter::getExportOptionsWidget ( const PlugInArgList pInArgList  )  [pure virtual]

Returns a widget to display custom export option values.

This method provides an interface for which specialized export options can be displayed to the user. The method returns a Qt widget that is added to the default export options dialog. The exporter should create the widget with a NULL parent, and should destroy the widget when the exporter itself is destroyed.

Exporters should call QWidget::setWindowTitle() on the widget that is returned to set the name that appears on the tab in the export options dialog. If the window title is not set, the exporter name is displayed. If the returned widget is the only widget to display, a tab widget is not used in the dialog.

Parameters:
pInArgList The input argument list specified by Executable::getInputSpecification() and populated as if being passed to Executable::execute().
Returns:
A QWidget that will be displayed as an additional tab in the default export options dialog. NULL should be returned if the exporter does not have custom options to display to the user.

Implemented in ExporterShell.


Software Development Kit - Opticks 4.9.0 Build 16218